数据同步

This commit is contained in:
lSun 2025-02-20 19:44:15 +08:00
parent 6d1132a498
commit 5e77cda7c8
4 changed files with 15 additions and 8 deletions

View File

@ -642,6 +642,7 @@
title: this.isEdit ? '修改成功' : '新增成功', title: this.isEdit ? '修改成功' : '新增成功',
icon: 'success', icon: 'success',
}) })
this.isEdit = false
setTimeout(() => { setTimeout(() => {
uni.navigateBack({ uni.navigateBack({
delta: 1, delta: 1,
@ -649,12 +650,13 @@
}, 1500) }, 1500)
} else { } else {
uni.showToast({ uni.showToast({
title: '提交失败,请稍后再试', title: response.msg,
icon: 'none', icon: 'none',
time: '5000'
}) })
} }
// //
this.isEdit = false
this.isFormDisabled = false this.isFormDisabled = false
this.isDataUploaded = false this.isDataUploaded = false
}) })

View File

@ -473,6 +473,7 @@
title: this.isEdit ? '修改成功' : '新增成功', title: this.isEdit ? '修改成功' : '新增成功',
icon: 'success', icon: 'success',
}) })
this.isEdit = false
// //
setTimeout(() => { setTimeout(() => {
uni.navigateBack({ uni.navigateBack({
@ -481,12 +482,12 @@
}, 1500) // 便 }, 1500) // 便
} else { } else {
uni.showToast({ uni.showToast({
title: '提交失败,请稍后再试', title: response.msg,
icon: 'none', icon: 'none',
time:'5000'
}) })
} }
// //
this.isEdit = false
this.isFormDisabled = false this.isFormDisabled = false
this.isDataUploaded = false this.isDataUploaded = false
}) })

View File

@ -489,6 +489,7 @@
title: this.isEdit ? '修改成功' : '新增成功', title: this.isEdit ? '修改成功' : '新增成功',
icon: 'success', icon: 'success',
}) })
this.isEdit = false
// //
setTimeout(() => { setTimeout(() => {
uni.navigateBack({ uni.navigateBack({
@ -497,12 +498,13 @@
}, 1500) // 便 }, 1500) // 便
} else { } else {
uni.showToast({ uni.showToast({
title: '提交失败,请稍后再试', title: response.msg,
icon: 'none', icon: 'none',
time:'5000'
}) })
} }
// //
this.isEdit = false
this.isFormDisabled = false this.isFormDisabled = false
this.isDataUploaded = false this.isDataUploaded = false
}) })

View File

@ -489,6 +489,7 @@
title: this.isEdit ? '修改成功' : '新增成功', title: this.isEdit ? '修改成功' : '新增成功',
icon: 'success', icon: 'success',
}) })
this.isEdit = false
// //
setTimeout(() => { setTimeout(() => {
uni.navigateBack({ uni.navigateBack({
@ -497,12 +498,13 @@
}, 1500) // 便 }, 1500) // 便
} else { } else {
uni.showToast({ uni.showToast({
title: '提交失败,请稍后再试', title: response.msg,
icon: 'none', icon: 'none',
time:'5000'
}) })
} }
// //
this.isEdit = false
this.isFormDisabled = false this.isFormDisabled = false
this.isDataUploaded = false this.isDataUploaded = false
}) })