|
|
@ -7,7 +7,9 @@ import {JVxeTypes,JVxeColumn} from '/@/components/jeecg/JVxeTable/types'
|
|
|
|
//列表数据
|
|
|
|
//列表数据
|
|
|
|
export const columns: BasicColumn[] = [
|
|
|
|
export const columns: BasicColumn[] = [
|
|
|
|
<#list columns as po>
|
|
|
|
<#list columns as po>
|
|
|
|
<#if po.isShowList =='Y' && po.fieldName !='id'>
|
|
|
|
<#-- update-begin---author:chenrui ---date:20240108 for:[issues/5755]vue代码不加入逻辑删除字段---------- -->
|
|
|
|
|
|
|
|
<#if po.isShowList =='Y' && po.fieldName !='id' && po.fieldName !='delFlag'>
|
|
|
|
|
|
|
|
<#-- update-end---author:chenrui ---date:20240108 for:[issues/5755]vue代码不加入逻辑删除字段---------- -->
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: '${po.filedComment}',
|
|
|
|
title: '${po.filedComment}',
|
|
|
|
align:"center",
|
|
|
|
align:"center",
|
|
|
@ -71,7 +73,9 @@ export const searchFormSchema: FormSchema[] = [
|
|
|
|
<#if po.fieldDbName=='bpm_status'>
|
|
|
|
<#if po.fieldDbName=='bpm_status'>
|
|
|
|
<#assign bpm_flag=true>
|
|
|
|
<#assign bpm_flag=true>
|
|
|
|
</#if>
|
|
|
|
</#if>
|
|
|
|
<#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>
|
|
|
|
<#assign query_flag=true>
|
|
|
|
<#assign query_field_dictCode="">
|
|
|
|
<#assign query_field_dictCode="">
|
|
|
|
<#if po.dictTable?default("")?trim?length gt 1>
|
|
|
|
<#if po.dictTable?default("")?trim?length gt 1>
|
|
|
@ -89,7 +93,9 @@ export const searchFormSchema: FormSchema[] = [
|
|
|
|
dict:"${po.dictTable},${po.dictText},${po.dictField}"
|
|
|
|
dict:"${po.dictTable},${po.dictText},${po.dictField}"
|
|
|
|
},
|
|
|
|
},
|
|
|
|
<#elseif po.classType=='sel_user'>
|
|
|
|
<#elseif po.classType=='sel_user'>
|
|
|
|
component: 'JSelectUserByDept',
|
|
|
|
<#-- update-begin---author:chenrui ---date:20240102 for:[issue/#5711]修复用户选择组件在生成代码后变成部门用户选择组件------------- -->
|
|
|
|
|
|
|
|
component: 'JSelectUser',
|
|
|
|
|
|
|
|
<#-- update-end---author:chenrui ---date:20240102 for:[issue/#5711]修复用户选择组件在生成代码后变成部门用户选择组件------------- -->
|
|
|
|
<#elseif po.classType=='switch'>
|
|
|
|
<#elseif po.classType=='switch'>
|
|
|
|
component: 'JSwitch',
|
|
|
|
component: 'JSwitch',
|
|
|
|
componentProps:{
|
|
|
|
componentProps:{
|
|
|
@ -177,7 +183,9 @@ export const formSchema: FormSchema[] = [
|
|
|
|
<#if po.fieldDbName == 'id'>
|
|
|
|
<#if po.fieldDbName == 'id'>
|
|
|
|
<#assign id_exists = true>
|
|
|
|
<#assign id_exists = true>
|
|
|
|
</#if>
|
|
|
|
</#if>
|
|
|
|
<#if po.isShow =='Y'>
|
|
|
|
<#-- update-begin---author:chenrui ---date:20240108 for:[issues/5755]vue代码不加入逻辑删除字段---------- -->
|
|
|
|
|
|
|
|
<#if po.isShow =='Y' && po.fieldName !='delFlag'>
|
|
|
|
|
|
|
|
<#-- update-end---author:chenrui ---date:20240108 for:[issues/5755]vue代码不加入逻辑删除字段---------- -->
|
|
|
|
<#assign form_field_dictCode="">
|
|
|
|
<#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>
|
|
|
|
<#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}">
|
|
|
|
<#assign form_field_dictCode="${po.dictTable},${po.dictText},${po.dictField}">
|
|
|
@ -218,7 +226,9 @@ export const formSchema: FormSchema[] = [
|
|
|
|
<#elseif po.classType =='password'>
|
|
|
|
<#elseif po.classType =='password'>
|
|
|
|
component: 'InputPassword',
|
|
|
|
component: 'InputPassword',
|
|
|
|
<#elseif po.classType =='sel_user'>
|
|
|
|
<#elseif po.classType =='sel_user'>
|
|
|
|
component: 'JSelectUserByDept',
|
|
|
|
<#-- update-begin---author:chenrui ---date:20240102 for:[issue/#5711]修复用户选择组件在生成代码后变成部门用户选择组件------------- -->
|
|
|
|
|
|
|
|
component: 'JSelectUser',
|
|
|
|
|
|
|
|
<#-- update-end---author:chenrui ---date:20240102 for:[issue/#5711]修复用户选择组件在生成代码后变成部门用户选择组件------------- -->
|
|
|
|
componentProps:{
|
|
|
|
componentProps:{
|
|
|
|
labelKey:'realname',
|
|
|
|
labelKey:'realname',
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -380,7 +390,9 @@ export const ${sub.entityName?uncap_first}FormSchema: FormSchema[] = [
|
|
|
|
<#if po.fieldDbName=='id'>
|
|
|
|
<#if po.fieldDbName=='id'>
|
|
|
|
<#assign sub_id_exists=true>
|
|
|
|
<#assign sub_id_exists=true>
|
|
|
|
</#if>
|
|
|
|
</#if>
|
|
|
|
<#if po.isShow =='Y'>
|
|
|
|
<#-- update-begin---author:chenrui ---date:20240108 for:[issues/5755]vue代码不加入逻辑删除字段---------- -->
|
|
|
|
|
|
|
|
<#if po.isShow =='Y' && po.fieldName !='delFlag'>
|
|
|
|
|
|
|
|
<#-- update-end---author:chenrui ---date:20240108 for:[issues/5755]vue代码不加入逻辑删除字段---------- -->
|
|
|
|
<#assign form_field_dictCode="">
|
|
|
|
<#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>
|
|
|
|
<#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}">
|
|
|
|
<#assign form_field_dictCode="${po.dictTable},${po.dictText},${po.dictField}">
|
|
|
@ -421,7 +433,9 @@ export const ${sub.entityName?uncap_first}FormSchema: FormSchema[] = [
|
|
|
|
<#elseif po.classType =='password'>
|
|
|
|
<#elseif po.classType =='password'>
|
|
|
|
component: 'InputPassword',
|
|
|
|
component: 'InputPassword',
|
|
|
|
<#elseif po.classType =='sel_user'>
|
|
|
|
<#elseif po.classType =='sel_user'>
|
|
|
|
component: 'JSelectUserByDept',
|
|
|
|
<#-- update-begin---author:chenrui ---date:20240102 for:[issue/#5711]修复用户选择组件在生成代码后变成部门用户选择组件---------- -->
|
|
|
|
|
|
|
|
component: 'JSelectUser',
|
|
|
|
|
|
|
|
<#-- update-end---author:chenrui ---date:20240102 for:[issue/#5711]修复用户选择组件在生成代码后变成部门用户选择组件---------- -->
|
|
|
|
componentProps:{
|
|
|
|
componentProps:{
|
|
|
|
labelKey:'realname',
|
|
|
|
labelKey:'realname',
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -577,7 +591,9 @@ export const ${sub.entityName?uncap_first}Columns: JVxeColumn[] = [
|
|
|
|
|
|
|
|
|
|
|
|
<#-- 循环子表的列 开始 -->
|
|
|
|
<#-- 循环子表的列 开始 -->
|
|
|
|
<#list sub.colums as col><#rt/>
|
|
|
|
<#list sub.colums as col><#rt/>
|
|
|
|
<#if col.isShow =='Y'>
|
|
|
|
<#-- update-begin---author:chenrui ---date:20240108 for:[issues/5755]vue代码不加入逻辑删除字段---------- -->
|
|
|
|
|
|
|
|
<#if col.isShow =='Y' && col.fieldName !='delFlag'>
|
|
|
|
|
|
|
|
<#-- update-end---author:chenrui ---date:20240108 for:[issues/5755]vue代码不加入逻辑删除字段---------- -->
|
|
|
|
<#if col.filedComment !='外键' >
|
|
|
|
<#if col.filedComment !='外键' >
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: '${col.filedComment}',
|
|
|
|
title: '${col.filedComment}',
|
|
|
@ -729,7 +745,9 @@ export const ${sub.entityName?uncap_first}Columns: JVxeColumn[] = [
|
|
|
|
// 高级查询数据
|
|
|
|
// 高级查询数据
|
|
|
|
export const superQuerySchema = {
|
|
|
|
export const superQuerySchema = {
|
|
|
|
<#list columns as po>
|
|
|
|
<#list columns as po>
|
|
|
|
<#if po.isShowList =='Y' && po.fieldName !='id'>
|
|
|
|
<#-- update-begin---author:chenrui ---date:20240108 for:[issues/5755]vue代码不加入逻辑删除字段---------- -->
|
|
|
|
|
|
|
|
<#if po.isShowList =='Y' && po.fieldName !='id' && po.fieldName !='delFlag'>
|
|
|
|
|
|
|
|
<#-- update-end---author:chenrui ---date:20240108 for:[issues/5755]vue代码不加入逻辑删除字段---------- -->
|
|
|
|
${superQueryFieldListForVue3(po,po_index)},
|
|
|
|
${superQueryFieldListForVue3(po,po_index)},
|
|
|
|
</#if>
|
|
|
|
</#if>
|
|
|
|
</#list>
|
|
|
|
</#list>
|
|
|
@ -740,7 +758,9 @@ export const superQuerySchema = {
|
|
|
|
view: 'table',
|
|
|
|
view: 'table',
|
|
|
|
fields: {
|
|
|
|
fields: {
|
|
|
|
<#list sub.colums as subCol>
|
|
|
|
<#list sub.colums as subCol>
|
|
|
|
<#if subCol.isShowList =='Y' && subCol.fieldName !='id'>
|
|
|
|
<#-- update-begin---author:chenrui ---date:20240108 for:[issues/5755]vue代码不加入逻辑删除字段---------- -->
|
|
|
|
|
|
|
|
<#if subCol.isShowList =='Y' && subCol.fieldName !='id' && subCol.fieldName !='delFlag'>
|
|
|
|
|
|
|
|
<#-- update-end---author:chenrui ---date:20240108 for:[issues/5755]vue代码不加入逻辑删除字段---------- -->
|
|
|
|
${superQueryFieldListForVue3(subCol,subCol_index)},
|
|
|
|
${superQueryFieldListForVue3(subCol,subCol_index)},
|
|
|
|
</#if>
|
|
|
|
</#if>
|
|
|
|
</#list>
|
|
|
|
</#list>
|
|
|
|