| | |
| | | |
| | | // 充电单元文本 |
| | | let charge_text = diagram.text({ |
| | | text: '充电单元', |
| | | text: '限流单元', |
| | | baseline: 'middle', |
| | | fontSize: 16, |
| | | point: [chargeState.right[0]+4, chargeState.right[1]] |
| | |
| | | |
| | | // 充电单元文本 |
| | | let charge_text = diagram.text({ |
| | | text: '充电单元', |
| | | text: '限流单元', |
| | | baseline: 'middle', |
| | | fontSize: 16, |
| | | hide: true, |
| | |
| | | |
| | | // 充电单元文本 |
| | | let chargeRectText = diagram.text({ |
| | | text: '充电单元', |
| | | text: '限流单元', |
| | | baseline: 'middle', |
| | | fontSize: 16, |
| | | point: [chargeStateRect.right[0]+4, chargeStateRect.right[1]] |
| | |
| | | |
| | | // 充电单元文本 |
| | | let charge_text = diagram.text({ |
| | | text: '充电单元', |
| | | text: '限流单元', |
| | | baseline: 'middle', |
| | | fontSize: 16, |
| | | hide: true, |
| | |
| | | |
| | | // 充电单元文本 |
| | | let chargeRectText = diagram.text({ |
| | | text: '充电单元', |
| | | text: '限流单元', |
| | | baseline: 'middle', |
| | | fontSize: 16, |
| | | point: [chargeStateRect.right[0]+4, chargeStateRect.right[1]] |
| | |
| | | |
| | | // 充电单元文本 |
| | | let charge_text = diagram.text({ |
| | | text: '充电单元', |
| | | text: '限流单元', |
| | | baseline: 'middle', |
| | | fontSize: 16, |
| | | point: [chargeState.right[0]+4, chargeState.right[1]] |
| | |
| | | }); |
| | | }else if(regEquipType(dev_id, 'power1')) { |
| | | this.$router.push({ |
| | | path: '/moving-ring-system/power-box/' + data.BattGroupId + '/' + data.powerDeviceId, |
| | | path: '/moving-ring-system/power-box/'+ data.params.powerDeviceId, |
| | | }); |
| | | } else { // 404 |
| | | this.$router.push({ |
| | |
| | | } |
| | | }, |
| | | watch: { |
| | | "$route.params.BattGroupId"(BattGroupId) { |
| | | this.$nextTick(() => { |
| | | this.getBattGroupInfo(BattGroupId); |
| | | }); |
| | | }, |
| | | "$route.params.powerDeviceId"(powerDeviceId) { |
| | | this.$nextTick(() => { |
| | | this.getPowerInfo(powerDeviceId); |
| | |
| | | }, |
| | | }, |
| | | methods: { |
| | | getBattGroupInfo(BattGroupId) { |
| | | this.homeListShow = false; |
| | | this.$apis.dataMager.battGroupMager |
| | | .getBattGroupInfo(BattGroupId) |
| | | .then((res) => { |
| | | let rs = JSON.parse(res.data.result); |
| | | if (rs.code == 1) { |
| | | this.leafClick(rs.data[0]); |
| | | } else { |
| | | this.$layer.msg("未获取到电池组的信息"); |
| | | } |
| | | }) |
| | | .catch((error) => { |
| | | console.log(error); |
| | | }); |
| | | }, |
| | | getPowerACDCConfigById() { |
| | | let id = this.powerData.info.powerDeviceId; |
| | | this.acDcSignalData = getAcDcSignalData(); |
| | |
| | | this.$apis.dataMager.powerMager.getInfoById({ |
| | | powerDeviceId: powerDeviceId |
| | | }).then(res => { |
| | | console.log(res); |
| | | let rs = JSON.parse(res.data.result); |
| | | if (rs.code == 1) { |
| | | this.powerData.info = rs.data; |
| | | this.batt.StationName = this.powerData.info.stationName; |
| | | } else { |
| | | this.powerData.info = { |
| | | powerDeviceId: 0, |
| | |
| | | getPowerBoxData() { |
| | | let id = this.powerData.info.powerDeviceId; |
| | | this.$apis.dataMager.powerMager.getPowerBoxData(id).then(res=>{ |
| | | console.log(res); |
| | | let rs = JSON.parse(res.data.result); |
| | | if(rs.code == 1) { |
| | | this.allSignal = 0; |
| | |
| | | } |
| | | }, |
| | | mounted() { |
| | | let BattGroupId = this.$route.params.BattGroupId; |
| | | if (BattGroupId) { |
| | | this.getBattGroupInfo(BattGroupId); |
| | | } |
| | | |
| | | // 获取电源信息 |
| | | let powerDeviceId = this.$route.params.powerDeviceId; |
| | | if (powerDeviceId) { |
| | |
| | | component: (resolve) => require(['../pages/dataTest/realTimeAio.vue'], resolve) |
| | | }, |
| | | { |
| | | path: 'power-box/:BattGroupId/:powerDeviceId', |
| | | path: 'power-box/:powerDeviceId', |
| | | name: 'powerBox', |
| | | meta: {}, |
| | | component: (resolve) => require(['../pages/dataTest/movingRingSystem/powerBox.vue'], resolve) |