Files
UniversalTestSoftware/client/nginx/html/js/chunk-37ea1b80.686a63ff.js

2 lines
33 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-37ea1b80"],{"0aa2":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAADmSURBVCiRpc69SgNBFIbhd8borARBUEkEWzsREW/IRkxhHY0SDotCthK2kFh4Q1YpxELBgDaCFv5Es4nsjI0IppqDX3eKl+fAP2YARCTB1erR1Sh5FNkujIhUbFK/B5bjzfDki4UVOxhUnS4EMEvOPVcNQNo5b0FYVdT99v5uqgMnfYDjrLvlfViLjazl+qjZuDR5nruXz5l3YFqBlr4o5+3tz6F8uPx9W07O1q01m7Gp91M9Odzp6cBJHyDtdE+BjegqhKv2QWPPZNnF3Ch8vWnVip9dtMPhwwdwo2zvxuP+qxb8s283uEdmKy96OQAAAABJRU5ErkJggg=="},"13d5":function(e,t,a){"use strict";var i=a("23e7"),s=a("d58f").left,r=a("a640"),o=a("1212"),l=a("9adc"),n=!l&&o>79&&o<83,d=n||!r("reduce");i({target:"Array",proto:!0,forced:d},{reduce:function(e){var t=arguments.length;return s(this,e,t,t>1?arguments[1]:void 0)}})},"147d":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAzCAYAAABIblKcAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAEDSURBVEiJ7ZaxSkNRDIa/BH0Kd3Fx8ZFEbw64VUSlVRBbFNShONybA32gUnAWX8CHcIjLvaVebqGby8mUhP8LfzJF2BLuPgXGwMzMJkMa3QbvEgUucIELXOACF7jABf4feM/dj4F9M/vYFXL3E+BHgSWwyjmfDglFJDbrVreKiKUCDaARsXD3sz4cEdLldV2fR8QCUFWt1cxGIjLvBrt7tcWqqaq3buZVVV2upzZN8yYiIyCAC+Cg+3qBb+AdkIh4TSldAUhv+hNw05afwBHwBRy2vWczu13fY8Be92f3d5+mlO7+HHNov5zzfUQ8bLQmZjbr6wbh9gbXIvIIjM3sZUjzCyLUWbYP+vglAAAAAElFTkSuQmCC"},"1e0d":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"box-content"},[t("div",{staticClass:"content-left"},[t("div",{staticClass:"left-menu"},[t("div",{staticClass:"menu-top"},[t("div",{staticClass:"menu-title"},[e._v(e._s("服务端")+"列表")]),t("div",{staticClass:"menu-add",on:{click:e.addServerClick}},[e._v("+")])]),t("div",{staticClass:"menu-content"},e._l(e.serverList,(function(i,s){return t("div",{key:s,staticClass:"content-item",class:e.serverSelectIndex===s?"active-content":"",on:{click:function(t){return e.serverClick(i,s)}}},[t("div",{staticClass:"flex-bet"},[t("p",{staticClass:"server-name"},[e._v(e._s(i.serverName))]),1==i.connectStatus?t("img",{staticClass:"icons",attrs:{src:a("a598")},on:{click:function(t){return t.stopPropagation(),e.ststusClick(i,2)}}}):t("img",{staticClass:"icons",attrs:{src:a("d2fb")},on:{click:function(t){return t.stopPropagation(),e.ststusClick(i,1)}}})]),t("div",{staticClass:"mt10 flex-bet"},[t("div",{staticClass:"flex"},[e.serverSelectIndex===s?t("img",{staticClass:"icons",attrs:{src:a("c980"),alt:""}}):t("img",{staticClass:"icons",attrs:{src:a("d17e"),alt:""}}),t("p",{staticClass:"content-ip"},[e._v(" "+e._s(i.ipAddress))])]),i.connectStatus&&0!=i.connectStatus?e._e():t("el-dropdown",{attrs:{trigger:"click"},nativeOn:{click:function(e){e.stopPropagation()}}},[t("img",{staticClass:"icons pointer",attrs:{src:a("0aa2"),alt:""}}),t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[t("el-dropdown-item",{nativeOn:{click:function(t){return e.editLeftClick(i,s)}}},[e._v("编辑")]),t("el-dropdown-item",{nativeOn:{click:function(t){return e.deleteLeftClick(i)}}},[e._v("删除")])],1)],1)],1)])})),0)])]),e.isShowHistoryData?e._e():t("div",{staticClass:"content-center"},[t("div",{staticClass:"center-top-box"},[t("div",{staticClass:"center-top-list"},e._l(e.boardList,(function(a,i){return t("div",{key:i,staticClass:"center-items",class:e.boardSelectIndex===i?"acitem":"",on:{click:function(t){return e.centerClick(a,i)}}},[t("p",{staticClass:"items-box"},[e._v(e._s(a.boardName+"_"+a.boardIndex))])])})),0),t("div",{staticClass:"top-btn"},[t("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.refreshClick}},[e._v("刷新板卡")])],1)]),e.boardList&&e.boardList.length>0?t("div",{staticClass:"center-message"},[e._m(0),t("div",{staticClass:"message-kuang flex-bet"},[t("p",{},[e._v("板卡名称:"+e._s(e.boardInfo.boardName))]),t("p",{},[e._v("板卡序列号:"+e._s(e.boardInfo.boardSerialNumber))]),t("p",{},[e._v("板卡索引:"+e._s(e.boardInfo.boardIndex))]),t("p",{},[e._v("板卡类型:"+e._s(e.boardInfo.boardTypeName))]),e.boardInfo.boardTemperature?t("p",{},[e._v("板卡温度:"+e._s(e.boardInfo.boardTemperature)+" ℃")]):e._e(),t("p",[e._v("板卡状态: "),t("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949"},on:{change:e.boardStatusChanged},model:{value:e.boardEnabled,callback:function(t){e.boardEnabled=t},expression:"boardEnabled"}})],1)]),e._m(1),t("div",{},[t("el-table",{staticClass:"mt10",staticStyle:{width:"100%","border-radius":"10px"},attrs:{height:e.channelTableHeight,"header-cell-style":{fontWeight:400,background:"#F0F5FC",color:"#333333"},data:e.tableData,border:""}},[t("el-table-column",{attrs:{type:"index",label:"序号",width:"60"}}),t("el-table-column",{attrs:{prop:"channelName",label:"通道地址","show-overflow-tooltip":""}}),t("el-table-column",{attrs:{prop:"channelTypeName",label:"通道类型",width:"180"},scopedSlots:e._u([{key:"default",fn:function(a){return[1==a.row.isUpType?t("el-select",{attrs:{placeholder:"请选择",size:"mini"},on:{change:function(t){return e.changeChannelType(a.row)}},model:{value:a.row.channelTypeId,callback:function(t){e.$set(a.row,"channelTypeId",t)},expression:"scope.row.channelTypeId"}},e._l(e.options,(function(e){return t("el-option",{key:e.channelTypeId,attrs:{label:e.channelTypeName,value:e.channelTypeId}})})),1):t("div",[e._v(e._s(a.row.channelTypeName?a.row.channelTypeName:"--"))])]}}],null,!1,207307846)}),t("el-table-column",{attrs:{prop:"rwChannelType",label:"读写类型",width:"100"},scopedSlots:e._u([{key:"default",fn:function(a){return["write"==a.row.rwChannelType?t("span",[e._v("写")]):"read"==a.row.rwChannelType?t("span",[e._v("读")]):"read_write"==a.row.rwChannelType?t("span",[e._v("读_写")]):t("span")]}}],null,!1,2503619776)}),t("el-table-column",{attrs:{prop:"parsingQuantity",label:"解析器数",width:"80"}}),t("el-table-column",{attrs:{prop:"",label:"操作",width:"200"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("span",{staticClass:"yellowColor pointer",on:{click:function(t){return e.jxqClick(a.row.channelId)}}},[e._v("解析器")]),t("span",{staticClass:"yellowColor pointer ml20",on:{click:function(t){return e.showHistoryData(a.row.channelId,a.row.serverId)}}},[e._v("查看历史数据")])]}}],null,!1,1751817680)})],1)],1)]):t("el-empty",{attrs:{description:"暂无数据"}})],1),e.isShowHistoryData?t("div",{staticClass:"content-center"},[t("div",{staticClass:"flex-between"},[t("el-form",{attrs:{model:e.modelForm,size:"small",inline:!0}},[t("el-form-item",{attrs:{label:"时间范围"}},[t("el-date-picker",{attrs:{clearable:"",type:"datetimerange","value-format":"yyyy-MM-dd HH:mm:ss","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.timeChange},model:{value:e.modelForm.value,callback:function(t){e.$set(e.modelForm,"value",t)},expression:"modelForm.value"}})],1),t("el-form-item",[t("el-button",{staticClass:"fw-btn",attrs:{type:"success"},on:{click:e.clearHistory}},[e._v("清除该时段")]),t("el-button",{staticClass:"fw-btn",attrs:{type:"primary"},on:{click:e.showContent}},[e._v("显示选择内容")])],1)],1),t("div",{staticClass:"pointer closed",on:{click:function(t){e.isShowHistoryData=!1}}},[e._v(" × ")])],1),t("el-table",{ref:"tableHistory",staticClass:"mt10",staticStyle:{width:"100%","border-radius":"10px"},attrs:{"max-height":e.historyTableHeight,"header-cell-style":{fontWeight:400,background:"#F0F5FC",color:"#333333"},data:e.historyTableData,border:"",stripe:"","row-key":"instructId"},on:{select:e.handleSelect,"select-all":e.handleSelectAll}},[t("el-table-column",{attrs:{type:"selection",width:"55"}}),t("el-table-column",{attrs:{prop:"createTime",label:"时间",width:"160"}}),t("el-table-column",{attrs:{prop:"contentString",label:"内容",width:"","show-overflow-tooltip":""}})],1),e.modelForm.total>10?t("div",{staticClass:"pagination"},[t("el-pagination",{attrs:{"current-page":e.modelForm.current,"page-sizes":[10,20,30,50],"page-size":e.modelForm.size,layout:"total, sizes, prev, pager, next, jumper",total:e.modelForm.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1):e._e(),e.dialogVisible?t("div",{staticClass:"content-right"},[1==e.leftRight?t("el-form",{staticClass:"form-box",attrs:{model:e.form,"label-position":"top"}},[t("dynamicForm",{attrs:{titleName:"新增/编辑服务端","form-data":e.leftForm},on:{reset:e.resetClick,submit:e.submitLeftSure,change:e.handleFormChange}})],1):e._e(),2==e.leftRight?t("el-form",{staticClass:"form-box",attrs:{model:e.form,"label-position":"top"}},[t("dynamicForm",{attrs:{titleName:"新增/修改板卡",typeList:e.typeList,"form-data":e.rightForm},on:{reset:e.resetClick,submit:e.submitRightSure,change:e.handleFormRightChange}})],1):e._e(),3==e.leftRight?t("div",{staticClass:"channel-box"},[t("div",{staticClass:"form-title dialog"},[t("p",{},[e._v(e._s("解析器"))]),t("p",{staticClass:"pointer",on:{click:e.cancelClick}},[e._v("×")])]),e.jxqList.length>0?t("div",{staticClass:"jxq-content mt10"},e._l(e.jxqList,(function(i,s){return t("div",{key:s,staticClass:"jxq-item",on:{click:function(t){return e.addxykuangClick(i)}}},[t("div",{staticClass:"flex boxs"},[t("div",{staticClass:"jxq-num-icon"},[t("img",{staticStyle:{width:"30px",height:"30px"},attrs:{src:a("9974"),alt:""}}),t("span",{staticClass:"jxq-num"},[e._v("已选"+e._s(i.protocolCount?i.protocolCount:0)+"个协议")])]),t("p",{staticClass:"right-icon"},[e._v(">")])]),t("div",{staticClass:"jxq-delete",on:{click:function(t){return t.stopPropagation(),e.deleteJXQ(i)}}},[t("img",{attrs:{src:a("afda"),alt:""}})]),e.jxqList.length-1!=s?t("img",{staticClass:"ljx-img",attrs:{src:a("147d"),alt:""}}):e._e()])})),0):t("el-empty",{attrs:{description:"暂无数据"}}),t("div",{staticClass:"footer"},[t("div",{staticClass:"jxq-btn",on:{click:e.addjxqClick}},[e._v("添加解析器")])])],1):e._e(),4==e.leftRight?t("div",{staticClass:"channel-box"},[t("div",{staticClass:"form-title dialog"},[t("p",{},[e._v("添加协议")]),t("p",{staticClass:"pointer",on:{click:e.cancelClick}},[e._v("×")])]),t("el-table",{directives:[{name:"show",rawName:"v-show",value:4==e.leftRight,expression:"leftRight == 4"}],staticClass:"mt10",staticStyle:{width:"100%"},attrs:{"header-cell-style":{fontWeight:400,background:"#F0F5FC",color:"#333333"},data:e.xieyiData1,"max-height":"650px",border:""}},[t("el-table-column",{attrs:{prop:"protocolName",label:"协议",width:"","show-overflow-tooltip":""}}),t("el-table-column",{attrs:{prop:"",label:"操作",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("span",{staticClass:"redColor pointer",on:{click:function(t){return e.deletexy(a.row)}}},[e._v("删除")])]}}],null,!1,4171905257)})],1),t("div",{staticClass:"footer"},[t("div",{staticClass:"jxq-btn",on:{click:function(t){return e.addxyClick(2)}}},[e._v("添加协议")])])],1):e._e(),t("div",{directives:[{name:"show",rawName:"v-show",value:5==e.leftRight,expression:"leftRight == 5"}],staticClass:"channel-box"},[t("div",{staticClass:"form-title dialog"},[t("p",{},[e._v("选择协议")]),t("p",{staticClass:"pointer",on:{click:e.cancelClick}},[e._v("×")])]),t("div",{staticClass:"lengths"},[e._v("当前选择:"+e._s(e.tableList.length||0)+"条数据")]),t("el-table",{ref:"multipleTable",staticClass:"mt10",staticStyle:{width:"100%"},attrs:{"header-cell-style":{fontWeight:400,background:"#F0F5FC",color:"#333333"},data:e.xieyiData2,"max-height":"650px",border:"","row-key":"rowKey"},on:{select:e.onSelect,"select-all":e.onSelectAll}},[t("el-table-column",{attrs:{type:"selection",width:"50"}}),t("el-table-column",{attrs:{prop:"protocolName",label:"协议",width:"","show-overflow-tooltip":""}})],1),t("div",{staticClass:"footer"},[t("div",{staticClass:"jxq-btn",on:{click:e.addxySure}},[e._v("确定")])])],1)],1):e._e(),t("el-dialog",{attrs:{title:"提示",visible:e.dialogVisibleContent,width:"30%"},on:{"update:visible":function(t){e.dialogVisibleContent=t}}},[t("span",{staticStyle:{color:"#ffffff"}},[e._v(e._s(e.historyContentStr))])])],1)},s=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"flex-bet mt10"},[t("p",{staticClass:"whiteColor fs16"},[e._v("板卡信息")])])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"flex-bet mt10"},[t("p",{staticClass:"whiteColor fs16"},[e._v("通道信息")])])}],r=(a("14d9"),a("13d5"),a("e9f5"),a("910d"),a("7d54"),a("ab43"),a("9485"),a("939d")),o=function(){var e=this,t=e._self._c;return t("div",{staticClass:"Container"},[t("vue-seamless-scroll",{staticClass:"systemNotice",attrs:{data:e.notices,"class-option":e.defaultOption}},e._l(e.notices,(function(a,i){return t("div",{key:i,staticClass:"notice-item"},[t("div",{staticClass:"notice-date"},[t("span",[e._v(e._s(a.data))])])])})),0)],1)},l=[],n={data(){return{defaultOption:{step:.3,limitMoveNum:2,hoverStop:!0,direction:3,openWatch:!0,singleHeight:0,singleWidth:0,waitTime:0},notices:[{data:"ddddd"},{data:"ddddd"},{data:"ddddd"},{data:"ddddd"},{data:"ddddd"},{data:"ddddd"},{data:"ddddd"},{data:"ddddd"}]}},methods:{}},d=n,c=a("2877"),h=Object(c["a"])(d,o,l,!1,null,null,null),b=h.exports,u=a("365c"),p=a("2b0e"),A={components:{dynamicForm:r["a"],scrollList:b},data(){return{historyContent:!1,dialogVisibleContent:!1,historyTableData:[],historySelection:[],historyContentStr:"",modelForm:{value:[],startTime:"",endTime:"",size:10,current:1,total:0,channelId:""},titleName:"新增",dialogVisible:!1,isShowHistoryData:!1,leftForm:[{name:"名称",label:"",type:"input"},{name:"IP地址",label:"",type:"input"},{name:"端口",label:"",type:"input"}],rightForm:[{name:"类型",label:"",type:"select"},{name:"名称",label:"",type:"input"},{name:"序号",label:"",type:"input"},{name:"状态",label:1,type:"radio"}],boardInfo:{},boardEnabled:!1,serverSelectIndex:0,form:{},serverList:[],typeList:[],boardList:[],serverId:"",boardId:"",leftRight:1,boardSelectIndex:0,tableData:[],assessType:[],channelId:"",jxqList:[],xieyiData1:[],xieyiData2:[],lengthData:[],ids:[],createTask:{},tableList:[],tableDataArr:[],parserId:"",printData:{},options:[],channelTableHeight:500,historyTableHeight:500,boardTemperatureParams:{serverId:"",boardId:"",boardIndex:null}}},mounted(){this.$nextTick(()=>{this.calculateTableHeight()}),window.addEventListener("resize",this.calculateTableHeight),this.getAllXY(),this.getServerList(),this.getBoardTemperature()},beforeDestroy(){window.removeEventListener("resize",this.calculateTableHeight)},computed:{trigger(){return this.$store.state.trigger}},watch:{trigger(e){e&&(this.getServerList(),this.$store.dispatch("triggerAction",!1))}},methods:{calculateTableHeight(){this.channelTableHeight=window.innerHeight-280,this.historyTableHeight=window.innerHeight-230},getBoardTemperature(){this.boardTemperatureParams.serverId=this.serverId,this.boardTemperatureParams.boardId=this.boardId,this.boardTemperatureParams.boardIndex=this.boardInfo.boardIndex,""!==this.boardTemperatureParams.serverId&&""!==this.boardTemperatureParams.boardId&&null!==this.boardTemperatureParams.boardIndex?Object(u["r"])(this.boardTemperatureParams).then(e=>{1===e.code&&e.data?this.boardInfo.boardTemperature=e.data:this.boardInfo.boardTemperature=null,this.delayGetBoardTemperature(5e3)}):this.delayGetBoardTemperature(1e3)},delayGetBoardTemperature(e){setTimeout(()=>{this.getBoardTemperature()},e)},getChannelTypeAll(e,t){Object(u["u"])({serverId:e,boardTypeId:t}).then(e=>{1==e.code&&(this.options=e.data||[])})},changeChannelType(e){let t=this.options.filter(t=>t.channelTypeId==e.channelTypeId),a={...e,...t[0]};Object(u["I"])({...a,serverId:this.serverId}).then(e=>{e.code})},serverClick(e,t){e.serverId!==this.serverId&&(this.serverSelectIndex=t,this.boardSelectIndex=0,this.serverId=e.serverId,this.historyContent=!1,this.dialogVisibleContent=!1,this.isShowHistoryData=!1,this.getBoardList(e.serverId),this.getAllType(e.serverId))},getServerList(){this.serverList=[],Object(u["B"])({current:1,size:1e3}).then(e=>{1==e.code&&(this.serverList=e.data.records||[],p["default"].prototype.$serverList=[...this.serverList],this.serverList&&this.serverList.length>0&&(this.serverId=this.serverList[this.serverSelectIndex].serverId,this.getBoardList(this.serverId),this.getAllType(this.serverId)))})},addServerClick(){this.leftRight=1,this.serverId="",this.dialogVisible=!0},handleFormChange(e,t){this.leftForm[e].label=t},resetClick(){this.dialogVisible=!1},submitLeftSure(e){if(""==e[0].label)return this.$message.error("请输入服务端名称!");if(""==e[1].label)return this.$message.error("请输入IP地址");if(""==e[2].label)return this.$message.error("请输入端口!");let t={serverName:e[0].label,ipAddress:e[1].label,httpPort:e[2].label,serverId:this.serverId?this.serverId:""};Object(u["G"])(t).then(e=>{1==e.code&&(this.$message.success("操作成功!"),this.getServerList(),this.dialogVisible=!1,this.leftForm.forEach(e=>{e.label=""}))})},ststusClick(e,t){1==t?Object(u["g"])({serverId:e.serverId}).then(e=>{1==e.code&&this.getServerList()}):Object(u["q"])({serverId:e.serverId}).then(e=>{1==e.code&&this.getServerList()})},editLeftClick(e,t){this.serverId=e.serverId,this.leftRight=1,this.leftForm[0].label=e.serverName,this.leftForm[1].label=e.ipAddress,this.leftForm[2].label=e.httpPort,this.dialogVisible=!0},deleteLeftClick(e){this.$confirm("确定删除该条数据?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{Object(u["j"])({serverId:e.serverId}).then(e=>{1===e.code&&(this.$message.success("删除成功!"),this.getServerList())})}).catch(()=>{})},getAllType(e){this.typeList=[],Object(u["s"])({serverId:e}).then(e=>{if(1==e.code){let t=e.data||[];t.forEach(e=>{e.name=e.boardTypeName,e.value=e.boardTypeId}),this.typeList=t}})},centerClick(e,t){this.boardSelectIndex=t,this.boardInfo=e,this.boardEnabled=1===this.boardInfo.onlineState,this.boardId=e.boardId,this.getBoardChannelList(this.serverId,e.boardId),this.getChannelTypeAll(this.serverId,e.boardTypeId)},boardStatusChanged(e){let t={boardId:this.boardInfo.boardId,boardTypeId:this.boardInfo.boardTypeId,boardName:this.boardInfo.boardName,boardIndex:this.boardInfo.boardIndex,serverId:this.serverId,onlineState:e?1:0};Object(u["H"])(t).then(e=>{1===e.code&&(this.$message.success("操作成功!"),this.getBoardList(this.serverId))})},addRightClick(){this.leftRight=2,this.boardId="",this.rightForm[3].label=1,this.dialogVisible=!0},handleFormRightChange(e,t){this.rightForm[e].label=t},submitRightSure(e){let t=null;if(""==e[0].label)return this.$message.error("请选择类型!");if(""==e[1].label)return this.$message.error("请输入名称!");if(""==e[2].label)return this.$message.error("请输入序号!");if(e[2].label&&(t=Number(e[2].label),!Number.isInteger(t)))return this.$message.error("序号请输入数字值!");if(""==e[3].label)return this.$message.error("请选择状态!");let a={boardTypeId:e[0].label,boardName:e[1].label,boardIndex:t,onlineState:e[3].label,serverId:this.serverId?this.serverId:"",boardId:this.boardId?this.boardId:""};Object(u["H"])(a).then(e=>{1==e.code&&(this.getBoardList(this.serverId),this.$message.success("操作成功!"),this.dialogVisible=!1,this.rightForm.forEach(e=>{e.label=""}))})},getBoardList(e){this.boardList=[],this.boardInfo={},this.boardId="";let t={current:1,size:1e3,serverId:e};Object(u["z"])(t).then(e=>{1==e.code&&(this.boardList=e.data.records||[],this.boardList&&this.boardList.length>0&&(this.boardInfo=this.boardList[this.boardSelectIndex],this.boardEnabled=1===this.boardInfo.onlineState,this.boardId=this.boardInfo.boardId,this.getBoardChannelList(this.serverId,this.boardInfo.boardId),this.getChannelTypeAll(this.serverId,this.boardInfo.boardTypeId)))})},editRightClick(e){console.log(e,"itemitemitem"),this.leftRight=2,this.rightForm[0].label=e.boardTypeId,this.rightForm[1].label=e.boardName,this.rightForm[2].label=e.boardIndex,this.rightForm[3].label=e.onlineState,this.boardId=e.boardId,console.log(this.serverId,"this.serverIdthis.serverId"),this.dialogVisible=!0},deleteBk(e){this.$confirm("确定删除该条数据?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{Object(u["i"])({boardId:e.boardId,serverId:this.serverId}).then(e=>{1===e.code&&(this.getBoardList(this.serverId),this.$message.success("删除成功!"))})}).catch(()=>{})},getBoardChannelList(e,t){let a={current:1,size:1e3,serverId:e,boardId:t};Object(u["A"])(a).then(e=>{1==e.code&&(this.tableData=e.data.records||[])})},timeChange(e){e?(this.modelForm.startTime=e[0],this.modelForm.endTime=e[1]):(this.modelForm.startTime="",this.modelForm.endTime="",this.modelForm.value=[]),this.modelForm.current=1,this.channelDataQuery()},channelDataQuery(){Object(u["f"])({...this.modelForm}).then(e=>{if(1==e.code){let t=e.data||{};this.historyTableData=t.records||[],this.modelForm.total=t.total||0}})},clearHistory(){let e=this;!this.modelForm.value||this.modelForm.value.length<1?this.$message.warning("请先选择时间段!"):this.$confirm(`确定删除${this.modelForm.startTime}-${this.modelForm.endTime}的数据?`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{Object(u["e"])({...this.modelForm}).then(t=>{1==t.code&&(e.$message.success("删除成功!"),this.historySelection=[],e.channelDataQuery())})}).catch(()=>{})},showContent(){if(!this.historySelection||this.historySelection.length<1)return void this.$message.error("请选择显示内容!");let e=this.historySelection.map(e=>e.contentString);this.historyContentStr=e.join(","),this.dialogVisibleContent=!0},showHistoryData(e,t){this.modelForm.channelId=e,this.modelForm.serverId=t,this.isShowHistoryData=!0,this.channelDataQuery()},handleSelect(e,t){this.historySelection=e},handleSelectAll(e){this.historySelection=e},handleSizeChange(e){this.modelForm.size=e,this.channelDataQuery(),console.log(`每页 ${e}`)},handleCurrentChange(e){this.modelForm.current=e,this.channelDataQuery(),console.log("当前页: "+e)},cancelClick(){this.dialogVisible=!1},getAllXY(){Object(u["D"])({current:1,size:1e4,protocolType:1}).then(e=>{1===e.code&&(this.xieyiData2=e.data.records||[])})},jxqClick(e){this.channelId=e||"",this.leftRight=3,Object(u["w"])({channelId:e}).then(e=>{1==e.code&&(this.jxqList=e.data||[],this.dialogVisible=!0)})},deleteJXQ(e){this.$confirm("确定删除该条数据?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{Object(u["o"])({parserId:e.parserId}).then(e=>{1===e.code&&(this.jxqClick(this.channelId),this.getBoardChannelList(this.serverId,this.boardId))})}).catch(()=>{})},deletexy(e){this.$confirm("确定删除该条数据?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{Object(u["p"])({parserProtocolId:e.parserProtocolId}).then(e=>{1===e.code&&Object(u["x"])({parserId:this.parserId}).then(e=>{1==e.code&&(this.leftRight=4,this.xieyiData1=e.data||[])})})}).catch(()=>{})},addxykuangClick(e){this.parserId=e.parserId,Object(u["x"])({parserId:e.parserId}).then(e=>{1==e.code&&(this.leftRight=4,this.xieyiData1=e.data||[])})},convertedObject(e){return e.reduce((e,t)=>(e[t.protocolId]=t,e),{})},addxyClick(){this.printData=this.convertedObject(this.xieyiData1),Object(u["D"])({current:1,size:1e4,protocolType:1}).then(e=>{1==e.code&&(this.xieyiData2=e.data.records||[],this.checkRows(),this.leftRight=5)})},onSelect(e,t){this.printData[t.protocolId]?delete this.printData[t.protocolId]:this.printData[t.protocolId]=t,this.tableList=Object.values(this.printData)},onSelectAll(e){e.length?e.forEach(e=>{this.printData[e.protocolId]||(this.printData[e.protocolId]=e)}):this.xieyiData2.forEach(e=>{delete this.printData[e.protocolId]}),this.tableList=Object.values(this.printData)},checkRows(){var e=this;const t=Object.keys(this.printData),a=this.xieyiData2.filter(e=>t.includes(String(e.protocolId)));a.forEach(t=>{e.$nextTick((function(){e.$refs.multipleTable.toggleRowSelection(t,!0)}))}),this.tableList=t},addxySure(){let e=[];if(console.log(this.printData,"fff11"),this.tableList.length<0)return this.$message.error("请勾选协议!");this.tableList.forEach(t=>{e.push({protocolName:t.protocolName,protocolId:t.protocolId,parserId:this.parserId,parserProtocolId:t.parserProtocolId?t.parserProtocolId:""})}),Object(u["a"])(e).then(e=>{1==e.code&&Object(u["x"])({parserId:this.parserId}).then(e=>{1==e.code&&(this.leftRight=4,this.xieyiData1=e.data||[])})})},handleSelectionChange(e){},addjxqClick(){let e=this.jxqList.length+1,t={channelId:this.channelId,parserName:"解析器"+e,parserSort:e};Object(u["K"])(t).then(e=>{1==e.code&&(this.$message.success("添加成功!"),this.jxqClick(this.channelId),this.getBoardChannelList(this.serverId,this.boardId))})},refreshClick(){Object(u["F"])({serverId:this.serverId}).then(e=>{1==e.code&&(this.boardId&&this.getBoardChannelList(this.serverId,this.boardId),this.getAllType(this.serverId))})}}},m=A,g=(a("ab6d"),Object(c["a"])(m,i,s,!1,null,"1fddbe56",null));t["default"]=g.exports},"2ba4":function(e,t,a){"use strict";var i=a("40d5"),s=Function.prototype,r=s.apply,o=s.call;e.exports="object"==typeof Reflect&&Reflect.apply||(i?o.bind(r):function(){return o.apply(r,arguments)})},8558:function(e,t,a){"use strict";var i=a("cfe9"),s=a("b5db"),r=a("c6b6"),o=function(e){return s.slice(0,e.length)===e};e.exports=function(){return o("Bun/")?"BUN":o("Cloudflare-Workers")?"CLOUDFLARE":o("Deno/")?"DENO":o("Node.js/")?"NODE":i.Bun&&"string"==typeof Bun.version?"BUN":i.Deno&&"object"==typeof Deno.version?"DENO":"process"===r(i.process)?"NODE":i.window&&i.document?"BROWSER":"REST"}()},"939d":function(e,t,a){"use strict";var i=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"form-title"},[t("p",{},[e._v(e._s(e.titleName))]),t("p",{staticClass:"pointer",on:{click:e.cancelClick}},[e._v("×")])]),e._l(e.formData,(function(a,i){return t("div",{key:i},["input"===a.type?t("el-form-item",{attrs:{label:a.name}},[t("el-input",{staticStyle:{width:"240px"},attrs:{placeholder:"请输入"},on:{input:function(t){return e.updateValue(i,t)}},model:{value:a.label,callback:function(t){e.$set(a,"label",t)},expression:"item.label"}})],1):e._e(),"select"===a.type?t("el-form-item",{attrs:{label:a.name}},[t("el-select",{staticStyle:{width:"240px"},model:{value:a.label,callback:function(t){e.$set(a,"label",t)},expression:"item.label"}},e._l(e.typeList,(function(e,a){return t("el-option",{key:a,attrs:{value:e.value,label:e.name}})})),1)],1):e._e(),"radio"===a.type?t("el-form-item",{attrs:{label:a.name}},[t("el-radio-group",{staticClass:"ml10",model:{value:a.label,callback:function(t){e.$set(a,"label",t)},expression:"item.label"}},[t("el-radio",{attrs:{label:1}},[e._v("启用")]),t("el-radio",{attrs:{label:0}},[e._v("禁用")])],1)],1):e._e()],1)})),t("div",{staticClass:"btn-bottom"},[t("el-button",{on:{click:e.cancelClick}},[e._v("取 消")]),t("el-button",{attrs:{type:"primary"},on:{click:e.makeSure}},[e._v("确 定")])],1)],2)},s=[],r=(a("e9f5"),a("7d54"),{props:{titleName:{type:String,required:!0,default:()=>""},formData:{type:Array,required:!0,default:()=>[]},typeList:{type:Array,required:!0,default:()=>[{}]}},data(){return{}},methods:{updateValue(e,t){console.log(e,t,"index,valueindex,valueindex,value"),this.$emit("change",e,t)},cancelClick(){this.formData.forEach(e=>{e.label=""}),this.$emit("reset")},makeSure(){this.$emit("submit",this.formData)}}}),o=r,l=(a("9e5a"),a("2877")),n=Object(l["a"])(o,i,s,!1,null,"5ef0113c",null);t["a"]=n.exports},9485:function(e,t,a){"use strict";var i=a("23e7"),s=a("2266"),r=a("59ed"),o=a("825a"),l=a("46c4"),n=a("2a62"),d=a("f99f"),c=a("2ba4"),h=a("d039"),b=TypeError,u=h((function(){[].keys().reduce((function(){}),void 0)})),p=!u&&d("reduce",b);i({target:"Iterator",proto:!0,real:!0,forced:u||p},{reduce:function(e){o(this);try{r(e)}catch(h){n(this,"throw",h)}var t=arguments.length<2,a=t?void 0:arguments[1];if(p)return c(p,this,t?[e]:[e,a]);var i=l(this),d=0;if(s(i,(function(i){t?(t=!1,a=i):a=e(a,i,d),d++}),{IS_RECORD:!0}),t)throw new b("Reduce of empty iterator with no initial value");return a}})},9974:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAKKSURBVEiJ7ZZNSFRRFMd/572ZScdxtHSsMMOPPsisDKKsTSFkJMiEa4sWLSOIAgsJKVNbtXERtahd2QctpiAIKlq0qUCkEiQqcxIhMz9ynBln3twWz48RHR11Zlb+N/eec+69v3PeO7z7hElNNGyp0OGOgjJAWIa00qOvZa2lWqrbgouunZrowmMFu5YLBVA2R6WS/PtxJQmgGos3K8Wm5QJnyWavNV603osLHAhGtMUWLkViyzhtPL/etig4GZJ051njWVNLysEAYs+6bHiu1qccDCAZ2a3Kc+VMcsH+kfnQotLX3Qo/rXcnDax+dsCEf25A0y1a5voHytNQMZ0OgP9SYaFVt/xICF1Lg6wSsDrnhCQcHA32dZXZb372WhICi1YkAENf5g0pcIotrJOK5oqlVfAqeBWcArAjBykonzal5BDY7JBbhGw/EnWCjhyoM+euEnBuWCHY/w+pPAeZeeAqRipOQiiAbDuMuJvAmm4mVFqFVnUBHLlI0X5k4464wLE/mcYEEU8jmvsa6DYiTy6Cipix7rdIuRv1oR3ZXYPqfhMXLFoLv+MhL4gFxofB93farbpeIjuPgasYRvvnv5FWApaDp1Ddr1B/viNlx2cCkTD8+oR2ooXI+/YlQ1nwUedtRQr2Enl0HkRDq7uN6u0ApUz2x4dohfvg99eZPUYY2VMD+WUQ9KHe3Y1dFLHu4zQnKAOCPtO2Z0MoAJY15hgOQkYO+AbB4YKxAdCtZjOC2Q8j/XOAISNclH6jpyd2xYHR2fb48OTOwIzPN2iOYwOTFYdguC/mkdHSANJ03YhrdQI0xdIApPmbV4TeZENF6JXmb16iu1oTVStCp/mHknApETo1UbVTjv/LKsGbxEQqVwAAAABJRU5ErkJggg=="},"9adc":function(e,t,a){"use strict";var i=a("8558");e.exports="NODE"===i},"9e5a":function(e,t,a){"use strict";a("db55")},"9e8b":function(e,t,a){},a598:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAHXSURBVDiNrZE/aFNhFMV/56uTQnGwSBErFBGatFhBK25O0lVRBPuC0OJiUV8SRbp1KPivJsFQnJRC86ooxc2pLtZBrYNK3xM1kwgODuIihLbfdYgVAkkU9Iz33vPj3nPhH6W/GUpVwlGhU5h14bTcYWuTb4PyZwD3R/NceFPoDlgn0gczjq+x6Xn/vdzO9gBD6Up2RlIO7HIclIbioHhCxn7BVlvzE20B6SgsA2fNLB8Hpesb9ThTrAoemxhqCeirZI+Cxs0srw597J+/sL1xOXoc+tYS4GAMeKOaZlnnoXn3bM98ftuvTCaBg+viPg1fMJSOwrKhLgc9hn2Pg9JwKgoHZXphYtqZ/TA0ZehuEhTGGjZIR2EBNI7siYeXmA6nonAwGSm9lniKMWTSPsxuJ9XOMxs+AfRH4TEzLRhMJEHxat9c2O2cW8L7bg+7nbRosJIExZNNzgXvdR7xKgmK1wDeZUpfarXVQ3LuoqTTQMpRv7kpQI5u83pfD7iu6mj5q/d+i+AK2MxKUHzUGoCWhR8eiLK9G41UJTch6YaJW3FQOtfM/DuDgSjbu262JLQZWATtAjtg0nQyUrjUytzwxr0PsjtWaxYKjiB9wjQbZwoL7cz/RT8BbG64aewfpJgAAAAASUVORK5CYII="},a640:function(e,t,a){"use strict";var i=a("d039");e.exports=function(e,t){var a=[][e];return!!a&&i((function(){a.call(null,t||function(){return 1},1)}))}},ab6d:function(e,t,a){"use strict";a("9e8b")},afda:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAACBSURBVDiN5ZLBCYAwFENT6SyCFIfwqCOI6ziIRyfosYIzuI0Yr7bWainiwdz+JyTvwwcSJXzLpalaEAMACQAEVoJdqafR9Wbe2I35RvZKG6G0EYLsQRRBgqWuGIOutDnTPwlxPf4TInQZcGwKkb1H8KMAS5/8gbQmcr6lIE1qqaUdWnUwvSZ/8isAAAAASUVORK5CYII="},c980:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAGaSURBVDiNjZO9bhRBEIS/np29/bFhxRH57MQSQiLegMC8BEK8AkeKI4f7GsQEBBBChkSCw01JnWEHGMkg7Y93d5rgzMHNjSU67aqa7pouIVSqUi6xVwkGoOhx9YKJSpwPFZ94cEy6XxCP7WbPZuj4jbFe0P0r9Bf0XKOjQ/JOVq/eVqniTs9oeCcTcANWlf8hA3SCOTokp1KzFjg4Jg2Rk9nw0NrhUUikhHQloCr7BfEGIiJP7PVSJzc3Ou0kcfvSantnA9MSU6kx5RLrG5ZI/7TX8Y1z5jti5rjoo7E88ycp94jsVYIpvIaCYcobE/dPEB6guitqB1/g8pwobJq6zDgyVblQJ1/aafygMu6EoKbo2ToON2ZvbdKfmH722bnZp8zEJ1Mn731cDk6o1DyGXd+HaOrmNtVXCuNwbV6rJBe+QJ3xSwDKF5pzz/sJwFjuinR2GtIfW7NnDHUljQGoF3SphlbhZ4hsG7SGjvUlVuJOz2hCIiFydp/mTx42w1Tp6sLa7XXWY3NbmHyhPaLLcyJu3P4KYyjOvwGgAq0u3OkFlwAAAABJRU5ErkJggg=="},d17e:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAHJSURBVDiNnZO7blNBEIb/md31sU9sLEVKJKeLFFG5pPQbIFGeB6DxK6RIsW9gUSYvgLAoUyKRAlG5oKWyIoqlQC5ifHLivQyFY8uXg4SYcuf/ZudKqDERoeHwRmfZEwNAv58l51y01qZ9Le2Do9GoqbU2ZZnt+PL8SGazRQBctR1oIxqPx2o6necigeuy2gCk0/l5pyyKIgIAr3/+F3ilDTydznNrLQOAAoBut9uKUet98VLCS2E5ZfCvXU+iEDp8d3frlYjQZDJpea835cSIPDDeKsJDJNYieONZfdeQ5VqjNdRg8Mor585Mu60b2/EDSaESfYiUlBI+Yy1fJclrDfq2rTs56cTnUWU7CTITK0KZwINEuKBEbSJ4yG4hzjVUbdNiiq2KQ4sEP5nki4rLW0rpqE7L/X52sBxNNu9VUpeZls8cwqfAjUuE+PEQv0/aORePjy+kLBebJoqkObx/VyZzBVKBKV0b05jVJBAIAKy9zptNmAOvMS+kjNqYdABXFby1w/K5B64i0gelaO8f6uEnAVyF/1nlFTwrrbUB61UGgKIo4uPjj0VVwf8dhgdmv9cw9q9xbdZa7vV6yrmGWr3cJwCh7pz/ACkw6ho25OqdAAAAAElFTkSuQmCC"},d2fb:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAIQSURBVDiNrZK9a1NhFIefc5PUIX6iSBAVKmjBC2rRJYiam5SQ21YHRcXBQdBBRCoFKxRBHBSc/FiC/4AgXQSb3KbYpA4KBRWqvWkcLAUHtdgqBZvS5N7j1DQmCEX8beflnOf9nQ/43yolj7YWbeveavODjQ+eETwE2gfcACidOLzOq7SkgbPAgsJD0yncElAAo5mpc8BsDVhpeQYkROkXJC3Q56asa384KKWsNg+N+gbfzWxh8HU0umOFx4tQwLi0JzMyBTCRiimGXAXu1wCeyGWgx1B+ApvCG9dsdjtjV9QnomjuSWZkesWhfEbZWosaG5hMHYv6YgwBX0FdVekWQ56a2fz5Tx0dGxZD3hjolOmMdjbNYLLLOuiL4aD6thycbzed0ZMq0o3qzvFkMlwOVR1gy1LV72lyUEpZbZ7wSoSPlWooGTSWnnsit/c5hZfjyWQ4FKgMKhwQXxJ7c/l3y3U1Bx6aBp0J6YK9f3j4FyLTAci5tpUJBirjQLugdn1xDaAgKnJEVR7sdsbmAQacwkVVelGdAbKG57V/K/PGta1Z17bUTVl3a1sQ0CL8QNi+TD5lx1tFfc8cGr1Q/+MHO37OUH8b1WCe+kv0VR6J6M2iHW8BnfPRXkQmgMcArm19QfW06eSHm1oAMIfyd1ToR/WMwnVBBtavXTxelxtBiDSufdVy7Vj6fVdi1z8D/qbfhGLTr8NlKx8AAAAASUVORK5CYII="},d58f:function(e,t,a){"use strict";var i=a("59ed"),s=a("7b0b"),r=a("44ad"),o=a("07fa"),l=TypeError,n="Reduce of empty array with no initial value",d=function(e){return function(t,a,d,c){var h=s(t),b=r(h),u=o(h);if(i(a),0===u&&d<2)throw new l(n);var p=e?u-1:0,A=e?-1:1;if(d<2)while(1){if(p in b){c=b[p],p+=A;break}if(p+=A,e?p<0:u<=p)throw new l(n)}for(;e?p>=0:u>p;p+=A)p in b&&(c=a(c,b[p],p,h));return c}};e.exports={left:d(!1),right:d(!0)}},db55:function(e,t,a){}}]);
//# sourceMappingURL=chunk-37ea1b80.686a63ff.js.map