|
|
@@ -42,7 +42,7 @@ import tree from "@/components/tree/allTree.vue";
|
|
|
const columns = [
|
|
|
{
|
|
|
title: "员工工号",
|
|
|
- dataIndex: "userId",
|
|
|
+ dataIndex: "id",
|
|
|
//
|
|
|
},
|
|
|
|
|
|
@@ -163,6 +163,7 @@ export default {
|
|
|
this.title = "数据权限配置";
|
|
|
this.visible = true;
|
|
|
this.dataForm = { ...item.record };
|
|
|
+ console.log(item.record);
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.tree.setExpandKys(item.record);
|
|
|
// this.defaultCheckList = [""];
|
|
|
@@ -183,7 +184,7 @@ export default {
|
|
|
getList() {
|
|
|
this.loading = true;
|
|
|
this.$API.sysManage
|
|
|
- .getUserList({
|
|
|
+ .getDeptList({
|
|
|
pageNum: this.pagination.current,
|
|
|
pageSize: this.pagination.defaultPageSize,
|
|
|
name: this.searchName,
|
|
|
@@ -194,10 +195,10 @@ export default {
|
|
|
if (res.data.code === 200) {
|
|
|
this.loading = false;
|
|
|
|
|
|
- this.tableList = [...res.data.data.records];
|
|
|
+ this.tableList = [...res.data.data.content];
|
|
|
// this.pagination.current = res.data.data.pageNum;
|
|
|
// this.pagination.defaultPageSize = res.data.data.pageSize;
|
|
|
- this.pagination.total = res.data.data.total;
|
|
|
+ this.pagination.total = res.data.data.totalSize;
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
@@ -212,7 +213,7 @@ export default {
|
|
|
// console.log(this.dataForm, this.checkList);
|
|
|
this.$API.sysManage
|
|
|
.UserSetDeptAuth({
|
|
|
- userId: this.dataForm.userId,
|
|
|
+ userId: this.dataForm.id,
|
|
|
deptIds: this.checkList,
|
|
|
})
|
|
|
.then((res) => {
|