处理了部门多选的问题
This commit is contained in:
parent
56d880b459
commit
774afc6fa6
@ -9,6 +9,7 @@ import ink.wgink.pojo.ListPage;
|
|||||||
import ink.wgink.pojo.dtos.ZTreeDTO;
|
import ink.wgink.pojo.dtos.ZTreeDTO;
|
||||||
import ink.wgink.pojo.dtos.department.DepartmentDTO;
|
import ink.wgink.pojo.dtos.department.DepartmentDTO;
|
||||||
import ink.wgink.pojo.result.*;
|
import ink.wgink.pojo.result.*;
|
||||||
|
import ink.wgink.pojo.vos.IdsVO;
|
||||||
import ink.wgink.service.department.pojo.vos.DepartmentVO;
|
import ink.wgink.service.department.pojo.vos.DepartmentVO;
|
||||||
import ink.wgink.service.department.pojo.vos.MergeDepartmentInfoVO;
|
import ink.wgink.service.department.pojo.vos.MergeDepartmentInfoVO;
|
||||||
import ink.wgink.service.department.pojo.vos.MergeNewDepartmentInfoVO;
|
import ink.wgink.service.department.pojo.vos.MergeNewDepartmentInfoVO;
|
||||||
@ -219,4 +220,14 @@ public class DepartmentController extends DefaultBaseController {
|
|||||||
return new SuccessResultData<>(departmentService.count(params));
|
return new SuccessResultData<>(departmentService.count(params));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "组织部门列表", notes = "组织部门列表接口")
|
||||||
|
@ApiImplicitParams({
|
||||||
|
@ApiImplicitParam(name = "departmentId", value = "部门ID", paramType = "path")
|
||||||
|
})
|
||||||
|
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
|
||||||
|
@PostMapping("list/ids")
|
||||||
|
public List<DepartmentDTO> list(@RequestBody IdsVO idsVO) {
|
||||||
|
return departmentService.listByIds(idsVO.getIds());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -55,7 +55,6 @@
|
|||||||
var checkedIds = top.dialog.dialogData.checkedIds ? top.dialog.dialogData.checkedIds : [];
|
var checkedIds = top.dialog.dialogData.checkedIds ? top.dialog.dialogData.checkedIds : [];
|
||||||
var checkedNodes = [];
|
var checkedNodes = [];
|
||||||
var checkedDepartmentMap = new Map();
|
var checkedDepartmentMap = new Map();
|
||||||
top.dialog.dialogData.checkedNodes = [];
|
|
||||||
|
|
||||||
function closeBox() {
|
function closeBox() {
|
||||||
parent.layer.close(parent.layer.getFrameIndex(window.name));
|
parent.layer.close(parent.layer.getFrameIndex(window.name));
|
||||||
@ -88,10 +87,11 @@
|
|||||||
*/
|
*/
|
||||||
function initCheckNodes(callback) {
|
function initCheckNodes(callback) {
|
||||||
if(!checkedIds || checkedIds.length == 0) {
|
if(!checkedIds || checkedIds.length == 0) {
|
||||||
|
callback ? callback() : '';
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
top.restAjax.post(top.restAjax.path('api/department/list/ids', []), {
|
top.restAjax.post(top.restAjax.path('api/department/list/ids', []), {
|
||||||
ids: checkedIds
|
ids: [].concat(checkedIds)
|
||||||
}, null, function(code, data) {
|
}, null, function(code, data) {
|
||||||
$('#checkedNodeBox').empty();
|
$('#checkedNodeBox').empty();
|
||||||
var checkedNodes = '';
|
var checkedNodes = '';
|
||||||
|
Loading…
Reference in New Issue
Block a user