| | |
| | | <hdw-light-input-inline text="环境温度" :list="envTempAlm"></hdw-light-input-inline> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <hdw-light-input-inline text="MOS管温度" :list="mosTempAlm"></hdw-light-input-inline> |
| | | <hdw-light-input-inline :text="textList.mosTempAlm" :list="mosTempAlm"></hdw-light-input-inline> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <hdw-light-input-inline text="电流告警" :list="currentAlm"></hdw-light-input-inline> |
| | |
| | | <hdw-light-input-inline text="电压事件" :list="volEventCode"></hdw-light-input-inline> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <hdw-light-input-inline text="温度事件" :list="tempEventCode"></hdw-light-input-inline> |
| | | <hdw-light-input-inline :text="textList.tempEventCode" :list="tempEventCode"></hdw-light-input-inline> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <hdw-light-input-inline text="电流事件" :list="currEventCode"></hdw-light-input-inline> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <hdw-light-input-inline text="剩余容量" :list="restCapAlm"></hdw-light-input-inline> |
| | | <hdw-light-input-inline :text="textList.restCapAlm" :list="restCapAlm"></hdw-light-input-inline> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <hdw-light-input-inline text="FET状态" :list="fetStateCode"></hdw-light-input-inline> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <hdw-light-input-inline text="均衡状态" :list="junhengStateCode"></hdw-light-input-inline> |
| | | </el-col> |
| | | <el-col :span="6" v-if="!isLithium"> |
| | | <hdw-light-input-inline text="系统温度" :list="sysTempCode"></hdw-light-input-inline> |
| | | </el-col> |
| | | <!-- <el-col :span="6">--> |
| | | <!-- <hdw-light-input-inline text="系统状态"></hdw-light-input-inline>--> |
| | |
| | | import LayoutBox from "@/pages/dataTest/components/layout-box"; |
| | | import BarChart from "@/components/chart/BarChart"; |
| | | import DivideBar from "@/components/myCharts/DivideBar"; |
| | | import {getValByKey, Timeout} from "@/assets/js/tools"; |
| | | import {getValByKey, regEquipType, Timeout} from "@/assets/js/tools"; |
| | | import getDCDCAnalogParams from "@/assets/js/tools/lithium/analogParams"; |
| | | import getDCDCWarnParams from "@/assets/js/tools/lithium/warnParams"; |
| | | import getItemByKey from "@/assets/js/tools/getItemByKey"; |
| | |
| | | }, |
| | | ], |
| | | junhengStateCode: [], |
| | | sysTempCode: [ |
| | | { |
| | | key: 'sysTempCode', |
| | | label: '系统温度', |
| | | value: -1, |
| | | } |
| | | ], |
| | | packList: [], |
| | | } |
| | | }, |
| | |
| | | let batt = this.batt; |
| | | let searchParams = { |
| | | devId: batt.FBSDeviceId, |
| | | groupNum: batt.GroupIndexInFBSDevice |
| | | }; |
| | | // 查询后台 |
| | | this.$apis.dcdc.getDcDcWarnParams(searchParams).then(res=>{ |
| | |
| | | |
| | | // 均衡状态 |
| | | this.changeAlarmValueByBit(this.junhengStateCode, info.junhengStateCode); |
| | | |
| | | // 系统温度事件 |
| | | this.changeAlarmValueByBit(this.sysTempCode, info.sysTempCode); |
| | | }, |
| | | changeAlarmValue(alarms, info) { |
| | | alarms.map(item=>{ |
| | |
| | | return result; |
| | | } |
| | | }, |
| | | computed: { |
| | | isLithium() { |
| | | let batt = this.batt; |
| | | let isLithium = regEquipType(batt.FBSDeviceId, 'lithium'); |
| | | return isLithium; |
| | | }, |
| | | textList() { |
| | | let batt = this.batt; |
| | | let isLithium = regEquipType(batt.FBSDeviceId, 'lithium'); |
| | | let list = { |
| | | mosTempAlm: "MOS管温度", |
| | | tempEventCode: "温度事件", |
| | | restCapAlm: "剩余容量", |
| | | }; |
| | | if(isLithium) { |
| | | list = { |
| | | mosTempAlm: "MOS管温度", |
| | | tempEventCode: "温度事件", |
| | | restCapAlm: "剩余容量", |
| | | }; |
| | | }else { |
| | | list = { |
| | | mosTempAlm: "功率温度", |
| | | tempEventCode: "温度事件", |
| | | restCapAlm: "容量事件", |
| | | }; |
| | | } |
| | | return list; |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.setPackList(); |
| | | let list = getDCDCWarnParams().list; |