commit
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user