Compare commits

..

No commits in common. 'f35f723a8d35403dcc04d1907cd932e45a596a2b' and '53eca960f78fd92ab57d1c897e8a63e06588ead7' have entirely different histories.

  1. 5
      jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/controller/SysDepartController.java
  2. 17
      jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/controller/SysUserController.java
  3. 4
      jeecgboot-vue3/src/views/declarantUnit/declarantUnitList.vue
  4. 4
      jeecgboot-vue3/src/views/declarantUnit/depart.user.data.ts
  5. 6
      jeecgboot-vue3/src/views/projectApplication/project/ProjectList.vue

@ -244,11 +244,8 @@ public class SysDepartController {
//单位法人角色时,只查询自己部门 //单位法人角色时,只查询自己部门
if ("faren_admin".equals(user.getRoleCode())) { if ("faren_admin".equals(user.getRoleCode())) {
queryWrapper.eq("id", user.getOrgId()); queryWrapper.eq("id", user.getOrgId());
} else if ("quxian_admin".equals(user.getRoleCode())) { } else { // 查询下级部门
queryWrapper.eq("parent_id", user.getOrgId()); queryWrapper.eq("parent_id", user.getOrgId());
} else if ("kejiju_admin".equals(user.getRoleCode())) {// 查询所有法人级部门
queryWrapper.ne("depart_name_abbr","null");
queryWrapper.ne("depart_name_abbr","");
} }
return sysDepartService.queryPageList(req, queryWrapper, pageSize, pageNo); return sysDepartService.queryPageList(req, queryWrapper, pageSize, pageNo);

@ -8,6 +8,7 @@ import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.IdWorker; import com.baomidou.mybatisplus.core.toolkit.IdWorker;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
@ -193,15 +194,19 @@ public class SysUserController {
public Result<IPage<SysUser>> getDeclarantList(SysUser user, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, public Result<IPage<SysUser>> getDeclarantList(SysUser user, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest req) { @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest req) {
LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
user.setUserType("shenbaoren");
String roleCode = loginUser.getRoleCode(); String roleCode = loginUser.getRoleCode();
// List<String> userIds = new LinkedList<>(); List<String> userIds = new LinkedList<>();
//申报人是只查询自己 //申报人是只查询自己
QueryWrapper<SysUser> queryWrapper = QueryGenerator.initQueryWrapper(user, req.getParameterMap());
if (StringUtils.equals(roleCode, "shenbaoren_role")) { if (StringUtils.equals(roleCode, "shenbaoren_role")) {
queryWrapper.eq("org_code", loginUser.getOrgCode()); userIds.add(loginUser.getId());
} else { } else if (StringUtils.equals(roleCode, "faren_admin")) {
queryWrapper.likeRight("org_code", loginUser.getOrgCode()); List<SysUserDepart> departList = sysUserDepartService.list(new LambdaQueryWrapper<SysUserDepart>().eq(SysUserDepart::getDepId, loginUser.getOrgId()));
userIds = Optional.ofNullable(departList).orElse(new LinkedList<>()).stream().map(u -> u.getUserId()).collect(Collectors.toList());
}
user.setUserType("shenbaoren");
QueryWrapper<SysUser> queryWrapper = QueryGenerator.initQueryWrapper(user, req.getParameterMap());
if (ObjectUtil.isNotEmpty(userIds)) {
queryWrapper.in("id", userIds);
} }
return sysUserService.queryPageList(req, queryWrapper, pageSize, pageNo); return sysUserService.queryPageList(req, queryWrapper, pageSize, pageNo);
} }

@ -182,7 +182,7 @@ function getTableAction(record) {
// }, // },
{ {
label: '驳回', label: '驳回',
ifShow: userStore.getUserInfo.roleCode =='quxian_admin' && record.status == 1, ifShow: userStore.getUserInfo.roleCode !='faren_admin' && record.status == 1,
popConfirm: { popConfirm: {
title: '确定驳回吗?', title: '确定驳回吗?',
confirm: handleFrozen.bind(null, record, 0), confirm: handleFrozen.bind(null, record, 0),
@ -190,7 +190,7 @@ function getTableAction(record) {
}, },
{ {
label: '通过', label: '通过',
ifShow: userStore.getUserInfo.roleCode =='quxian_admin' && record.status == 0, ifShow: userStore.getUserInfo.roleCode !='faren_admin' && record.status == 0,
popConfirm: { popConfirm: {
title: '确定通过吗?', title: '确定通过吗?',
confirm: handleFrozen.bind(null, record, 1), confirm: handleFrozen.bind(null, record, 1),

@ -15,11 +15,11 @@ export const columns: BasicColumn[] = [
align:"center", align:"center",
dataIndex: 'departNameAbbr', dataIndex: 'departNameAbbr',
}, },
/* { {
title: '编码', title: '编码',
align:"center", align:"center",
dataIndex: 'orgCode' dataIndex: 'orgCode'
},*/ },
{ {
title: '手机号', title: '手机号',
align:"center", align:"center",

@ -5,7 +5,7 @@
<!--插槽:table标题--> <!--插槽:table标题-->
<template #tableTitle> <template #tableTitle>
<!-- <a-button type="primary" @click="handleAdd" preIcon="ant-design:plus-outlined"> 新增</a-button>--> <!-- <a-button type="primary" @click="handleAdd" preIcon="ant-design:plus-outlined"> 新增</a-button>-->
<!-- <a-button type="primary" @click="go_xinjianshenbao" preIcon="ant-design:plus-outlined"> 新建报书</a-button>--> <!-- <a-button type="primary" @click="go_xinjianshenbao" preIcon="ant-design:plus-outlined"> 新建报书</a-button>-->
<a-button type="primary" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出</a-button> <a-button type="primary" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出</a-button>
<!-- <j-upload-button type="primary" v-auth="'project:project:importExcel'" preIcon="ant-design:import-outlined" @click="onImportXls">导入</j-upload-button>--> <!-- <j-upload-button type="primary" v-auth="'project:project:importExcel'" preIcon="ant-design:import-outlined" @click="onImportXls">导入</j-upload-button>-->
<a-dropdown> <a-dropdown>
@ -24,7 +24,7 @@
</a-menu-item>--> </a-menu-item>-->
</a-menu> </a-menu>
</template> </template>
<a-button type="primary">新建 <a-button type="primary">新建
<Icon icon="mdi:chevron-down"></Icon> <Icon icon="mdi:chevron-down"></Icon>
</a-button> </a-button>
</a-dropdown> </a-dropdown>
@ -91,7 +91,7 @@ const { prefixCls,tableContext,onExportXls,onImportXls } = useListPage({
], ],
}, },
actionColumn: { actionColumn: {
width: 380, width: 320,
fixed:'right' fixed:'right'
}, },
beforeFetch: (params) => { beforeFetch: (params) => {

Loading…
Cancel
Save