2 lines
40 KiB
JavaScript
2 lines
40 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-65a12e08"],{"02c7":function(t,e,a){"use strict";a.d(e,"e",(function(){return s})),a.d(e,"g",(function(){return r})),a.d(e,"f",(function(){return n})),a.d(e,"j",(function(){return o})),a.d(e,"h",(function(){return c})),a.d(e,"i",(function(){return l})),a.d(e,"k",(function(){return d})),a.d(e,"d",(function(){return h})),a.d(e,"b",(function(){return u})),a.d(e,"a",(function(){return m})),a.d(e,"c",(function(){return p}));var i=a("4020");const s=t=>Object(i["a"])({url:"/api/dataBoard/listDataBoard",method:"get",params:t}),r=t=>Object(i["a"])({url:"/api/dataBoard/saveOrUpdateDataBoard",method:"post",data:t}),n=t=>Object(i["a"])({url:"/api/dataBoard/removeDataBoardById",method:"get",params:t}),o=t=>Object(i["a"])({url:"/api/dataBoard/updateDataBoardById",method:"post",data:t}),c=t=>Object(i["a"])({url:"/api/channelData/start",method:"post",data:t}),l=t=>Object(i["a"])({url:"/api/channelData/stop",method:"get",params:t}),d=t=>Object(i["a"])({url:"/api/channelData/updateData",method:"post",data:t}),h=t=>Object(i["a"])({url:"/api/channelData/getChannelDataStatistics",method:"post",data:t}),u=t=>Object(i["a"])({url:"/api/channelData/clearChannelDataStatistics",method:"post",data:t}),m=t=>Object(i["a"])({url:"/api/dataBoard/clear",method:"post",data:t}),p=t=>Object(i["a"])({url:"/api/dataBoard/exportDataBoard",method:"post",data:t,responseType:"blob"})},"0aa2":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAADmSURBVCiRpc69SgNBFIbhd8borARBUEkEWzsREW/IRkxhHY0SDotCthK2kFh4Q1YpxELBgDaCFv5Es4nsjI0IppqDX3eKl+fAP2YARCTB1erR1Sh5FNkujIhUbFK/B5bjzfDki4UVOxhUnS4EMEvOPVcNQNo5b0FYVdT99v5uqgMnfYDjrLvlfViLjazl+qjZuDR5nruXz5l3YFqBlr4o5+3tz6F8uPx9W07O1q01m7Gp91M9Odzp6cBJHyDtdE+BjegqhKv2QWPPZNnF3Ch8vWnVip9dtMPhwwdwo2zvxuP+qxb8s283uEdmKy96OQAAAABJRU5ErkJggg=="},"1e5a":function(t,e,a){"use strict";var i=a("23e7"),s=a("9961"),r=a("5320"),n=a("dad2"),o=!n("symmetricDifference")||!r("symmetricDifference");i({target:"Set",proto:!0,real:!0,forced:o},{symmetricDifference:s})},"1e70":function(t,e,a){"use strict";var i=a("23e7"),s=a("a5f7"),r=a("d039"),n=a("dad2"),o=!n("difference",(function(t){return 0===t.size})),c=o||r((function(){var t={size:1,has:function(){return!0},keys:function(){var t=0;return{next:function(){var a=t++>1;return e.has(1)&&e.clear(),{done:a,value:2}}}}},e=new Set([1,2,3,4]);return 3!==e.difference(t).size}));i({target:"Set",proto:!0,real:!0,forced:c},{difference:s})},"271a":function(t,e,a){"use strict";var i=a("cb2d"),s=a("e330"),r=a("577e"),n=a("d6d6"),o=URLSearchParams,c=o.prototype,l=s(c.getAll),d=s(c.has),h=new o("a=1");!h.has("a",2)&&h.has("a",void 0)||i(c,"has",(function(t){var e=arguments.length,a=e<2?void 0:arguments[1];if(e&&void 0===a)return d(this,t);var i=l(this,t);n(e,1);var s=r(a),o=0;while(o<i.length)if(i[o++]===s)return!0;return!1}),{enumerable:!0,unsafe:!0})},"2e76":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"box-content"},[e("div",{staticClass:"big-box",class:{shrink:t.dialogVisible}},[e("div",{staticClass:"center-top-box"},[e("div",{staticClass:"center-top-list"},[t._l(t.dataTopList,(function(i,s){return e("div",{key:s,staticClass:"center-items",class:t.centerActive===s?"acitem":"",on:{click:function(e){return t.centerClick(i,s)}}},[e("p",{staticClass:"items-box"},[t._v(t._s(i.dataBoardName))]),e("el-dropdown",{staticClass:"ml15",attrs:{trigger:"click"},nativeOn:{click:function(t){t.stopPropagation()}}},[e("img",{staticClass:"icons pointer",attrs:{src:a("0aa2"),alt:""}}),e("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("el-dropdown-item",{nativeOn:{click:function(e){return t.editTelemeterClick(i,s)}}},[t._v("重命名")]),e("el-dropdown-item",{nativeOn:{click:function(e){return t.deleteTelemeterClick(i)}}},[t._v("删除")])],1)],1)],1)})),e("div",{staticClass:"add-center",on:{click:function(e){return e.stopPropagation(),t.telemeterAdd()}}},[e("img",{staticStyle:{width:"20px",height:"20px"},attrs:{src:a("9b8d")}})])],2)]),e("div",{staticClass:"telemeter-box"},[e("div",{staticClass:"telemeter-left"},[e("el-tree",{ref:"leftTree",staticClass:"mt10",attrs:{"default-expanded-keys":t.firstLevelKeys,"node-key":"parameter",data:t.leftTDList,"expand-on-click-node":!1,props:t.defaultLeftProps,"show-checkbox":"","default-checked-keys":t.checkedList},on:{check:t.changeCheck,"check-change":t.leftHandleChange},scopedSlots:t._u([{key:"default",fn:function({node:a,data:i}){return e("span",{staticClass:"custom-tree-node"},[e("span",{staticClass:"mr10"},[a.level>2&&t.dataBoardType?e("el-color-picker",{attrs:{size:"mini"},on:{change:function(e){return t.changeColorOrLeftRight(i)}},model:{value:i.legendColor,callback:function(e){t.$set(i,"legendColor",e)},expression:"data.legendColor"}}):t._e()],1),e("span",{staticClass:"mr10"},[t._v(" "+t._s(1==a.level?i.channelName:2==a.level?i.protocolName:i.parameter))]),a.level>2&&t.dataBoardType?e("span",{staticClass:"leftOrRight"},[e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"曲线图左y轴",placement:"top-start"}},[e("i",{staticClass:"el-icon-caret-left",style:{color:1==i.isLeftYaxis?i.legendColor:"#909399",fontSize:"24px",marginRight:"-9px"},on:{click:function(e){return t.changeLeftRight(1,i)}}})]),e("span",{staticClass:"line",style:{backgroundColor:i.legendColor}}),e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"曲线图右y轴",placement:"top-start"}},[e("i",{staticClass:"el-icon-caret-right",style:{color:0==i.isLeftYaxis?i.legendColor:"#909399",fontSize:"24px",marginLeft:"-14px"},on:{click:function(e){return t.changeLeftRight(0,i)}}})])],1):t._e()])}}])})],1),e("div",{staticClass:"telemeter-right"},[e("div",[e("el-form",{staticClass:"form-top",attrs:{model:t.modelForm,size:"small",inline:!0}},[e("el-form-item",{attrs:{label:"时间范围"}},[e("el-date-picker",{staticStyle:{width:"350px"},attrs:{clearable:"",type:"datetimerange","value-format":"yyyy-MM-dd HH:mm:ss","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.timeChange},model:{value:t.modelForm.value,callback:function(e){t.$set(t.modelForm,"value",e)},expression:"modelForm.value"}})],1),e("el-form-item",{attrs:{label:"每秒数据量"}},[e("el-select",{staticStyle:{width:"80px"},attrs:{placeholder:"请选择"},on:{change:t.changedataNum},model:{value:t.modelForm.dataNum,callback:function(e){t.$set(t.modelForm,"dataNum",e)},expression:"modelForm.dataNum"}},t._l(t.dataSize,(function(t){return e("el-option",{key:t.label,attrs:{label:t.label,value:t.value}})})),1)],1),e("el-form-item",{attrs:{label:"回放速度"}},[e("el-select",{staticStyle:{width:"80px"},attrs:{placeholder:"请选择"},on:{change:t.changeUpdateDataForm},model:{value:t.modelForm.speed,callback:function(e){t.$set(t.modelForm,"speed",e)},expression:"modelForm.speed"}},t._l(t.playbackSpeed,(function(t){return e("el-option",{key:t.label,attrs:{label:t.label,value:t.value}})})),1)],1),e("el-form-item",[t.isStartPayBack?e("el-button",{staticClass:"fw-btn",attrs:{type:"danger"},on:{click:t.isEnd}},[t._v("停止回放 ")]):e("el-button",{staticClass:"fw-btn",attrs:{type:"success"},on:{click:t.isStart}},[t._v("开始回放")]),e("el-button",{staticClass:"fw-btn",attrs:{type:"primary"},on:{click:t.updateFWClick}},[t._v("设置Y轴")]),e("el-dropdown",{staticClass:"ml10",attrs:{trigger:"click"},nativeOn:{click:function(t){t.stopPropagation()}}},[e("el-button",{staticClass:"fw-btn",attrs:{type:"warning"}},[t._v("导出数据")]),e("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("el-dropdown-item",{nativeOn:{click:function(e){return t.exportDataReplay(1)}}},[t._v("解析数据")]),e("el-dropdown-item",{nativeOn:{click:function(e){return t.exportDataReplay(2)}}},[t._v("原数据")])],1)],1),e("el-button",{staticClass:"fw-btn ml10",attrs:{type:"danger"},on:{click:t.deleteDataReplay}},[t._v("删除数据")])],1)],1)],1),2==t.dataBoardType||1==t.dataBoardType?e("div",{class:2==t.dataBoardType?"line-box1":"line-box"},[e("div",{ref:"chartContainer",staticClass:"chart-container"})]):t._e(),2==t.dataBoardType||0==t.dataBoardType?e("el-table",{staticClass:"mt10",staticStyle:{width:"99%","border-radius":"10px"},attrs:{height:t.tableHeight,"header-cell-style":{fontWeight:400,background:"#F0F5FC",color:"#333333"},data:t.tableData,border:"",size:"mini"}},[e("el-table-column",{attrs:{prop:"readName",label:"指标名称",width:""}}),e("el-table-column",{attrs:{prop:"sourceValue",label:"源数据",width:""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.sourceValue)+" ")]}}],null,!1,3586988395)}),e("el-table-column",{attrs:{prop:"phyValue",label:"物理解析值",width:""},scopedSlots:t._u([{key:"default",fn:function(a){return[a.row.phyValue&&!isNaN(a.row.phyValue)&&"number"===typeof Number(a.row.phyValue)?e("span",[t._v(t._s(Number(a.row.phyValue).toFixed(3)))]):e("span",[t._v(t._s(a.row.phyValue?a.row.phyValue:""))])]}}],null,!1,2557657020)}),e("el-table-column",{attrs:{prop:"phyUnit",label:"物理单位",width:""}}),e("el-table-column",{attrs:{prop:"timePart",label:"时间",width:""}})],1):t._e()],1)])]),t.dialogVisible?e("div",{staticClass:"content-right2 mt10"},[e("div",{staticClass:"channel-box"},[e("div",{staticClass:"form-title dialog"},[e("p",{},[t._v(t._s(1===t.leftRight?"添加数据看板":2===t.leftRight?"设置Y轴范围":"重命名"))]),e("p",{staticClass:"pointer",on:{click:t.cancelClick}},[t._v("×")])]),1===t.leftRight?e("div",{},[e("div",{staticClass:"mt20"},[e("p",{staticClass:"right-form-name mb10"},[t._v("看板名称 ")]),e("el-input",{staticStyle:{width:"230px"},attrs:{placeholder:"请输入"},model:{value:t.kbForm.dataBoardName,callback:function(e){t.$set(t.kbForm,"dataBoardName",e)},expression:"kbForm.dataBoardName"}})],1),e("div",{staticClass:"mt15"},[e("p",{staticClass:"right-form-name"},[t._v("显示形式 ")]),e("el-radio-group",{model:{value:t.kbForm.dataBoardType,callback:function(e){t.$set(t.kbForm,"dataBoardType",e)},expression:"kbForm.dataBoardType"}},[e("el-radio",{attrs:{label:0}},[t._v("表格")]),e("el-radio",{attrs:{label:1}},[t._v("曲线")]),e("el-radio",{attrs:{label:2}},[t._v("表格和曲线")])],1)],1),e("div",{staticClass:"mt15"},[e("p",{staticClass:"right-form-name"},[t._v("数据通道 ")]),e("el-tree",{ref:"tree",attrs:{data:t.channelList,props:t.defaultProps,"show-checkbox":""},on:{check:t.handleCheck}})],1),e("div",{staticClass:"sure-btn"},[e("el-button",{on:{click:t.kbCancelClick}},[t._v("取 消")]),e("el-button",{attrs:{type:"primary"},on:{click:t.kbSure}},[t._v("确 定")])],1)]):t._e(),2==t.leftRight?e("div",{},[e("div",{staticClass:"mt15"},[e("p",{staticClass:"right-form-name"},[t._v("Y轴 ")]),e("el-radio-group",{model:{value:t.fwForm.leftOrRight,callback:function(e){t.$set(t.fwForm,"leftOrRight",e)},expression:"fwForm.leftOrRight"}},[e("el-radio",{attrs:{label:1}},[t._v("左侧Y轴")]),e("el-radio",{attrs:{label:2}},[t._v("右侧Y轴")])],1)],1),e("div",{staticClass:"mt20"},[e("p",{staticClass:"right-form-name mb10"},[t._v("最小值 ")]),e("el-input",{staticStyle:{width:"230px"},attrs:{placeholder:"请输入",type:"number"},model:{value:t.fwForm.min,callback:function(e){t.$set(t.fwForm,"min",t._n(e))},expression:"fwForm.min"}})],1),e("div",{staticClass:"mt20"},[e("p",{staticClass:"right-form-name mb10"},[t._v("最大值 ")]),e("el-input",{staticStyle:{width:"230px"},attrs:{placeholder:"请输入",type:"number"},model:{value:t.fwForm.max,callback:function(e){t.$set(t.fwForm,"max",t._n(e))},expression:"fwForm.max"}})],1),e("div",{staticClass:"sure-btn"},[e("el-button",{on:{click:t.cancelClick}},[t._v("取 消")]),e("el-button",{attrs:{type:"primary"},on:{click:t.fwSure}},[t._v("确 定")])],1)]):t._e(),3==t.leftRight?e("div",{},[e("div",{staticClass:"mt20"},[e("p",{staticClass:"right-form-name mb10"},[t._v("看板名称 ")]),e("el-input",{staticStyle:{width:"230px"},attrs:{placeholder:"请输入"},model:{value:t.kbForm.dataBoardName,callback:function(e){t.$set(t.kbForm,"dataBoardName",e)},expression:"kbForm.dataBoardName"}})],1),e("div",{staticClass:"sure-btn"},[e("el-button",{on:{click:t.kbCancelClick}},[t._v("取 消")]),e("el-button",{attrs:{type:"primary"},on:{click:t.kbEidtSure}},[t._v("确 定")])],1)]):t._e(),4==t.leftRight?e("div",{},[e("div",{staticClass:"mt20"},[e("p",{staticClass:"right-form-name mb10"},[t._v("自定义条数 ")]),e("el-input",{staticStyle:{width:"230px"},attrs:{placeholder:"请输入"},model:{value:t.dataNum,callback:function(e){t.dataNum=t._n(e)},expression:"dataNum"}})],1),e("div",{staticClass:"sure-btn"},[e("el-button",{on:{click:t.dataNumCancelClick}},[t._v("取 消")]),e("el-button",{attrs:{type:"primary"},on:{click:t.dataNumEidtSure}},[t._v("确 定")])],1)]):t._e()])]):t._e()])},s=[],r=(a("14d9"),a("e9f5"),a("910d"),a("7d54"),a("ab43"),a("1e70"),a("79a4"),a("c1a1"),a("8b00"),a("a4e7"),a("1e5a"),a("72c3"),a("88a7"),a("271a"),a("5494"),a("f58c")),n=a("365c"),o=a("02c7"),c={components:{linechartEcharts:r["a"]},data(){return{tableHeight:200,checkedList:[],dialogVisible:!1,leftRight:1,centerActive:0,defaultProps:{label:"label",children:"boardListVos"},defaultLeftProps:{label:"label",children:"children"},kbForm:{dataBoardName:"",dataBoardType:1,dataType:1},kbList:[],modelForm:{startTime:"",endTime:"",value:[],dataNum:1,speed:1},isStartPayBack:!1,dataSize:[{label:"1条",value:1},{label:"2条",value:2},{label:"3条",value:3},{label:"4条",value:4},{label:"5条",value:5},{label:"6条",value:6},{label:"7条",value:7},{label:"8条",value:8},{label:"9条",value:9},{label:"10条",value:10}],dataNum:null,playbackSpeed:[{label:"1×",value:1},{label:"2x",value:2},{label:"4x",value:4},{label:"8x",value:8},{label:"16x",value:16},{label:"32x",value:32}],fwForm:{resource:1,leftOrRight:1},channelList:[],dataTopList:[],leftTDList:[],tableData:[],chart:null,leftData:[],dataBoardId:"",leftArr:[],timeArr:[],seriesData:[],websocket:null,reconnectTimer:null,reconnectInterval:3e3,maxReconnectAttempts:10,reconnectAttempts:0,message:"",connectionStatus:"未连接",dataBoardType:-1,tabsMap:new Map,channelMap:new Map,firstLevelKeys:[]}},mounted(){this.getTreeChannel(),this.getAllData(),window.addEventListener("resize",this.handleResize)},beforeDestroy(){window.removeEventListener("resize",this.handleResize),this.chart&&this.chart.dispose(),this.clearReconnectTimer(),this.disconnect(!0)},watch:{dialogVisible(t){this.$nextTick(()=>{setTimeout(()=>{this.chart&&this.chart.resize()},300)})}},methods:{deleteDataReplay(){this.modelForm.startTime?this.modelForm.endTime?Object(o["a"])({...this.modelForm,dataBoardId:this.dataTopList[this.centerActive].dataBoardId}).then(t=>{1==t.code&&this.$message.success("删除成功")}):this.$message.error("请选择结束时间"):this.$message.error("请选择开始时间")},exportDataReplay(t){if(!this.modelForm.startTime)return void this.$message.error("请选择开始时间");if(!this.modelForm.endTime)return void this.$message.error("请选择结束时间");if(this.checkedList.length<1)return void this.$message.error(1===t?"请选择字段":"请选择通道");let e="数据回放.csv";Object(o["c"])({...this.modelForm,dataBoardId:this.dataTopList[this.centerActive].dataBoardId,param:[...this.checkedList],exportType:t}).then(t=>{if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(t.data,e);else{let a=document.createElement("a");a.download=e,a.href=URL.createObjectURL(t.data),a.click(),URL.revokeObjectURL(a.href)}})},calcTableHeight(){0===this.dataBoardType?this.tableHeight=200:2===this.dataBoardType&&(this.tableHeight=window.innerHeight-160)},changeColorOrLeftRight(t){Object(o["j"])({...t}).then(t=>{1==t.code&&this.getAllData(1)})},changeLeftRight(t,e){e.isLeftYaxis=t-0,Object(o["j"])({...e}).then(t=>{1==t.code&&this.getAllData(1)})},timestampToTime(t){if(!t||t<0)return"";const e=10===String(t).length?1e3*t:t,a=new Date(e),i=a.getFullYear(),s=String(a.getMonth()+1).padStart(2,"0"),r=String(a.getDate()).padStart(2,"0"),n=String(a.getHours()).padStart(2,"0"),o=String(a.getMinutes()).padStart(2,"0"),c=String(a.getSeconds()).padStart(2,"0");return`${i}-${s}-${r} ${n}:${o}:${c}`},initChart(){this.chart=this.$echarts.init(this.$refs.chartContainer),this.chart.on("legendselectchanged",t=>{this.handleLegendClick(t)}),2!=this.dataBoardType&&1!=this.dataBoardType||this.$nextTick(()=>{this.updataCharts(!0)})},handleLegendClick(t){console.log(t,"params");let e=t.selected,a=[];for(const s in e)e.hasOwnProperty(s)&&!0===e[s]&&a.push(s);let i=this.tabsMap.get(this.dataTopList[this.centerActive].dataBoardId);i.checkedLeftList=a,this.tabsMap.set(this.dataTopList[this.centerActive].dataBoardId,i),this.$nextTick(()=>{this.$refs.leftTree.setCheckedKeys(a)})},updataCharts(t){if(!this.dataTopList||this.dataTopList.length<1)return;let e=this.tabsMap.get(this.dataTopList[this.centerActive].dataBoardId),a=e.minYAxisRight||null,i=e.maxYAxisRight||null,s=e.maxYAxisLeft||null,r=e.minYAxisLeft||null,n=e.perTabLeftTree,o=e.iconsList,c=e.colorsList,l=[],d=[],h=[];n.forEach(t=>{t.children&&t.children.length>0&&t.children.forEach(t=>{h=[...h,t.children];let e=this.channelMap.get(t.channelId+"#"+this.dataTopList[this.centerActive].dataBoardId+"#"+t.protocolId);e?(l=l.concat(e.timeArr),l=Array.from(new Set(l)),d=d.concat(e.seriesData)):(l=[],d=[])})});const u={color:c,tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}},formatter:function(t){let e=`<div style="font-weight: bold; margin-bottom: 6px;">${t[0].name}</div>`;for(let a=0;a<t.length;a+=2){let i='<div style="display: flex; justify-content: space-between; margin: 3px 0;">';t[a]&&(i+=`<span style="display: flex; align-items: center;">\n <span style="display: inline-block; width: 10px; height: 10px; border-radius: 50%; background-color: ${t[a].color}; margin-right: 6px;"></span>\n ${t[a].seriesName}: ${t[a].value}\n </span>`),t[a+1]&&(i+=`<span style="display: flex; align-items: center; margin-left: 15px;">\n <span style="display: inline-block; width: 10px; height: 10px; border-radius: 50%; background-color: ${t[a+1].color}; margin-right: 6px;"></span>\n ${t[a+1].seriesName}: ${t[a+1].value}\n </span>`),i+="</div>",e+=i}return e}},legend:{data:o,left:"100"},xAxis:[{type:"category",boundaryGap:!1,data:l}],yAxis:[{type:"value",name:"",position:"right",axisLine:{show:!0},axisLabel:{formatter:"{value}"},min:a,max:i},{type:"value",name:"",position:"left",axisLine:{show:!0},axisLabel:{formatter:"{value}"},min:r,max:s}],dataZoom:[{show:!0,height:15,xAxisIndex:[0],bottom:30,handleIcon:"path://M306.1,413c0,2.2-1.8,4-4,4h-59.8c-2.2,0-4-1.8-4-4V200.8c0-2.2,1.8-4,4-4h59.8c2.2,0,4,1.8,4,4V413z",handleSize:"110%",handleStyle:{color:"#d3dee5"},textStyle:{color:"#fff"},borderColor:"#90979c"},{type:"inside"}],series:d};this.isStartPayBack&&this.chart.setOption(u,t)},handleResize(){this.chart&&this.chart.resize(),this.calcTableHeight()},centerClick(t,e){this.centerActive=e,this.dataBoardType=t.dataBoardType;let a=this.tabsMap.get(this.dataTopList[this.centerActive].dataBoardId);this.modelForm=a.modelForm,this.isStartPayBack=a.isStartPayBack,this.renderLeftTree(),2!=this.dataBoardType&&1!=this.dataBoardType||this.$nextTick(()=>{this.initChart(),setTimeout(()=>{this.chart&&this.chart.resize()},300)}),this.tableData=[]},renderLeftTree(){this.leftTDList=this.tabsMap.get(this.dataTopList[this.centerActive].dataBoardId).perTabLeftTree,this.checkedList=this.tabsMap.get(this.dataTopList[this.centerActive].dataBoardId).checkedLeftList,this.firstLevelKeys=this.leftTDList.map(t=>t.parameter)},changeCheck(t,e){console.log(t,e);let a=this.tabsMap.get(this.dataTopList[this.centerActive].dataBoardId);if(a.checkedLeftList=e.checkedKeys,this.checkedList=e.checkedKeys,this.tabsMap.set(this.dataTopList[this.centerActive].dataBoardId,a),t.children&&t.children.length>0)t.children.forEach(a=>{if(a.children&&a.children.length>0)a.children.forEach(a=>{let i=e.checkedKeys.includes(t.parameter);this.legendSelectcChange(a.parameter,i)});else{let i=e.checkedKeys.includes(t.parameter);this.legendSelectcChange(a.parameter,i)}});else{let a=e.checkedKeys.includes(t.parameter);this.legendSelectcChange(t.parameter,a)}},legendSelectcChange(t,e){e?this.chart.dispatchAction({type:"legendSelect",name:t}):this.chart.dispatchAction({type:"legendUnSelect",name:t})},leftHandleChange(t,e){},async getAllData(t){try{const e=await Object(o["e"])({dataType:1});if(1===(null===e||void 0===e?void 0:e.code)){let a=e.data||[];if(0===a.length)return void(this.leftTDList=[]);a.forEach((t,e)=>{let a=this.processLeftData(t.dataBoardChannelList),i=[],s=[],r=[];console.log(t.dataBoardChannelList,"item.dataBoardChannelList"),t.dataBoardChannelList.forEach(t=>{let e=[],a=[],i=[];t.protocolNameList.forEach(t=>{t.parameterList.forEach(t=>{e.push(t.parameter),a.push(t.parameter),i.push(t.legendColor)})}),s=s.concat(a),r=r.concat(i)});let n={startTime:"",endTime:"",value:[],dataNum:10,speed:1};this.tabsMap.get(t.dataBoardId)||this.tabsMap.set(t.dataBoardId,{modelForm:n,isStartPayBack:!1,minYAxisLeft:null,maxYAxisLeft:null,maxYAxisRight:null,minYAxisRight:null,colorsList:r,perTabLeftTree:a,checkedLeftList:i,iconsList:s})}),this.dataTopList=a,2==t?this.centerClick(this.dataTopList[this.dataTopList.length-1],this.dataTopList.length-1):(this.renderLeftTree(),this.dataBoardType=this.dataTopList[this.centerActive].dataBoardType,(2==this.dataBoardType||1==this.dataBoardType&&!this.chart)&&this.$nextTick(()=>{this.initChart()}),this.getConnect())}}catch(e){console.error("获取数据失败:",e),this.dataTopList=[],this.leftTDList=[]}},processLeftData(t){return t.map(t=>{let e=t.protocolNameList?[...t.protocolNameList]:[];return t.parameter=t.channelName,e=e.map(t=>({...t,children:t.parameterList?t.parameterList:[],parameter:t.protocolName})),{...t,label:t.channelName,children:e}})},getTreeChannel(){Object(n["t"])().then(t=>{if(1==t.code){let e=t.data||[];(null===e||void 0===e?void 0:e.length)>0&&(e.forEach(t=>{var e;t.label=t.serverName,null===(e=t.boardListVos)||void 0===e||e.forEach(t=>{var e;t.label=t.boardName,null===(e=t.boardListVos)||void 0===e||e.forEach(t=>{t.label=t.channelName})})}),this.channelList=e||[])}})},editTelemeterClick(t,e){this.leftRight=3,this.kbForm.dataBoardName=t.dataBoardName,this.dataBoardId=t.dataBoardId,this.dialogVisible=!0},deleteTelemeterClick(t){let e=this;this.$confirm("确定删除该条数据?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{Object(o["f"])({dataBoardId:t.dataBoardId}).then(t=>{1===t.code&&(e.$message.success("删除成功!"),e.centerActive=0,e.getAllData())})}).catch(()=>{})},cancelClick(){this.dialogVisible=!1},telemeterAdd(){this.leftRight=1,this.dialogVisible=!0},kbEidtSure(){let t={dataBoardName:this.kbForm.dataBoardName,dataBoardId:this.dataBoardId,dataType:1,channelList:[]};Object(o["g"])(t).then(t=>{1==t.code&&(this.$message.success("操作成功!"),this.getAllData(),this.kbCancelClick())})},handleCheck(){const t=this.$refs.tree.getCheckedNodes();this.kbList=t.filter(t=>!t.boardListVos||0===t.boardListVos.length)},handleCheckChange(t,e,a){},kbCancelClick(){this.dialogVisible=!1,this.kbList=[],this.kbForm.dataBoardName="",this.kbForm.dataBoardType=1},kbSure(){let t={...this.kbForm,channelList:this.kbList};Object(o["g"])(t).then(t=>{1===t.code&&(this.$message.success("操作成功!"),this.getAllData(2),this.kbCancelClick(),this.kbForm.dataBoardName="",this.kbForm.dataBoardType=1)})},updateFWClick(){this.leftRight=2,this.fwForm.leftOrRight=1,this.fwForm.min=null,this.fwForm.max=null,this.fwForm={...this.fwForm},this.dialogVisible=!0},fwSure(){let t=this.tabsMap.get(this.dataTopList[this.centerActive].dataBoardId);1==this.fwForm.leftOrRight?(t.minYAxisLeft=this.fwForm.min,t.maxYAxisLeft=this.fwForm.max,this.tabsMap.set(this.dataTopList[this.centerActive].dataBoardId,t)):2==this.fwForm.leftOrRight&&(t.minYAxisRight=this.fwForm.min,t.maxYAxisRight=this.fwForm.max,this.tabsMap.set(this.dataTopList[this.centerActive].dataBoardId,t)),this.dialogVisible=!1,2!=this.dataBoardType&&1!=this.dataBoardType||this.$nextTick(()=>{this.updataCharts(!1)})},getConnect(){if(!this.websocket||this.websocket.readyState!==WebSocket.OPEN&&this.websocket.readyState!==WebSocket.CONNECTING)try{const t="https:"===window.location.protocol?"wss:":"ws:",e=window.location.host,a=`${t}//${e}/universaltestsoftware_client_api/ws/playback`;this.websocket=new WebSocket(a),this.websocket.onopen=()=>{this.reconnectAttempts=0,this.connectionStatus="已连接",this.clearReconnectTimer()},this.websocket.onmessage=t=>{console.log("会话数据回放");const e=t.data;let a=JSON.parse(e);console.log(a,"obj");let i=[],s=a.channelId+"#"+a.dataBoardId+"#"+a.protocolId,r=a.timestamp;var n=new Date(r),o=this.timestampToTime(n);let c=a.filedParseDataList||[],l=[],d=[];if(this.channelMap.get(s)){let t=this.channelMap.get(s);d=t.timeArr,d.push(o),l=t.seriesData}else d.push(o);c=c.map((t,e)=>({...t,timePart:o})),a.dataBoardId==this.dataTopList[this.centerActive].dataBoardId&&(i=[...i,...c],this.tableData=i.filter(t=>this.checkedList.includes(t.readName)));let h=this.tabsMap.get(a.dataBoardId),u=h.perTabLeftTree||[],m=[];u.forEach(t=>{t.channelId==a.channelId&&(m=t.parameterList)}),0==l.length?c.forEach((t,e)=>{l.push({name:t.readName,type:"line",stack:"Total",emphasis:{focus:"series"},showSymbol:!1,data:[t.phyValue?Number(t.phyValue).toFixed(3):""],yAxisIndex:m&&m.length>0?m[e].isLeftYaxis:1})}):l=l.map((t,e)=>{let a=m&&m.length>0?m[e].isLeftYaxis:1,i=c[e].phyValue?Number(c[e].phyValue).toFixed(3):"";return{...t,data:[...t.data,i],yAxisIndex:a}});let p={timeArr:Array.from(new Set(d)),seriesData:l};this.channelMap.set(s,p),2!=this.dataBoardType&&1!=this.dataBoardType||this.$nextTick(()=>{this.updataCharts(!1)})},this.websocket.onclose=t=>{this.connectionStatus="已断开",this.addSystemMessage(`连接已关闭 (代码: ${t.code}, 原因: ${t.reason||"未知"})`),this.manualDisconnect||this.maxReconnectAttempts&&!(this.reconnectAttempts<this.maxReconnectAttempts)||this.scheduleReconnect()},this.websocket.onerror=t=>{this.connectionStatus="连接错误",this.addSystemMessage("连接发生错误: "+(t.message||"未知错误")),console.error("WebSocket错误:",t),this.manualDisconnect||this.maxReconnectAttempts&&!(this.reconnectAttempts<this.maxReconnectAttempts)||this.scheduleReconnect()}}catch(t){this.connectionStatus="连接失败",this.addSystemMessage("连接失败: "+t.message),console.error("连接异常:",t),this.manualDisconnect||this.maxReconnectAttempts&&!(this.reconnectAttempts<this.maxReconnectAttempts)||this.scheduleReconnect()}},disconnect(t=!1){if(this.manualDisconnect=t,this.websocket.readyState!==WebSocket.CLOSED&&this.websocket.readyState!==WebSocket.CLOSING)try{this.websocket&&(this.websocket.close(1e3,t?"手动关闭":"正常关闭"),this.websocket=null),this.connectionStatus="已断开",t&&this.addSystemMessage("已手动断开连接")}catch(e){console.error("断开连接异常:",e),this.addSystemMessage("断开连接时发生错误")}},scheduleReconnect(){if(this.clearReconnectTimer(),this.maxReconnectAttempts&&this.reconnectAttempts>=this.maxReconnectAttempts)return void this.addSystemMessage(`已达到最大重连次数(${this.maxReconnectAttempts}),请手动重试`);this.reconnectAttempts++;const t=this.reconnectAttempts,e=this.reconnectInterval;this.addSystemMessage(`将在 ${e/1e3} 秒后进行第 ${t} 次重连...`),this.reconnectTimer=setTimeout(()=>{this.addSystemMessage(`正在进行第 ${t} 次重连...`),this.getConnect()},e)},clearReconnectTimer(){this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null)},addSystemMessage(t){this.$message(t)},timeChange(t){t?(this.modelForm.startTime=t[0],this.modelForm.endTime=t[1]):(this.modelForm.startTime="",this.modelForm.endTime="",this.modelForm.value=[]),this.changeUpdateDataForm()},changedataNum(){-1==this.modelForm.dataNum?(this.leftRight=4,this.dataNum=null,this.dialogVisible=!0):this.changeUpdateDataForm()},dataNumCancelClick(){this.dataNum=null,this.dialogVisible=!1},dataNumEidtSure(){this.modelForm.dataNum=this.dataNum,this.dialogVisible=!1,this.dataNum=null,this.changeUpdateDataForm()},isStart(){let t=this.tabsMap.get(this.dataTopList[this.centerActive].dataBoardId);this.modelForm.pageSize=this.modelForm.dataNum*this.modelForm.speed,Object(o["h"])({...this.modelForm,dataBoardId:this.dataTopList[this.centerActive].dataBoardId}).then(e=>{if(1==e.code){t.isStartPayBack=!0,this.isStartPayBack=!0,this.tabsMap.set(this.dataTopList[this.centerActive].dataBoardId,t),this.tableData=[];let e=t.perTabLeftTree;e.forEach(t=>{t.children&&t.children.length>0&&t.children.forEach(t=>{let e={timeArr:[],seriesData:[]};this.channelMap.set(t.channelId+"#"+this.dataTopList[this.centerActive].dataBoardId+"#"+t.protocolId,e)})}),this.updataCharts(!1)}})},isEnd(){let t={dataBoardId:this.dataTopList[this.centerActive].dataBoardId},e=this.tabsMap.get(this.dataTopList[this.centerActive].dataBoardId);Object(o["i"])(t).then(t=>{1==t.code&&(e.isStartPayBack=!1,this.isStartPayBack=!1,this.tabsMap.set(this.dataTopList[this.centerActive].dataBoardId,e))})},changeUpdateDataForm(){let t=this.tabsMap.get(this.dataTopList[this.centerActive].dataBoardId);t.modelForm=JSON.parse(JSON.stringify(this.modelForm)),this.tabsMap.set(this.dataTopList[this.centerActive].dataBoardId,t),this.modelForm.pageSize=this.modelForm.dataNum*this.modelForm.speed;let e={...this.modelForm,dataBoardId:this.dataTopList[this.centerActive].dataBoardId};Object(o["k"])({...e}).then(e=>{1==e.code&&(t.isStartPayBack?this.isEnd():this.tabsMap.set(this.dataTopList[this.centerActive].dataBoardId,t))})}}},l=c,d=(a("78d2"),a("2877")),h=Object(d["a"])(l,i,s,!1,null,"e140ec30",null);e["default"]=h.exports},"306e":function(t,e,a){},"384f":function(t,e,a){"use strict";var i=a("e330"),s=a("5388"),r=a("cb27"),n=r.Set,o=r.proto,c=i(o.forEach),l=i(o.keys),d=l(new n).next;t.exports=function(t,e,a){return a?s({iterator:l(t),next:d},e):c(t,e)}},"395e":function(t,e,a){"use strict";var i=a("dc19"),s=a("cb27").has,r=a("8e16"),n=a("7f65"),o=a("5388"),c=a("2a62");t.exports=function(t){var e=i(this),a=n(t);if(r(e)<a.size)return!1;var l=a.getIterator();return!1!==o(l,(function(t){if(!s(e,t))return c(l,"normal",!1)}))}},5320:function(t,e,a){"use strict";t.exports=function(t){try{var e=new Set,a={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return e.clear(),e.add(4),function(){return{done:!0}}}})}},i=e[t](a);return 1===i.size&&4===i.values().next().value}catch(s){return!1}}},5388:function(t,e,a){"use strict";var i=a("c65b");t.exports=function(t,e,a){var s,r,n=a?t:t.iterator,o=t.next;while(!(s=i(o,n)).done)if(r=e(s.value),void 0!==r)return r}},5494:function(t,e,a){"use strict";var i=a("83ab"),s=a("e330"),r=a("edd0"),n=URLSearchParams.prototype,o=s(n.forEach);i&&!("size"in n)&&r(n,"size",{get:function(){var t=0;return o(this,(function(){t++})),t},configurable:!0,enumerable:!0})},"577e":function(t,e,a){"use strict";var i=a("f5df"),s=String;t.exports=function(t){if("Symbol"===i(t))throw new TypeError("Cannot convert a Symbol value to a string");return s(t)}},"61fd":function(t,e,a){"use strict";a("306e")},"68df":function(t,e,a){"use strict";var i=a("dc19"),s=a("8e16"),r=a("384f"),n=a("7f65");t.exports=function(t){var e=i(this),a=n(t);return!(s(e)>a.size)&&!1!==r(e,(function(t){if(!a.includes(t))return!1}),!0)}},7282:function(t,e,a){"use strict";var i=a("e330"),s=a("59ed");t.exports=function(t,e,a){try{return i(s(Object.getOwnPropertyDescriptor(t,e)[a]))}catch(r){}}},"72c3":function(t,e,a){"use strict";var i=a("23e7"),s=a("e9bc"),r=a("5320"),n=a("dad2"),o=!n("union")||!r("union");i({target:"Set",proto:!0,real:!0,forced:o},{union:s})},"78d2":function(t,e,a){"use strict";a("9508")},"79a4":function(t,e,a){"use strict";var i=a("23e7"),s=a("d039"),r=a("953b"),n=a("dad2"),o=!n("intersection",(function(t){return 2===t.size&&t.has(1)&&t.has(2)}))||s((function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))}));i({target:"Set",proto:!0,real:!0,forced:o},{intersection:r})},"7f65":function(t,e,a){"use strict";var i=a("59ed"),s=a("825a"),r=a("c65b"),n=a("5926"),o=a("46c4"),c="Invalid size",l=RangeError,d=TypeError,h=Math.max,u=function(t,e){this.set=t,this.size=h(e,0),this.has=i(t.has),this.keys=i(t.keys)};u.prototype={getIterator:function(){return o(s(r(this.keys,this.set)))},includes:function(t){return r(this.has,this.set,t)}},t.exports=function(t){s(t);var e=+t.size;if(e!==e)throw new d(c);var a=n(e);if(a<0)throw new l(c);return new u(t,a)}},"83b9":function(t,e,a){"use strict";var i=a("cb27"),s=a("384f"),r=i.Set,n=i.add;t.exports=function(t){var e=new r;return s(t,(function(t){n(e,t)})),e}},"88a7":function(t,e,a){"use strict";var i=a("cb2d"),s=a("e330"),r=a("577e"),n=a("d6d6"),o=URLSearchParams,c=o.prototype,l=s(c.append),d=s(c["delete"]),h=s(c.forEach),u=s([].push),m=new o("a=1&a=2&b=3");m["delete"]("a",1),m["delete"]("b",void 0),m+""!=="a=2"&&i(c,"delete",(function(t){var e=arguments.length,a=e<2?void 0:arguments[1];if(e&&void 0===a)return d(this,t);var i=[];h(this,(function(t,e){u(i,{key:e,value:t})})),n(e,1);var s,o=r(t),c=r(a),m=0,p=0,f=!1,g=i.length;while(m<g)s=i[m++],f||s.key===o?(f=!0,d(this,s.key)):p++;while(p<g)s=i[p++],s.key===o&&s.value===c||l(this,s.key,s.value)}),{enumerable:!0,unsafe:!0})},"8b00":function(t,e,a){"use strict";var i=a("23e7"),s=a("68df"),r=a("dad2"),n=!r("isSubsetOf",(function(t){return t}));i({target:"Set",proto:!0,real:!0,forced:n},{isSubsetOf:s})},"8e16":function(t,e,a){"use strict";var i=a("7282"),s=a("cb27");t.exports=i(s.proto,"size","get")||function(t){return t.size}},9508:function(t,e,a){},"953b":function(t,e,a){"use strict";var i=a("dc19"),s=a("cb27"),r=a("8e16"),n=a("7f65"),o=a("384f"),c=a("5388"),l=s.Set,d=s.add,h=s.has;t.exports=function(t){var e=i(this),a=n(t),s=new l;return r(e)>a.size?c(a.getIterator(),(function(t){h(e,t)&&d(s,t)})):o(e,(function(t){a.includes(t)&&d(s,t)})),s}},9961:function(t,e,a){"use strict";var i=a("dc19"),s=a("cb27"),r=a("83b9"),n=a("7f65"),o=a("5388"),c=s.add,l=s.has,d=s.remove;t.exports=function(t){var e=i(this),a=n(t).getIterator(),s=r(e);return o(a,(function(t){l(e,t)?d(s,t):c(s,t)})),s}},"9b8d":function(t,e){t.exports="data:image/png;base64,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"},a4e7:function(t,e,a){"use strict";var i=a("23e7"),s=a("395e"),r=a("dad2"),n=!r("isSupersetOf",(function(t){return!t}));i({target:"Set",proto:!0,real:!0,forced:n},{isSupersetOf:s})},a5f7:function(t,e,a){"use strict";var i=a("dc19"),s=a("cb27"),r=a("83b9"),n=a("8e16"),o=a("7f65"),c=a("384f"),l=a("5388"),d=s.has,h=s.remove;t.exports=function(t){var e=i(this),a=o(t),s=r(e);return n(e)<=a.size?c(e,(function(t){a.includes(t)&&h(s,t)})):l(a.getIterator(),(function(t){d(s,t)&&h(s,t)})),s}},b4bc:function(t,e,a){"use strict";var i=a("dc19"),s=a("cb27").has,r=a("8e16"),n=a("7f65"),o=a("384f"),c=a("5388"),l=a("2a62");t.exports=function(t){var e=i(this),a=n(t);if(r(e)<=a.size)return!1!==o(e,(function(t){if(a.includes(t))return!1}),!0);var d=a.getIterator();return!1!==c(d,(function(t){if(s(e,t))return l(d,"normal",!1)}))}},c1a1:function(t,e,a){"use strict";var i=a("23e7"),s=a("b4bc"),r=a("dad2"),n=!r("isDisjointFrom",(function(t){return!t}));i({target:"Set",proto:!0,real:!0,forced:n},{isDisjointFrom:s})},cb27:function(t,e,a){"use strict";var i=a("e330"),s=Set.prototype;t.exports={Set:Set,add:i(s.add),has:i(s.has),remove:i(s["delete"]),proto:s}},d6d6:function(t,e,a){"use strict";var i=TypeError;t.exports=function(t,e){if(t<e)throw new i("Not enough arguments");return t}},dad2:function(t,e,a){"use strict";var i=a("d066"),s=function(t){return{size:t,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},r=function(t){return{size:t,has:function(){return!0},keys:function(){throw new Error("e")}}};t.exports=function(t,e){var a=i("Set");try{(new a)[t](s(0));try{return(new a)[t](s(-1)),!1}catch(o){if(!e)return!0;try{return(new a)[t](r(-1/0)),!1}catch(c){var n=new a;return n.add(1),n.add(2),e(n[t](r(1/0)))}}}catch(c){return!1}}},dc19:function(t,e,a){"use strict";var i=a("cb27").has;t.exports=function(t){return i(t),t}},e9bc:function(t,e,a){"use strict";var i=a("dc19"),s=a("cb27").add,r=a("83b9"),n=a("7f65"),o=a("5388");t.exports=function(t){var e=i(this),a=n(t).getIterator(),c=r(e);return o(a,(function(t){s(c,t)})),c}},f58c:function(t,e,a){"use strict";var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"bar-chart-box"},[e("div",{ref:t.refName,staticClass:"bar-chart-box"})])},s=[],r=(a("e9f5"),a("ab43"),a("313e"),{props:{refName:{type:String,default:"#409EFF"},invocationList:{type:Array,default:()=>[]}},data(){return{myChart:null,dataName:[],dataValue:[],maxs:100}},watch:{dataList:{handler(t){t&&0!==t.length?(this.dataName=t.map(t=>t.name),this.dataValue=t):(this.dataValue=[],this.dataName=[]),this.initCharts(this.dataValue,this.dataName)},immediate:!0,deep:!0}},beforeDestroy(){console.log(window.innerWidth,"11111111")},mounted(){this.invocationList&&this.invocationList.length>0&&(this.dataName=this.invocationList.map(t=>t.name),this.dataValue=this.invocationList),this.initCharts(this.dataValue,this.dataName)},methods:{initCharts(t,e){this.myChart=this.$echarts.init(this.$refs[this.refName]);let a={tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{data:["温度(℃)","湿度(%)"],left:"100"},xAxis:[{type:"category",boundaryGap:!1,data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}],yAxis:[{type:"value"}],series:[{name:"温度(℃)",type:"line",stack:"Total",areaStyle:{color:"#C5E5F6"},emphasis:{focus:"series"},showSymbol:!1,itemStyle:{normal:{color:"#1BC0C4"}},lineStyle:{width:2,color:"#1BC0C4"},data:[120,132,101,134,90,230,210]},{name:"湿度(%)",type:"line",stack:"Total",emphasis:{focus:"series"},showSymbol:!1,lineStyle:{width:2,color:"#3B82F6"},itemStyle:{normal:{color:"#3B82F6"}},areaStyle:{color:"#E2EDFE"},data:[220,182,191,234,290,330,310]}]};this.myChart.setOption(a,!0)}}}),n=r,o=(a("61fd"),a("2877")),c=Object(o["a"])(n,i,s,!1,null,"60f00670",null);e["a"]=c.exports}}]);
|
||
//# sourceMappingURL=chunk-65a12e08.acaf7540.js.map
|