quanyawei
2023-11-15 50872b80a596415e5e9d60135f4808ef8e31a507
src/views/toCarryOutLegislativeReforms/components/newWorkOrder.vue
@@ -75,10 +75,10 @@
          </el-row>
          <el-row>
            <el-col :span="24">
              <el-form-item label="重点任务分类:" prop="keyPoint" class="span">
                <el-checkbox-group v-model="formData.keyPoint" :max="1" size="small">
                  <el-checkbox v-for="item in Dic.emphasisEnum" :label="item.value" :key="item.value">{{ item.name }}</el-checkbox>
                </el-checkbox-group>
              <el-form-item label="任务分类:" prop="keyPointlist" class="span">
                <el-radio-group v-model="formData.keyPoint" size="small">
                  <el-radio v-for="item in Dic.emphasisEnum" :key="item.value" :label="item.value">{{ item.name }}</el-radio>
                </el-radio-group>
              </el-form-item>
            </el-col>
          </el-row>
@@ -144,7 +144,7 @@
        escalationTime: new Date(),
        fileBaseList: [],
        escalationName: '',
        keyPoint: [],
        keyPoint: 0,
        changeDay: 0,
        investigationType: 1
      },
@@ -244,6 +244,9 @@
    })
  },
  methods: {
    changeKeyPoint(data) {
      this.$forceUpdate()
    },
    getPreviewImages(index, list) {
      let startIndex = 0
      const chechList = _.cloneDeep(list)
@@ -296,9 +299,7 @@
        if (!(JSON.stringify(this.parentFormData) === '{}')) {
          this.formData = this.parentFormData
          this.formData.polluteType = String(this.parentFormData.polluteType)
          this.formData.keyPoint = this.parentFormData.keyPoint
            ? [Number(this.parentFormData.keyPoint)]
            : []
          this.formData.keyPoint = Number(this.parentFormData.keyPoint)
        } else {
          const name = this.$store.state.user.name
          this.formData.escalationName = name
@@ -326,8 +327,7 @@
        })
      }
      this.formData.state = val
      this.formData.keyPoint =
        this.formData.keyPoint.length > 0 ? this.formData.keyPoint[0] : ''
      this.$refs.ruleForm.validate(valid => {
        if (valid) {
          // this.formData.fileBaseList = [...this.parentFormData.fileBaseList, this.formData.fileBaseList]
@@ -383,4 +383,7 @@
    }
  }
}
/deep/.el-checkbox__inner {
  border-radius: 50%;
}
</style>