From 8d0312a61844803e15ca08538bfc40f724c2b314 Mon Sep 17 00:00:00 2001 From: quanyawei <401863037@qq.com> Date: Wed, 15 Nov 2023 09:52:48 +0800 Subject: [PATCH] fix:立行立改添加修改责任单位 --- src/views/toCarryOutLegislativeReforms/components/newWorkOrder.vue | 17 ++++++----------- 1 files changed, 6 insertions(+), 11 deletions(-) diff --git a/src/views/toCarryOutLegislativeReforms/components/newWorkOrder.vue b/src/views/toCarryOutLegislativeReforms/components/newWorkOrder.vue index a1d1467..8781c41 100644 --- a/src/views/toCarryOutLegislativeReforms/components/newWorkOrder.vue +++ b/src/views/toCarryOutLegislativeReforms/components/newWorkOrder.vue @@ -76,9 +76,9 @@ <el-row> <el-col :span="24"> <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-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: '', - keyPointlist: [], + keyPoint: 0, changeDay: 0, investigationType: 1 }, @@ -299,9 +299,7 @@ if (!(JSON.stringify(this.parentFormData) === '{}')) { this.formData = this.parentFormData this.formData.polluteType = String(this.parentFormData.polluteType) - this.formData.keyPointlist = 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 @@ -329,10 +327,7 @@ }) } this.formData.state = val - this.formData.keyPoint = - 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] -- Gitblit v1.8.0