whychdw
2021-11-13 3dc0222dff9f2b39ee8b5f1d19751ad8a49bb432
新增连接条阻抗
3个文件已修改
76 ■■■■■ 已修改文件
src/assets/js/const/const_page.js 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/dataTest/js/getTblHeader.js 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/dataTest/realTime.vue 65 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/assets/js/const/const_page.js
@@ -31,6 +31,12 @@
      show: 1,
    },
    {
      key: "monConnRes",
      type: 1,
      label: "连接条阻抗",
      show: 1,
    },
    {
      key: "curr",
      type: 1,
      label: "均衡电流",
src/pages/dataTest/js/getTblHeader.js
@@ -27,6 +27,11 @@
            width: "",
        },
        {
            prop: "monConnRes",
            label: "连接条阻抗",
            width: ""
        },
        {
            prop: "curr1",
            label: "均衡电流(A)",
            width: "",
src/pages/dataTest/realTime.vue
@@ -403,6 +403,18 @@
              ></bar-chart>
            </el-tab-pane>
            <el-tab-pane
              key="monConnRes"
              label="连接条阻抗"
              name="monConnRes"
              v-if="tabsConfig.monConnRes && pageConfig.monConnRes">
              <bar-chart
                  ref="monConnRes"
                  id="monConnRes"
                  :show-tools="true"
                  @right-click="chartRightCLick"
              ></bar-chart>
            </el-tab-pane>
            <el-tab-pane
              key="curr"
              label="均衡电流"
              name="curr"
@@ -431,7 +443,6 @@
                @right-click="chartRightCLick"
              ></bar-chart>
            </el-tab-pane>
            <el-tab-pane
              key="tblData"
              label="数据表格"
@@ -876,7 +887,7 @@
import BmsInfo from "@/pages/dataTest/components/bmsInfo";
/* import moment from "moment"; */
let vol, resChart, temp, conduct, currChart, leakVol;
let vol, resChart, temp, conduct, currChart, leakVol, monConnRes;
let tblData = [];
export default {
  components: {
@@ -991,6 +1002,11 @@
            prop: "conduct1",
            label: "电导",
            width: "",
          },
          {
            prop: "monConnRes",
            label: "连接条阻抗",
            width: ""
          },
          {
            prop: "curr1",
@@ -1621,6 +1637,25 @@
          },
        ],
      };
      // 连接条阻抗
      monConnRes = {
        title: {
          show: true,
          text: "最大值=0;最小值=0;平均值=0",
          x: "center",
          textStyle: {
            fontSize: "14",
          },
        },
        series: [
          {
            name: "连接条阻抗",
            type: "bar",
            data: [],
          },
        ],
      };
      // 设置配置项
      this.setChart();
    },
@@ -1644,6 +1679,9 @@
          break;
        case "leakVol":
          this.$refs.leakVol.setOption(leakVol);
          break;
        case "monConnRes":
          this.$refs.monConnRes.setOption(monConnRes);
          break;
      }
    },
@@ -2173,6 +2211,7 @@
        let rs = JSON.parse(res.data.result);
        let data = [];
        if (rs.code == 1 && diagramType != -1) {
          console.log(rs.data);
          data = rs.data.map((item) => {
            return {
              num1: "#" + item.mon_num,
@@ -2184,6 +2223,7 @@
                : 0,
              curr1: item.mon_JH_curr,
              leakVol1: item.mon_LY_vol,
              monConnRes: item.mon_conn_res,
            };
          });
        }
@@ -2304,6 +2344,25 @@
          leakVolNum.avg.toFixed(1) +
          "V";
        leakVol.series[0].data = leakVolTemp;
        // 连接条阻抗
        let monConnResData = [];
        if (rs.code == 1) {
          monConnResData = rs.data.map((item) => {
            let value = diagramType == -1?0:item.mon_conn_res;
            return ["#" + item.mon_num, value];
          });
        }
        let connResBarNum = getBarNum(monConnResData);
        monConnRes.title.text =
            "最大值=" +
            connResBarNum.max.toFixed(1) +
            ";最小值=" +
            connResBarNum.min.toFixed(1) +
            ";平均值=" +
            connResBarNum.avg.toFixed(1) +
            "";
        monConnRes.series[0].data = monConnResData;
        // 更新电压图表
        this.setChart();
      });
@@ -2959,6 +3018,7 @@
      let curr = !isLithium;
      let leakVol = !isLithium;
      let dianchigaojing = !isLithium;
      let monConnRes = !isLithium;
      return {
        vol: vol,
@@ -2968,6 +3028,7 @@
        curr: curr,
        leakVol: leakVol,
        dianchigaojing: dianchigaojing,
        monConnRes: monConnRes,
      };
    },
    isTestDev() {