From 5e77cda7c8ccbe62a71b692588d65ca5ebeb7080 Mon Sep 17 00:00:00 2001 From: lSun <15893999301@qq.com> Date: Thu, 20 Feb 2025 19:44:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/evection/index.vue | 6 ++++-- src/pages/holiday/index.vue | 5 +++-- src/pages/stagger-holidays/index.vue | 6 ++++-- src/pages/temporary-outing/index.vue | 6 ++++-- 4 files changed, 15 insertions(+), 8 deletions(-) diff --git a/src/pages/evection/index.vue b/src/pages/evection/index.vue index 7a4af90..1c141bc 100644 --- a/src/pages/evection/index.vue +++ b/src/pages/evection/index.vue @@ -642,6 +642,7 @@ title: this.isEdit ? '修改成功' : '新增成功', icon: 'success', }) + this.isEdit = false setTimeout(() => { uni.navigateBack({ delta: 1, @@ -649,12 +650,13 @@ }, 1500) } else { uni.showToast({ - title: '提交失败,请稍后再试', + title: response.msg, icon: 'none', + time: '5000' }) } // 重置表单状态 - this.isEdit = false + this.isFormDisabled = false this.isDataUploaded = false }) diff --git a/src/pages/holiday/index.vue b/src/pages/holiday/index.vue index 5c118b8..65bf39b 100644 --- a/src/pages/holiday/index.vue +++ b/src/pages/holiday/index.vue @@ -473,6 +473,7 @@ title: this.isEdit ? '修改成功' : '新增成功', icon: 'success', }) + this.isEdit = false // 成功后返回上一级 setTimeout(() => { uni.navigateBack({ @@ -481,12 +482,12 @@ }, 1500) // 可以根据需要调整这个延迟时间,以便用户可以看到成功的提示信息 } else { uni.showToast({ - title: '提交失败,请稍后再试', + title: response.msg, icon: 'none', + time:'5000' }) } // 重置表单状态 - this.isEdit = false this.isFormDisabled = false this.isDataUploaded = false }) diff --git a/src/pages/stagger-holidays/index.vue b/src/pages/stagger-holidays/index.vue index 978a161..236095a 100644 --- a/src/pages/stagger-holidays/index.vue +++ b/src/pages/stagger-holidays/index.vue @@ -489,6 +489,7 @@ title: this.isEdit ? '修改成功' : '新增成功', icon: 'success', }) + this.isEdit = false // 成功后返回上一级 setTimeout(() => { uni.navigateBack({ @@ -497,12 +498,13 @@ }, 1500) // 可以根据需要调整这个延迟时间,以便用户可以看到成功的提示信息 } else { uni.showToast({ - title: '提交失败,请稍后再试', + title: response.msg, icon: 'none', + time:'5000' }) } // 重置表单状态 - this.isEdit = false + this.isFormDisabled = false this.isDataUploaded = false }) diff --git a/src/pages/temporary-outing/index.vue b/src/pages/temporary-outing/index.vue index 9f8ba42..0676b99 100644 --- a/src/pages/temporary-outing/index.vue +++ b/src/pages/temporary-outing/index.vue @@ -489,6 +489,7 @@ title: this.isEdit ? '修改成功' : '新增成功', icon: 'success', }) + this.isEdit = false // 成功后返回上一级 setTimeout(() => { uni.navigateBack({ @@ -497,12 +498,13 @@ }, 1500) // 可以根据需要调整这个延迟时间,以便用户可以看到成功的提示信息 } else { uni.showToast({ - title: '提交失败,请稍后再试', + title: response.msg, icon: 'none', + time:'5000' }) } // 重置表单状态 - this.isEdit = false + this.isFormDisabled = false this.isDataUploaded = false })