commit
This commit is contained in:
@@ -674,6 +674,12 @@ layout("/layouts/platform.html"){
|
|||||||
this.$message.warning('请至少选择20位协会成员')
|
this.$message.warning('请至少选择20位协会成员')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
const loading = this.$loading({
|
||||||
|
lock: true,
|
||||||
|
text: '数据提交中...',
|
||||||
|
spinner: 'el-icon-loading',
|
||||||
|
background: 'rgba(0, 0, 0, 0.7)'
|
||||||
|
})
|
||||||
const cloneData = clone(this.formData)
|
const cloneData = clone(this.formData)
|
||||||
let array = []
|
let array = []
|
||||||
if(this.formData.sponsor) {
|
if(this.formData.sponsor) {
|
||||||
@@ -684,15 +690,35 @@ layout("/layouts/platform.html"){
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
cloneData.sponsors = array
|
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'
|
const url = GetQueryString("id") !== '' ? '/platform/sys/club/clubRegistApply/doEdit' : '/platform/sys/club/clubRegistApply/doAdd'
|
||||||
|
delete cloneData.clubuser
|
||||||
const resp = await $.post(url, {
|
const resp = await $.post(url, {
|
||||||
club: JSON.stringify(cloneData),
|
club: JSON.stringify(cloneData),
|
||||||
isSave: flag,
|
isSave: flag,
|
||||||
isSchool: false,
|
isSchool: false,
|
||||||
managePerson: this.managePerson,
|
managePerson: submitManagePerson,
|
||||||
clubUserList: this.clubUserTableData,
|
clubUserList: submitClubUserTableData,
|
||||||
deleteIds: JSON.stringify(this.deleteIds),
|
deleteIds: JSON.stringify(this.deleteIds),
|
||||||
})
|
})
|
||||||
|
loading.close()
|
||||||
if (resp.code === 0) {
|
if (resp.code === 0) {
|
||||||
this.$message.success(resp.msg)
|
this.$message.success(resp.msg)
|
||||||
sublime.jumpPagePjax('/platform/sys/club/clubMyApply')
|
sublime.jumpPagePjax('/platform/sys/club/clubMyApply')
|
||||||
|
|||||||
Reference in New Issue
Block a user