修改部门管理
This commit is contained in:
@@ -151,7 +151,8 @@
|
||||
edit: "/sys/user/editSysDepartWithUser",
|
||||
delete: "/sys/user/deleteUserInDepart",
|
||||
deleteBatch: "/sys/user/deleteUserInDepartBatch",
|
||||
}
|
||||
},
|
||||
loading:false,
|
||||
}
|
||||
},
|
||||
created() {
|
||||
@@ -167,6 +168,7 @@
|
||||
this.$message.error(this.$t('setURLListAttribute'))
|
||||
return
|
||||
}
|
||||
this.loading = true
|
||||
//加载数据 若传入参数1则加载第一页的内容
|
||||
if (arg === 1) {
|
||||
this.ipagination.current = 1;
|
||||
@@ -175,6 +177,7 @@
|
||||
let params = this.getQueryParams();//查询条件
|
||||
params.depId = this.currentDeptId;
|
||||
getAction(this.url.list, params).then((res) => {
|
||||
this.loading = false
|
||||
if (res.success && res.result) {
|
||||
this.dataSource = res.result.records;
|
||||
this.ipagination.total = res.result.total;
|
||||
@@ -248,7 +251,6 @@
|
||||
});
|
||||
},
|
||||
open(record) {
|
||||
//console.log(record);
|
||||
this.currentDeptId = record.id;
|
||||
this.currentDept = record;
|
||||
this.loadData(1);
|
||||
|
||||
Reference in New Issue
Block a user