|
@ -337,7 +337,7 @@ export default { |
|
|
showSupervise: false, |
|
|
showSupervise: false, |
|
|
selVoiceUrl: "", |
|
|
selVoiceUrl: "", |
|
|
|
|
|
|
|
|
multipleSelection: [], |
|
|
ids: [], |
|
|
|
|
|
|
|
|
superviseFrom:{ |
|
|
superviseFrom:{ |
|
|
content: "", |
|
|
content: "", |
|
@ -418,28 +418,22 @@ export default { |
|
|
}) |
|
|
}) |
|
|
.then(() => { |
|
|
.then(() => { |
|
|
const url = "/governance/icEventSpecialSubject/delete"; |
|
|
const url = "/governance/icEventSpecialSubject/delete"; |
|
|
const ids = new FormData(); |
|
|
const formData = new FormData(); |
|
|
this.multipleSelection.forEach(item=>{ |
|
|
this.ids.forEach(item=>{ |
|
|
console.log(item,"ds;flk;sd"); |
|
|
console.log(item,"ds;flk;sd"); |
|
|
ids.append(item) |
|
|
formData.append('ids',item.ids) |
|
|
} |
|
|
} |
|
|
) |
|
|
) |
|
|
// const parms={ |
|
|
requestPost(url, formData).then(res=>{ |
|
|
// ids:this.multipleSelection |
|
|
if (res.code === 0) { |
|
|
// } |
|
|
|
|
|
// console.log(this.multipleSelection,"dflkjslkif");new FormData() |
|
|
|
|
|
|
|
|
|
|
|
// this.multipleSelection.forEach(id => { |
|
|
|
|
|
// ids.append('ids', id); // 'ids' 为后端期望的参数名 |
|
|
|
|
|
// }); |
|
|
|
|
|
const { data, code, msg } = requestPost(url, ids); |
|
|
|
|
|
if (code === 0) { |
|
|
|
|
|
this.$message.success("删除成功!"); |
|
|
this.$message.success("删除成功!"); |
|
|
this.getTableData(); |
|
|
this.getTableData(); |
|
|
} else { |
|
|
} else { |
|
|
this.$message.error("操作失败!"); |
|
|
this.$message.error("操作失败!"); |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
.catch((err) => { }); |
|
|
.catch((err) => { }); |
|
|
}, |
|
|
}, |
|
|
async handleOpenClose(row){ |
|
|
async handleOpenClose(row){ |
|
@ -505,12 +499,12 @@ export default { |
|
|
handleSelectionChange(val) { |
|
|
handleSelectionChange(val) { |
|
|
console.log(val,"dsfd"); |
|
|
console.log(val,"dsfd"); |
|
|
|
|
|
|
|
|
this.multipleSelection = []; |
|
|
this.ids = []; |
|
|
val.forEach((element) => { |
|
|
val.forEach((element) => { |
|
|
this.multipleSelection.push({'ids':element.id}); |
|
|
this.ids.push({'ids':element.id}); |
|
|
}); |
|
|
}); |
|
|
console.log(val, |
|
|
console.log(val, |
|
|
this.multipleSelection,"handleSuperviseEvent"); |
|
|
this.ids,"handleSuperviseEvent"); |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
handleSearch(val) { |
|
|
handleSearch(val) { |
|
@ -583,34 +577,21 @@ export default { |
|
|
}, |
|
|
}, |
|
|
async delSpecial(eventId) { |
|
|
async delSpecial(eventId) { |
|
|
const url = "/governance/icEventSpecialSubject/delete"; |
|
|
const url = "/governance/icEventSpecialSubject/delete"; |
|
|
let ids = [eventId]; |
|
|
const formData = new FormData(); |
|
|
const { data, code, msg } = await requestPost(url, ids); |
|
|
formData.append('ids', eventId) ; |
|
|
if (code === 0) { |
|
|
requestPost(url, formData).then(res => { |
|
|
|
|
|
if (res.code === 0) { |
|
|
this.$message.success("删除成功!"); |
|
|
this.$message.success("删除成功!"); |
|
|
this.getTableData(); |
|
|
this.getTableData(); |
|
|
} else { |
|
|
} else { |
|
|
this.$message.error("操作失败!"); |
|
|
this.$message.error("操作失败!"); |
|
|
} |
|
|
} |
|
|
|
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
async getTableData() { |
|
|
async getTableData() { |
|
|
const url = "/governance/icEventSpecialSubject/page"; |
|
|
const url = "/governance/icEventSpecialSubject/page"; |
|
|
console.log(this.formData,"formData"); |
|
|
console.log(this.formData,"formData"); |
|
|
// if (this.eventTypeCheck) { |
|
|
|
|
|
// this.formData.secondIdList = this.eventTypeCheck |
|
|
|
|
|
// } |
|
|
|
|
|
// 处理 agencyId |
|
|
|
|
|
// if (Array.isArray(this.formData.agencyId) && this.formData.agencyId.length) { |
|
|
|
|
|
// if(this.level=="grid"){ |
|
|
|
|
|
// this.formData.gridId = this.formData.agencyId[this.formData.agencyId.length - 1]; |
|
|
|
|
|
// this.formData.agencyId = ""; |
|
|
|
|
|
// }else{ |
|
|
|
|
|
// this.formData.agencyId = this.formData.agencyId[this.formData.agencyId.length - 1]; |
|
|
|
|
|
// this.formData.gridId = ""; |
|
|
|
|
|
// } |
|
|
|
|
|
// } else { |
|
|
|
|
|
// this.formData.agencyId = ""; |
|
|
|
|
|
// this.formData.gridId = ""; |
|
|
|
|
|
// } |
|
|
// } |
|
|
const { pageSize, pageNo, formData } = this; |
|
|
const { pageSize, pageNo, formData } = this; |
|
|
const { data, code, msg } = await requestPost(url, { |
|
|
const { data, code, msg } = await requestPost(url, { |
|
|