fix: 代码格式

This commit is contained in:
Captain.B 2021-05-24 21:19:01 +08:00 committed by 刘瑞斌
parent e8724aee16
commit a2c6c35afb
5 changed files with 6 additions and 6 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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) {

View File

@ -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);

View File

@ -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);