政策征求意见流程 政策征求意见列表 删除与批量删除

This commit is contained in:
baoyu
2024-04-12 09:24:36 +08:00
parent dcf37b5b60
commit 99c132443c
@@ -320,7 +320,6 @@ export default {
this.selectList = row
},
batchDeleteModel () {
console.log(1)
if (this.selectList && this.selectList.length > 0) {
this.$confirm('确认删除这些数据?', '提示', {
confirmButtonText: '确定',
@@ -329,20 +328,21 @@ export default {
type: 'warning',
roundButton: false
}).then(() => {
console.log(2)
const deleteIds = this.selectList.map(val => val.id)
this.$http.delete('lawss/activiti/deletePolicitOpinionEOList', { ids: deleteIds }).then(res => {
let deleteIds = this.selectList.map(val => val.id)
deleteIds = deleteIds.join(',')
this.$http.delete('lawss/activiti/deletePolicitOpinionEOList', { ids: deleteIds }, {
_this: this
}, res => {
if (res.ok) {
this.getData()
this.resetSelect()
this.$refs.selection.clearSelection()
} else {
this.$message.warning(res.message)
}
}).catch(() => {
})
}).catch(() => {
// 取消删除,清空选择
this.$refs.selection.clearSelection();
this.$refs.selection.clearSelection()
});
} else {
this.$message.warning('请选择至少一条数据');
@@ -368,14 +368,15 @@ export default {
type: 'warning',
roundButton: false
}).then(() => {
this.$http.delete('lawss/activiti/deletePolicitOpinionEOList', { ids: row.id }).then(res => {
this.$http.delete('lawss/activiti/deletePolicitOpinionEOList', { ids: row.id }, {
_this: this
}, res => {
if (res.ok) {
this.getData()
this.resetSelect()
} else {
this.$refs.selection.clearSelection()
}else {
this.$message.warning(res.message)
}
}).catch(() => {
})
}).catch(() => {
// 取消删除,清空选择