From 834cf8ba6e60ac16abc780a84f6b3ce6961b3119 Mon Sep 17 00:00:00 2001 From: "@jyuhsin" <729757837@qq.com> Date: Thu, 16 Jan 2025 21:07:40 +0800 Subject: [PATCH] commit --- .../sys/club/regist/clubRegistApply.html | 30 +++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/src/main/resources/views/platform/sys/club/regist/clubRegistApply.html b/src/main/resources/views/platform/sys/club/regist/clubRegistApply.html index 871bfb7..d79e37b 100644 --- a/src/main/resources/views/platform/sys/club/regist/clubRegistApply.html +++ b/src/main/resources/views/platform/sys/club/regist/clubRegistApply.html @@ -674,6 +674,12 @@ layout("/layouts/platform.html"){ this.$message.warning('请至少选择20位协会成员') return } + const loading = this.$loading({ + lock: true, + text: '数据提交中...', + spinner: 'el-icon-loading', + background: 'rgba(0, 0, 0, 0.7)' + }) const cloneData = clone(this.formData) let array = [] if(this.formData.sponsor) { @@ -684,15 +690,35 @@ layout("/layouts/platform.html"){ }) } cloneData.sponsors = array + let submitManagePerson = [] + this.managePerson.forEach(item => { + submitManagePerson.push({ + userId: item.userId, + sf: item.sf, + invite: item.invite, + status: item.status + }) + }) + let submitClubUserTableData = [] + this.clubUserTableData.forEach(item => { + submitClubUserTableData.push({ + userId: item.userId, + sf: item.sf, + invite: item.invite, + status: item.status + }) + }) const url = GetQueryString("id") !== '' ? '/platform/sys/club/clubRegistApply/doEdit' : '/platform/sys/club/clubRegistApply/doAdd' + delete cloneData.clubuser const resp = await $.post(url, { club: JSON.stringify(cloneData), isSave: flag, isSchool: false, - managePerson: this.managePerson, - clubUserList: this.clubUserTableData, + managePerson: submitManagePerson, + clubUserList: submitClubUserTableData, deleteIds: JSON.stringify(this.deleteIds), }) + loading.close() if (resp.code === 0) { this.$message.success(resp.msg) sublime.jumpPagePjax('/platform/sys/club/clubMyApply')