政策征求意见流程 政策征求意见列表 删除与批量删除
This commit is contained in:
+12
-11
@@ -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(() => {
|
||||
// 取消删除,清空选择
|
||||
|
||||
Reference in New Issue
Block a user