zhengpz
2021-08-23 dc91db9bb3473c3ed058f86f74359e15c035a8a5
src/views/statisticalQueryManagement/businessStatistics.vue
@@ -145,7 +145,7 @@
        }
      });
    },
     searchChange(params, done) {
    searchChange(params, done) {
      this.query = params;
      this.page.currentPage = 1;
      this.onLoad(this.page, params);
@@ -175,21 +175,27 @@
      selectYw(param).then(res => {
        const data = res.data.data;
        this.page.total = data.total;
        this.tableData = res.data.data;
        this.tableData = data.records;
        this.loading = false;
      });
    },
    handleRowClick(row, column, cell, event) {
      if (column.label == "服务对象数量" || column.label == "保安员人数") {
      if (column.label == "服务对象数量") {
        this.$router.push({
          path: "/statisticalQueryManagement/businessStatisticsDetail"
        });
      } else if (column.label == "保安员人数") {
        this.$router.push({
          path:
            "/statisticalQueryManagement/securityGuardDetail?enterpriseName=" +
            row.enterpriseName
        });
      }
    },
    cellStyle(row, column, rowIndex, columnIndex) {
      // if (columnIndex == 4 || columnIndex == 5) {
      // }
    },
    }
  },
  mounted() {
    this.getSubOfficeData();