fix: 代码格式
This commit is contained in:
parent
e8724aee16
commit
a2c6c35afb
|
@ -1,6 +1,5 @@
|
||||||
package io.metersphere.base.mapper.ext;
|
package io.metersphere.base.mapper.ext;
|
||||||
|
|
||||||
import io.metersphere.base.domain.Group;
|
|
||||||
import io.metersphere.controller.request.group.EditGroupRequest;
|
import io.metersphere.controller.request.group.EditGroupRequest;
|
||||||
import io.metersphere.dto.GroupDTO;
|
import io.metersphere.dto.GroupDTO;
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
package io.metersphere.base.mapper.ext;
|
package io.metersphere.base.mapper.ext;
|
||||||
|
|
||||||
import io.metersphere.base.domain.Group;
|
import io.metersphere.base.domain.Group;
|
||||||
import io.metersphere.base.domain.Role;
|
|
||||||
import io.metersphere.base.domain.User;
|
import io.metersphere.base.domain.User;
|
||||||
import io.metersphere.controller.request.member.QueryMemberRequest;
|
import io.metersphere.controller.request.member.QueryMemberRequest;
|
||||||
import io.metersphere.controller.request.organization.QueryOrgMemberRequest;
|
import io.metersphere.controller.request.organization.QueryOrgMemberRequest;
|
||||||
|
|
|
@ -282,7 +282,9 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
groupType(idType) {
|
groupType(idType) {
|
||||||
if (!idType) return;
|
if (!idType) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
return idType.split("+")[1];
|
return idType.split("+")[1];
|
||||||
},
|
},
|
||||||
getResource(idType, index) {
|
getResource(idType, index) {
|
||||||
|
|
|
@ -404,12 +404,12 @@
|
||||||
editMember(row) {
|
editMember(row) {
|
||||||
this.dialogWsMemberUpdateVisible = true;
|
this.dialogWsMemberUpdateVisible = true;
|
||||||
this.memberForm = Object.assign({}, row);
|
this.memberForm = Object.assign({}, row);
|
||||||
console.log(this.memberForm)
|
// console.log(this.memberForm)
|
||||||
let groupIds = this.memberForm.groups.map(r => r.id);
|
let groupIds = this.memberForm.groups.map(r => r.id);
|
||||||
this.result = this.$post('/user/group/list', {type: GROUP_WORKSPACE, resourceId: this.wsId}, response => {
|
this.result = this.$post('/user/group/list', {type: GROUP_WORKSPACE, resourceId: this.wsId}, response => {
|
||||||
this.$set(this.memberForm, "allgroups", response.data);
|
this.$set(this.memberForm, "allgroups", response.data);
|
||||||
})
|
})
|
||||||
console.log(this.memberForm)
|
// console.log(this.memberForm)
|
||||||
// 编辑时填充角色信息
|
// 编辑时填充角色信息
|
||||||
this.$set(this.memberForm, 'groupIds', groupIds);
|
this.$set(this.memberForm, 'groupIds', groupIds);
|
||||||
listenGoBack(this.handleClose);
|
listenGoBack(this.handleClose);
|
||||||
|
|
|
@ -117,7 +117,7 @@ export default {
|
||||||
this.$refs.deleteConfirm.open(row);
|
this.$refs.deleteConfirm.open(row);
|
||||||
},
|
},
|
||||||
copy(row) {
|
copy(row) {
|
||||||
console.log(row);
|
// console.log(row);
|
||||||
},
|
},
|
||||||
setPermission(row) {
|
setPermission(row) {
|
||||||
this.$refs.editPermission.open(row);
|
this.$refs.editPermission.open(row);
|
||||||
|
|
Loading…
Reference in New Issue