longyvfengyun
2022-04-08 2fbfaec66662d76debd61ee02cac274cb052cea5
内容提交
1个文件已修改
1个文件已添加
55 ■■■■■ 已修改文件
src/assets/js/const/const_text.js 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/dataTest/components/bmsInfo.vue 52 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/assets/js/const/const_text.js
New file
@@ -0,0 +1,3 @@
export default {
}
src/pages/dataTest/components/bmsInfo.vue
@@ -63,7 +63,7 @@
                    <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>
@@ -78,19 +78,22 @@
                    <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>-->
@@ -111,7 +114,7 @@
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";
@@ -384,6 +387,13 @@
        },
      ],
      junhengStateCode: [],
      sysTempCode: [
        {
          key: 'sysTempCode',
          label: '系统温度',
          value: -1,
        }
      ],
      packList: [],
    }
  },
@@ -530,6 +540,7 @@
      let batt = this.batt;
      let searchParams = {
        devId: batt.FBSDeviceId,
        groupNum: batt.GroupIndexInFBSDevice
      };
      // 查询后台
      this.$apis.dcdc.getDcDcWarnParams(searchParams).then(res=>{
@@ -589,6 +600,9 @@
      // 均衡状态
      this.changeAlarmValueByBit(this.junhengStateCode, info.junhengStateCode);
      // 系统温度事件
      this.changeAlarmValueByBit(this.sysTempCode, info.sysTempCode);
    },
    changeAlarmValue(alarms, info) {
      alarms.map(item=>{
@@ -612,6 +626,36 @@
      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;