From a09099de00d6c13ebdaefb97f4c119948d73a7a3 Mon Sep 17 00:00:00 2001
From: quanyawei <401863037@qq.com>
Date: Mon, 06 Nov 2023 17:33:47 +0800
Subject: [PATCH] fix:小程序订阅消息

---
 pages/actionChange/newPage/index.vue |   18 ++++++++++++++----
 1 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/pages/actionChange/newPage/index.vue b/pages/actionChange/newPage/index.vue
index e84ee88..39a7fcb 100644
--- a/pages/actionChange/newPage/index.vue
+++ b/pages/actionChange/newPage/index.vue
@@ -35,8 +35,10 @@
 					type="select" />
 				<u-icon slot="right" name="arrow-right" />
 			</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(sumbitForm.changeType)===1'>
+				<u-input v-model="form.changeDay" border="none" type="number"
+					:disabled='Number(sumbitForm.changeType)===1' />
 			</u-form-item>
 			<u-form-item border-bottom label="������������:" prop="escalationUnitId" required @click="
 					showCheckBox = true;
@@ -218,6 +220,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) {
@@ -265,8 +275,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