政策征求意见流程 政策征求意见列表 删除与批量删除
This commit is contained in:
+12
-11
@@ -320,7 +320,6 @@ export default {
|
|||||||
this.selectList = row
|
this.selectList = row
|
||||||
},
|
},
|
||||||
batchDeleteModel () {
|
batchDeleteModel () {
|
||||||
console.log(1)
|
|
||||||
if (this.selectList && this.selectList.length > 0) {
|
if (this.selectList && this.selectList.length > 0) {
|
||||||
this.$confirm('确认删除这些数据?', '提示', {
|
this.$confirm('确认删除这些数据?', '提示', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
@@ -329,20 +328,21 @@ export default {
|
|||||||
type: 'warning',
|
type: 'warning',
|
||||||
roundButton: false
|
roundButton: false
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
console.log(2)
|
let deleteIds = this.selectList.map(val => val.id)
|
||||||
const deleteIds = this.selectList.map(val => val.id)
|
deleteIds = deleteIds.join(',')
|
||||||
this.$http.delete('lawss/activiti/deletePolicitOpinionEOList', { ids: deleteIds }).then(res => {
|
this.$http.delete('lawss/activiti/deletePolicitOpinionEOList', { ids: deleteIds }, {
|
||||||
|
_this: this
|
||||||
|
}, res => {
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
this.getData()
|
this.getData()
|
||||||
this.resetSelect()
|
this.$refs.selection.clearSelection()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
|
||||||
})
|
})
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
// 取消删除,清空选择
|
// 取消删除,清空选择
|
||||||
this.$refs.selection.clearSelection();
|
this.$refs.selection.clearSelection()
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning('请选择至少一条数据');
|
this.$message.warning('请选择至少一条数据');
|
||||||
@@ -368,14 +368,15 @@ export default {
|
|||||||
type: 'warning',
|
type: 'warning',
|
||||||
roundButton: false
|
roundButton: false
|
||||||
}).then(() => {
|
}).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) {
|
if (res.ok) {
|
||||||
this.getData()
|
this.getData()
|
||||||
this.resetSelect()
|
this.$refs.selection.clearSelection()
|
||||||
} else {
|
}else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
|
||||||
})
|
})
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
// 取消删除,清空选择
|
// 取消删除,清空选择
|
||||||
|
|||||||
Reference in New Issue
Block a user