hejianhao
2026-01-29 d019dcb2d57e42ff4a030463aaece44bc57bda63
screen/src/view/hiddenDanger/index.vue
@@ -327,7 +327,7 @@
          prop="createTime"
          min-width="180"
        />
        <el-table-column label="整改状态" min-width="120">
        <el-table-column v-if="showReformedFilter" label="整改状态" min-width="120">
          <template #default="{ row }">
            <div class="flex a-center j-center">
              <div class="ripple">
@@ -654,6 +654,7 @@
      // localStorage 配置
      bigHiddenDangerConfig: null, // 重大隐患配置:1开启 2关闭
      generalHiddenDangerConfig: null, // 一般隐患配置:1开启 2关闭
      projectCategory: null,
    };
  },
  computed: {
@@ -755,6 +756,9 @@
    }
    if (this.$route.query.projectName) {
      this.projectName = this.$route.query.projectName;
    }
    if (this.$route.query.projectCategory) {
      this.projectCategory = this.$route.query.projectCategory;
    }
    // 判断是否委托方端:通过 projectId 判断
@@ -874,6 +878,9 @@
          // 项目端:传递 type
          params.type = this.currentType;
        } else {
          if (this.projectCategory) {
            params.projectCategory = this.projectCategory
          }
          // 委托方:只在重大隐患 Tab 且用户选择了类型时传递 type
          if (this.activeTab === 1 && this.searchForm.type) {
            params.type = this.searchForm.type;