|
|
|
|
@ -331,7 +331,13 @@ export default { |
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
type: 'warning', |
|
|
|
|
}).then(() => {}); |
|
|
|
|
}).then(() => { |
|
|
|
|
let ids = this.selectionList.map(item => item.id); |
|
|
|
|
remove(ids.join(',')).then(() => { |
|
|
|
|
this.$message.success('删除成功'); |
|
|
|
|
this.onLoad(this.page,this.query); |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
// 多选 |
|
|
|
|
selectionChange(list) { |
|
|
|
|
@ -344,7 +350,7 @@ export default { |
|
|
|
|
// 获取新增数据的相关字段 |
|
|
|
|
const data = res.data.data; |
|
|
|
|
row.id = data.id; |
|
|
|
|
this.onLoad(this.page); |
|
|
|
|
this.onLoad(this.page,this.query); |
|
|
|
|
this.$message({ |
|
|
|
|
type: 'success', |
|
|
|
|
message: '操作成功!', |
|
|
|
|
@ -367,7 +373,7 @@ export default { |
|
|
|
|
message: '操作成功!', |
|
|
|
|
}); |
|
|
|
|
// 数据回调进行刷新 |
|
|
|
|
this.onLoad(this.page); |
|
|
|
|
this.onLoad(this.page,this.query); |
|
|
|
|
done(); |
|
|
|
|
}, |
|
|
|
|
error => { |
|
|
|
|
@ -392,7 +398,7 @@ export default { |
|
|
|
|
}); |
|
|
|
|
// 数据回调进行刷新 |
|
|
|
|
done(); |
|
|
|
|
this.onLoad(this.page); |
|
|
|
|
this.onLoad(this.page,this.query); |
|
|
|
|
this.$message({ |
|
|
|
|
type: 'success', |
|
|
|
|
message: '操作成功!', |
|
|
|
|
@ -403,7 +409,7 @@ export default { |
|
|
|
|
searchReset() { |
|
|
|
|
this.query = {}; |
|
|
|
|
this.parentId = 0; |
|
|
|
|
this.onLoad(this.page); |
|
|
|
|
this.onLoad(this.page,this.query); |
|
|
|
|
}, |
|
|
|
|
// 搜索 |
|
|
|
|
searchChange(params, done) { |
|
|
|
|
|