From 9d1428ab85cd1b2f385f3e7a3b622bd0f859c63d Mon Sep 17 00:00:00 2001 From: zhangdaiscott Date: Thu, 1 Apr 2021 09:57:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=94=9F=E6=88=90=E5=99=A8?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF=EF=BC=9A=E8=AE=A9=E7=94=9F=E6=88=90=E7=9A=84?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=9B=B4=E7=AE=80=E6=B4=81=EF=BC=8C=E6=B5=81?= =?UTF-8?q?=E7=A8=8B=E7=9B=B8=E5=85=B3=E4=BB=A3=E7=A0=81=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E4=B8=8D=E7=94=9F=E6=88=90=20=E4=BC=98=E5=8C=96=E7=94=9F?= =?UTF-8?q?=E6=88=90=E6=A8=A1=E6=9D=BF=EF=BC=9A=E4=B8=80=E5=AF=B9=E5=A4=9A?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E7=94=9F=E6=88=90=EF=BC=88ERP=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=EF=BC=89=E7=94=9F=E6=88=90=E7=9A=84=E5=AD=90=E8=A1=A8?= =?UTF-8?q?=E5=AE=9E=E4=BD=93ApiModel=E6=B3=A8=E9=87=8A=E4=B8=ADvalue?= =?UTF-8?q?=E4=B8=BA=E9=99=84=E8=A1=A8=E5=90=8D=E7=A7=B0=20#2365=20minio?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=EF=BC=8C=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=90=8D=E5=8C=85=E5=90=AB=E7=82=B9=E7=9A=84=E6=97=B6=E5=80=99?= =?UTF-8?q?=E6=8B=BC=E6=8E=A5=E6=96=87=E4=BB=B6=E5=90=8D=E6=9C=89=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20issues/I3CLFL=20=E6=97=A5=E5=BF=97=E9=87=8C?= =?UTF-8?q?=E6=8A=8A=E5=85=B7=E4=BD=93=E7=9A=84=E6=96=87=E4=BB=B6=E5=8A=A0?= =?UTF-8?q?=E4=B8=8A=E5=90=A7=20issues/I3BJDQ?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/jeecg/common/util/MinioUtil.java | 2 +- .../org/jeecg/common/util/oss/OssBootUtil.java | 2 +- .../system/controller/CommonController.java | 1 - .../${entityPackage}/entity/[1-n]Entity.javai | 2 +- .../vue/modules/${entityName}Form.vuei | 16 ++++++++++++++++ .../${entityPackage}/entity/[1-n]Entity.javai | 2 +- .../${entityPackage}/entity/[1-n]Entity.javai | 2 +- .../vue/modules/${entityName}Form.vuei | 16 ++++++++++++++++ .../${entityPackage}/entity/[1-n]Entity.javai | 2 +- .../vue/modules/${entityName}Form.vuei | 16 ++++++++++++++++ .../${entityPackage}/entity/[1-n]Entity.javai | 2 +- 11 files changed, 55 insertions(+), 8 deletions(-) diff --git a/jeecg-boot/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/common/util/MinioUtil.java b/jeecg-boot/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/common/util/MinioUtil.java index a4de7651..bbff3a45 100644 --- a/jeecg-boot/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/common/util/MinioUtil.java +++ b/jeecg-boot/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/common/util/MinioUtil.java @@ -75,7 +75,7 @@ public class MinioUtil { orgName=file.getName(); } orgName = CommonUtils.getFileName(orgName); - String objectName = bizPath+"/"+orgName.substring(0, orgName.lastIndexOf(".")) + "_" + System.currentTimeMillis() + orgName.substring(orgName.indexOf(".")); + String objectName = bizPath+"/"+orgName.substring(0, orgName.lastIndexOf(".")) + "_" + System.currentTimeMillis() + orgName.substring(orgName.lastIndexOf(".")); // 使用putObject上传一个本地文件到存储桶中。 if(objectName.startsWith("/")){ diff --git a/jeecg-boot/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/common/util/oss/OssBootUtil.java b/jeecg-boot/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/common/util/oss/OssBootUtil.java index fa5c4935..28a0ba90 100644 --- a/jeecg-boot/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/common/util/oss/OssBootUtil.java +++ b/jeecg-boot/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/common/util/oss/OssBootUtil.java @@ -111,7 +111,7 @@ public class OssBootUtil { orgName=file.getName(); } orgName = CommonUtils.getFileName(orgName); - String fileName = orgName.substring(0, orgName.lastIndexOf(".")) + "_" + System.currentTimeMillis() + orgName.substring(orgName.indexOf(".")); + String fileName = orgName.substring(0, orgName.lastIndexOf(".")) + "_" + System.currentTimeMillis() + orgName.substring(orgName.lastIndexOf(".")); if (!fileDir.endsWith("/")) { fileDir = fileDir.concat("/"); } diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/controller/CommonController.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/controller/CommonController.java index 22ce002a..9df690c5 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/controller/CommonController.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/controller/CommonController.java @@ -28,7 +28,6 @@ import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.*; import java.net.URLDecoder; - /** *

* 用户表 前端控制器 diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/onetomany/java/${bussiPackage}/${entityPackage}/entity/[1-n]Entity.javai b/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/onetomany/java/${bussiPackage}/${entityPackage}/entity/[1-n]Entity.javai index f2249e7c..4d192d08 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/onetomany/java/${bussiPackage}/${entityPackage}/entity/[1-n]Entity.javai +++ b/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/onetomany/java/${bussiPackage}/${entityPackage}/entity/[1-n]Entity.javai @@ -21,7 +21,7 @@ import java.io.UnsupportedEncodingException; * @Date: ${.now?string["yyyy-MM-dd"]} * @Version: V1.0 */ -@ApiModel(value="${tableName}对象", description="${tableVo.ftlDescription}") +@ApiModel(value="${subTab.tableName}对象", description="${subTab.ftlDescription}") @Data @TableName("${subTab.tableName}") public class ${subTab.entityName} implements Serializable { diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/onetomany/java/${bussiPackage}/${entityPackage}/vue/modules/${entityName}Form.vuei b/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/onetomany/java/${bussiPackage}/${entityPackage}/vue/modules/${entityName}Form.vuei index c86fbddc..0f743996 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/onetomany/java/${bussiPackage}/${entityPackage}/vue/modules/${entityName}Form.vuei +++ b/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/onetomany/java/${bussiPackage}/${entityPackage}/vue/modules/${entityName}Form.vuei @@ -8,6 +8,7 @@ <#assign form_popup = false> <#assign form_cat_tree = false> <#assign form_cat_back = ""> +<#assign bpm_flag=false> <#assign form_span = 24> <#if tableVo.fieldRowNum==2> <#assign form_span = 12> @@ -17,6 +18,9 @@ <#assign form_span = 6> <#list columns as po> +<#if po.fieldDbName=='bpm_status'> + <#assign bpm_flag=true> + <#if po.isShow =='Y' && po.fieldName != 'id'> <#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> @@ -134,7 +138,9 @@ + <#if bpm_flag> 提 交 + @@ -379,6 +385,7 @@ } }, props: { + <#if bpm_flag> //流程表单data formData: { type: Object, @@ -391,6 +398,7 @@ default: false, required: false }, + //表单禁用 disabled: { type: Boolean, @@ -400,14 +408,17 @@ }, computed: { formDisabled(){ + <#if bpm_flag> if(this.formBpm===true){ if(this.formData.disabled===false){ return false } return true } + return this.disabled }, + <#if bpm_flag> showFlowSubmitButton(){ if(this.formBpm===true){ if(this.formData.disabled===false){ @@ -416,10 +427,13 @@ } return false } + }, created () { + <#if bpm_flag> //如果是流程中表单,则需要加载流程表单data this.showFlowData(); + }, methods: { addBefore(){ @@ -497,6 +511,7 @@ } }, + <#if bpm_flag> //渲染流程表单数据 showFlowData(){ if(this.formBpm === true){ @@ -508,6 +523,7 @@ }) } }, + validateError(msg){ this.$message.error(msg) }, diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/erp/onetomany/java/${bussiPackage}/${entityPackage}/entity/[1-n]Entity.javai b/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/erp/onetomany/java/${bussiPackage}/${entityPackage}/entity/[1-n]Entity.javai index 980d814d..1cfdcf71 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/erp/onetomany/java/${bussiPackage}/${entityPackage}/entity/[1-n]Entity.javai +++ b/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/erp/onetomany/java/${bussiPackage}/${entityPackage}/entity/[1-n]Entity.javai @@ -24,7 +24,7 @@ import java.io.UnsupportedEncodingException; */ @Data @TableName("${subTab.tableName}") -@ApiModel(value="${tableName}对象", description="${tableVo.ftlDescription}") +@ApiModel(value="${subTab.tableName}对象", description="${subTab.ftlDescription}") public class ${subTab.entityName} implements Serializable { private static final long serialVersionUID = 1L; diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/inner-table/onetomany/java/${bussiPackage}/${entityPackage}/entity/[1-n]Entity.javai b/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/inner-table/onetomany/java/${bussiPackage}/${entityPackage}/entity/[1-n]Entity.javai index 23169be4..af1a16d1 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/inner-table/onetomany/java/${bussiPackage}/${entityPackage}/entity/[1-n]Entity.javai +++ b/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/inner-table/onetomany/java/${bussiPackage}/${entityPackage}/entity/[1-n]Entity.javai @@ -22,7 +22,7 @@ import java.io.UnsupportedEncodingException; * @Date: ${.now?string["yyyy-MM-dd"]} * @Version: V1.0 */ -@ApiModel(value="${tableName}对象", description="${tableVo.ftlDescription}") +@ApiModel(value="${subTab.tableName}对象", description="${subTab.ftlDescription}") @Data @TableName("${subTab.tableName}") public class ${subTab.entityName} implements Serializable { diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/inner-table/onetomany/java/${bussiPackage}/${entityPackage}/vue/modules/${entityName}Form.vuei b/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/inner-table/onetomany/java/${bussiPackage}/${entityPackage}/vue/modules/${entityName}Form.vuei index 88b514e9..f892a367 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/inner-table/onetomany/java/${bussiPackage}/${entityPackage}/vue/modules/${entityName}Form.vuei +++ b/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/inner-table/onetomany/java/${bussiPackage}/${entityPackage}/vue/modules/${entityName}Form.vuei @@ -8,8 +8,12 @@ <#assign form_popup = false> <#assign form_cat_tree = false> <#assign form_cat_back = ""> +<#assign bpm_flag=false> <#assign form_span = 24> <#list columns as po> +<#if po.fieldDbName=='bpm_status'> + <#assign bpm_flag=true> + <#if po.isShow =='Y' && po.fieldName != 'id'> <#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> @@ -125,7 +129,9 @@ + <#if bpm_flag> 提 交 + @@ -362,6 +368,7 @@ } }, props: { + <#if bpm_flag> //流程表单data formData: { type: Object, @@ -374,6 +381,7 @@ default: false, required: false }, + //表单禁用 disabled: { type: Boolean, @@ -383,14 +391,17 @@ }, computed: { formDisabled(){ + <#if bpm_flag> if(this.formBpm===true){ if(this.formData.disabled===false){ return false } return true } + return this.disabled }, + <#if bpm_flag> showFlowSubmitButton(){ if(this.formBpm===true){ if(this.formData.disabled===false){ @@ -399,10 +410,13 @@ } return false } + }, created () { + <#if bpm_flag> //如果是流程中表单,则需要加载流程表单data this.showFlowData(); + }, methods: { addBefore(){ @@ -475,6 +489,7 @@ } }, + <#if bpm_flag> //渲染流程表单数据 showFlowData(){ if(this.formBpm === true){ @@ -486,6 +501,7 @@ }) } }, + validateError(msg){ this.$message.error(msg) }, diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/jvxe/onetomany/java/${bussiPackage}/${entityPackage}/entity/[1-n]Entity.javai b/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/jvxe/onetomany/java/${bussiPackage}/${entityPackage}/entity/[1-n]Entity.javai index ab311f56..114e402a 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/jvxe/onetomany/java/${bussiPackage}/${entityPackage}/entity/[1-n]Entity.javai +++ b/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/jvxe/onetomany/java/${bussiPackage}/${entityPackage}/entity/[1-n]Entity.javai @@ -21,7 +21,7 @@ import java.io.UnsupportedEncodingException; * @Date: ${.now?string["yyyy-MM-dd"]} * @Version: V1.0 */ -@ApiModel(value="${tableName}对象", description="${tableVo.ftlDescription}") +@ApiModel(value="${subTab.tableName}对象", description="${subTab.ftlDescription}") @Data @TableName("${subTab.tableName}") public class ${subTab.entityName} implements Serializable { diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/jvxe/onetomany/java/${bussiPackage}/${entityPackage}/vue/modules/${entityName}Form.vuei b/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/jvxe/onetomany/java/${bussiPackage}/${entityPackage}/vue/modules/${entityName}Form.vuei index 5cb83bf9..46b15fc4 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/jvxe/onetomany/java/${bussiPackage}/${entityPackage}/vue/modules/${entityName}Form.vuei +++ b/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/jvxe/onetomany/java/${bussiPackage}/${entityPackage}/vue/modules/${entityName}Form.vuei @@ -8,6 +8,7 @@ <#assign form_popup = false> <#assign form_cat_tree = false> <#assign form_cat_back = ""> +<#assign bpm_flag=false> <#assign form_span = 24> <#if tableVo.fieldRowNum==2> <#assign form_span = 12> @@ -17,6 +18,9 @@ <#assign form_span = 6> <#list columns as po> +<#if po.fieldDbName=='bpm_status'> + <#assign bpm_flag=true> + <#if po.isShow =='Y' && po.fieldName != 'id'> <#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> @@ -134,7 +138,9 @@ + <#if bpm_flag> 提 交 + @@ -385,6 +391,7 @@ } }, props: { + <#if bpm_flag> //流程表单data formData: { type: Object, @@ -397,6 +404,7 @@ default: false, required: false }, + //表单禁用 disabled: { type: Boolean, @@ -406,14 +414,17 @@ }, computed: { formDisabled(){ + <#if bpm_flag> if(this.formBpm===true){ if(this.formData.disabled===false){ return false } return true } + return this.disabled }, + <#if bpm_flag> showFlowSubmitButton(){ if(this.formBpm===true){ if(this.formData.disabled===false){ @@ -422,10 +433,13 @@ } return false } + }, created () { + <#if bpm_flag> //如果是流程中表单,则需要加载流程表单data this.showFlowData(); + }, methods: { addBefore(){ @@ -503,6 +517,7 @@ } }, + <#if bpm_flag> //渲染流程表单数据 showFlowData(){ if(this.formBpm === true){ @@ -514,6 +529,7 @@ }) } }, + validateError(msg){ this.$message.error(msg) }, diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/tab/onetomany/java/${bussiPackage}/${entityPackage}/entity/[1-n]Entity.javai b/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/tab/onetomany/java/${bussiPackage}/${entityPackage}/entity/[1-n]Entity.javai index 112fa9d8..e568b129 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/tab/onetomany/java/${bussiPackage}/${entityPackage}/entity/[1-n]Entity.javai +++ b/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/tab/onetomany/java/${bussiPackage}/${entityPackage}/entity/[1-n]Entity.javai @@ -21,7 +21,7 @@ import java.io.UnsupportedEncodingException; * @Date: ${.now?string["yyyy-MM-dd"]} * @Version: V1.0 */ -@ApiModel(value="${tableName}对象", description="${tableVo.ftlDescription}") +@ApiModel(value="${subTab.tableName}对象", description="${subTab.ftlDescription}") @Data @TableName("${subTab.tableName}") public class ${subTab.entityName} implements Serializable {