fuliqi
2024-11-05 c79a020be41892e60021c2a750ea2976dd20f2f3
src/views/system/check/result/index.vue
@@ -5,9 +5,11 @@
        <el-menu :default-active="activeIndex" class="el-menu-demo" mode="horizontal" @select="handleSelect"
                 style="margin-bottom: 10px">
          <el-menu-item index="0">省厅月度</el-menu-item>
          <el-menu-item index="2">省厅季度</el-menu-item>
          <el-menu-item index="1">区县月度</el-menu-item>
          <el-menu-item index="1">省厅季度</el-menu-item>
          <el-menu-item index="2">区县月度</el-menu-item>
          <el-menu-item index="3">区县季度</el-menu-item>
          <el-menu-item index="4">公安部月度</el-menu-item>
          <el-menu-item index="5">公安部季度</el-menu-item>
        </el-menu>
      </div>
      <!-- 导出按钮 -->
@@ -62,7 +64,9 @@
          <el-button slot="reference" type="primary" size="mini" plain>导出</el-button>
        </el-popover>
      </div>
    </div>
    <div class="data-chart-container">
      <el-card class="data-card" :body-style="{ height: '100%' }">
        <div class="card-content">
@@ -126,7 +130,8 @@
    return {
      tagOptions: [
        {value: 0, label: '省厅'},
        {value: 1, label: '区县'}
        {value: 1, label: '区县'},
        {value: 2, label: '公安部'}
      ],
      pickerOptions: {
        shortcuts: [{
@@ -188,10 +193,9 @@
  },
  mounted() {
    this.queryParams.examineTag = this.activeIndex
    this.getList();
    this.areaSelect();
    chart = echarts.init(this.$refs.barChart);
    this.setChartOption(this.checkScoreList);
    this.areaSelect()
    // this.setChartOption(this.checkScoreList);
  },
  methods: {
    jumpDetail(index) {
@@ -353,10 +357,12 @@
    areaSelect() {
      areaSelect().then(res => {
        this.areaList = res.data;
        this.getList();
      })
    },
    translateDeptId(deptId) {
      const department = this.areaList.find(dept => dept.id === deptId);
      console.log(deptId,this.areaList)
      return department ? department.value : '未知';
    },
@@ -413,7 +419,7 @@
      console.log(this.queryParams);
      listScore(this.queryParams).then(response => {
        this.checkScoreList = response.data;
        console.log(this.checkScoreList);
        this.setChartOption(this.checkScoreList);
        this.loading = false;
      });