测试 用electron + springboot 构建桌面应用
he wei
2022-03-18 b6861e1ae7f114737a7b383fc4ab0dba3653b01e
src/main/demo/src/views/result.vue
@@ -7,15 +7,15 @@
    <div class="main">
      <div class="flex-row contain-flex-column">
        <flex-box class="item" size="mini" title="组端电压折线图">
          <normal-lines id="groupVol" ref="groupVol" unit="℃"></normal-lines>
          <normal-lines id="groupVol" ref="groupVol" unit="V"></normal-lines>
        </flex-box>
        <flex-box class="item" size="mini" title="电池电流折线图">
          <normal-lines id="groupCurr" ref="groupCurr" unit="℃"></normal-lines>
          <normal-lines id="groupCurr" ref="groupCurr" unit="A"></normal-lines>
        </flex-box>
      </div>
      <div class="flex-row contain-flex-column">
        <flex-box class="item" size="mini" title="单体电压折线图">
          <normal-lines id="vol" ref="vol" unit="℃"></normal-lines>
          <normal-lines id="vol" ref="vol" unit="V"></normal-lines>
        </flex-box>
        <flex-box class="item" size="mini" title="容量折线图">
          <div slot="tools" class="chart-tools-wrapper">
@@ -32,7 +32,7 @@
              ></el-option>
            </el-select>
          </div>
          <normal-lines id="cap" ref="cap" unit="℃"></normal-lines>
          <normal-lines id="cap" ref="cap" unit="AH"></normal-lines>
        </flex-box>
      </div>
    </div>
@@ -69,18 +69,18 @@
          unit: "AH",
          fixed: 0,
        },
        {
          label: "剩余容量",
          value: "residualCap",
          unit: "AH",
          fixed: 0,
        },
        {
          label: "剩余时间",
          value: "residualTime",
          unit: "",
          fixed: 0,
        },
        // {
        //   label: "剩余容量",
        //   value: "residualCap",
        //   unit: "AH",
        //   fixed: 0,
        // },
        // {
        //   label: "剩余时间",
        //   value: "residualTime",
        //   unit: "",
        //   fixed: 0,
        // },
      ],
      testCapOption: null,
      actualCapOption: null,
@@ -254,6 +254,10 @@
      // });
      let params = {
        filePath: this.info.filePath,
        groupVol_echart: this.$refs.groupVol.getDataURL(),
        curr_echart: this.$refs.groupCurr.getDataURL(),
        vol_echart: this.$refs.vol.getDataURL(),
        cap_echart: this.$refs.cap.getDataURL(),
      };
      let baseURL = axios.defaults.baseURL;
      baseURL = baseURL ? baseURL : "";