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 | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/pages/actionChange/newPage/index.vue b/pages/actionChange/newPage/index.vue
index f9025c1..3c53e01 100644
--- a/pages/actionChange/newPage/index.vue
+++ b/pages/actionChange/newPage/index.vue
@@ -53,6 +53,12 @@
:customStyle="{marginRight: '16px'}" :label="item.name" :name="item.value" />
</u-radio-group>
</u-form-item>
+ <u-form-item border-bottom label="������������:" prop="keyPoint">
+ <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="���������������" />
</u-form-item>
@@ -63,7 +69,7 @@
</u-form-item>
</u-form>
<u-picker :show="showCheckBox" keyName="label" :columns="actionOptionList" @cancel="showCheckBox = false"
- :immediateChange='true' @confirm="selectBack"></u-picker>
+ :default-selector="[0]" :immediateChange='true' @confirm="selectBack"></u-picker>
<!-- <u-action-sheet v-if="actionOptionList.length > 0" :actions="actionOptionList" :show="showCheckBox" title="���������"
@close="showCheckBox = false" @select="selectBack" /> -->
<view class="bunts">
@@ -147,6 +153,7 @@
escalationTime: '',
problemDescribe: '',
pollutePosition: '',
+ keyPoint: 0
},
sumbitForm: {
unitId: '',
@@ -158,6 +165,7 @@
escalationTime: '',
problemDescribe: '',
pollutePosition: '',
+ keyPoint: null
},
unitList: [],
polluteList: [],
@@ -183,6 +191,7 @@
},
methods: {
handleFile(data) {
+ console.log('datadata', data)
this.fileBaseList = data
},
close() {
@@ -229,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
@@ -236,6 +246,8 @@
this.sumbitForm.escalationName = this.form.escalationName
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', {
@@ -278,6 +290,7 @@
this.unitList = res.data
this.Dic = JSON.parse(uni.getStorageSync('dict') || '[]')
this.changeEnum = this.Dic.changeEnum
+ this.changeEnum = this.Dic.changeEnum
this.setDefaultValue()
})
},
--
Gitblit v1.8.0