- 删除新增
编辑
+ 删除
+
@@ -145,6 +153,25 @@
v-model="form.phoneNumber"
>
+
+
+
+ 当前选中的组织 {{ orgIds }}
+
+
+
+
-
+
+
-
- 当前选中的组织 {{ orgId }}
+
+
+
{
this.treedata = res.data;
@@ -659,8 +690,12 @@ export default {
});
},
handleNodeClick(data) {
- this.department=data.displayName
- console.log(data);
+ this.department = data.displayName;
+ console.log(this.department);
+ getapi(`/api/identity/users/getlistinorganizationunit?OrganizationUnitId=${data.id}`).then(res=>{
+ console.log(res);
+ this.tableData=res.data
+ })
},
iscrentddepartment() {
this.department = this.$refs.department.getCheckedKeys(true);
@@ -829,6 +864,9 @@ export default {
this.title = 1;
if (this.title == 1) {
this.form = {};
+ this.orgId = this.department;
+ console.log(this.orgId);
+ console.log(this.department, "1111111111111");
}
getbook().then((res) => {
// res.data.items.forEach((element) => {
@@ -1045,9 +1083,8 @@ export default {
});
console.log(row);
usersinits(row.id).then((res) => {
- this.orgId = res.data[0].displayName;
- console.log(this.orgId);
- console.log("zzz这里", res);
+ this.orgId = res.data[res.data.length - 1].displayName;
+ this.orgIds = res.data[0].displayName;
let list = res.data;
this.defaultKeys = list.map((item) => {
return item.id;