| | |
| | | </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-form-item label="任务分类:" prop="keyPointlist" class="span"> |
| | | <el-checkbox-group v-model="formData.keyPointlist" :max="1" size="small" @change='changeKeyPoint'> |
| | | <el-checkbox v-for="item in Dic.emphasisEnum" :label="item.value" :key="item.value">{{ item.name }}</el-checkbox> |
| | | </el-checkbox-group> |
| | | </el-form-item> |
| | |
| | | escalationTime: new Date(), |
| | | fileBaseList: [], |
| | | escalationName: '', |
| | | keyPoint: [], |
| | | keyPointlist: [], |
| | | changeDay: 0, |
| | | investigationType: 1 |
| | | }, |
| | |
| | | }) |
| | | }, |
| | | methods: { |
| | | changeKeyPoint(data) { |
| | | this.$forceUpdate() |
| | | }, |
| | | getPreviewImages(index, list) { |
| | | let startIndex = 0 |
| | | const chechList = _.cloneDeep(list) |
| | |
| | | if (!(JSON.stringify(this.parentFormData) === '{}')) { |
| | | this.formData = this.parentFormData |
| | | this.formData.polluteType = String(this.parentFormData.polluteType) |
| | | this.formData.keyPoint = this.parentFormData.keyPoint |
| | | this.formData.keyPointlist = this.parentFormData.keyPoint |
| | | ? [Number(this.parentFormData.keyPoint)] |
| | | : [] |
| | | } else { |
| | |
| | | } |
| | | this.formData.state = val |
| | | this.formData.keyPoint = |
| | | this.formData.keyPoint.length > 0 ? this.formData.keyPoint[0] : '' |
| | | this.formData.keyPointlist.length > 0 |
| | | ? this.formData.keyPointlist[0] |
| | | : '' |
| | | this.$refs.ruleForm.validate(valid => { |
| | | if (valid) { |
| | | // this.formData.fileBaseList = [...this.parentFormData.fileBaseList, this.formData.fileBaseList] |
| | |
| | | } |
| | | } |
| | | } |
| | | /deep/.el-checkbox__inner { |
| | | border-radius: 50%; |
| | | } |
| | | </style> |