From 7984e0d8cebf4179f7ee3e2046207edd12398cf6 Mon Sep 17 00:00:00 2001
From: quanyawei <401863037@qq.com>
Date: Thu, 09 Nov 2023 14:47:09 +0800
Subject: [PATCH] fix:小程序详情修改
---
pages/actionChange/newPage/index.vue | 40 +++++++++++++++++++++-------------------
1 files changed, 21 insertions(+), 19 deletions(-)
diff --git a/pages/actionChange/newPage/index.vue b/pages/actionChange/newPage/index.vue
index e84ee88..691a507 100644
--- a/pages/actionChange/newPage/index.vue
+++ b/pages/actionChange/newPage/index.vue
@@ -27,16 +27,14 @@
type="select" />
<u-icon slot="right" name="arrow-right" />
</u-form-item>
- <u-form-item border="none" border-bottom label="������������:" prop="changeType" required @click="
- showCheckBox = true;
- hideKeyboard('changeEnum', 'changeType');
- ">
- <u-input v-model="form.changeType" border="none" disabled disabled-color="#ffffff" placeholder="���������"
- type="select" />
- <u-icon slot="right" name="arrow-right" />
+ <u-form-item border="none" border-bottom label="������������:" prop="changeType" required>
+ <u-radio-group v-model="form.changeType" style="font-size: 13px;">
+ <u-radio :key="index" v-for="(item, index) in changeEnum" :customStyle="{marginRight: '16px'}"
+ :label="item.name" :name="item.value" />
+ </u-radio-group>
</u-form-item>
- <u-form-item border-bottom label="������������:" placeholder="���������" required>
- <u-input v-model="form.changeDay" border="none" type="number" />
+ <u-form-item border-bottom label="������������:" placeholder="���������" required :disabled='Number(form.changeType)===1'>
+ <u-input v-model="form.changeDay" border="none" type="number" :disabled='Number(form.changeType)===1' />
</u-form-item>
<u-form-item border-bottom label="������������:" prop="escalationUnitId" required @click="
showCheckBox = true;
@@ -52,7 +50,7 @@
<u-form-item border-bottom label="������������:" prop="investigationType" required>
<u-radio-group v-model="form.investigationType" style="font-size: 13px;">
<u-radio :key="index" v-for="(item, index) in Dic.investigationEnum"
- :custom-style="{marginRight: '8px'}" :label="item.name" :name="item.value" />
+ :customStyle="{marginRight: '16px'}" :label="item.name" :name="item.value" />
</u-radio-group>
</u-form-item>
<u-form-item border-bottom label="������������:" prop="problemDescribe" required>
@@ -65,7 +63,7 @@
</u-form-item>
</u-form>
<u-picker :show="showCheckBox" keyName="label" :columns="actionOptionList" @cancel="showCheckBox = false"
- @confirm="selectBack"></u-picker>
+ :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">
@@ -100,11 +98,6 @@
trigger: ['blur', 'change']
},
'polluteType': {
- required: true,
- message: '���������',
- trigger: ['blur', 'change']
- },
- 'changeType': {
required: true,
message: '���������',
trigger: ['blur', 'change']
@@ -218,6 +211,14 @@
console.log(e)
this.form[this.currentKey] = e.value[0].label
this.sumbitForm[this.currentKey] = e.value[0].id
+ console.log('this.form.changeType', this.currentKey)
+ if (Number(this.sumbitForm.changeType) !== 1) {
+ this.sumbitForm.changeDay = '0'
+ this.form.changeDay = '0'
+ } else {
+ this.sumbitForm.changeDay = ''
+ this.form.changeDay = ''
+ }
this.showCheckBox = false
},
checkTime(e) {
@@ -235,6 +236,7 @@
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.state = '20'
console.log('this.sumbitForm', this.sumbitForm)
this.$http.httpPost('/allocation/insert', {
@@ -253,7 +255,7 @@
this.form.escalationTime = data
this.sumbitForm.escalationTime = data
if (this.changeEnum.length > 0) {
- this.form.changeType = this.changeEnum[0].name
+ this.form.changeType = this.changeEnum[0].value
this.sumbitForm.changeType = this.changeEnum[0].value
}
let userInfor = JSON.parse(uni.getStorageSync('userInfor') || '{}')
@@ -265,8 +267,8 @@
this.form.escalationUnitId = data
this.sumbitForm.escalationUnitId = userInfor.unitId
}
- this.form.escalationName = userInfor.name || ''
- this.sumbitForm.escalationName = userInfor.name || ''
+ this.form.escalationName = userInfor.userName || ''
+ this.sumbitForm.escalationName = userInfor.userName || ''
this.form.investigationType = 1
this.sumbitForm.investigationType = 1
console.log('this.sumbitForm', this.sumbitForm)
--
Gitblit v1.8.0