diff --git a/README-EN.md b/README-EN.md index 05fc7345..049825a2 100644 --- a/README-EN.md +++ b/README-EN.md @@ -88,7 +88,7 @@ Technical documentation - Doc: [http://help.jeecg.com](http://help.jeecg.com) - Newbie guide: [Quick start](http://www.jeecg.com/doc/quickstart) | [video](https://space.bilibili.com/454617261/channel/series) | [Q&A ](http://www.jeecg.com/doc/qa) | [help](http://jeecg.com/doc/help) | [1 minute experience](https://my.oschina.net/jeecg/blog/3083313) - Microservice Development: [Monomer upgrade to microservice](https://help.jeecg.com/java/springcloud/switchcloud/monomer.html) -- QQ group : ⑦791696430、⑥730954414、683903138、⑤860162132(full)、④774126647(full)、③816531124(full)、②769925425(full)、①284271917(full) +- QQ group : ⑧825232878、⑦791696430、⑥730954414(full)、683903138(full)、⑤860162132(full)、④774126647(full)、③816531124(full)、②769925425(full)、①284271917(full) - Demo : [Vue3](http://boot3.jeecg.com) | [Vue2](http://boot.jeecg.com) | [APP](http://jeecg.com/appIndex) > [please click obtain account password to obtain](http://jeecg.com/doc/demo) diff --git a/README.md b/README.md index d657daca..b7f80290 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ Docker快速启动项目 - 在线演示 : [Vue3演示](http://boot3.jeecg.com) | [APP演示](http://jeecg.com/appIndex) | [敲敲云零代码](https://qiaoqiaoyun.com) > 演示系统的登录账号密码,请点击 [获取账号密码](http://jeecg.com/doc/demo) 获取 > -- QQ交流群 : ⑦791696430、⑥730954414、VUE3群683903138、⑤860162132(满)、④774126647(满)、③816531124(满)、②769925425(满)、①284271917(满) +- QQ交流群 : ⑧825232878、⑦791696430(满)、⑥730954414(满)、683903138(满)、⑤860162132(满)、④774126647(满)、③816531124(满)、②769925425(满)、①284271917(满) > ` 提醒:【QQ群是自助服务群,建议给帮助您解决问题的同学发送指定红包,表示感谢!】 ` diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/mapper/SysUserPositionMapper.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/mapper/SysUserPositionMapper.java index 38f9511d..be692db9 100644 --- a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/mapper/SysUserPositionMapper.java +++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/mapper/SysUserPositionMapper.java @@ -1,16 +1,17 @@ package org.jeecg.modules.system.mapper; -import java.util.List; - +import com.baomidou.mybatisplus.annotation.InterceptorIgnore; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import org.apache.ibatis.annotations.Delete; +import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; import org.jeecg.modules.system.entity.SysUser; import org.jeecg.modules.system.entity.SysUserPosition; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import org.apache.ibatis.annotations.Param; import org.jeecg.modules.system.vo.SysUserPositionVo; +import java.util.List; + /** * @Description: 用户职位关系表 * @Author: jeecg-boot @@ -64,7 +65,8 @@ public interface SysUserPositionMapper extends BaseMapper { * @param tenantId * @return */ - List getPositionIdByUserTenantId(@Param("userId")String userId, @Param("tenantId")Integer tenantId); + @InterceptorIgnore(tenantLine = "true") + List getPositionIdByUserTenantId(@Param("userId") String userId, @Param("tenantId") Integer tenantId); /** * 根据用户id获取用户职位 diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/mapper/xml/SysUserPositionMapper.xml b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/mapper/xml/SysUserPositionMapper.xml index 6678102a..a398fc86 100644 --- a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/mapper/xml/SysUserPositionMapper.xml +++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/mapper/xml/SysUserPositionMapper.xml @@ -26,7 +26,9 @@ LEFT JOIN sys_position sp ON sup.position_id = sp.id WHERE sup.user_id = #{userId} - AND sp.tenant_id = #{tenantId} + + AND sp.tenant_id = #{tenantId} + diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/service/impl/SysUserServiceImpl.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/service/impl/SysUserServiceImpl.java index 54d883b9..bb64c87b 100644 --- a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/service/impl/SysUserServiceImpl.java +++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/service/impl/SysUserServiceImpl.java @@ -1,13 +1,11 @@ package org.jeecg.modules.system.service.impl; -import cn.hutool.core.bean.BeanUtil; import cn.hutool.core.collection.CollectionUtil; import cn.hutool.core.util.RandomUtil; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; @@ -28,7 +26,6 @@ import org.jeecg.common.constant.enums.MessageTypeEnum; import org.jeecg.common.constant.enums.RoleIndexConfigEnum; import org.jeecg.common.desensitization.annotation.SensitiveEncode; import org.jeecg.common.exception.JeecgBootException; -import org.jeecg.common.system.api.ISysBaseAPI; import org.jeecg.common.system.vo.LoginUser; import org.jeecg.common.system.vo.SysUserCacheInfo; import org.jeecg.common.util.*; @@ -43,9 +40,9 @@ import org.jeecg.modules.system.service.ISysUserService; import org.jeecg.modules.system.vo.SysUserDepVo; import org.jeecg.modules.system.vo.SysUserPositionVo; import org.jeecg.modules.system.vo.UserAvatar; +import org.jeecg.modules.system.vo.lowapp.AppExportUserVo; import org.jeecg.modules.system.vo.lowapp.DepartAndUserInfo; import org.jeecg.modules.system.vo.lowapp.DepartInfo; -import org.jeecg.modules.system.vo.lowapp.AppExportUserVo; import org.jeecg.modules.system.vo.lowapp.UpdateDepartInfo; import org.jeecgframework.poi.excel.ExcelImportUtil; import org.jeecgframework.poi.excel.def.NormalExcelConstants; @@ -103,13 +100,13 @@ public class SysUserServiceImpl extends ServiceImpl impl @Autowired private SysThirdAccountMapper sysThirdAccountMapper; @Autowired - ThirdAppWechatEnterpriseServiceImpl wechatEnterpriseService; + ThirdAppWechatEnterpriseServiceImpl wechatEnterpriseService; @Autowired - ThirdAppDingtalkServiceImpl dingtalkService; + ThirdAppDingtalkServiceImpl dingtalkService; @Autowired - SysRoleIndexMapper sysRoleIndexMapper; + SysRoleIndexMapper sysRoleIndexMapper; @Autowired - SysTenantMapper sysTenantMapper; + SysTenantMapper sysTenantMapper; @Autowired private SysUserTenantMapper relationMapper; @Autowired @@ -178,8 +175,14 @@ public class SysUserServiceImpl extends ServiceImpl impl } else { item.setRelTenantIds(""); } + Integer posTenantId = null; + if (MybatisPlusSaasConfig.OPEN_SYSTEM_TENANT_CONTROL) { + posTenantId = tenantId; + } //查询用户职位关系表(获取租户下面的) - List positionList = sysUserPositionMapper.getPositionIdByUserTenantId(item.getId(),tenantId); + //update-begin---author:wangshuai---date:2023-11-15---for:【QQYUN-7028】用户职务保存后未回显--- + List positionList = sysUserPositionMapper.getPositionIdByUserTenantId(item.getId(),posTenantId); + //update-end---author:wangshuai---date:2023-11-15---for:【QQYUN-7028】用户职务保存后未回显--- //update-end---author:wangshuai ---date:20230228 for:[QQYUN-4354]加入更多字段:当前加入时间应该取当前租户的/职位也是当前租户下的------------ item.setPost(CommonUtils.getSplitText(positionList,SymbolConstant.COMMA)); @@ -929,7 +932,17 @@ public class SysUserServiceImpl extends ServiceImpl impl relation.setUserId(userId); relation.setTenantId(Integer.valueOf(tenantId)); relation.setStatus(CommonConstant.STATUS_1); - relationMapper.insert(relation); + + LambdaQueryWrapper sysUserTenantQueryWrapper = new LambdaQueryWrapper() + .eq(SysUserTenant::getUserId, userId) + .eq(SysUserTenant::getTenantId,Integer.valueOf(tenantId)); + SysUserTenant tenantPresent = relationMapper.selectOne(sysUserTenantQueryWrapper); + if (tenantPresent != null) { + tenantPresent.setStatus(CommonConstant.STATUS_1); + relationMapper.updateById(tenantPresent); + }else{ + relationMapper.insert(relation); + } } }else{ //是否开启系统管理模块的多租户数据隔离【SAAS多租户模式】 @@ -960,7 +973,7 @@ public class SysUserServiceImpl extends ServiceImpl impl LambdaQueryWrapper query = new LambdaQueryWrapper<>(); query.eq(SysUserTenant::getUserId, userId); //数据库的租户id - List oldTenantIds = relationMapper.getTenantIdsNoStatus(userId); + List oldTenantIds = relationMapper.getTenantIdsByUserId(userId); //如果传过来的租户id为空,那么就删除租户 if (oConvertUtils.isEmpty(relTenantIds) && CollectionUtils.isNotEmpty(oldTenantIds)) { this.deleteTenantByUserId(userId, null); diff --git a/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/common/form/native/vue3NativeForm.ftl b/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/common/form/native/vue3NativeForm.ftl index 95421ca1..53ae5848 100644 --- a/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/common/form/native/vue3NativeForm.ftl +++ b/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/common/form/native/vue3NativeForm.ftl @@ -40,7 +40,7 @@ :options="${po.dictField}" <#if po.readonly=='Y'>disabled<#else>:disabled="disabled"> <#elseif po.classType =='pca'> <#assign need_pca = true> - disabled<#else>:disabled="disabled" /> + disabled<#else>:disabled="disabled" /> <#elseif po.classType =='markdown'> <#assign need_markdown = true> disabled<#else>:disabled="disabled"> diff --git a/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/common/form/native/vue3NativeImport.ftl b/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/common/form/native/vue3NativeImport.ftl index 1c9a3f7e..1a359154 100644 --- a/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/common/form/native/vue3NativeImport.ftl +++ b/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/common/form/native/vue3NativeImport.ftl @@ -29,7 +29,7 @@ import { TimePicker } from 'ant-design-vue'; <#if need_pca> - import JAreaLinkage from '/@/components/Form/src/jeecg/components/JAreaLinkage.vue'; + import JAreaSelect from '/@/components/Form/src/jeecg/components/JAreaSelect.vue'; <#if need_upload> import JUpload from '/@/components/Form/src/jeecg/components/JUpload/JUpload.vue'; diff --git a/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/common/form/native/vue3NativeSearch.ftl b/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/common/form/native/vue3NativeSearch.ftl index 8b30eb15..577798a5 100644 --- a/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/common/form/native/vue3NativeSearch.ftl +++ b/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/common/form/native/vue3NativeSearch.ftl @@ -14,12 +14,12 @@ <#if po.queryMode=='single'> <#if query_field_no gt 1> - <#if query_field_no gt 1> + <#if query_field_no gt 1> <#if query_field_no gt 1> <#if po.classType=='sel_search'> <#if query_field_no gt 1> <#elseif po.classType=='sel_user'> - <#if query_field_no gt 1> + <#if query_field_no gt 1> <#elseif po.classType=='switch'> <#if query_field_no gt 1> :options="${po.dictField}" query /> <#elseif po.classType=='sel_depart'> @@ -32,8 +32,10 @@ <#if query_field_no gt 1> <#elseif po.classType=='datetime'> <#if query_field_no gt 1> + <#elseif po.classType=='time'> + <#if query_field_no gt 1> <#elseif po.classType=='pca'> - <#if query_field_no gt 1> + <#if query_field_no gt 1> <#elseif po.classType=='sel_tree'> <#if query_field_no gt 1> <#if po.dictText?split(',')[2]?? && po.dictText?split(',')[0]??>dict="${po.dictTable},${po.dictText?split(',')[2]},${po.dictText?split(',')[0]}" <#elseif po.dictText?split(',')[1]??>pidField:"${po.dictText?split(',')[1]}", <#elseif po.dictText?split(',')[3]??>hasChildField:"${po.dictText?split(',')[3]}" pidValue="${po.dictField}" /> <#elseif po.classType=='popup'> @@ -60,7 +62,7 @@ <#if query_field_no gt 1> <#else> - <#if query_field_no gt 1> + <#if query_field_no gt 1> <#if query_field_no gt 1> <#if query_field_no gt 1> @@ -69,17 +71,45 @@ <#if query_field_no gt 1> <#if query_field_no gt 1> <#if po.classType=='date'> - <#if query_field_no gt 1> - <#if query_field_no gt 1> ~ - <#if query_field_no gt 1> + <#if query_field_no gt 1>
+ <#if query_field_no gt 1> + <#if query_field_no gt 1> + <#if query_field_no gt 1> + <#if query_field_no gt 1> ~ + <#if query_field_no gt 1> + <#if query_field_no gt 1> + <#if query_field_no gt 1> + <#if query_field_no gt 1>
+ <#elseif po.classType=='time'> + <#if query_field_no gt 1>
+ <#if query_field_no gt 1> + <#if query_field_no gt 1> + <#if query_field_no gt 1> + <#if query_field_no gt 1> ~ + <#if query_field_no gt 1> + <#if query_field_no gt 1> + <#if query_field_no gt 1> + <#if query_field_no gt 1>
<#elseif po.classType=='datetime'> - <#if query_field_no gt 1> - <#if query_field_no gt 1> ~ - <#if query_field_no gt 1> + <#if query_field_no gt 1>
+ <#if query_field_no gt 1> + <#if query_field_no gt 1> + <#if query_field_no gt 1> + <#if query_field_no gt 1> ~ + <#if query_field_no gt 1> + <#if query_field_no gt 1> + <#if query_field_no gt 1> + <#if query_field_no gt 1>
<#else> - <#if query_field_no gt 1> - <#if query_field_no gt 1> ~ - <#if query_field_no gt 1> + <#if query_field_no gt 1>
+ <#if query_field_no gt 1> + <#if query_field_no gt 1> + <#if query_field_no gt 1> + <#if query_field_no gt 1> ~ + <#if query_field_no gt 1> + <#if query_field_no gt 1> + <#if query_field_no gt 1> + <#if query_field_no gt 1>
<#if query_field_no gt 1>
<#if query_field_no gt 1> diff --git a/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/default/one/java/${bussiPackage}/${entityPackage}/vue3/${entityName}List.vuei b/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/default/one/java/${bussiPackage}/${entityPackage}/vue3/${entityName}List.vuei index 8a4cace7..a111cf99 100644 --- a/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/default/one/java/${bussiPackage}/${entityPackage}/vue3/${entityName}List.vuei +++ b/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/default/one/java/${bussiPackage}/${entityPackage}/vue3/${entityName}List.vuei @@ -133,7 +133,7 @@ ], }, actionColumn: { - width: 150, + width: 120, fixed:'right' }, }, @@ -221,6 +221,7 @@ popConfirm: { title: '是否确认删除', confirm: handleDelete.bind(null, record), + placement: 'topLeft', } } ]; @@ -230,6 +231,7 @@ popConfirm: { title: '确认提交流程吗?', confirm: handleProcess.bind(null, record), + placement: 'topLeft', } }) } @@ -244,6 +246,7 @@ popConfirm: { title: '是否确认删除', confirm: handleDelete.bind(null, record), + placement: 'topLeft', } } ] diff --git a/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/default/one/java/${bussiPackage}/${entityPackage}/vue3/vue-app/${entityName}Form.vuei b/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/default/one/java/${bussiPackage}/${entityPackage}/vue3/vue-app/${entityName}Form.vuei new file mode 100644 index 00000000..878e1540 --- /dev/null +++ b/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/default/one/java/${bussiPackage}/${entityPackage}/vue3/vue-app/${entityName}Form.vuei @@ -0,0 +1,93 @@ + + + diff --git a/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/default/one/java/${bussiPackage}/${entityPackage}/vue3/vue-app/${entityName}List.vuei b/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/default/one/java/${bussiPackage}/${entityPackage}/vue3/vue-app/${entityName}List.vuei new file mode 100644 index 00000000..4e499af4 --- /dev/null +++ b/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/default/one/java/${bussiPackage}/${entityPackage}/vue3/vue-app/${entityName}List.vuei @@ -0,0 +1,44 @@ + + + + diff --git a/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/default/one/java/${bussiPackage}/${entityPackage}/vue3Native/${entityName}List.vuei b/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/default/one/java/${bussiPackage}/${entityPackage}/vue3Native/${entityName}List.vuei index 30d965c9..3b50d581 100644 --- a/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/default/one/java/${bussiPackage}/${entityPackage}/vue3Native/${entityName}List.vuei +++ b/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/default/one/java/${bussiPackage}/${entityPackage}/vue3Native/${entityName}List.vuei @@ -169,7 +169,7 @@ canResize:false, useSearchForm: false, actionColumn: { - width: 150, + width: 120, fixed: 'right', }, beforeFetch: (params) => { @@ -269,6 +269,7 @@ popConfirm: { title: '是否确认删除', confirm: handleDelete.bind(null, record), + placement: 'topLeft', } } ]; @@ -278,6 +279,7 @@ popConfirm: { title: '确认提交流程吗?', confirm: handleProcess.bind(null, record), + placement: 'topLeft', } }) } @@ -292,6 +294,7 @@ popConfirm: { title: '是否确认删除', confirm: handleDelete.bind(null, record), + placement: 'topLeft', } } ] @@ -326,13 +329,13 @@ } - <#if need_pca> + <#if need_pca || need_dept_user> /** - * 省市区点击事件 + * form点击事件(以逗号分割) * @param key * @param value */ - function handleAreaChange(key, value) { + function handleFormJoinChange(key, value) { queryParam[key] = value.join(','); } @@ -394,7 +397,6 @@ white-space: nowrap; } .query-group-cust{ - width: calc(50% - 15px); min-width: 100px !important; } .query-group-split-cust{ diff --git a/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/default/one/java/${bussiPackage}/${entityPackage}/vue3Native/components/${entityName}Form.vuei b/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/default/one/java/${bussiPackage}/${entityPackage}/vue3Native/components/${entityName}Form.vuei index c85652df..7dc1eba9 100644 --- a/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/default/one/java/${bussiPackage}/${entityPackage}/vue3Native/components/${entityName}Form.vuei +++ b/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/default/one/java/${bussiPackage}/${entityPackage}/vue3Native/components/${entityName}Form.vuei @@ -212,8 +212,8 @@ diff --git a/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/default/tree/java/${bussiPackage}/${entityPackage}/vue3/${entityName}List.vuei b/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/default/tree/java/${bussiPackage}/${entityPackage}/vue3/${entityName}List.vuei index 2c2031e1..ba1fab0f 100644 --- a/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/default/tree/java/${bussiPackage}/${entityPackage}/vue3/${entityName}List.vuei +++ b/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/default/tree/java/${bussiPackage}/${entityPackage}/vue3/${entityName}List.vuei @@ -357,7 +357,8 @@ label: '删除', popConfirm: { title: '是否确认删除', - confirm: handleDelete.bind(null, record) + confirm: handleDelete.bind(null, record), + placement: 'topLeft', } } ]; @@ -367,6 +368,7 @@ popConfirm: { title: '确认提交流程吗?', confirm: handleProcess.bind(null, record), + placement: 'topLeft', } }) } @@ -381,6 +383,7 @@ popConfirm: { title: '确定删除吗?', confirm: handleDelete.bind(null, record), + placement: 'topLeft', } } ] diff --git a/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/default/tree/java/${bussiPackage}/${entityPackage}/vue3Native/${entityName}List.vuei b/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/default/tree/java/${bussiPackage}/${entityPackage}/vue3Native/${entityName}List.vuei index bfaf3db8..d83211eb 100644 --- a/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/default/tree/java/${bussiPackage}/${entityPackage}/vue3Native/${entityName}List.vuei +++ b/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/default/tree/java/${bussiPackage}/${entityPackage}/vue3Native/${entityName}List.vuei @@ -419,6 +419,7 @@ popConfirm: { title: '确定删除吗?', confirm: handleDelete.bind(null, record), + placement: 'topLeft', }, }, ]; @@ -428,6 +429,7 @@ popConfirm: { title: '确认提交流程吗?', confirm: handleProcess.bind(null, record), + placement: 'topLeft', } }) } @@ -447,6 +449,7 @@ popConfirm: { title: '确定删除吗?', confirm: handleDelete.bind(null, record), + placement: 'topLeft', }, }, ]; @@ -498,14 +501,14 @@ } - <#if need_pca> + <#if need_pca || need_dept_user> /** - * 省市区点击事件 + * form点击事件(以逗号分割) * @param key * @param value */ - function handleAreaChange(key, value) { - queryParam.value[key] = value.join(','); + function handleFormJoinChange(key, value) { + queryParam[key] = value.join(','); } @@ -551,7 +554,6 @@ white-space: nowrap; } .query-group-cust{ - width: calc(50% - 15px); min-width: 100px !important; } .query-group-split-cust{ diff --git a/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/default/tree/java/${bussiPackage}/${entityPackage}/vue3Native/components/${entityName}Form.vuei b/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/default/tree/java/${bussiPackage}/${entityPackage}/vue3Native/components/${entityName}Form.vuei index 2cdf4234..e916af2f 100644 --- a/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/default/tree/java/${bussiPackage}/${entityPackage}/vue3Native/components/${entityName}Form.vuei +++ b/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/default/tree/java/${bussiPackage}/${entityPackage}/vue3Native/components/${entityName}Form.vuei @@ -208,6 +208,7 @@ .then(async (res) => { if (res.success) { await getExpandKeysByPid(formData['${pidFieldName}'], unref(treeData)); + delete formData['children']; emit('ok', { isUpdate: unref(isUpdate), values: { ...formData }, @@ -263,8 +264,8 @@ diff --git a/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/erp/onetomany/java/${bussiPackage}/${entityPackage}/vue3/${entityName}List.vuei b/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/erp/onetomany/java/${bussiPackage}/${entityPackage}/vue3/${entityName}List.vuei index cc4ca27e..43fe94e8 100644 --- a/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/erp/onetomany/java/${bussiPackage}/${entityPackage}/vue3/${entityName}List.vuei +++ b/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/erp/onetomany/java/${bussiPackage}/${entityPackage}/vue3/${entityName}List.vuei @@ -255,6 +255,7 @@ popConfirm: { title: '是否确认删除', confirm: handleDelete.bind(null, record), + placement: 'topLeft', } } ]; @@ -278,6 +279,7 @@ popConfirm: { title: '是否确认删除', confirm: handleDelete.bind(null, record), + placement: 'topLeft', } } ] diff --git a/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/erp/onetomany/java/${bussiPackage}/${entityPackage}/vue3/[1-n]List.vuei b/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/erp/onetomany/java/${bussiPackage}/${entityPackage}/vue3/[1-n]List.vuei index 60c91a7e..c606f2cb 100644 --- a/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/erp/onetomany/java/${bussiPackage}/${entityPackage}/vue3/[1-n]List.vuei +++ b/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/erp/onetomany/java/${bussiPackage}/${entityPackage}/vue3/[1-n]List.vuei @@ -179,6 +179,7 @@ popConfirm: { title: '是否确认删除', confirm: handleDelete.bind(null, record), + placement: 'topLeft', }, } ] diff --git a/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/erp/onetomany/java/${bussiPackage}/${entityPackage}/vue3Native/${entityName}List.vuei b/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/erp/onetomany/java/${bussiPackage}/${entityPackage}/vue3Native/${entityName}List.vuei index ca29961a..3b24b948 100644 --- a/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/erp/onetomany/java/${bussiPackage}/${entityPackage}/vue3Native/${entityName}List.vuei +++ b/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/erp/onetomany/java/${bussiPackage}/${entityPackage}/vue3Native/${entityName}List.vuei @@ -125,6 +125,10 @@ 无文件 下载 + <#if po.classType=='pca'> + + {{ getAreaTextByCode(text) }} + @@ -279,6 +283,7 @@ popConfirm: { title: '是否确认删除', confirm: handleDelete.bind(null, record), + placement: 'topLeft', } } ]; @@ -288,6 +293,7 @@ popConfirm: { title: '确认提交流程吗?', confirm: handleProcess.bind(null, record), + placement: 'topLeft', } }) } @@ -303,6 +309,7 @@ popConfirm: { title: '是否确认删除', confirm: handleDelete.bind(null, record), + placement: 'topLeft', }, }, ]; @@ -390,13 +397,13 @@ } - <#if need_pca> + <#if need_pca || need_dept_user> /** - * 省市区点击事件 + * form点击事件(以逗号分割) * @param key * @param value */ - function handleAreaChange(key, value) { + function handleFormJoinChange(key, value) { queryParam[key] = value.join(','); } @@ -410,7 +417,6 @@ white-space: nowrap; } .query-group-cust{ - width: calc(50% - 15px); min-width: 100px !important; } .query-group-split-cust{ diff --git a/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/erp/onetomany/java/${bussiPackage}/${entityPackage}/vue3Native/[1-n]List.vuei b/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/erp/onetomany/java/${bussiPackage}/${entityPackage}/vue3Native/[1-n]List.vuei index f861a448..60fa006c 100644 --- a/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/erp/onetomany/java/${bussiPackage}/${entityPackage}/vue3Native/[1-n]List.vuei +++ b/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/erp/onetomany/java/${bussiPackage}/${entityPackage}/vue3Native/[1-n]List.vuei @@ -42,6 +42,10 @@ 无文件 下载 + <#if po.classType=='pca'> + + {{ getAreaTextByCode(text) }} + @@ -138,7 +142,7 @@ */ async function handleEdit(record: Recordable) { registerModal.value.disableSubmit = false; - registerModal.value.edit(); + registerModal.value.edit(record); } /** @@ -227,7 +231,6 @@ white-space: nowrap; } .query-group-cust{ - width: calc(50% - 15px); min-width: 100px !important; } .query-group-split-cust{ diff --git a/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/erp/onetomany/java/${bussiPackage}/${entityPackage}/vue3Native/components/${entityName}Form.vuei b/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/erp/onetomany/java/${bussiPackage}/${entityPackage}/vue3Native/components/${entityName}Form.vuei index e3b2330b..e652654e 100644 --- a/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/erp/onetomany/java/${bussiPackage}/${entityPackage}/vue3Native/components/${entityName}Form.vuei +++ b/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/erp/onetomany/java/${bussiPackage}/${entityPackage}/vue3Native/components/${entityName}Form.vuei @@ -211,8 +211,8 @@ diff --git a/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/erp/onetomany/java/${bussiPackage}/${entityPackage}/vue3Native/components/[1-n]Form.vuei b/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/erp/onetomany/java/${bussiPackage}/${entityPackage}/vue3Native/components/[1-n]Form.vuei index 1ded92d5..4681d737 100644 --- a/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/erp/onetomany/java/${bussiPackage}/${entityPackage}/vue3Native/components/[1-n]Form.vuei +++ b/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/erp/onetomany/java/${bussiPackage}/${entityPackage}/vue3Native/components/[1-n]Form.vuei @@ -29,7 +29,7 @@ <#assign hasOnlyValidate = false>