| | |
| | | url: 'Peak_statisticsAction!serchByCondition', |
| | | data: "json=" + JSON.stringify(data), |
| | | }) |
| | | }, |
| | | restartDcDc(dev_id) { |
| | | // 请求后台查询内容 |
| | | return axios({ |
| | | method: 'post', |
| | | url: 'Fbs9100_setparamAction_action_restartDCDC', |
| | | data: "json=" + JSON.stringify({ |
| | | op_cmd: 0x9A, |
| | | dev_id: dev_id, |
| | | }), |
| | | }) |
| | | } |
| | | }; |
| | |
| | | </el-col> |
| | | </el-row> |
| | | <div class="form-footer"> |
| | | <three-btn @click="getParams">刷新</three-btn> |
| | | <el-button type="primary" size="mini" @click="confirmRestartSys">重启DCDC</el-button> |
| | | <el-button type="primary" size="mini" @click="getParams">刷新</el-button> |
| | | </div> |
| | | </div> |
| | | </flex-layout> |
| | |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | confirmRestartSys() { |
| | | this.$confirm("此操作将重启DCDC模块, 是否继续?", "系统提示", { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | | }).then(res=>{ |
| | | let devId = this.batt.FBSDeviceId; |
| | | this.loading = true; |
| | | this.$apis.dcdc.restartDcDc(devId).then((res) => { |
| | | let rs = JSON.parse(res.data.result); |
| | | if(rs.code == 1) { |
| | | this.$layer.msg("重启成功"); |
| | | }else{ |
| | | this.$layer.msg("重启失败"); |
| | | } |
| | | this.loading = false; |
| | | }).catch((error) => { |
| | | console.log(error); |
| | | this.loading = false; |
| | | }); |
| | | }).catch(error=>{ |
| | | console.log(error); |
| | | }); |
| | | }, |
| | | close() { |
| | | this.$emit("visible:update", false); |
| | | }, |