zmc
2023-08-15 d58be9584f409e7d198fd34982155331d6710f1f
修改了数据库多表联查语句
已修改2个文件
29 ■■■■■ 文件已修改
dist.zip 补丁 | 查看 | 原始文档 | blame | 历史
src/views/ExceedingFume.vue 29 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
dist.zip
Binary files differ
src/views/ExceedingFume.vue
@@ -22,6 +22,7 @@
          plain
          @click="showTable"
          style="margin-left: 20px"
          :loading="button.queryButton"
          >查询</el-button
        >
@@ -387,6 +388,7 @@
      <ExceptionTypeLineChart
        :option="option"
        :is-open-dialog="centerDialogVisible"
        v-loading="chartLoading"
      ></ExceptionTypeLineChart>
      <!--  -->
@@ -451,6 +453,8 @@
  },
  data() {
    return {
      // 折线图加载中
      chartLoading:false,
      button:{
        // 查询按钮
        queryButton:false,
@@ -806,7 +810,7 @@
    getNextRowData() {
      // 不是表格的第一行
      if (this.selectedRowIndex !== 0) {
        // 设置上下条按钮不可点击
        // 点击过程中 锁住上下条按钮  在设置完图形配置项后解锁
        this.banTouch = 1
        //得到上一行数据索引
@@ -833,22 +837,16 @@
            this.drawChartTest();
            this.exceptionTotal = this.exceedingData.length;
            this.button.afterButton = false
            this.banTouch = 0
          });
      }
      // //表格的第一行,则上一条无数据
      // else {
      //   console.log(null);
      // }
    },
    // 获取获取表格下一行数据
    getPreviousRowData() {
      // 不是表格的第一行
      if (this.selectedRowIndex < this.displayData.length - 1) {
        // 设置上下条按钮不可点击
        // 点击过程中 锁住上下条按钮  在设置完图形配置项后解锁
        this.banTouch = 1
        //得到上一行数据索引
@@ -876,15 +874,8 @@
            this.drawChartTest();
            this.exceptionTotal = this.exceedingData.length;
            this.button.preButton = false
            this.banTouch = 0
          });
      }
      //表格的第一行,则上一条无数据
      // else {
      //   console.log(null);
      // }
    },
    // ‘查看详情’ 弹出框部分
@@ -910,6 +901,7 @@
      if (this.drawerData.endTime) {
        params['endTime'] = this.drawerData.endTime;
      }
      axiosInstanceInstance
        .get('/fume/exceed', { params: params })
        .then((response) => {
@@ -943,6 +935,7 @@
      }
      this.loading = true;
      this.button.queryButton = true
      axiosInstanceInstance
        .get('/fume/abnormalthree', { params: params })
        .then((response) => {
@@ -1296,6 +1289,7 @@
          ]
        };
      }
      this.banTouch = 0
    },
    // 功能:点击 ‘查看详情’, ‘下一条’按钮时会 先逻辑计算。最后展示图形
@@ -1329,6 +1323,8 @@
        beforeAndAfterTime[2]
      );
      // 折线图加载中效果
      this.chartLoading = true
      // 请求前半段
      axiosInstanceInstance
        .get('/fume/history', { params: paramsBefore })
@@ -1445,6 +1441,7 @@
                  endIndex
                );
              }
              this.chartLoading = false
            });
        });
    },