quanyawei
2023-11-15 34475f972c47ab1706f2e7b7640f1cd9b81ae1ea
Merge branch 'feature_1.0'
2 files modified
12 ■■■■■ changed files
src/views/toCarryOutLegislativeReforms/components/queryForm.vue 9 ●●●● patch | view | raw | blame | history
src/views/toCarryOutLegislativeReforms/reform/index.vue 3 ●●●● patch | view | raw | blame | history
src/views/toCarryOutLegislativeReforms/components/queryForm.vue
@@ -41,7 +41,7 @@
        </el-form-item>
        <el-form-item label="是否作废:">
          <el-select v-model="formData.isInvalid " placeholder="请选择" clearable size="small" @change="replacePerChange($event)">
          <el-select v-model="formData.isInvalid" placeholder="请选择" clearable size="small" @change="replaceIsInvalid($event)">
            <el-option v-for="item in Dic.yesOrNo" :key="item.value" :label="item.name" :value="item.value" />
          </el-select>
        </el-form-item>
@@ -62,7 +62,7 @@
  data() {
    return {
      formData: {
        isInvalid: 0,
        isInvalid: null,
        state: [9, 20, 30]
      },
      unitList: [],
@@ -75,6 +75,7 @@
  created() {
    this.getUnitList()
    this.formData.isInvalid = 0
    this.getContaminateList()
  },
  methods: {
@@ -95,6 +96,10 @@
        this.polluteList = res.data
      })
    },
    replaceIsInvalid(val) {
      this.formData.isInvalid = val
      this.$forceUpdate()
    },
    replacePerChange(val) {
      this.$forceUpdate()
    },
src/views/toCarryOutLegislativeReforms/reform/index.vue
@@ -263,7 +263,7 @@
    }
  },
  created() {
    this.handleSearch()
    this.handleSearch({ isInvalid: 0, state: [9, 20, 30] })
    this.getUnitList()
    this.getContaminateList()
  },
@@ -466,7 +466,6 @@
      this.handleSearch(obj)
    },
    handleSearch(obj) {
      this.searchData.isInvalid = 0
      if (obj) {
        this.searchData = obj
      }