| | |
| | | value: 0, |
| | | }, |
| | | { |
| | | key: 'cycle_times', |
| | | key: 'cycleTimes', |
| | | label: '电池循环次数', |
| | | value: 0, |
| | | }, |
| | | { |
| | | key: 'user_def_cnt', |
| | | key: 'userDefCnt', |
| | | label: '自定义遥测数量', |
| | | value: 0, |
| | | }, |
| | |
| | | import BalanceSupplyModule from "./components/balance-supply-module.vue"; |
| | | import BalanceControlParams from "@/components/params/balance-control-params.vue"; |
| | | import getTblHeader from "@/pages/dataTest/js/getTblHeader"; |
| | | import lithiumInfo from "@/assets/js/tools/lithium"; |
| | | |
| | | /* import moment from "moment"; */ |
| | | let vol, resChart, temp, conduct, currChart, leakVol; |
| | |
| | | }, |
| | | fodHeaders: [], |
| | | fodData: [], |
| | | lithiumParams: { |
| | | analog: lithiumInfo.analog().params, |
| | | }, |
| | | }; |
| | | }, |
| | | methods: { |
| | |
| | | this.realTimeStateList(), |
| | | this.loadDevAla(), |
| | | //this.inversionInfo() |
| | | this.getLithiumAnalog(), // 锂电池模拟量 |
| | | ]) |
| | | .then(() => { |
| | | this.timer.open(); |
| | |
| | | } |
| | | return result; |
| | | }, |
| | | /** |
| | | * 读取锂电池信息 暂定读取组一的 |
| | | */ |
| | | getLithiumAnalog() { |
| | | let batt = this.batt; |
| | | let isLithium = regEquipType(batt.FBSDeviceId, ["lithium"]); |
| | | if (isLithium) { |
| | | this.$apis.dcdc |
| | | .getDcDcAnalogParams({ |
| | | devId: batt.FBSDeviceId, |
| | | }) |
| | | .then((res) => { |
| | | let rs = JSON.parse(res.data.result); |
| | | if (rs.code == 1) { |
| | | let data = rs.data[0]; |
| | | this.lithiumParams.analog = data; |
| | | } else { |
| | | this.lithiumParams.analog = lithiumInfo.analog().params; |
| | | } |
| | | }) |
| | | .catch((error) => { |
| | | this.lithiumParams.analog = lithiumInfo.analog().params; |
| | | console.log(error); |
| | | }); |
| | | } |
| | | }, |
| | | clearWarn() { |
| | | // 清除告警 |
| | | this.$layer.confirm( |
| | |
| | | } else { |
| | | list.sysc = "------"; |
| | | } |
| | | |
| | | // 如果当前为锂电池 |
| | | let isLithium = regEquipType(batt.FBSDeviceId, ["lithium"]); |
| | | if (isLithium) { |
| | | list.batt_syrl_cap = |
| | | this.lithiumParams.analog.params.restCap.toFixed(1) + "AH"; |
| | | } |
| | | |
| | | return list; |
| | | }, |
| | | showStateList() { |