From a47d0984dc6f105b7a3aa87c6f8802102d643d5f Mon Sep 17 00:00:00 2001 From: zhangdaiscott Date: Mon, 19 Feb 2024 16:40:33 +0800 Subject: [PATCH] =?UTF-8?q?[issues/5755]vue=E4=BB=A3=E7=A0=81=E4=B8=8D?= =?UTF-8?q?=E5=8A=A0=E5=85=A5=E9=80=BB=E8=BE=91=E5=88=A0=E9=99=A4=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=20[issue/#5711]=E4=BF=AE=E5=A4=8D=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E7=BB=84=E4=BB=B6=E5=9C=A8=E7=94=9F=E6=88=90?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=90=8E=E5=8F=98=E6=88=90=E9=83=A8=E9=97=A8?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E9=80=89=E6=8B=A9=E7=BB=84=E4=BB=B6=20[issue?= =?UTF-8?q?s/1022]=E6=88=91=E8=BF=99=E4=B8=AA=E6=8E=A7=E4=BB=B6=E6=98=AF?= =?UTF-8?q?=E5=93=AA=E9=87=8C=E8=AE=BE=E7=BD=AE=E6=B2=A1=E5=AF=B9=E5=90=97?= =?UTF-8?q?=EF=BC=8C=E4=B8=BA=E4=BB=80=E4=B9=88=E6=89=93=E5=BC=80=E5=B7=B2?= =?UTF-8?q?=E6=9C=89=E7=9A=84=E8=AE=B0=E5=BD=95=EF=BC=8C=E4=BC=9A=E8=A7=A6?= =?UTF-8?q?=E5=8F=91=E6=8F=90=E7=A4=BA=E2=80=9C=E8=AF=B7=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E2=80=9D=E9=AA=8C=E8=AF=81=EF=BC=9F=20#1022=20fix=20=E5=B8=A6?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6=E5=AD=97=E5=85=B8=E5=AD=98=E5=9C=A8=E5=8D=95?= =?UTF-8?q?=E5=BC=95=E5=8F=B7=E5=AF=BC=E8=87=B4js=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../form/native/vue3NativeComponents.ftl | 4 +- .../common/form/native/vue3NativeForm.ftl | 8 +++- .../common/form/native/vue3NativeImport.ftl | 4 +- .../common/form/native/vue3NativeSearch.ftl | 8 +++- .../code-template-online/common/utils.ftl | 4 +- .../vue3/${entityName}__data.tsi | 24 ++++++++--- .../vue3Native/${entityName}__data.tsi | 24 ++++++++--- .../components/${entityName}Form.vuei | 2 +- .../vue3/${entityName}__data.tsi | 24 ++++++++--- .../vue3Native/${entityName}__data.tsi | 24 ++++++++--- .../components/${entityName}Form.vuei | 2 +- .../vue3/${entityName}__data.tsi | 36 ++++++++++++----- .../vue3Native/${entityName}__data.tsi | 36 ++++++++++++----- .../components/${entityName}Form.vuei | 2 +- .../vue3Native/components/[1-n]Form.vuei | 2 +- .../vue3/${entityName}__data.tsi | 40 ++++++++++++++----- .../vue3/${entityName}__data.tsi | 40 ++++++++++++++----- .../vue3Native/${entityName}__data.tsi | 40 ++++++++++++++----- .../components/${entityName}Form.vuei | 2 +- .../vue3Native/components/[1-n]Form.vuei | 2 +- .../vue3/${entityName}__data.tsi | 40 ++++++++++++++----- 21 files changed, 273 insertions(+), 95 deletions(-) diff --git a/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/common/form/native/vue3NativeComponents.ftl b/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/common/form/native/vue3NativeComponents.ftl index 60ad6824..d38ed369 100644 --- a/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/common/form/native/vue3NativeComponents.ftl +++ b/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/common/form/native/vue3NativeComponents.ftl @@ -20,7 +20,9 @@ JSelectDept, <#if need_dept_user> - JSelectUserByDept, +<#-- update-begin---author:chenrui ---date:20240102 for:[issue/#5711]修复用户选择组件在生成代码后变成部门用户选择组件---------- --> + JSelectUser, +<#-- update-end---author:chenrui ---date:20240102 for:[issue/#5711]修复用户选择组件在生成代码后变成部门用户选择组件---------- --> <#if need_select_tree> JTreeSelect, 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 53ae5848..0371ea0a 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 @@ -1,5 +1,7 @@ <#include "/common/utils.ftl"> -<#if po.isShow =='Y' && po.fieldName != 'id' && isNotPidField(tableVo, po.fieldDbName)> +<#-- update-begin---author:chenrui ---date:20240108 for:[issues/5755]vue代码不加入逻辑删除字段---------- --> +<#if po.isShow =='Y' && po.fieldName != 'id' && po.fieldName !='delFlag' && isNotPidField(tableVo, po.fieldDbName)> +<#-- update-end---author:chenrui ---date:20240108 for:[issues/5755]vue代码不加入逻辑删除字段---------- --> <#assign form_field_dictCode=""> <#if po.dictTable?default("")?trim?length gt 1 && po.dictText?default("")?trim?length gt 1 && po.dictField?default("")?trim?length gt 1> <#assign form_field_dictCode="${po.dictTable},${po.dictText},${po.dictField}"> @@ -48,7 +50,9 @@ disabled<#else>:disabled="disabled"/> <#elseif po.classType =='sel_user'> <#assign need_dept_user = true> - disabled<#else>:disabled="disabled"/> + <#-- update-begin---author:chenrui ---date:20240102 for:[issue/#5711]修复用户选择组件在生成代码后变成部门用户选择组件---------- --> + disabled<#else>:disabled="disabled"/> + <#-- update-end---author:chenrui ---date:20240102 for:[issue/#5711]修复用户选择组件在生成代码后变成部门用户选择组件---------- --> <#elseif po.classType =='textarea'> disabled<#else>:disabled="disabled"/> <#elseif po.classType=='radio'> 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 1a359154..caa2e6d6 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 @@ -20,7 +20,9 @@ import JSelectDept from '/@/components/Form/src/jeecg/components/JSelectDept.vue'; <#if need_dept_user> - import JSelectUserByDept from '/@/components/Form/src/jeecg/components/JSelectUserByDept.vue'; +<#-- update-begin---author:chenrui ---date:20240102 for:[issue/#5711]修复用户选择组件在生成代码后变成部门用户选择组件---------- --> + import JSelectUser from '/@/components/Form/src/jeecg/components/JSelectUser.vue'; +<#-- update-end---author:chenrui ---date:20240102 for:[issue/#5711]修复用户选择组件在生成代码后变成部门用户选择组件---------- --> <#if need_select_tree> import JTreeSelect from '/@/components/Form/src/jeecg/components/JTreeSelect.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 577798a5..5a5903ed 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 @@ -1,5 +1,7 @@ <#include "/common/utils.ftl"> -<#if po.isQuery=='Y'> +<#-- update-begin---author:chenrui ---date:20240108 for:[issues/5755]vue代码不加入逻辑删除字段---------- --> +<#if po.isQuery=='Y' && po.fieldName !='delFlag'> +<#-- update-end---author:chenrui ---date:20240108 for:[issues/5755]vue代码不加入逻辑删除字段---------- --> <#assign query_flag=true> <#if query_field_no==2>