|
@@ -340,6 +340,7 @@ export default {
|
|
|
},
|
|
|
/** 删除按钮操作 */
|
|
|
handleDelete(row) {
|
|
|
+ const Ids = (row.deptId && [row.deptId]) || this.ids
|
|
|
this.$confirm(
|
|
|
'是否确认删除名称为"' + row.deptName + '"的数据项?',
|
|
|
'警告',
|
|
@@ -350,7 +351,7 @@ export default {
|
|
|
}
|
|
|
)
|
|
|
.then(function() {
|
|
|
- return delDept(row.deptId)
|
|
|
+ return delDept({ 'ids': Ids })
|
|
|
}).then((response) => {
|
|
|
if (response.code === 200) {
|
|
|
this.msgSuccess(response.msg)
|