修改 加入标准化协会信息备案流程 未填写展示提示信息和该流程本身存在的问题
This commit is contained in:
@@ -548,18 +548,16 @@ export default {
|
||||
parList.forEach(items => {
|
||||
if(items.name === item.workPeople){
|
||||
this.$message.warning('请勿重复添加参与人')
|
||||
return
|
||||
}else{
|
||||
throw new Error('请勿重复添加参与人')
|
||||
}
|
||||
})
|
||||
})
|
||||
}else{
|
||||
this.participantsData = data
|
||||
this.participantsData.forEach(item => {
|
||||
}
|
||||
this.participantsData[this.selectedId] = data[0]
|
||||
this.participantsData.forEach(item => {
|
||||
this.$set(item, "workPeople", item.name)
|
||||
});
|
||||
this.participantsData = JSON.parse(JSON.stringify(this.participantsData));
|
||||
}
|
||||
this.participantsData = JSON.parse(JSON.stringify(this.participantsData));
|
||||
},
|
||||
|
||||
handleTabs(type) {
|
||||
@@ -618,6 +616,33 @@ export default {
|
||||
//流程提交
|
||||
handleSubmit() {
|
||||
this.isSubmit = true
|
||||
let isValid1 = true
|
||||
let isValid2 = true
|
||||
this.participantsData.forEach(item => {
|
||||
if (Array.isArray(item) && item.length === 0) {
|
||||
this.isSubmit = false
|
||||
isValid1 = false
|
||||
}else if (typeof item === 'object') {
|
||||
if (!item.accounts || !item.duties || !item.email || !item.passwords) {
|
||||
this.isSubmit = false
|
||||
isValid1 = false
|
||||
}
|
||||
}
|
||||
})
|
||||
this.associationData.forEach(item => {
|
||||
if (!item.contactPerson || !item.mailbox || !item.telephone) {
|
||||
this.isSubmit = false
|
||||
isValid2 = false
|
||||
}
|
||||
})
|
||||
if (!isValid1) {
|
||||
this.$message.warning('请完善参与人信息')
|
||||
return
|
||||
}
|
||||
if (!isValid2) {
|
||||
this.$message.warning('请完善协会信息')
|
||||
return
|
||||
}
|
||||
this.wbbzform.dlFlag = '1'
|
||||
this.wbbzform.comityOptionsOne = this.comityOptionsOne
|
||||
this.wbbzform.comityOptionsTwo = this.comityOptionsTwo
|
||||
@@ -698,7 +723,30 @@ export default {
|
||||
},
|
||||
//批量删除协会信息
|
||||
deleteSociety(){
|
||||
|
||||
if(this.selectList2.length < 1){
|
||||
this.$message.warning('请选择一条数据进行删除')
|
||||
}else{
|
||||
this.$confirm('您确认删除这些数据?', '提示', {
|
||||
confirmButtonText: "确认",
|
||||
confirmButtonClass: "common-button-primary",
|
||||
cancelButtonText: "取消",
|
||||
type: "warning"
|
||||
}).then(() => {
|
||||
let exits = [];
|
||||
this.selectList2.map(item => {
|
||||
let index;
|
||||
index = this.associationData.findIndex(items => {
|
||||
return items.account === item;
|
||||
});
|
||||
if (index > -1) {
|
||||
this.associationData.splice(index, 1);
|
||||
}
|
||||
exits.push(item);
|
||||
});
|
||||
this.selectList2 = [];
|
||||
}).catch(() => {
|
||||
});
|
||||
}
|
||||
},
|
||||
// 删除上传的文件
|
||||
delFileInfo(file, fileList) {
|
||||
|
||||
Reference in New Issue
Block a user