提交 80888155 编写于 作者: JEECG低代码平台's avatar JEECG低代码平台

1.代码生成主键换成分布式算法ID_WORKER_STR

2.解决online代码生成,excel导入无权限问题
3.解决online代码生成,Jpopup使用问题
上级 527007f7
...@@ -26,7 +26,7 @@ public class ${entityName} implements Serializable { ...@@ -26,7 +26,7 @@ public class ${entityName} implements Serializable {
<#list originalColumns as po> <#list originalColumns as po>
/**${po.filedComment}*/ /**${po.filedComment}*/
<#if po.fieldName == primaryKeyField> <#if po.fieldName == primaryKeyField>
@TableId(type = IdType.UUID) @TableId(type = IdType.ID_WORKER_STR)
<#else> <#else>
<#if po.fieldDbType =='Date'> <#if po.fieldDbType =='Date'>
<#if po.classType=='date'> <#if po.classType=='date'>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<a-card :bordered="false"> <a-card :bordered="false">
<!-- 查询区域 --> <!-- 查询区域 -->
<div class="table-page-search-wrapper"> <div class="table-page-search-wrapper">
<a-form layout="inline"> <a-form layout="inline" @keyup.enter.native="searchQuery">
<a-row :gutter="24"> <a-row :gutter="24">
<#assign query_field_no=0> <#assign query_field_no=0>
<#assign query_field_select=false> <#assign query_field_select=false>
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
<div class="table-operator"> <div class="table-operator">
<a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
<a-button type="primary" icon="download" @click="handleExportXls('${tableVo.ftlDescription}')">导出</a-button> <a-button type="primary" icon="download" @click="handleExportXls('${tableVo.ftlDescription}')">导出</a-button>
<a-upload name="file" :showUploadList="false" :multiple="false" :action="importExcelUrl" @change="handleImportExcel"> <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
<a-button type="primary" icon="import">导入</a-button> <a-button type="primary" icon="import">导入</a-button>
</a-upload> </a-upload>
<a-dropdown v-if="selectedRowKeys.length > 0"> <a-dropdown v-if="selectedRowKeys.length > 0">
......
...@@ -81,9 +81,6 @@ ...@@ -81,9 +81,6 @@
<#if form_file> <#if form_file>
import JUpload from '@/components/jeecg/JUpload' import JUpload from '@/components/jeecg/JUpload'
</#if> </#if>
<#if form_popup>
import JPopup from '@/components/jeecgbiz/JPopup'
</#if>
<#if form_sel_depart> <#if form_sel_depart>
import JSelectDepart from '@/components/jeecgbiz/JSelectDepart' import JSelectDepart from '@/components/jeecgbiz/JSelectDepart'
</#if> </#if>
...@@ -106,9 +103,6 @@ ...@@ -106,9 +103,6 @@
<#if form_file> <#if form_file>
JUpload, JUpload,
</#if> </#if>
<#if form_popup>
JPopup,
</#if>
<#if form_sel_depart> <#if form_sel_depart>
JSelectDepart, JSelectDepart,
</#if> </#if>
......
...@@ -82,9 +82,6 @@ ...@@ -82,9 +82,6 @@
<#if form_file> <#if form_file>
import JUpload from '@/components/jeecg/JUpload' import JUpload from '@/components/jeecg/JUpload'
</#if> </#if>
<#if form_popup>
import JPopup from '@/components/jeecgbiz/JPopup'
</#if>
<#if form_sel_depart> <#if form_sel_depart>
import JSelectDepart from '@/components/jeecgbiz/JSelectDepart' import JSelectDepart from '@/components/jeecgbiz/JSelectDepart'
</#if> </#if>
...@@ -107,9 +104,6 @@ ...@@ -107,9 +104,6 @@
<#if form_file> <#if form_file>
JUpload, JUpload,
</#if> </#if>
<#if form_popup>
JPopup,
</#if>
<#if form_sel_depart> <#if form_sel_depart>
JSelectDepart, JSelectDepart,
</#if> </#if>
......
...@@ -23,7 +23,7 @@ public class ${entityName} implements Serializable { ...@@ -23,7 +23,7 @@ public class ${entityName} implements Serializable {
<#list originalColumns as po> <#list originalColumns as po>
/**${po.filedComment}*/ /**${po.filedComment}*/
<#if po.fieldName == primaryKeyField> <#if po.fieldName == primaryKeyField>
@TableId(type = IdType.UUID) @TableId(type = IdType.ID_WORKER_STR)
<#else> <#else>
<#if po.fieldDbType =='Date'> <#if po.fieldDbType =='Date'>
<#if po.classType=='date'> <#if po.classType=='date'>
......
...@@ -26,7 +26,7 @@ public class ${subTab.entityName} implements Serializable { ...@@ -26,7 +26,7 @@ public class ${subTab.entityName} implements Serializable {
<#list subTab.originalColumns as po> <#list subTab.originalColumns as po>
/**${po.filedComment}*/ /**${po.filedComment}*/
<#if po.fieldName == primaryKeyField> <#if po.fieldName == primaryKeyField>
@TableId(type = IdType.UUID) @TableId(type = IdType.ID_WORKER_STR)
<#else> <#else>
<#if po.fieldDbType =='Date'> <#if po.fieldDbType =='Date'>
<#if po.classType=='date'> <#if po.classType=='date'>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<a-card :bordered="false"> <a-card :bordered="false">
<!-- 查询区域 --> <!-- 查询区域 -->
<div class="table-page-search-wrapper"> <div class="table-page-search-wrapper">
<a-form layout="inline"> <a-form layout="inline" @keyup.enter.native="searchQuery">
<a-row :gutter="24"> <a-row :gutter="24">
<#assign query_field_no=0> <#assign query_field_no=0>
<#assign query_field_select=false> <#assign query_field_select=false>
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
<div class="table-operator"> <div class="table-operator">
<a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
<a-button type="primary" icon="download" @click="handleExportXls('${tableVo.ftlDescription}')">导出</a-button> <a-button type="primary" icon="download" @click="handleExportXls('${tableVo.ftlDescription}')">导出</a-button>
<a-upload name="file" :showUploadList="false" :multiple="false" :action="importExcelUrl" @change="handleImportExcel"> <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
<a-button type="primary" icon="import">导入</a-button> <a-button type="primary" icon="import">导入</a-button>
</a-upload> </a-upload>
<a-dropdown v-if="selectedRowKeys.length > 0"> <a-dropdown v-if="selectedRowKeys.length > 0">
......
...@@ -122,9 +122,6 @@ ...@@ -122,9 +122,6 @@
<#if form_file> <#if form_file>
import JUpload from '@/components/jeecg/JUpload' import JUpload from '@/components/jeecg/JUpload'
</#if> </#if>
<#if form_popup>
import JPopup from '@/components/jeecgbiz/JPopup'
</#if>
<#if form_sel_depart> <#if form_sel_depart>
import JSelectDepart from '@/components/jeecgbiz/JSelectDepart' import JSelectDepart from '@/components/jeecgbiz/JSelectDepart'
</#if> </#if>
...@@ -153,9 +150,6 @@ ...@@ -153,9 +150,6 @@
<#if form_file> <#if form_file>
JUpload, JUpload,
</#if> </#if>
<#if form_popup>
JPopup,
</#if>
<#if form_sel_depart> <#if form_sel_depart>
JSelectDepart, JSelectDepart,
</#if> </#if>
......
...@@ -81,9 +81,6 @@ ...@@ -81,9 +81,6 @@
<#if form_file> <#if form_file>
import JUpload from '@/components/jeecg/JUpload' import JUpload from '@/components/jeecg/JUpload'
</#if> </#if>
<#if form_popup>
import JPopup from '@/components/jeecgbiz/JPopup'
</#if>
<#if form_sel_depart> <#if form_sel_depart>
import JSelectDepart from '@/components/jeecgbiz/JSelectDepart' import JSelectDepart from '@/components/jeecgbiz/JSelectDepart'
</#if> </#if>
...@@ -106,9 +103,6 @@ ...@@ -106,9 +103,6 @@
<#if form_file> <#if form_file>
JUpload, JUpload,
</#if> </#if>
<#if form_popup>
JPopup,
</#if>
<#if form_sel_depart> <#if form_sel_depart>
JSelectDepart, JSelectDepart,
</#if> </#if>
......
...@@ -26,7 +26,7 @@ public class ${entityName} implements Serializable { ...@@ -26,7 +26,7 @@ public class ${entityName} implements Serializable {
<#list originalColumns as po> <#list originalColumns as po>
/**${po.filedComment}*/ /**${po.filedComment}*/
<#if po.fieldName == primaryKeyField> <#if po.fieldName == primaryKeyField>
@TableId(type = IdType.UUID) @TableId(type = IdType.ID_WORKER_STR)
<#else> <#else>
<#if po.fieldDbType =='Date'> <#if po.fieldDbType =='Date'>
<#if po.classType=='date'> <#if po.classType=='date'>
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<div class="table-operator"> <div class="table-operator">
<a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
<a-button type="primary" icon="download" @click="handleExportXls('${tableVo.ftlDescription}')">导出</a-button> <a-button type="primary" icon="download" @click="handleExportXls('${tableVo.ftlDescription}')">导出</a-button>
<a-upload name="file" :showUploadList="false" :multiple="false" :action="importExcelUrl" @change="handleImportExcel"> <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
<a-button type="primary" icon="import">导入</a-button> <a-button type="primary" icon="import">导入</a-button>
</a-upload> </a-upload>
<a-dropdown v-if="selectedRowKeys.length > 0"> <a-dropdown v-if="selectedRowKeys.length > 0">
......
...@@ -95,9 +95,6 @@ ...@@ -95,9 +95,6 @@
<#if form_file> <#if form_file>
import JUpload from '@/components/jeecg/JUpload' import JUpload from '@/components/jeecg/JUpload'
</#if> </#if>
<#if form_popup>
import JPopup from '@/components/jeecgbiz/JPopup'
</#if>
<#if form_sel_depart> <#if form_sel_depart>
import JSelectDepart from '@/components/jeecgbiz/JSelectDepart' import JSelectDepart from '@/components/jeecgbiz/JSelectDepart'
</#if> </#if>
...@@ -123,9 +120,6 @@ ...@@ -123,9 +120,6 @@
<#if form_file> <#if form_file>
JUpload, JUpload,
</#if> </#if>
<#if form_popup>
JPopup,
</#if>
<#if form_sel_depart> <#if form_sel_depart>
JSelectDepart, JSelectDepart,
</#if> </#if>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册