| | |
| | | * json:{"start_auto":"1","dev_id":"1001", 'dev_ip': ''} |
| | | */ |
| | | ,autoLoad (data) { |
| | | debugger; |
| | | return self.$axios({ |
| | | method: 'post' |
| | | ,url: 'Dynamicload_controlAction_load_updateStart_auto' |
| | |
| | | // tree: {}, |
| | | } |
| | | }, |
| | | watch: { |
| | | 'treeData.active': function (n, o) { |
| | | console.log(o, n); |
| | | } |
| | | }, |
| | | methods: { |
| | | treeClick: function($e) { |
| | | // console.log(this.treeData); |
| | |
| | | ,lineWidth: opts.lineWidth |
| | | ,isSolid: opts.isSolid |
| | | ,r: opts.r |
| | | ,cbfn_click: function (point, obj) { |
| | | /*,cbfn_click: function (point, obj) { |
| | | console.log(obj); |
| | | } |
| | | }*/ |
| | | }, 1); |
| | | |
| | | // 画从起点 至 三环的连线 |
| | |
| | | ,lineWidth: opts.lineWidth |
| | | ,isSolid: opts.isSolid |
| | | ,r: opts.r |
| | | ,cbfn_click: function (point, obj) { |
| | | /*,cbfn_click: function (point, obj) { |
| | | console.log(obj); |
| | | } |
| | | }*/ |
| | | }, 1); |
| | | |
| | | // 画第二排电压文字 |
| | |
| | | can.drawTestDev({ |
| | | startX: point.x + 600 |
| | | ,startY: point.y - 180 |
| | | ,cbfn_click: function (point, obj) { |
| | | /*,cbfn_click: function (point, obj) { |
| | | console.log(obj) |
| | | } |
| | | }*/ |
| | | }, 1); |
| | | |
| | | // 画竖线 |
| | |
| | | can.drawTestDev({ |
| | | startX: point.x + 600 |
| | | ,startY: point.y + 320 |
| | | ,cbfn_click: function (point, obj) { |
| | | /*,cbfn_click: function (point, obj) { |
| | | console.log(obj) |
| | | } |
| | | }*/ |
| | | }, 1); |
| | | |
| | | // 开关引线 |
| | |
| | | ,merge: true |
| | | ,name: 'QA8' |
| | | ,title: '3号交流接线屏' |
| | | ,cbfn_click: function (point, obj) { |
| | | /*,cbfn_click: function (point, obj) { |
| | | console.log(obj) |
| | | } |
| | | }*/ |
| | | }, 1); |
| | | |
| | | // 画横线 |
| | |
| | | ,merge: true |
| | | ,name: 'QA7' |
| | | ,title: '3号交流接线屏' |
| | | ,cbfn_click: function (point, obj) { |
| | | /*,cbfn_click: function (point, obj) { |
| | | console.log(obj) |
| | | } |
| | | }*/ |
| | | }, 1); |
| | | |
| | | // 画横线 |
| | |
| | | ,merge: false |
| | | ,name: 'QA3' |
| | | ,title: '1号交流接线屏' |
| | | ,cbfn_click: function (point, obj) { |
| | | /*,cbfn_click: function (point, obj) { |
| | | console.log(obj) |
| | | } |
| | | }*/ |
| | | }, 1); |
| | | |
| | | // 画交流接线柜 |
| | |
| | | ,merge: false |
| | | ,name: 'QA9' |
| | | ,title: '3号交流接线屏' |
| | | ,cbfn_click: function (point, obj) { |
| | | /*,cbfn_click: function (point, obj) { |
| | | console.log(obj) |
| | | } |
| | | }*/ |
| | | }, 1); |
| | | |
| | | // 画横线 |
| | |
| | | ,startY: point.y + 730 |
| | | ,merge: true |
| | | ,name: 'QA4' |
| | | ,cbfn_click: function (point, obj) { |
| | | /*,cbfn_click: function (point, obj) { |
| | | console.log(obj) |
| | | } |
| | | }*/ |
| | | }, 1); |
| | | // 画交流接线柜 |
| | | can.drawACWireCabinet({ |
| | |
| | | ,merge: true |
| | | ,name: 'QA5' |
| | | ,title: '2号交流接线屏' |
| | | ,cbfn_click: function (point, obj) { |
| | | /*,cbfn_click: function (point, obj) { |
| | | console.log(obj) |
| | | } |
| | | }*/ |
| | | }, 1); |
| | | |
| | | // 画横线 |
| | |
| | | can.drawTestDev({ |
| | | startX: point.x + 500 |
| | | ,startY: point.y + 800 |
| | | ,cbfn_click: function (point, obj) { |
| | | /*,cbfn_click: function (point, obj) { |
| | | console.log(obj) |
| | | } |
| | | }*/ |
| | | }, 1); |
| | | // 参试设备 |
| | | can.drawTestDev({ |
| | | startX: point.x + 500 |
| | | ,startY: point.y + 960 |
| | | ,cbfn_click: function (point, obj) { |
| | | /*,cbfn_click: function (point, obj) { |
| | | console.log(obj) |
| | | } |
| | | }*/ |
| | | }, 1); |
| | | |
| | | // 画横线 |
| | |
| | | can.drawTestDev({ |
| | | startX: point.x + 2030 |
| | | ,startY: point.y - 190 |
| | | ,cbfn_click: function (point, obj) { |
| | | /*,cbfn_click: function (point, obj) { |
| | | console.log(obj) |
| | | } |
| | | }*/ |
| | | }, 1); |
| | | |
| | | // 画开关 |
| | |
| | | can.drawTestDev({ |
| | | startX: point.x + 2030 |
| | | ,startY: point.y + 230 |
| | | ,cbfn_click: function (point, obj) { |
| | | /*,cbfn_click: function (point, obj) { |
| | | console.log(obj) |
| | | } |
| | | }*/ |
| | | }, 1); |
| | | |
| | | // 开关引线 |
| | |
| | | can.drawTestDev({ |
| | | startX: point.x + 2500 |
| | | ,startY: point.y - 330 |
| | | ,cbfn_click: function (point, obj) { |
| | | /*,cbfn_click: function (point, obj) { |
| | | console.log(obj) |
| | | } |
| | | }*/ |
| | | }, 1); |
| | | |
| | | can.drawLine({ |
| | |
| | | can.drawTestDev({ |
| | | startX: point.x + 2500 |
| | | ,startY: point.y - 250 |
| | | ,cbfn_click: function (point, obj) { |
| | | /*,cbfn_click: function (point, obj) { |
| | | console.log(obj) |
| | | } |
| | | }*/ |
| | | }, 1); |
| | | |
| | | can.drawMonitorDev({ |
| | | startX: point.x + 2500 |
| | | ,startY: point.y - 170 |
| | | ,title: '蓄电池充电与监测装置' |
| | | ,cbfn_click: function (point, obj) { |
| | | /*,cbfn_click: function (point, obj) { |
| | | console.log(obj) |
| | | } |
| | | }*/ |
| | | }, 1); |
| | | |
| | | // 画横线 |
| | |
| | | can.drawTestDev({ |
| | | startX: point.x + 2410 |
| | | ,startY: point.y + 170 |
| | | ,cbfn_click: function (point, obj) { |
| | | /*,cbfn_click: function (point, obj) { |
| | | console.log(obj) |
| | | } |
| | | }*/ |
| | | }, 1); |
| | | |
| | | // 横线 |
| | |
| | | can.drawTestDev({ |
| | | startX: point.x + 2410 |
| | | ,startY: point.y + 470 |
| | | ,cbfn_click: function (point, obj) { |
| | | /*,cbfn_click: function (point, obj) { |
| | | console.log(obj) |
| | | } |
| | | }*/ |
| | | }, 1); |
| | | |
| | | // 横线 |
| | |
| | | } |
| | | this.$api.chargepower.upDateControlData(param).then((res) => { |
| | | res = JSON.parse(res.data.result); |
| | | console.log(res); |
| | | // console.log(res); |
| | | }); |
| | | } |
| | | // 轮询 |
| | |
| | | } else { |
| | | cbParam.push(this[_param]); |
| | | } |
| | | console.log(this[arr[1]], 99); |
| | | // console.log(this[arr[1]], 99); |
| | | } else { |
| | | cbParam.push(v); |
| | | } |
| | |
| | | } |
| | | // 数据导出 |
| | | ,exportData (obj) { |
| | | console.log('数据导出'); |
| | | // console.log('数据导出'); |
| | | this.export_id = obj.dev_id; |
| | | this.export_name = obj.dev_name; |
| | | this.exportDialogVisible = true; |
| | |
| | | } else { |
| | | cbParam.push(this[_param]); |
| | | } |
| | | console.log(this[arr[1]], 99); |
| | | // console.log(this[arr[1]], 99); |
| | | } else { |
| | | cbParam.push(v); |
| | | } |
| | |
| | | } else { |
| | | cbParam.push(this[_param]); |
| | | } |
| | | console.log(this[arr[1]], 99); |
| | | // console.log(this[arr[1]], 99); |
| | | } else { |
| | | cbParam.push(v); |
| | | } |
| | |
| | | } |
| | | // 选择设备 |
| | | ,selectDev (data) { |
| | | console.log(data, 'selectdev'); |
| | | // console.log(data, 'selectdev'); |
| | | // 设定设备名称 |
| | | this.cur_devname = data.dev_name; |
| | | this.cur_devid = data.dev_id; |
| | |
| | | } |
| | | // 起始时间更改 |
| | | ,startChanged () { |
| | | console.log('start change'); |
| | | console.log(this.time_start, this.time_end, 'start end'); |
| | | // console.log('start change'); |
| | | // console.log(this.time_start, this.time_end, 'start end'); |
| | | if (!this.cur_devid) { |
| | | return false; |
| | | } |
| | |
| | | } |
| | | // 当结束时间改变后 限定开始时间 (不能选定24小时之外的时间) |
| | | // 当时间发生改变时重新取数据 |
| | | console.log('end change'); |
| | | // console.log('end change'); |
| | | // this.getHisData(); |
| | | } |
| | | // 初始化要显示的属性列表 |
| | |
| | | let allLegends = []; |
| | | let selectedLegends = []; |
| | | if (config) { |
| | | console.log(config); |
| | | // console.log(config); |
| | | Object.keys(config).forEach((v) => { |
| | | if (v != 'unit') { |
| | | allLegends.push({ |
| | |
| | | this.curLegends = selectedLegends.slice(this.curLegendIdx, category_len); |
| | | this.updateGraph(); |
| | | |
| | | } |
| | | ,handleNodeClick () { |
| | | console.log('click'); |
| | | } |
| | | // 根据id查询历史数据 |
| | | ,getHisData () { |
| | |
| | | } |
| | | // 数据导出 |
| | | ,exportData () { |
| | | console.log('数据导出'); |
| | | // console.log('数据导出'); |
| | | this.exportDialogVisible = true; |
| | | } |
| | | ,getProgress () { |
| | |
| | | table_name: this.export_date.replace(/-/g, '_'), |
| | | record_time: this.export_date + " 00:00:00" |
| | | }; |
| | | console.log(param, 'param'); |
| | | // console.log(param, 'param'); |
| | | // 显示进度条 |
| | | this.progress.show = true; |
| | | // 请求后台 |
| | |
| | | } |
| | | // 数据导出 |
| | | ,exportData () { |
| | | console.log('数据导出'); |
| | | // console.log('数据导出'); |
| | | this.exportDialogVisible = true; |
| | | } |
| | | ,getProgress () { |
| | |
| | | table_name: this.export_date.replace(/-/g, '_'), |
| | | record_time: this.export_date + " 00:00:00" |
| | | }; |
| | | console.log(param, 'param'); |
| | | // console.log(param, 'param'); |
| | | // 显示进度条 |
| | | this.progress.show = true; |
| | | // 请求后台 |
| | |
| | | } |
| | | // 数据导出 |
| | | ,exportData () { |
| | | console.log('数据导出'); |
| | | // console.log('数据导出'); |
| | | this.exportDialogVisible = true; |
| | | } |
| | | ,getProgress () { |
| | |
| | | table_name: this.export_date.replace(/-/g, '_'), |
| | | record_time: this.export_date + " 00:00:00" |
| | | }; |
| | | console.log(param, 'param'); |
| | | // console.log(param, 'param'); |
| | | // 显示进度条 |
| | | this.progress.show = true; |
| | | // 请求后台 |