diff --git a/src/project/beta/AppGridManagement/AddGird.vue b/src/project/beta/AppGridManagement/AddGird.vue index f9976143..4d88f200 100644 --- a/src/project/beta/AppGridManagement/AddGird.vue +++ b/src/project/beta/AppGridManagement/AddGird.vue @@ -86,6 +86,7 @@ export default { name: item.name } }) + uni.showLoading({mask: true}) this.$http.post(`/app/appgirdinfo/addOrUpdateByEw`, {...this.form, girdMemberManageList, girdMemberList}).then((res) => { if (res?.code == 0) { this.$u.toast('提交成功') @@ -96,7 +97,7 @@ export default { } }).catch((err) => { this.$u.toast(err) - }) + }).finally(() => uni.hideLoading()) }, getArrayLabel(arr, key = 'name', separation = ',') { diff --git a/src/saas/AppGridManagement/AddGird.vue b/src/saas/AppGridManagement/AddGird.vue index 6874e3e0..3ee07f7c 100644 --- a/src/saas/AppGridManagement/AddGird.vue +++ b/src/saas/AppGridManagement/AddGird.vue @@ -115,6 +115,7 @@ export default { if (!this.form.girdName) { return this.$u.toast('请输入网格名称') } + uni.showLoading({mask: true}) this.$http.post(`/app/appgirdinfo/addOrUpdateByEw`, {...this.form}).then((res) => { if (res.code == 0) { this.$u.toast('提交成功') @@ -125,7 +126,7 @@ export default { } }).catch((err) => { this.$u.toast(err) - }) + }).finally(() => uni.hideLoading()) } }