longyvfengyun
2022-05-10 3bf7c2d8bb7b6f838d41fcaebc0a3e80c06d0c62
一体机升级逻辑修改
1个文件已添加
3个文件已修改
50 ■■■■ 已修改文件
public/favicon.ico 补丁 | 查看 | 原始文档 | blame | 历史
public/favicon1.ico 补丁 | 查看 | 原始文档 | blame | 历史
src/views/dataTest/realTime.vue 46 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/jobManage/aioUpdate.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
public/favicon.ico

public/favicon1.ico
src/views/dataTest/realTime.vue
@@ -2564,11 +2564,11 @@
        let volBarNum = getBarNum(volTempVol);
        vol.title.text =
          "最大值=" +
          volBarNum.max.toFixed(2) +
          "V;最小值=" +
          volBarNum.min.toFixed(2) +
          "V;平均值=" +
          volBarNum.avg.toFixed(2) +
          volBarNum.max.toFixed(3) +
          "V  最小值=" +
          volBarNum.min.toFixed(3) +
          "V  平均值=" +
          volBarNum.avg.toFixed(3) +
          "V";
        vol.series[0].data = volTempVol;
@@ -2583,11 +2583,11 @@
        let resBarNum = getBarNum(volTempres);
        resChart.title.text =
          "最大值=" +
          resBarNum.max.toFixed(2) +
          "mΩ;最小值=" +
          resBarNum.min.toFixed(2) +
          "mΩ;平均值=" +
          resBarNum.avg.toFixed(2) +
          resBarNum.max.toFixed(3) +
          "mΩ  最小值=" +
          resBarNum.min.toFixed(3) +
          "mΩ  平均值=" +
          resBarNum.avg.toFixed(3) +
          "mΩ";
        resChart.series[0].data = volTempres;
@@ -2608,9 +2608,9 @@
        temp.title.text =
          "最大值=" +
          tempBarNum.max.toFixed(1) +
          "℃;最小值=" +
          "℃  最小值=" +
          tempBarNum.min.toFixed(1) +
          "℃;平均值=" +
          "℃  平均值=" +
          tempBarNum.avg.toFixed(1) +
          "℃";
        temp.series[0].data = volTempte;
@@ -2628,9 +2628,9 @@
        conduct.title.text =
          "最大值=" +
          conductBarNum.max.toFixed(0) +
          ";最小值=" +
          "  最小值=" +
          conductBarNum.min.toFixed(0) +
          ";平均值=" +
          "  平均值=" +
          conductBarNum.avg.toFixed(0);
        conduct.series[0].data = conductTemp;
        // 均衡电流
@@ -2645,9 +2645,9 @@
        currChart.title.text =
          "最大值=" +
          currBarNum.max.toFixed(1) +
          "mA;最小值=" +
          "mA  最小值=" +
          currBarNum.min.toFixed(1) +
          "mA;平均值=" +
          "mA  平均值=" +
          currBarNum.avg.toFixed(1) +
          "mA";
        currChart.series[0].data = currTemp;
@@ -2663,9 +2663,9 @@
        leakVol.title.text =
          "最大值=" +
          leakVolNum.max.toFixed(1) +
          "V;最小值=" +
          "V  最小值=" +
          leakVolNum.min.toFixed(1) +
          "V;平均值=" +
          "V  平均值=" +
          leakVolNum.avg.toFixed(1) +
          "V";
        leakVol.series[0].data = leakVolTemp;
@@ -2682,9 +2682,9 @@
        monConnRes.title.text =
          "最大值=" +
          connResBarNum.max.toFixed(1) +
          "mΩ;最小值=" +
          "mΩ  最小值=" +
          connResBarNum.min.toFixed(1) +
          "mΩ;平均值=" +
          "mΩ  平均值=" +
          connResBarNum.avg.toFixed(1) +
          "mΩ";
        monConnRes.series[0].data = monConnResData;
@@ -3235,7 +3235,7 @@
        },
        list = {
          battState: "未知",
          group_online_vol: "在线:0.00V;组端:0.00V",
          group_online_vol: "在线:0.000V;组端:0.000V",
          groupCurr: "0.00A",
          recDatetime: "1982-01-01 00:00:00",
          battTestTlong: formatSeconds(0),
@@ -3252,11 +3252,11 @@
          : obj[this.inputs.battState];
      list.battState = batt_state_text + this.diagram.desc;
      if (regEquipType(batt.fbsdeviceId, "BTS9605")) {
        list.group_online_vol = `组端:${this.inputs.groupVol.toFixed(2)}V`;
        list.group_online_vol = `组端:${this.inputs.groupVol.toFixed(3)}V`;
      } else {
        list.group_online_vol = `在线:${this.inputs.onlineVol.toFixed(
          2
        )}V;组端:${this.inputs.groupVol.toFixed(2)}V`;
        )}V;组端:${this.inputs.groupVol.toFixed(3)}V`;
      }
      list.groupCurr = this.inputs.groupCurr.toFixed(2) + "A";
src/views/jobManage/aioUpdate.vue
@@ -261,6 +261,9 @@
      // 格式化数据
      let list = data.list.map(item=>{
        item.dfuFile = "BatterTester.SM5";
        if(item.dfuEn == 0) {
          item.dfuDataBlocknum = 0;
        }
        item.percent = item.dfuDataBlocklen != 0? (item.dfuDataBlocknum * 100 /item.dfuDataBlocklen).toHold(1):0;
        item.dfuEnText = item.dfuEn == 0?
          "等待升级":item.dfuWrStat == 0?
@@ -306,6 +309,7 @@
    },
    update(rowData, dfuEn) {
      let params = {
        num: rowData.num,
        dfuFile:'BatterTester.SM5',
        dfuEn,
        dfuWrStat:1,