whychdw
2021-11-11 73c37beec7435c24ac066f90d1b18a16d2e30af1
内容提交
4个文件已修改
32 ■■■■ 已修改文件
src/components/PageHeader.vue 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/dataTest/components/bmsInfo.vue 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/dataTest/components/elePriceTpl.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/dataTest/realTime.vue 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/PageHeader.vue
src/pages/dataTest/components/bmsInfo.vue
@@ -1,11 +1,15 @@
<template>
  <div class="module-wrapper">
  <div class="module-wrapper"
       v-loading="loading"
       element-loading-text="拼命加载中"
       element-loading-spinner="el-icon-loading"
       element-loading-background="rgba(0, 0, 0, 0.2)">
    <div class="module-content-left">
      <layout-box>
        <div class="layout-content">
          <div class="mon-vol-bar">
            <flex-box title="单体电压" size="mini">
              <el-select v-model="group" slot="tools" size="mini">
              <el-select v-model="group" slot="tools" size="mini" @change="changeGroup">
                <el-option :value="0" label="组1"></el-option>
                <el-option :value="1" label="组2"></el-option>
                <el-option :value="2" label="组3"></el-option>
@@ -139,6 +143,7 @@
  },
  data() {
    return {
      loading: false,
      group: 0,
      timer: new Timeout(),
      analogData: [],
@@ -396,6 +401,9 @@
        }
      });
    },
    changeGroup() {
      this.loading = true;
    },
    startTimer() {
      this.timer.start(()=>{
        this.$axios.all([
@@ -422,6 +430,9 @@
      };
      // 查询后台
      this.$apis.dcdc.getDcDcAnalogParams(searchParams).then(res=>{
        // 关闭等待框
        this.loading = false;
        // 处理后台数据
        let rs = JSON.parse(res.data.result);
        let data = [];
        if(rs.code == 1) {
@@ -430,6 +441,8 @@
        // 格式化并并设置数据
        this.formatData(data);
      }).catch(error=>{
        // 关闭等待框
        this.loading = false;
        // 格式化并并设置数据
        this.formatData([]);
      });
src/pages/dataTest/components/elePriceTpl.vue
@@ -169,6 +169,7 @@
      this.searchData();
    },
    devId() {
      this.priceRatio = this.batt.priceFactor?this.batt.priceFactor:0;
      this.searchData();
    }
  },
@@ -184,7 +185,6 @@
    },
    getPeakPrice() { // 统计削峰填谷价格
      let priceRatio = this.priceRatio;
      console.log(priceRatio);
      let reg = /^[0-9]+.?[0-9]*$/;
      if(!reg.test(priceRatio)) {
        this.$layer.msg("电价系数必须为数字");
@@ -201,7 +201,8 @@
        BattGroupId: batt.BattGroupId,
        num: num,
        record_time: recordTime,
        record_time1: recordTime1
        record_time1: recordTime1,
        priceFactor: priceRatio,
      };
      // 查询后台
      this.$apis.dcdc.getPeakPrice(searchParams).then(res=>{
@@ -324,6 +325,9 @@
  },
  mounted() {
    // 设置电价系数
    this.priceRatio = this.batt.priceFactor?this.batt.priceFactor:0;
    // 信息修改
    this.searchData();
    this.getPeakPrice();
    this.searchElePrices();
src/pages/dataTest/realTime.vue
@@ -2569,7 +2569,14 @@
          .then((res) => {
            let rs = JSON.parse(res.data.result);
            if (rs.code == 1) {
              // 剩余容量进行累加
              let restCap = 0;
              rs.data.map(item=>{
                restCap += item.restCap;
              });
              let data = rs.data[0];
              data.restCap = restCap;
              this.lithiumParams.analog = data;
            } else {
              this.lithiumParams.analog = lithiumInfo.analog().params;