修改部门管理

This commit is contained in:
qq787203167
2022-03-04 11:28:53 +08:00
parent 61e3f1d6f6
commit b56ff37c2c
2 changed files with 19 additions and 10 deletions
@@ -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);