ZhangXianQiang
2024-04-28 e98212f959bcd046aa499c9b1e9821f7c4b367bf
fix:修改区域考核数据切换问题
1个文件已修改
28 ■■■■■ 已修改文件
src/views/system/result/detail/index1.vue 28 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/result/detail/index1.vue
@@ -55,23 +55,13 @@
          <template slot-scope="scope">
            <el-button size="small" type="text"  v-show="scope.row.publish != 1">确认发布</el-button>
            <el-button size="small" type="text"  v-show="scope.row.publish == 1">取消发布</el-button>
            <el-button
              size="mini"
              type="text"
              icon="el-icon-view"
              @click="handleDetail(scope.row.id)"
            >详细</el-button>
            <el-button size="mini" type="text" icon="el-icon-view" @click="handleDetail(scope.row.id)">详细</el-button>
          </template>
        </el-table-column>
      </el-table>
    <pagination
      v-show="total>0"
      :total="total"
      :page.sync="queryParams.pageNum"
      :limit.sync="queryParams.pageSize"
      @pagination="getList"
    />
      <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
        @pagination="getList" />
    </div>
@@ -103,6 +93,7 @@
      },
      tableData: [],
      loading: false,
      tableLoading: false,
      searchForm: {
        time: null,
      }
@@ -120,7 +111,6 @@
    this.date = year + '-' + month;
    this.queryParams.date = this.date;
    this.areaSelect();
    this.getChart(this.$route.query.index)
    this.getList(this.$route.query.index);
  },
  computed: {
@@ -157,8 +147,14 @@
    getList() {
      this.tableLoading = true;
      detailScore(this.queryParams).then(response => {
        console.log(response);
        if (response.rows) {
        this.tableData = response.rows;
        this.total = response.total;
        } else {
          this.tableData = [];
          this.total = 0;
        }
        this.tableLoading = false;
      });
    },
@@ -201,7 +197,7 @@
          data: dataList.map((item) => item[0]),
        },
        yAxis: {
          min: 'dataMin'
        },
        series: [
          {
@@ -292,8 +288,8 @@
    dateChange() {
      this.queryParams.date = this.date;
      console.log(this.queryParams);
      this.getChart(this.queryParams.deptId);
      this.getList(this.queryParams.deptId);
    }
  },