diff --git a/jeecg-boot/jeecg-boot-base-core/src/main/java/org/jeecg/config/shiro/ShiroConfig.java b/jeecg-boot/jeecg-boot-base-core/src/main/java/org/jeecg/config/shiro/ShiroConfig.java index a76b18e..a9d5810 100644 --- a/jeecg-boot/jeecg-boot-base-core/src/main/java/org/jeecg/config/shiro/ShiroConfig.java +++ b/jeecg-boot/jeecg-boot-base-core/src/main/java/org/jeecg/config/shiro/ShiroConfig.java @@ -185,7 +185,10 @@ public class ShiroConfig { filterChainDefinitionMap.put("/sys/user/userRegister4Faren", "anon"); //法人注册接口 filterChainDefinitionMap.put("/sys/user/userRegister4Shenbaoren", "anon");//申报人注册 - filterChainDefinitionMap.put("/sys/sysDepart/queryDepartTreeSync", "anon");//申报人用户注册 + + filterChainDefinitionMap.put("/sys/sysDepart/queryDepartTreeSync", "anon");//申报人注册时,选择部门列表 + + filterChainDefinitionMap.put("/sys/sysDepart/queryDepartTreeSync4FaRen", "anon");//法人注册时,选择部门列表 diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/controller/ExpertController.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/controller/ExpertController.java index c01315a..d742e89 100644 --- a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/controller/ExpertController.java +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/controller/ExpertController.java @@ -193,6 +193,7 @@ public class ExpertController extends JeecgController { String depid = expertService.getdeps(sysUser.getId()); SysDepart sysDepart = sysDepartService.getById(depid); experttemp.setRealname(sysUser.getRealname()); + experttemp.setSepsd(sysUser.getPassword()); experttemp.setWorkon(sysUser.getWorkNo()); experttemp.setSex(sysUser.getSex()); experttemp.setTopPic(sysUser.getAvatar()); @@ -394,7 +395,7 @@ public class ExpertController extends JeecgController { expert.setCompopen("2"); //开始添加到用户表 - SysUser user = new SysUser(); +/* SysUser user = new SysUser(); user.setAvatar(expert.getTopPic()); user.setSex(expert.getSex()); user.setRealname(expert.getRealname()); @@ -409,7 +410,8 @@ public class ExpertController extends JeecgController { user.setPassword(passwordEncode); user.setStatus(1); user.setDelFlag(CommonConstant.DEL_FLAG_0); - sysUserService.saveUser(user, "1843478958968647681", expert.getSsdep(), ""); + sysUserService.saveUser(user, "1843478958968647681", expert.getSsdep(), "");*/ + expertService.updateuser(expert.getTopPic(),expert.getSex(),expert.getSeusername()); expertService.save(expert); // return Result.OK("添加成功!"); @@ -438,7 +440,7 @@ public class ExpertController extends JeecgController { public Result edit(@RequestBody Expert expert) { expertService.updateById(expert); //开始添加到用户表 - SysUser user = new SysUser(); + /*SysUser user = new SysUser(); user.setAvatar(expert.getTopPic()); user.setSex(expert.getSex()); user.setRealname(expert.getRealname()); @@ -453,7 +455,8 @@ public class ExpertController extends JeecgController { user.setPassword(passwordEncode); user.setStatus(1); user.setDelFlag(CommonConstant.DEL_FLAG_0); - sysUserService.editUser(user,"1843478958968647681", expert.getSsdep(), "", ""); + sysUserService.editUser(user,"1843478958968647681", expert.getSsdep(), "", "");*/ + expertService.updateuser(expert.getTopPic(),expert.getSex(),expert.getSeusername()); return Result.OK("编辑成功!"); } @@ -472,23 +475,6 @@ public class ExpertController extends JeecgController { expert.setErrinfo(""); } expertService.updateById(expert); - //开始添加到用户表 - SysUser user = new SysUser(); - user.setAvatar(expert.getTopPic()); - user.setSex(expert.getSex()); - user.setRealname(expert.getRealname()); - user.setUsername(expert.getSeusername()); - user.setWorkNo(expert.getWorkon()); - user.setEmail(expert.getEmails()); - user.setPhone(expert.getPhone()); - user.setCreateTime(new Date());//设置创建时间 - String salt = oConvertUtils.randomGen(8); - user.setSalt(salt); - String passwordEncode = PasswordUtil.encrypt(expert.getSeusername(), expert.getPsd(), salt); - user.setPassword(passwordEncode); - user.setStatus(1); - user.setDelFlag(CommonConstant.DEL_FLAG_0); - sysUserService.editUser(user,"1843478958968647681", expert.getSsdep(), "", ""); return Result.OK("编辑成功!"); } @@ -507,7 +493,7 @@ public class ExpertController extends JeecgController { expert.setCompopen("1"); expertService.updateById(expert); //开始添加到用户表 - SysUser user = new SysUser(); + /* SysUser user = new SysUser(); user.setAvatar(expert.getTopPic()); user.setSex(expert.getSex()); user.setRealname(expert.getRealname()); @@ -522,7 +508,8 @@ public class ExpertController extends JeecgController { user.setPassword(passwordEncode); user.setStatus(1); user.setDelFlag(CommonConstant.DEL_FLAG_0); - sysUserService.editUser(user,"1843478958968647681", expert.getSsdep(), "", ""); + sysUserService.editUser(user,"1843478958968647681", expert.getSsdep(), "", "");*/ + expertService.updateuser(expert.getTopPic(),expert.getSex(),expert.getSeusername()); return Result.OK("编辑成功!"); } @@ -625,7 +612,7 @@ public class ExpertController extends JeecgController { public Result handleupupfirm(@RequestParam(name="id",required=true) String id) { String str =""; Expert expert =expertService.getById(id); - if (expert.getCompopen().equals("1")) { + if (expert.getCompopen().equals("1") ||expert.getCompopen().equals("3")) { //修改提交审核状态 expertService.handleupupfirm(id); str ="通过审核"; @@ -645,7 +632,7 @@ public class ExpertController extends JeecgController { if (expert.getCompopen().equals("1")) { //修改提交审核状态 expertService.handlebackbackfirm(id); - str ="驳回审核!请到编辑页面确定问题数据并填写驳回原因"; + str ="驳回审核!"; } else if (expert.getCompopen().equals("3") || expert.getCompopen().equals("2") ) { str ="已驳回或者是已通过审核"; } @@ -655,11 +642,11 @@ public class ExpertController extends JeecgController { //这个是专家的上级管理员审核 @AutoLog(value = "专家管理-这个是上级管理员的通过审核") @ApiOperation(value="专家管理-这个是上级管理员的通过审核", notes="专家管理-这个是上级管理员的通过审核") - @GetMapping(value = "handleupcount") + @GetMapping(value = "/handleupcount") public Result handleupcount(@RequestParam(name="id",required=true) String id) { String str =""; Expert expert =expertService.getById(id); - if (expert.getCompopen().equals("2") && expert.getAdminopen().equals("1")) { + if ((expert.getCompopen().equals("2") && expert.getAdminopen().equals("1")) || (expert.getCompopen().equals("2") && expert.getAdminopen().equals("3"))) { //修改提交审核状态 expertService.handleupcount(id); str ="审核通过"; @@ -871,7 +858,7 @@ public class ExpertController extends JeecgController { @ApiOperation(value="管理员专家数据---专家待提交/未审核", notes="管理员专家数据---专家待提交/未审核") @GetMapping(value = "/expdatawtjsh") public Result expdatawtjsh() { - List expertList = expertService.query().eq("adminopen","1").or().eq("compopen","1").or().eq("isdone","N").list(); + List expertList = expertService.query().eq("adminopen","1").or().eq("compopen","1").or().eq("adminopen","3").or().eq("compopen","3").or().eq("isdone","N").list(); return Result.OK(expertList.size()); } @@ -931,4 +918,24 @@ public class ExpertController extends JeecgController { } + @AutoLog(value = "专家管理-市局/县区管理员驳回") + @ApiOperation(value="专家管理-市局/县区管理员驳回", notes="专家管理-市局/县区管理员驳回") + @RequestMapping(value = "/saveOrUpdateadminbh", method = {RequestMethod.PUT,RequestMethod.POST}) + public Result saveOrUpdateadminbh(@RequestBody Expert expert) { + expert.setAdminopen("3"); + expert.setCompopen("3"); + expert.setIsdone("N"); + expertService.updateById(expert); + return Result.OK("驳回成功,已责令专家重新编辑!"); + } + @AutoLog(value = "专家管理-公司驳回") + @ApiOperation(value="专家管理-公司驳回", notes="专家管理-公司驳回") + @RequestMapping(value = "/saveOrUpdatefimebh", method = {RequestMethod.PUT,RequestMethod.POST}) + public Result saveOrUpdatefimebh(@RequestBody Expert expert) { + expert.setCompopen("3"); + + expertService.updateById(expert); + return Result.OK("编辑成功!"); + } + } diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/entity/Expert.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/entity/Expert.java index 0391aa9..30f5e4c 100644 --- a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/entity/Expert.java +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/entity/Expert.java @@ -102,6 +102,7 @@ public class Expert implements Serializable { private String phone; @TableField(exist = false) private String emails; + @Dict(dicCode = "sex") @TableField(exist = false) private Integer sex; @TableField(exist = false) @@ -140,4 +141,9 @@ public class Expert implements Serializable { @ApiModelProperty(value = "职称") private java.lang.String zc; + /**驳回原因*/ + @Excel(name = "驳回原因", width = 15) + @ApiModelProperty(value = "驳回原因") + private java.lang.String backinfo; + } diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/mapper/ExpertMapper.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/mapper/ExpertMapper.java index 7711d40..9416b57 100644 --- a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/mapper/ExpertMapper.java +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/mapper/ExpertMapper.java @@ -44,7 +44,7 @@ public interface ExpertMapper extends BaseMapper { @Select("SELECT user_id FROM sys_user_role WHERE role_id =#{number}") List userbyrole(String number); - @Update("UPDATE expert SET isdone = 'Y' WHERE id = #{id}") + @Update("UPDATE expert SET isdone = 'Y' , backinfo = '' WHERE id = #{id}") void updatetj(String id); @Update("UPDATE expert SET compopen = '2' WHERE id = #{id}") @@ -58,4 +58,7 @@ public interface ExpertMapper extends BaseMapper { @Update("UPDATE expert SET adminopen = '3' , isdone = 'N' WHERE id = #{id}") void handlebackcount(String id); + + @Update("UPDATE sys_user SET sex = #{sex} , avatar = #{topPic} WHERE username = #{seusername}") + void updateuser(String topPic, Integer sex, String seusername); } diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/service/IExpertService.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/service/IExpertService.java index a52cb4f..8b40466 100644 --- a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/service/IExpertService.java +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/service/IExpertService.java @@ -43,4 +43,6 @@ public interface IExpertService extends IService { void handleupcount(String id); void handlebackcount(String id); + + void updateuser(String topPic, Integer sex, String seusername); } diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/service/impl/ExpertServiceImpl.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/service/impl/ExpertServiceImpl.java index 8076c5b..56e21c4 100644 --- a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/service/impl/ExpertServiceImpl.java +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/service/impl/ExpertServiceImpl.java @@ -107,4 +107,9 @@ public class ExpertServiceImpl extends ServiceImpl impleme public void handlebackcount(String id) { expertMapper.handlebackcount(id); } + + @Override + public void updateuser(String topPic, Integer sex, String seusername) { + expertMapper.updateuser(topPic,sex,seusername); + } } diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expproject/controller/ExpprojectController.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expproject/controller/ExpprojectController.java index ac98550..043981c 100644 --- a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expproject/controller/ExpprojectController.java +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expproject/controller/ExpprojectController.java @@ -172,7 +172,14 @@ public class ExpprojectController { if(expprojectEntity==null) { return Result.error("未找到对应数据"); } - if (expproject.getNeedexp()>=expprojectPage.getExpandproList().size()) { + int a=0; + if ( expprojectPage.getExpandproList() != null && !expprojectPage.getExpandproList().isEmpty()) { + a=expprojectPage.getExpandproList().size(); + }else { + a=0; + } + + if (expproject.getNeedexp()>=a) { expprojectService.updateMain(expproject, expprojectPage.getExpandproList()); return Result.OK("编辑成功!"); }else { diff --git a/jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/controller/SysDepartController.java b/jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/controller/SysDepartController.java index d90e3a4..803fd42 100644 --- a/jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/controller/SysDepartController.java +++ b/jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/controller/SysDepartController.java @@ -44,6 +44,7 @@ import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.util.*; +import java.util.stream.Collectors; /** *

@@ -170,6 +171,33 @@ public class SysDepartController { return result; } + /** + * @description: 法人注册时,只显示市和县区科技局,不显示下属单位 + * @param: [parentId, ids, primaryKey] + * @return: org.jeecg.common.api.vo.Result> + * @author: z.h.c + * @date: 24/11/9 16:07 + */ + @RequestMapping(value = "/queryDepartTreeSync4FaRen", method = RequestMethod.GET) + public Result> queryDepartTreeSync4FaRen(@RequestParam(name = "pid", required = false) String parentId, + @RequestParam(name = "ids", required = false) String ids, + @RequestParam(name = "primaryKey", required = false) String primaryKey) { + Result> result = new Result<>(); + try { +// parentId = "1839495887972130817"; + List sysDeparts = sysDepartService.list(new LambdaQueryWrapper().eq(SysDepart::getParentId, "1839495887972130817")); + ids = Optional.ofNullable(sysDeparts).orElse(new LinkedList<>()).stream().map(e -> e.getId()).collect(Collectors.joining(",")); + List list = sysDepartService.queryTreeListByPid4FaRen(parentId, ids, primaryKey); + result.setResult(list); + result.setSuccess(true); + } catch (Exception e) { + log.error(e.getMessage(), e); + result.setSuccess(false); + result.setMessage("查询失败"); + } + return result; + } + /** * 获取某个部门的所有父级部门的ID * diff --git a/jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/service/ISysDepartService.java b/jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/service/ISysDepartService.java index 95503a8..23404eb 100644 --- a/jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/service/ISysDepartService.java +++ b/jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/service/ISysDepartService.java @@ -148,6 +148,7 @@ public interface ISysDepartService extends IService{ * @return */ List queryTreeListByPid(String parentId,String ids, String primaryKey); + List queryTreeListByPid4FaRen(String parentId,String ids, String primaryKey); /** * 获取某个部门的所有父级部门的ID diff --git a/jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/service/impl/SysDepartServiceImpl.java b/jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/service/impl/SysDepartServiceImpl.java index 279ad83..3d1ad59 100644 --- a/jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/service/impl/SysDepartServiceImpl.java +++ b/jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/service/impl/SysDepartServiceImpl.java @@ -645,6 +645,53 @@ public class SysDepartServiceImpl extends ServiceImpl queryTreeListByPid4FaRen(String parentId,String ids, String primaryKey) { + /*Consumer> square = i -> { + if (oConvertUtils.isNotEmpty(ids)) { + if (CommonConstant.DEPART_KEY_ORG_CODE.equals(primaryKey)) { + i.in(SysDepart::getOrgCode, ids.split(SymbolConstant.COMMA)); + } else { + i.in(SysDepart::getId, ids.split(SymbolConstant.COMMA)); + } + } else { + if(oConvertUtils.isEmpty(parentId)){ + i.and(q->q.isNull(true,SysDepart::getParentId).or().eq(true,SysDepart::getParentId,"")); + }else{ + i.eq(true,SysDepart::getParentId,parentId); + } + } + };*/ + LambdaQueryWrapper lqw=new LambdaQueryWrapper<>(); + + lqw.in(SysDepart::getId,ids.split(SymbolConstant.COMMA)); +// i.in(SysDepart::getOrgCode, ids.split(SymbolConstant.COMMA)); + //------------------------------------------------------------------------------------------------ + //是否开启系统管理模块的 SASS 控制 + /*if(MybatisPlusSaasConfig.OPEN_SYSTEM_TENANT_CONTROL){ + lqw.eq(SysDepart::getTenantId, oConvertUtils.getInt(TenantContext.getTenant(), 0)); + }*/ + //------------------------------------------------------------------------------------------------ + lqw.eq(true,SysDepart::getDelFlag,CommonConstant.DEL_FLAG_0.toString()); +// lqw.func(square); + //update-begin---author:wangshuai ---date:20220527 for:[VUEN-1143]排序不对,vue3和2应该都有问题,应该按照升序排------------ + lqw.orderByAsc(SysDepart::getDepartOrder); + //update-end---author:wangshuai ---date:20220527 for:[VUEN-1143]排序不对,vue3和2应该都有问题,应该按照升序排-------------- + List list = list(lqw); + //update-begin---author:wangshuai ---date:20220316 for:[JTC-119]在部门管理菜单下设置部门负责人 创建用户的时候不需要处理 + //设置用户id,让前台显示 +// this.setUserIdsByDepList(list); + //update-end---author:wangshuai ---date:20220316 for:[JTC-119]在部门管理菜单下设置部门负责人 创建用户的时候不需要处理 + List records = new ArrayList<>(); + for (int i = 0; i < list.size(); i++) { + SysDepart depart = list.get(i); + SysDepartTreeModel treeModel = new SysDepartTreeModel(depart); + //TODO 异步树加载key拼接__+时间戳,以便于每次展开节点会刷新数据 + //treeModel.setKey(treeModel.getKey()+"__"+System.currentTimeMillis()); + records.add(treeModel); + } + return records; + } + @Override public JSONObject queryAllParentIdByDepartId(String departId) { JSONObject result = new JSONObject(); diff --git a/jeecgboot-vue3/src/api/common/api.ts b/jeecgboot-vue3/src/api/common/api.ts index 47d5cfb..7772087 100644 --- a/jeecgboot-vue3/src/api/common/api.ts +++ b/jeecgboot-vue3/src/api/common/api.ts @@ -8,6 +8,7 @@ enum Api { userList = '/sys/user/list', roleList = '/sys/role/list', queryDepartTreeSync = '/sys/sysDepart/queryDepartTreeSync', + queryDepartTreeSync4FaRen = '/sys/sysDepart/queryDepartTreeSync4FaRen', queryTreeList = '/sys/sysDepart/queryTreeList', loadTreeData = '/sys/category/loadTreeData', loadDictItem = '/sys/category/loadDictItem/', @@ -51,6 +52,13 @@ export const getRoleList = (params) => { export const queryDepartTreeSync = (params?) => { return defHttp.get({ url: Api.queryDepartTreeSync, params }); }; + +// 法人注册时,弹出列表只显示市和县区科技局,不显示下属单位 add by zhc 11.10 +export const queryDepartTreeSync4FaRen = (params?) => { + return defHttp.get({ url: Api.queryDepartTreeSync4FaRen, params }); +}; + + /** * 获取部门树列表 */ diff --git a/jeecgboot-vue3/src/components/Form/src/jeecg/components/JSelectDept4FaRen.vue b/jeecgboot-vue3/src/components/Form/src/jeecg/components/JSelectDept4FaRen.vue new file mode 100644 index 0000000..6429ee3 --- /dev/null +++ b/jeecgboot-vue3/src/components/Form/src/jeecg/components/JSelectDept4FaRen.vue @@ -0,0 +1,207 @@ + + + + diff --git a/jeecgboot-vue3/src/components/Form/src/jeecg/components/modal/DeptSelectModal4FaRen.vue b/jeecgboot-vue3/src/components/Form/src/jeecg/components/modal/DeptSelectModal4FaRen.vue new file mode 100644 index 0000000..ec88712 --- /dev/null +++ b/jeecgboot-vue3/src/components/Form/src/jeecg/components/modal/DeptSelectModal4FaRen.vue @@ -0,0 +1,131 @@ + + + diff --git a/jeecgboot-vue3/src/views/expert/admin/Expert.api.ts b/jeecgboot-vue3/src/views/expert/admin/Expert.api.ts index 354bae9..91924e6 100644 --- a/jeecgboot-vue3/src/views/expert/admin/Expert.api.ts +++ b/jeecgboot-vue3/src/views/expert/admin/Expert.api.ts @@ -13,6 +13,7 @@ enum Api { exportXls = '/expert/expert/exportXls', handleadminback = '/expert/expert/handleadminback', handleadminup = '/expert/expert/handleadminup', + saveOrUpdateadminbhapi= '/expert/expert/saveOrUpdateadminbh', } /** @@ -89,3 +90,7 @@ export const saveOrUpdate = (params, isUpdate) => { let url = isUpdate ? Api.edit : Api.save; return defHttp.post({ url: url, params }, { isTransformResponse: false }); } +export const saveOrUpdateadminbh = (params, isUpdate) => { + let url = isUpdate ? Api.saveOrUpdateadminbhapi : Api.save; + return defHttp.post({ url: url, params }, { isTransformResponse: false }); +} diff --git a/jeecgboot-vue3/src/views/expert/admin/ExpertList.vue b/jeecgboot-vue3/src/views/expert/admin/ExpertList.vue index 8975cb8..72d4814 100644 --- a/jeecgboot-vue3/src/views/expert/admin/ExpertList.vue +++ b/jeecgboot-vue3/src/views/expert/admin/ExpertList.vue @@ -79,6 +79,7 @@ + @@ -90,6 +91,7 @@ import { list, deleteOne, batchDelete, getImportUrl, getExportUrl,handleadminup,handleadminback } from './Expert.api'; import { downloadFile } from '/src/utils/common/renderUtils'; import ExpertModal from './components/ExpertModal.vue' + import ExpertModal1 from './components/ExpertModal1.vue' import { useUserStore } from '/src/store/modules/user'; import JDictSelectTag from '/src/components/Form/src/jeecg/components/JDictSelectTag.vue'; import JSwitch from '/src/components/Form/src/jeecg/components/JSwitch.vue'; @@ -99,6 +101,7 @@ const queryParam = reactive({}); const toggleSearchStatus = ref(false); const registerModal = ref(); + const registerModal1zbc = ref(); const userStore = useUserStore(); //注册table数据 const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({ @@ -166,6 +169,13 @@ registerModal.value.disableSubmit = false; registerModal.value.edit(record); } + function handleEdit1zbc(record: Recordable) { + registerModal1zbc.value.disableSubmit = false; + console.log(registerModal1zbc.value,'registerForm.value') + + registerModal1zbc.value.edit(record); + } + /** * 详情 @@ -237,14 +247,10 @@ confirm: handleupadmin.bind(null, record), placement: 'topLeft', }, - }, { - label: '驳回审核', - popConfirm: { - title: '是否驳回', - confirm: handlebackadmin.bind(null, record), - placement: 'topLeft', - }, - } + }, { + label: '驳回', + onClick: handleEdit1zbc.bind(null, record), + }, ]; } @@ -271,13 +277,9 @@ placement: 'topLeft', }, }, { - label: '驳回审核', - popConfirm: { - title: '是否驳回', - confirm: handlebackadmin.bind(null, record), - placement: 'topLeft', - }, - } + label: '驳回', + onClick: handleEdit1zbc.bind(null, record), + }, ] } diff --git a/jeecgboot-vue3/src/views/expert/admin/components/ExpertForm1.vue b/jeecgboot-vue3/src/views/expert/admin/components/ExpertForm1.vue new file mode 100644 index 0000000..5e6a335 --- /dev/null +++ b/jeecgboot-vue3/src/views/expert/admin/components/ExpertForm1.vue @@ -0,0 +1,188 @@ + + + + + diff --git a/jeecgboot-vue3/src/views/expert/admin/components/ExpertModal1.vue b/jeecgboot-vue3/src/views/expert/admin/components/ExpertModal1.vue new file mode 100644 index 0000000..28fc94e --- /dev/null +++ b/jeecgboot-vue3/src/views/expert/admin/components/ExpertModal1.vue @@ -0,0 +1,78 @@ + + + + + + diff --git a/jeecgboot-vue3/src/views/expert/county/Expert.api.ts b/jeecgboot-vue3/src/views/expert/county/Expert.api.ts index 7222793..634f747 100644 --- a/jeecgboot-vue3/src/views/expert/county/Expert.api.ts +++ b/jeecgboot-vue3/src/views/expert/county/Expert.api.ts @@ -13,6 +13,7 @@ enum Api { exportXls = '/expert/expert/exportXls', handleupcount = '/expert/expert/handleupcount', handlebackcoount = '/expert/expert/handlebackcoount', + saveOrUpdateadminbhapi= '/expert/expert/saveOrUpdateadminbh', } /** @@ -88,3 +89,9 @@ export const saveOrUpdate = (params, isUpdate) => { let url = isUpdate ? Api.edit : Api.save; return defHttp.post({ url: url, params }, { isTransformResponse: false }); } + + +export const saveOrUpdateadminbh = (params, isUpdate) => { + let url = isUpdate ? Api.saveOrUpdateadminbhapi : Api.save; + return defHttp.post({ url: url, params }, { isTransformResponse: false }); +} diff --git a/jeecgboot-vue3/src/views/expert/county/ExpertList.vue b/jeecgboot-vue3/src/views/expert/county/ExpertList.vue index 954748e..5de33c8 100644 --- a/jeecgboot-vue3/src/views/expert/county/ExpertList.vue +++ b/jeecgboot-vue3/src/views/expert/county/ExpertList.vue @@ -69,6 +69,7 @@ + @@ -80,6 +81,7 @@ import { list, deleteOne, batchDelete, getImportUrl, getExportUrl,handleupcount,handlebackco } from './Expert.api'; import { downloadFile } from '/src/utils/common/renderUtils'; import ExpertModal from './components/ExpertModal.vue' + import ExpertModal1 from './components/ExpertModal1.vue' import { useUserStore } from '/src/store/modules/user'; import JDictSelectTag from '/src/components/Form/src/jeecg/components/JDictSelectTag.vue'; import JSwitch from '/src/components/Form/src/jeecg/components/JSwitch.vue'; @@ -90,6 +92,7 @@ const queryParam = reactive({}); const toggleSearchStatus = ref(false); const registerModal = ref(); + const registerModal1 = ref(); const userStore = useUserStore(); //注册table数据 const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({ @@ -158,6 +161,14 @@ registerModal.value.edit(record); } + /** + * 编辑事件 + */ + function handleEdit1(record: Recordable) { + registerModal1.value.disableSubmit = false; + registerModal1.value.edit(record); + } + /** * 详情 */ @@ -229,12 +240,8 @@ }, }, { label: '驳回', - popConfirm: { - title: '是否确认通过审核', - confirm: handlebackcount.bind(null, record), - placement: 'topLeft', - }, - } + onClick: handleEdit1.bind(null, record), + }, ]; } diff --git a/jeecgboot-vue3/src/views/expert/county/components/ExpertForm1.vue b/jeecgboot-vue3/src/views/expert/county/components/ExpertForm1.vue new file mode 100644 index 0000000..e0a615b --- /dev/null +++ b/jeecgboot-vue3/src/views/expert/county/components/ExpertForm1.vue @@ -0,0 +1,182 @@ + + + + + diff --git a/jeecgboot-vue3/src/views/expert/county/components/ExpertModal1.vue b/jeecgboot-vue3/src/views/expert/county/components/ExpertModal1.vue new file mode 100644 index 0000000..32f8ad5 --- /dev/null +++ b/jeecgboot-vue3/src/views/expert/county/components/ExpertModal1.vue @@ -0,0 +1,77 @@ + + + + + + diff --git a/jeecgboot-vue3/src/views/expert/firm/components/ExpertForm.vue b/jeecgboot-vue3/src/views/expert/firm/components/ExpertForm.vue index 7abd887..e13d20b 100644 --- a/jeecgboot-vue3/src/views/expert/firm/components/ExpertForm.vue +++ b/jeecgboot-vue3/src/views/expert/firm/components/ExpertForm.vue @@ -98,7 +98,7 @@ - + diff --git a/jeecgboot-vue3/src/views/expert/self/components/ExpertForm.vue b/jeecgboot-vue3/src/views/expert/self/components/ExpertForm.vue index a9e378d..fd0abe8 100644 --- a/jeecgboot-vue3/src/views/expert/self/components/ExpertForm.vue +++ b/jeecgboot-vue3/src/views/expert/self/components/ExpertForm.vue @@ -94,8 +94,8 @@ - - + + diff --git a/jeecgboot-vue3/src/views/system/loginmini/MiniRegister4faren.vue b/jeecgboot-vue3/src/views/system/loginmini/MiniRegister4faren.vue index 506adcf..1085f79 100644 --- a/jeecgboot-vue3/src/views/system/loginmini/MiniRegister4faren.vue +++ b/jeecgboot-vue3/src/views/system/loginmini/MiniRegister4faren.vue @@ -41,7 +41,7 @@

- +
@@ -126,6 +126,7 @@ import eyeKImg from '/@/assets/loginmini/icon/icon-eye-k.png'; import eyeGImg from '/@/assets/loginmini/icon/icon-eye-g.png'; import JSelectDept from '/@/components/Form/src/jeecg/components/JSelectDept.vue'; + import JSelectDept4FaRen from '/@/components/Form/src/jeecg/components/JSelectDept4FaRen.vue'; import { useI18n } from '/@/hooks/web/useI18n'; import codeImg from '/@/assets/images/checkcode.png';