| | |
| | | data.switchoff = 1; |
| | | break; |
| | | } |
| | | console.log(data); |
| | | return axios({ |
| | | method: 'post', |
| | | url: 'Electric_control_singleAction_ele_update', |
| | |
| | | data.conn_stop = 1; |
| | | break; |
| | | } |
| | | console.log(data); |
| | | return axios({ |
| | | method: 'post', |
| | | url: 'Electric_control_connAction_ele_update', |
| | |
| | | }; |
| | | this.$api.chargepower.getControlData(param).then((res) => { |
| | | res = JSON.parse(res.data.result); |
| | | console.log(res, 'control') |
| | | // console.log(res, 'control') |
| | | if (res.code) { |
| | | let data = res.data[0]; |
| | | // console.log(data, 'controldata'); |
| | |
| | | const reg = /A|B/; |
| | | reg.test(this.G_title); |
| | | const group = RegExp.lastMatch; |
| | | console.log(group, this.select_date); |
| | | // console.log(group, this.select_date); |
| | | this.getHisData(group, this.select_date).then((res) => { |
| | | // console.log(res, 9999); |
| | | this.$refs['G_dialog_id'].setOption(res); |
| | |
| | | can1 = new EleCircleGeneral('can1'); |
| | | |
| | | this.containerH = this.$refs.container.offsetHeight; |
| | | console.log(this.containerH, 8989); |
| | | // console.log(this.containerH, 8989); |
| | | |
| | | draw.main(this, can); |
| | | this.setLoadPos(); |