fix(消息设置):消息设置人员范围
This commit is contained in:
parent
2c839b0d61
commit
056ea0aea1
|
@ -122,6 +122,11 @@ public class UserController {
|
||||||
Page<Object> page = PageHelper.startPage(goPage, pageSize, true);
|
Page<Object> page = PageHelper.startPage(goPage, pageSize, true);
|
||||||
return PageUtils.setPageInfo(page, userService.getOrgMemberList(request));
|
return PageUtils.setPageInfo(page, userService.getOrgMemberList(request));
|
||||||
}
|
}
|
||||||
|
@PostMapping("/special/org/member/list")
|
||||||
|
@RequiresRoles(RoleConstants.ADMIN)
|
||||||
|
public List<User> _getOrgMemberListByAdmin(@RequestBody QueryOrgMemberRequest request) {
|
||||||
|
return userService.getOrgMemberList(request);
|
||||||
|
}
|
||||||
|
|
||||||
@PostMapping("/special/org/member/list/all")
|
@PostMapping("/special/org/member/list/all")
|
||||||
@RequiresRoles(RoleConstants.ADMIN)
|
@RequiresRoles(RoleConstants.ADMIN)
|
||||||
|
@ -133,10 +138,6 @@ public class UserController {
|
||||||
public List<User> getUserList() {
|
public List<User> getUserList() {
|
||||||
return userService.getUserList();
|
return userService.getUserList();
|
||||||
}
|
}
|
||||||
@GetMapping("/list/orgId")
|
|
||||||
public List<User> getUserListByOrgId() {
|
|
||||||
return userService.getUserListByOrgId();
|
|
||||||
}
|
|
||||||
@PostMapping("/update/current")
|
@PostMapping("/update/current")
|
||||||
public UserDTO updateCurrentUser(@RequestBody User user) {
|
public UserDTO updateCurrentUser(@RequestBody User user) {
|
||||||
userService.updateUser(user);
|
userService.updateUser(user);
|
||||||
|
|
|
@ -266,13 +266,6 @@ public class UserService {
|
||||||
example.setOrderByClause("update_time desc");
|
example.setOrderByClause("update_time desc");
|
||||||
return userMapper.selectByExample(example);
|
return userMapper.selectByExample(example);
|
||||||
}
|
}
|
||||||
public List<User> getUserListByOrgId() {
|
|
||||||
SessionUser user = SessionUtils.getUser();
|
|
||||||
String orgId = user.getLastOrganizationId();
|
|
||||||
UserExample example = new UserExample();
|
|
||||||
example.createCriteria().andLastOrganizationIdEqualTo(orgId);
|
|
||||||
return userMapper.selectByExample(example);
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<User> getUserListWithRequest(io.metersphere.controller.request.UserRequest request) {
|
public List<User> getUserListWithRequest(io.metersphere.controller.request.UserRequest request) {
|
||||||
return extUserMapper.getUserList(request);
|
return extUserMapper.getUserList(request);
|
||||||
|
|
|
@ -156,7 +156,7 @@
|
||||||
initTableData() {
|
initTableData() {
|
||||||
let param = {
|
let param = {
|
||||||
name: this.condition.name,
|
name: this.condition.name,
|
||||||
organizationId: this.currentUser().lastOrganizationId
|
organizationId: this.currentUser().lastOrganionIdzati
|
||||||
};
|
};
|
||||||
this.result = this.$post(this.buildPagePath(this.queryPath), param, response => {
|
this.result = this.$post(this.buildPagePath(this.queryPath), param, response => {
|
||||||
let data = response.data;
|
let data = response.data;
|
||||||
|
|
|
@ -504,26 +504,39 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
userList() {
|
userList() {
|
||||||
this.result = this.$get('user/list/orgId', response => {
|
let param = {
|
||||||
|
name: '',
|
||||||
|
organizationId: this.currentUser().lastOrganizationId
|
||||||
|
};
|
||||||
|
this.result = this.$post('user/special/org/member/list', param, response => {
|
||||||
this.jenkinsReceiverOptions = response.data
|
this.jenkinsReceiverOptions = response.data
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
reviewUerList() {
|
reviewUerList() {
|
||||||
this.result = this.$get('user/list/orgId', response => {
|
let param = {
|
||||||
|
name: '',
|
||||||
|
organizationId: this.currentUser().lastOrganizationId
|
||||||
|
};
|
||||||
|
this.result = this.$post('user/special/org/member/list', param, response => {
|
||||||
this.reviewReceiverOptions = response.data
|
this.reviewReceiverOptions = response.data
|
||||||
})
|
})
|
||||||
|
|
||||||
},
|
},
|
||||||
defectUserList() {
|
defectUserList() {
|
||||||
this.result = this.$get('user/list/orgId', response => {
|
let param = {
|
||||||
|
name: '',
|
||||||
|
organizationId: this.currentUser().lastOrganizationId
|
||||||
|
};
|
||||||
|
this.result = this.$post('user/special/org/member/list', param, response => {
|
||||||
this.defectReceiverOptions = response.data
|
this.defectReceiverOptions = response.data
|
||||||
/* this.defectReceiverOptions.push({id: 'FOUNDER', name: this.$t('api_test.creator')}, {
|
|
||||||
id: 'EXECUTOR',
|
|
||||||
name: this.$t('test_track.plan_view.executor')
|
|
||||||
})*/
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
testPlanUserList() {
|
testPlanUserList() {
|
||||||
this.result = this.$get('user/list/orgId', response => {
|
let param = {
|
||||||
|
name: '',
|
||||||
|
organizationId: this.currentUser().lastOrganizationId
|
||||||
|
};
|
||||||
|
this.result = this.$post('user/special/org/member/list', param, response => {
|
||||||
this.testPlanReceiverOptions = response.data
|
this.testPlanReceiverOptions = response.data
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue