Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
jeecg
jeecg-boot
提交
4fd30c49
J
jeecg-boot
项目概览
jeecg
/
jeecg-boot
上一次同步 3 年多
通知
889
Star
24376
Fork
84
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
J
jeecg-boot
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
4fd30c49
编写于
7月 21, 2020
作者:
JEECG低代码平台
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
解决代码生成器模板几个问题:
1.主键换成IdType.ASSIGN_ID 2.生成代码,自定义实体名代码报错问题 3.新模式表单,流程参数个性化定义
上级
37158397
变更
15
隐藏空白更改
内联
并排
Showing
15 changed file
with
42 addition
and
41 deletion
+42
-41
jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/one/java/${bussiPackage}/${entityPackage}/entity/${entityName}.javai
...bussiPackage}/${entityPackage}/entity/${entityName}.javai
+1
-1
jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/one/java/${bussiPackage}/${entityPackage}/vue/${entityName}List.vuei
...bussiPackage}/${entityPackage}/vue/${entityName}List.vuei
+3
-4
jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/one/java/${bussiPackage}/${entityPackage}/vue/modules/${entityName}Form.vuei
...kage}/${entityPackage}/vue/modules/${entityName}Form.vuei
+8
-12
jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/one/java/${bussiPackage}/${entityPackage}/vue/modules/${entityName}Modal.vuei
...age}/${entityPackage}/vue/modules/${entityName}Modal.vuei
+3
-3
jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/one/java/${bussiPackage}/${entityPackage}/vue/modules/${entityName}Modal__Style#Drawer.vuei
...ackage}/vue/modules/${entityName}Modal__Style#Drawer.vuei
+2
-2
jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/onetomany/java/${bussiPackage}/${entityPackage}/entity/${entityName}.javai
...bussiPackage}/${entityPackage}/entity/${entityName}.javai
+1
-1
jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/onetomany/java/${bussiPackage}/${entityPackage}/entity/[1-n]Entity.javai
...${bussiPackage}/${entityPackage}/entity/[1-n]Entity.javai
+1
-1
jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/onetomany/java/${bussiPackage}/${entityPackage}/vue/${entityName}List.vuei
...bussiPackage}/${entityPackage}/vue/${entityName}List.vuei
+1
-1
jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/onetomany/java/${bussiPackage}/${entityPackage}/vue/modules/${entityName}Form.vuei
...kage}/${entityPackage}/vue/modules/${entityName}Form.vuei
+16
-10
jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/onetomany/java/${bussiPackage}/${entityPackage}/vue/modules/${entityName}Modal.vuei
...age}/${entityPackage}/vue/modules/${entityName}Modal.vuei
+1
-1
jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/tree/java/${bussiPackage}/${entityPackage}/entity/${entityName}.javai
...bussiPackage}/${entityPackage}/entity/${entityName}.javai
+1
-1
jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/erp/onetomany/java/${bussiPackage}/${entityPackage}/entity/${entityName}.javai
...bussiPackage}/${entityPackage}/entity/${entityName}.javai
+1
-1
jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/erp/onetomany/java/${bussiPackage}/${entityPackage}/entity/[1-n]Entity.javai
...${bussiPackage}/${entityPackage}/entity/[1-n]Entity.javai
+1
-1
jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/inner-table/onetomany/java/${bussiPackage}/${entityPackage}/entity/${entityName}.javai
...bussiPackage}/${entityPackage}/entity/${entityName}.javai
+1
-1
jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/inner-table/onetomany/java/${bussiPackage}/${entityPackage}/entity/[1-n]Entity.javai
...${bussiPackage}/${entityPackage}/entity/[1-n]Entity.javai
+1
-1
未找到文件。
jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/one/java/${bussiPackage}/${entityPackage}/entity/${entityName}.javai
浏览文件 @
4fd30c49
...
...
@@ -48,7 +48,7 @@ public class ${entityName} implements Serializable {
</#
if
>
/**${
po
.
filedComment
}*/
<#
if
po
.
fieldName
==
primaryKeyField
>
@
TableId
(
type
=
IdType
.
ID_WORKER_STR
)
@
TableId
(
type
=
IdType
.
ASSIGN_ID
)
<#
else
>
<#
if
po
.
fieldDbType
==
'Date'
>
<#
if
po
.
classType
==
'date'
>
...
...
jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/one/java/${bussiPackage}/${entityPackage}/vue/${entityName}List.vuei
浏览文件 @
4fd30c49
...
...
@@ -143,7 +143,7 @@
</a-form>
</div>
<!-- 查询区域-END -->
<!-- 操作按钮区域 -->
<div class="table-operator">
<a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
...
...
@@ -234,7 +234,7 @@
</a-table>
</div>
<${
tableName?replace("_","-")}-modal ref="modalForm" @ok="modalFormOk"></${tableName?replace("_","-"
)}-modal>
<${
Format.humpToShortbar(entityName)}-modal ref="modalForm" @ok="modalFormOk"></${Format.humpToShortbar(entityName
)}-modal>
</a-card>
</template>
...
...
@@ -247,7 +247,6 @@
<#if bpm_flag>
import { postAction } from '@/api/manage'
</#if>
<#if query_field_select>
import JDictSelectTag from '@/components/dict/JDictSelectTag.vue'
</#if>
...
...
@@ -289,7 +288,7 @@
</#if>
export default {
name:
"${entityName}List"
,
name:
'${entityName}List'
,
mixins:[JeecgListMixin, mixinDevice],
components: {
<#if query_field_select>
...
...
jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/one/java/${bussiPackage}/${entityPackage}/vue/modules/${entityName}Form.vuei
浏览文件 @
4fd30c49
...
...
@@ -168,7 +168,7 @@
</#if>
export default {
name:
"${entityName}Form"
,
name:
'${entityName}Form'
,
components: {
JFormContainer,
<#if form_date>
...
...
@@ -218,8 +218,8 @@
default: ()=>{},
required: false
},
//表单模式:
false流程表单 tru
e普通表单
normal
: {
//表单模式:
true流程表单 fals
e普通表单
formBpm
: {
type: Boolean,
default: false,
required: false
...
...
@@ -254,25 +254,21 @@
},
computed: {
formDisabled(){
if(this.
normal===fals
e){
if(this.
formBpm===tru
e){
if(this.formData.disabled===false){
return false
}else{
return true
}
return true
}
return this.disabled
},
showFlowSubmitButton(){
if(this.
normal===fals
e){
if(this.
formBpm===tru
e){
if(this.formData.disabled===false){
return true
}else{
return false
}
}else{
return false
}
return false
}
},
created () {
...
...
@@ -293,7 +289,7 @@
},
//渲染流程表单数据
showFlowData(){
if(this.
normal === fals
e){
if(this.
formBpm === tru
e){
let params = {id:this.formData.dataId};
getAction(this.url.queryById,params).then((res)=>{
if(res.success){
...
...
jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/one/java/${bussiPackage}/${entityPackage}/vue/modules/${entityName}Modal.vuei
浏览文件 @
4fd30c49
...
...
@@ -15,10 +15,10 @@
:visible="visible"
switchFullscreen
@ok="handleOk"
:okButtonProps="{ class:{'jee-hidden': disable
s
ubmit} }"
:okButtonProps="{ class:{'jee-hidden': disable
S
ubmit} }"
@cancel="handleCancel"
cancelText="关闭">
<${
tableName?replace("_","-")}-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit" normal></${tableName?replace("_","-"
)}-form>
<${
Format.humpToShortbar(entityName)}-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit"></${Format.humpToShortbar(entityName
)}-form>
</j-modal>
</template>
...
...
@@ -26,7 +26,7 @@
import ${entityName}Form from './${entityName}Form'
export default {
name:
"${entityName}Modal"
,
name:
'${entityName}Modal'
,
components: {
${entityName}Form
},
...
...
jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/one/java/${bussiPackage}/${entityPackage}/vue/modules/${entityName}Modal__Style#Drawer.vuei
浏览文件 @
4fd30c49
...
...
@@ -15,7 +15,7 @@
:closable="false"
@close="close"
:visible="visible">
<${
tableName?replace("_","-")}-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit" normal></${tableName?replace("_","-"
)}-form>
<${
Format.humpToShortbar(entityName)}-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit" normal></${Format.humpToShortbar(entityName
)}-form>
<div class="drawer-footer">
<a-button @click="handleCancel" style="margin-bottom: 0;">关闭</a-button>
<a-button v-if="!disableSubmit" @click="handleOk" type="primary" style="margin-bottom: 0;">提交</a-button>
...
...
@@ -28,7 +28,7 @@
import ${entityName}Form from './${entityName}Form'
export default {
name:
"${entityName}Modal"
,
name:
'${entityName}Modal'
,
components: {
${entityName}Form
},
...
...
jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/onetomany/java/${bussiPackage}/${entityPackage}/entity/${entityName}.javai
浏览文件 @
4fd30c49
...
...
@@ -42,7 +42,7 @@ public class ${entityName} implements Serializable {
</#
if
>
/**${
po
.
filedComment
}*/
<#
if
po
.
fieldName
==
primaryKeyField
>
@
TableId
(
type
=
IdType
.
ID_WORKER_STR
)
@
TableId
(
type
=
IdType
.
ASSIGN_ID
)
<#
else
>
<#
if
po
.
fieldDbType
==
'Date'
>
<#
if
po
.
classType
==
'date'
>
...
...
jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/onetomany/java/${bussiPackage}/${entityPackage}/entity/[1-n]Entity.javai
浏览文件 @
4fd30c49
...
...
@@ -43,7 +43,7 @@ public class ${subTab.entityName} implements Serializable {
</#
if
>
/**${
po
.
filedComment
}*/
<#
if
po
.
fieldName
==
primaryKeyField
>
@
TableId
(
type
=
IdType
.
ID_WORKER_STR
)
@
TableId
(
type
=
IdType
.
ASSIGN_ID
)
<#
else
>
<#
if
po
.
fieldDbType
==
'Date'
>
<#
if
po
.
classType
==
'date'
>
...
...
jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/onetomany/java/${bussiPackage}/${entityPackage}/vue/${entityName}List.vuei
浏览文件 @
4fd30c49
...
...
@@ -224,7 +224,7 @@
</a-table>
</div>
<${
tableName?replace("_","-"
)}-modal ref="modalForm" @ok="modalFormOk"/>
<${
Format.humpToShortbar(entityName
)}-modal ref="modalForm" @ok="modalFormOk"/>
</a-card>
</template>
...
...
jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/onetomany/java/${bussiPackage}/${entityPackage}/vue/modules/${entityName}Form.vuei
浏览文件 @
4fd30c49
...
...
@@ -416,7 +416,7 @@
required: false
},
//表单模式:false流程表单 true普通表单
normal
: {
formBpm
: {
type: Boolean,
default: false,
required: false
...
...
@@ -430,25 +430,21 @@
},
computed: {
formDisabled(){
if(this.
normal===fals
e){
if(this.
formBpm===tru
e){
if(this.formData.disabled===false){
return false
}else{
return true
}
return true
}
return this.disabled
},
showFlowSubmitButton(){
if(this.
normal===fals
e){
if(this.
formBpm===tru
e){
if(this.formData.disabled===false){
return true
}else{
return false
}
}else{
return false
}
return false
}
},
created () {
...
...
@@ -456,6 +452,16 @@
this.showFlowData();
},
methods: {
addBefore(){
this.form.resetFields()
<#list subTables as sub><#rt/>
<#if sub.foreignRelationType =='1'>
this.$refs.${sub.entityName?uncap_first}Form.clearFormData()
<#else>
this.${sub.entityName?uncap_first}Table.dataSource=[]
</#if>
</#list>
},
getAllTable() {
<#if hasOne2Many==true>
let values = this.tableKeys.map(key => getRefPromise(this, key))
...
...
@@ -505,7 +511,7 @@
},
//渲染流程表单数据
showFlowData(){
if(this.
normal === fals
e){
if(this.
formBpm === tru
e){
let params = {id:this.formData.dataId};
getAction(this.url.queryById,params).then((res)=>{
if(res.success){
...
...
jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/onetomany/java/${bussiPackage}/${entityPackage}/vue/modules/${entityName}Modal.vuei
浏览文件 @
4fd30c49
...
...
@@ -9,7 +9,7 @@
@ok="handleOk"
:okButtonProps="{ class:{'jee-hidden': disableSubmit} }"
@cancel="handleCancel">
<${
tableName?replace("_","-")}-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit" normal
/>
<${
Format.humpToShortbar(entityName)}-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit"
/>
</j-modal>
</template>
...
...
jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/tree/java/${bussiPackage}/${entityPackage}/entity/${entityName}.javai
浏览文件 @
4fd30c49
...
...
@@ -43,7 +43,7 @@ public class ${entityName} implements Serializable {
</#
if
>
/**${
po
.
filedComment
}*/
<#
if
po
.
fieldName
==
primaryKeyField
>
@
TableId
(
type
=
IdType
.
ID_WORKER_STR
)
@
TableId
(
type
=
IdType
.
ASSIGN_ID
)
<#
else
>
<#
if
po
.
fieldDbType
==
'Date'
>
<#
if
po
.
classType
==
'date'
>
...
...
jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/erp/onetomany/java/${bussiPackage}/${entityPackage}/entity/${entityName}.javai
浏览文件 @
4fd30c49
...
...
@@ -42,7 +42,7 @@ public class ${entityName} implements Serializable {
</#
if
>
/**${
po
.
filedComment
}*/
<#
if
po
.
fieldName
==
primaryKeyField
>
@
TableId
(
type
=
IdType
.
ID_WORKER_STR
)
@
TableId
(
type
=
IdType
.
ASSIGN_ID
)
<#
else
>
<#
if
po
.
fieldDbType
==
'Date'
>
<#
if
po
.
classType
==
'date'
>
...
...
jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/erp/onetomany/java/${bussiPackage}/${entityPackage}/entity/[1-n]Entity.javai
浏览文件 @
4fd30c49
...
...
@@ -31,7 +31,7 @@ public class ${subTab.entityName} implements Serializable {
<#
list
subTab
.
originalColumns
as
po
>
/**${
po
.
filedComment
}*/
<#
if
po
.
fieldName
==
primaryKeyField
>
@
TableId
(
type
=
IdType
.
ID_WORKER_STR
)
@
TableId
(
type
=
IdType
.
ASSIGN_ID
)
<#
else
>
<#
if
po
.
fieldDbType
==
'Date'
>
<#
if
po
.
classType
==
'date'
>
...
...
jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/inner-table/onetomany/java/${bussiPackage}/${entityPackage}/entity/${entityName}.javai
浏览文件 @
4fd30c49
...
...
@@ -42,7 +42,7 @@ public class ${entityName} implements Serializable {
</#
if
>
/**${
po
.
filedComment
}*/
<#
if
po
.
fieldName
==
primaryKeyField
>
@
TableId
(
type
=
IdType
.
ID_WORKER_STR
)
@
TableId
(
type
=
IdType
.
ASSIGN_ID
)
<#
else
>
<#
if
po
.
fieldDbType
==
'Date'
>
<#
if
po
.
classType
==
'date'
>
...
...
jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/inner-table/onetomany/java/${bussiPackage}/${entityPackage}/entity/[1-n]Entity.javai
浏览文件 @
4fd30c49
...
...
@@ -44,7 +44,7 @@ public class ${subTab.entityName} implements Serializable {
</#
if
>
/**${
po
.
filedComment
}*/
<#
if
po
.
fieldName
==
primaryKeyField
>
@
TableId
(
type
=
IdType
.
ID_WORKER_STR
)
@
TableId
(
type
=
IdType
.
ASSIGN_ID
)
<#
else
>
<#
if
po
.
fieldDbType
==
'Date'
>
<#
if
po
.
classType
==
'date'
>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录