...
|
...
|
@@ -403,15 +403,18 @@ |
|
|
},
|
|
|
//批量删除
|
|
|
batchRemove: function () {
|
|
|
var ids = this.sels.map(item => item.permissionId).toString();
|
|
|
var ids = this.sels.map(item => item.permissionId);
|
|
|
this.$confirm('确认删除选中记录吗?', '提示', {
|
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
|
this.listLoading = true;
|
|
|
//NProgress.start();
|
|
|
let para = { ids: ids };
|
|
|
batchRemove(para).then((res) => {
|
|
|
this.listLoading = false;
|
|
|
// let para = { ids: ids };
|
|
|
batchRemove(ids).then((response) => {
|
|
|
let res = response.data;
|
|
|
if (res.code !== '200') {
|
|
|
return this.$message.error(res.msg);
|
|
|
}
|
|
|
//NProgress.done();
|
|
|
this.$message({
|
|
|
message: '删除成功',
|
...
|
...
|
@@ -419,8 +422,10 @@ |
|
|
});
|
|
|
this.getTableList();
|
|
|
});
|
|
|
}).catch(() => {
|
|
|
|
|
|
}).catch((err) => {
|
|
|
this.$message.error(err);
|
|
|
}).finally(() => {
|
|
|
this.listLoading = false;
|
|
|
});
|
|
|
},
|
|
|
showDrawer: function(){
|
...
|
...
|
|