From 6f922e8b81cacf9d6fd99ae7aeba06e8c6370e4f Mon Sep 17 00:00:00 2001 From: quanyawei <401863037@qq.com> Date: Wed, 15 Nov 2023 09:53:48 +0800 Subject: [PATCH] fix:小程序任务分类 --- pages/actionChange/newPage/index.vue | 36 +++++++----------------------------- 1 files changed, 7 insertions(+), 29 deletions(-) diff --git a/pages/actionChange/newPage/index.vue b/pages/actionChange/newPage/index.vue index 5198746..3c53e01 100644 --- a/pages/actionChange/newPage/index.vue +++ b/pages/actionChange/newPage/index.vue @@ -54,12 +54,10 @@ </u-radio-group> </u-form-item> <u-form-item border-bottom label="������������:" prop="keyPoint"> - <u-checkbox-group v-model="form.keyPoint" placement='column' style="font-size: 13px;" - @change='changeKeyPoint'> - <u-checkbox :key="index" v-for="(item, index) in emphasisEnumlist" - :customStyle="{marginTop: '10px'}" shape="circle" :label="item.name" :name="item.value" - :disabled="item.disabled"></u-checkbox> - </u-checkbox-group> + <u-radio-group v-model="form.keyPoint" style="font-size: 13px;" placement='column'> + <u-radio :key="index" v-for="(item, index) in Dic.emphasisEnum" :customStyle="{marginTop: '10px'}" + :label="item.name" :name="item.value" /> + </u-radio-group> </u-form-item> <u-form-item border-bottom label="������������:" prop="problemDescribe" required> <u--textarea v-model="form.problemDescribe" border="none" placeholder="���������������" /> @@ -155,7 +153,7 @@ escalationTime: '', problemDescribe: '', pollutePosition: '', - keyPoint: [] + keyPoint: 0 }, sumbitForm: { unitId: '', @@ -172,7 +170,6 @@ unitList: [], polluteList: [], fileBaseList: [], - emphasisEnumlist: [] } }, onReady() { @@ -193,23 +190,6 @@ return false }, methods: { - changeKeyPoint(name) { - if (name.length > 0) { - this.sumbitForm.keyPoint = name[0] - this.emphasisEnumlist.forEach(item => { - if (item.value === name[0]) { - item.disabled = false - } else { - item.disabled = true - } - }) - } else { - this.emphasisEnumlist.forEach(item => { - item.disabled = false - }) - } - console.log(this.emphasisEnumlist) - }, handleFile(data) { console.log('datadata', data) this.fileBaseList = data @@ -258,6 +238,7 @@ this.sumbitForm.escalationTime = data }, submit() { + console.log('this.sumbitForm', this.form) this.$refs.uForm.validate().then(res => { this.sumbitForm.problemDescribe = this.form.problemDescribe this.sumbitForm.pollutePosition = this.form.pollutePosition @@ -266,6 +247,7 @@ this.sumbitForm.investigationType = this.form.investigationType this.sumbitForm.fileBaseList = this.fileBaseList this.sumbitForm.changeType = this.form.changeType + this.sumbitForm.keyPoint = this.form.keyPoint this.sumbitForm.state = '20' console.log('this.sumbitForm', this.sumbitForm) this.$http.httpPost('/allocation/insert', { @@ -309,10 +291,6 @@ this.Dic = JSON.parse(uni.getStorageSync('dict') || '[]') this.changeEnum = this.Dic.changeEnum this.changeEnum = this.Dic.changeEnum - this.emphasisEnumlist = this.Dic.emphasisEnum.map(item => { - item.disabled = false - return item - }) this.setDefaultValue() }) }, -- Gitblit v1.8.0