|
@@ -206,6 +206,9 @@
|
|
|
this.$refs.addREf.open('0');
|
|
this.$refs.addREf.open('0');
|
|
|
},
|
|
},
|
|
|
async getUserDetail() {
|
|
async getUserDetail() {
|
|
|
|
|
+ if (!this.form.mainUserId) {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
this.userInfo = await getUserDetail(this.form.mainUserId);
|
|
this.userInfo = await getUserDetail(this.form.mainUserId);
|
|
|
},
|
|
},
|
|
|
userBk(data) {
|
|
userBk(data) {
|
|
@@ -283,10 +286,11 @@
|
|
|
this.$emit('update:visible', value);
|
|
this.$emit('update:visible', value);
|
|
|
},
|
|
},
|
|
|
getByData(userRow, currentRow) {
|
|
getByData(userRow, currentRow) {
|
|
|
|
|
+ // alert(1)
|
|
|
let id = this.data?.id || userRow?.id;
|
|
let id = this.data?.id || userRow?.id;
|
|
|
getById(id).then((res) => {
|
|
getById(id).then((res) => {
|
|
|
this.form = res.data;
|
|
this.form = res.data;
|
|
|
- this.form.mainUserId = id;
|
|
|
|
|
|
|
+ // this.form.mainUserId = id;
|
|
|
this.getUserDetail();
|
|
this.getUserDetail();
|
|
|
this.form.groupRolePOList = [];
|
|
this.form.groupRolePOList = [];
|
|
|
res.data.groupRoleList.forEach((item) => {
|
|
res.data.groupRoleList.forEach((item) => {
|