fuliqi
2025-01-07 8f38cbf36743746bde6997cef3998eadc6e95e10
src/views/system/contract/score/index.vue
@@ -272,8 +272,11 @@
    };
  },
  created() {
    this.getList();
    this.getUnitSelect();
    if(this.$route.query.time){
      this.daterangeCreateTime= this.$route.query.time
    }
    this.getList();
  },
  methods: {
    /** 详细按钮操作 */
@@ -362,6 +365,13 @@
      // 运维单位下拉列表
      unitSelect().then((res) => {
        this.unitList = res.data;
        if (this.$route.query.unitId) {
          // 先找到对应的选项
          const unit = this.unitList.find(item => item.id === Number(this.$route.query.unitId) || item.id === this.$route.query.unitId);
          if (unit) {
            this.queryParams.unitId = unit.id; // 确保类型匹配
          }
        }
      })
    },
    /** 查询违规审核列表 */