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 })