代码生成器更新

pull/5734/head
zhangdaiscott 2023-12-29 21:14:49 +08:00
parent 4c54ff6f52
commit fdde84c68a
21 changed files with 130 additions and 46 deletions

View File

@ -131,16 +131,16 @@
</#if>
</#if>
</#function>
<#-- update-begin---author:chenrui ---date:20231228 for:[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
<#-- ** 高级查询生成(Vue3 * -->
<#function superQueryFieldListForVue3(po,order)>
<#-- 字段展示/DB类型 -->
<#-- 字段展示/DB类型 -->
<#assign baseAttrs="view: '${po.classType}', type: 'string',">
<#if po.fieldDbType=='int' || po.fieldDbType=='double' || po.fieldDbType=='BigDecimal'>
<#assign baseAttrs="view: 'number', type: 'number',">
</#if>
<#-- 特殊类型控件扩展字段 -->
<#-- 特殊类型控件扩展字段 -->
<#assign extAttrs="">
<#assign dictCode="">
<#if po.dictTable?default('')?trim?length gt 1 && po.dictText?default('')?trim?length gt 1 && po.dictField?default("")?trim?length gt 1>
@ -152,12 +152,12 @@
<#if po.classType=='list' || po.classType=='list_multi' || po.classType=='sel_search' || po.classType=='checkbox'>
<#assign extAttrs="${dictCode},">
<#elseif po.classType=='cat_tree'>
<#-- 分类字典树 -->
<#-- 分类字典树 -->
<#assign extAttrs="pcode: '${po.dictField}',">
<#elseif po.classType=='sel_tree'>
<#-- 自定义树 -->
<#-- 自定义树 -->
<#if po.dictText??>
<#-- dictText示例:id,pid,name,has_child -->
<#-- dictText示例:id,pid,name,has_child -->
<#if po.dictText?split(',')[2]?? && po.dictText?split(',')[0]??>
<#assign extAttrs="dict: '${po.dictTable},${po.dictText?split(',')[2]},${po.dictText?split(',')[0]}'">
<#elseif po.dictText?split(',')[1]??>
@ -168,7 +168,7 @@
</#if>
<#assign extAttrs="${extAttrs}, pidValue: '${po.dictField}',">
<#elseif po.classType=='popup'>
<#-- popup -->
<#-- popup -->
<#if po.dictText?default("")?trim?length gt 1 && po.dictText?index_of(',') gt 0>
<#-- 如果有多个回填字段,找到popup字段对应的来源字段 -->
<#assign orgFieldIx=po.dictText?split(',')?seq_index_of(po.fieldDbName)>
@ -181,6 +181,7 @@
<#return "${po.fieldName}: {title: '${po.filedComment}',order: ${order},${baseAttrs}${extAttrs}}" >
</#function>
<#-- update-end---author:chenrui ---date:20231228 for:[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
<#-- vue3 获取表单modal的宽度-->

View File

@ -37,8 +37,10 @@
<Icon icon="mdi:chevron-down"></Icon>
</a-button>
</a-dropdown>
<#-- update-begin---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
<!-- 高级查询 -->
<super-query :config="superQueryConfig" @search="handleSuperQuery" />
<#-- update-end---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
</template>
<!--操作栏-->
<template #action="{ record }">
@ -156,6 +158,7 @@
const [registerTable, {reload},{ rowSelection, selectedRowKeys }] = tableContext
<#-- update-begin---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
// 高级查询配置
const superQueryConfig = reactive(superQuerySchema);
@ -168,8 +171,7 @@
});
reload();
}
<#-- update-end---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
/**
* 新增事件
*/

View File

@ -247,6 +247,7 @@ export const formSchema: FormSchema[] = [
componentProps:{
dictCode:"${form_field_dictCode}"
},
<#-- update-begin---author:chenrui ---date:20231228 for[QQYUN-7583] Vue3风格表单页面多选控件渲染成了下拉多选---------- -->
<#elseif po.classType=='list_multi'>
component: 'JSelectMultiple',
componentProps:{
@ -257,6 +258,7 @@ export const formSchema: FormSchema[] = [
componentProps:{
dictCode:"${form_field_dictCode}"
},
<#-- update-end---author:chenrui ---date:20231228 for[QQYUN-7583] Vue3风格表单页面多选控件渲染成了下拉多选---------- -->
<#elseif po.classType=='sel_search'>
component: 'JSearchSelect',
componentProps:{
@ -381,6 +383,7 @@ export const formSchema: FormSchema[] = [
</#if>
];
<#-- update-begin-author:chenrui date:2023-12-28 for:[QQYUN-7527]vue3代码生成默认带上高级查询 -->
// 高级查询数据
export const superQuerySchema = {
<#list columns as po>
@ -389,9 +392,7 @@ export const superQuerySchema = {
</#if>
</#list>
};
<#-- update-end-author:chenrui date:2023-12-28 for:[QQYUN-7527]vue3代码生成默认带上高级查询 -->
/**
* 流程表单调用这个方法获取formSchema

View File

@ -101,8 +101,10 @@
<Icon icon="mdi:chevron-down"></Icon>
</a-button>
</a-dropdown>
<#-- update-begin---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
<!-- 高级查询 -->
<super-query :config="superQueryConfig" @search="handleSuperQuery" />
<#-- update-end---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
</template>
<!--操作栏-->
<template #action="{ record }">
@ -200,7 +202,7 @@
sm: 20,
});
<#-- update-begin---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
// 高级查询配置
const superQueryConfig = reactive(superQuerySchema);
@ -213,7 +215,7 @@
});
searchQuery();
}
<#-- update-end---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
/**
* 新增事件

View File

@ -233,6 +233,7 @@ export const formSchema: FormSchema[] = [
componentProps:{
dictCode: "${form_field_dictCode}"
},
<#-- update-begin---author:chenrui ---date:20231228 for[QQYUN-7583] Vue3风格表单页面多选控件渲染成了下拉多选---------- -->
<#elseif po.classType=='list_multi'>
component: 'JSelectMultiple',
componentProps:{
@ -243,6 +244,7 @@ export const formSchema: FormSchema[] = [
componentProps:{
dictCode:"${form_field_dictCode}"
},
<#-- update-end---author:chenrui ---date:20231228 for[QQYUN-7583] Vue3风格表单页面多选控件渲染成了下拉多选---------- -->
<#elseif po.classType=='sel_search'>
component: 'JSearchSelect',
componentProps:{
@ -367,6 +369,7 @@ export const formSchema: FormSchema[] = [
</#if>
];
<#-- update-begin---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
// 高级查询数据
export const superQuerySchema = {
<#list columns as po>
@ -375,3 +378,4 @@ export const superQuerySchema = {
</#if>
</#list>
};
<#-- update-end---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->

View File

@ -43,8 +43,10 @@
<Icon icon="ant-design:down-outlined"></Icon>
</a-button>
</a-dropdown>
<#-- update-begin---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
<!-- 高级查询 -->
<super-query :config="superQueryConfig" @search="handleSuperQuery" />
<#-- update-end---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
</template>
<!--操作栏-->
<template #action="{ record }">
@ -105,7 +107,9 @@
title: '${tableVo.ftlDescription}',
columns,
canResize:false,
<#-- update-begin---author:chenrui ---date:20231228 for[issue/#5658] 树表复选框与展开按钮重叠问题---------- -->
isTreeTable: true,
<#-- update-end---author:chenrui ---date:20231228 for[issue/#5658] 树表复选框与展开按钮重叠问题---------- -->
formConfig: {
//labelWidth: 120,
schemas: searchFormSchema,
@ -157,6 +161,7 @@
const [registerTable, {reload, collapseAll, updateTableDataRecord, findTableDataRecord,getDataSource},{ rowSelection, selectedRowKeys }] = tableContext
<#-- update-begin---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
// 高级查询配置
const superQueryConfig = reactive(superQuerySchema);
@ -169,6 +174,7 @@
});
reload();
}
<#-- update-end---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
/**
* 新增事件

View File

@ -273,6 +273,7 @@ export const formSchema: FormSchema[] = [
componentProps:{
dictCode:"${form_field_dictCode}"
},
<#-- update-begin---author:chenrui ---date:20231228 for[QQYUN-7583] Vue3风格表单页面多选控件渲染成了下拉多选---------- -->
<#elseif po.classType=='list_multi'>
component: 'JSelectMultiple',
componentProps:{
@ -283,6 +284,7 @@ export const formSchema: FormSchema[] = [
componentProps:{
dictCode:"${form_field_dictCode}"
},
<#-- update-end---author:chenrui ---date:20231228 for[QQYUN-7583] Vue3风格表单页面多选控件渲染成了下拉多选---------- -->
<#elseif po.classType=='sel_search'>
component: 'JSearchSelect',
componentProps:{
@ -410,6 +412,7 @@ export const formSchema: FormSchema[] = [
</#if>
];
<#-- update-begin---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
// 高级查询数据
export const superQuerySchema = {
<#list columns as po>
@ -418,6 +421,7 @@ export const superQuerySchema = {
</#if>
</#list>
};
<#-- update-end---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
/**

View File

@ -111,8 +111,10 @@
<Icon icon="ant-design:down-outlined"></Icon>
</a-button>
</a-dropdown>
<#-- update-begin---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
<!-- 高级查询 -->
<super-query :config="superQueryConfig" @search="handleSuperQuery" />
<#-- update-end---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
</template>
<!--操作栏-->
<template #action="{ record }">
@ -209,6 +211,7 @@
sm: 20,
});
<#-- update-begin---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
// 高级查询配置
const superQueryConfig = reactive(superQuerySchema);
@ -221,6 +224,7 @@
});
reload();
}
<#-- update-end---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
/**
* 新增事件

View File

@ -263,6 +263,7 @@ export const formSchema: FormSchema[] = [
componentProps:{
dictCode: "${form_field_dictCode}"
},
<#-- update-begin---author:chenrui ---date:20231228 for[QQYUN-7583] Vue3风格表单页面多选控件渲染成了下拉多选---------- -->
<#elseif po.classType=='list_multi'>
component: 'JSelectMultiple',
componentProps:{
@ -273,6 +274,7 @@ export const formSchema: FormSchema[] = [
componentProps:{
dictCode:"${form_field_dictCode}"
},
<#-- update-end---author:chenrui ---date:20231228 for[QQYUN-7583] Vue3风格表单页面多选控件渲染成了下拉多选---------- -->
<#elseif po.classType=='sel_search'>
component: 'JSearchSelect',
componentProps:{
@ -400,6 +402,7 @@ export const formSchema: FormSchema[] = [
</#if>
];
<#-- update-begin---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
// 高级查询数据
export const superQuerySchema = {
<#list columns as po>
@ -408,3 +411,4 @@ export const superQuerySchema = {
</#if>
</#list>
};
<#-- update-end---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->

View File

@ -37,8 +37,10 @@
<Icon icon="mdi:chevron-down"></Icon>
</a-button>
</a-dropdown>
<#-- update-begin---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
<!-- 高级查询 -->
<super-query :config="superQueryConfig" @search="handleSuperQuery" />
<#-- update-end---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
</template>
<!--操作栏-->
<template #action="{ record }">
@ -174,6 +176,7 @@
//下发 mainId,子组件接收
provide('mainId', mainId);
<#-- update-begin---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
// 高级查询配置
const superQueryConfig = reactive(superQuerySchema);
@ -186,6 +189,7 @@
});
reload();
}
<#-- update-end---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
/**
* 新增事件

View File

@ -240,6 +240,7 @@ export const formSchema: FormSchema[] = [
componentProps:{
dictCode:"${form_field_dictCode}"
},
<#-- update-begin---author:chenrui ---date:20231228 for[QQYUN-7583] Vue3风格表单页面多选控件渲染成了下拉多选---------- -->
<#elseif po.classType=='list_multi'>
component: 'JSelectMultiple',
componentProps:{
@ -250,6 +251,7 @@ export const formSchema: FormSchema[] = [
componentProps:{
dictCode:"${form_field_dictCode}"
},
<#-- update-end---author:chenrui ---date:20231228 for[QQYUN-7583] Vue3风格表单页面多选控件渲染成了下拉多选---------- -->
<#elseif po.classType=='sel_search'>
component: 'JSearchSelect',
componentProps:{
@ -512,6 +514,7 @@ export const ${sub.entityName?uncap_first}FormSchema: FormSchema[] = [
componentProps:{
dictCode:"${form_field_dictCode}"
},
<#-- update-begin---author:chenrui ---date:20231228 for[QQYUN-7583] Vue3风格表单页面多选控件渲染成了下拉多选---------- -->
<#elseif po.classType=='list_multi'>
component: 'JSelectMultiple',
componentProps:{
@ -522,6 +525,7 @@ export const ${sub.entityName?uncap_first}FormSchema: FormSchema[] = [
componentProps:{
dictCode:"${form_field_dictCode}"
},
<#-- update-end---author:chenrui ---date:20231228 for[QQYUN-7583] Vue3风格表单页面多选控件渲染成了下拉多选---------- -->
<#elseif po.classType=='sel_search'>
component: 'JSearchSelect',
componentProps:{
@ -639,6 +643,7 @@ export const ${sub.entityName?uncap_first}FormSchema: FormSchema[] = [
];
</#list>
<#-- update-begin---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
// 高级查询数据
export const superQuerySchema = {
<#list columns as po>
@ -646,4 +651,5 @@ export const superQuerySchema = {
${superQueryFieldListForVue3(po,po_index)},
</#if>
</#list>
};
};
<#-- update-end---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->

View File

@ -106,8 +106,10 @@
<Icon icon="mdi:chevron-down"></Icon>
</a-button>
</a-dropdown>
<#-- update-begin---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
<!-- 高级查询 -->
<super-query :config="superQueryConfig" @search="handleSuperQuery" />
<#-- update-end---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
</template>
<!--操作栏-->
<template #action="{ record }">
@ -175,7 +177,7 @@
import ${sub.entityName}List from './${sub.entityName}List.vue'
</#list>
import { useUserStore } from '/@/store/modules/user';
const formRef = ref();
const queryParam = reactive<any>({});
const checkedKeys = ref<Array<string | number>>([]);
@ -214,6 +216,7 @@
//下发 mainId,子组件接收
provide('mainId', mainId);
<#-- update-begin---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
// 高级查询配置
const superQueryConfig = reactive(superQuerySchema);
@ -226,6 +229,7 @@
});
reload();
}
<#-- update-end---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
/**
* 新增事件

View File

@ -240,6 +240,7 @@ export const formSchema: FormSchema[] = [
componentProps:{
dictCode:"${form_field_dictCode}"
},
<#-- update-begin---author:chenrui ---date:20231228 for[QQYUN-7583] Vue3风格表单页面多选控件渲染成了下拉多选---------- -->
<#elseif po.classType=='list_multi'>
component: 'JSelectMultiple',
componentProps:{
@ -250,6 +251,7 @@ export const formSchema: FormSchema[] = [
componentProps:{
dictCode:"${form_field_dictCode}"
},
<#-- update-end---author:chenrui ---date:20231228 for[QQYUN-7583] Vue3风格表单页面多选控件渲染成了下拉多选---------- -->
<#elseif po.classType=='sel_search'>
component: 'JSearchSelect',
componentProps:{
@ -512,6 +514,7 @@ export const ${sub.entityName?uncap_first}FormSchema: FormSchema[] = [
componentProps:{
dictCode:"${form_field_dictCode}"
},
<#-- update-begin---author:chenrui ---date:20231228 for[QQYUN-7583]Vue3风格表单页面多选控件渲染成了下拉多选---------- -->
<#elseif po.classType=='list_multi'>
component: 'JSelectMultiple',
componentProps:{
@ -522,6 +525,7 @@ export const ${sub.entityName?uncap_first}FormSchema: FormSchema[] = [
componentProps:{
dictCode:"${form_field_dictCode}"
},
<#-- update-end---author:chenrui ---date:20231228 for[QQYUN-7583]Vue3风格表单页面多选控件渲染成了下拉多选---------- -->
<#elseif po.classType=='sel_search'>
component: 'JSearchSelect',
componentProps:{
@ -639,6 +643,7 @@ export const ${sub.entityName?uncap_first}FormSchema: FormSchema[] = [
];
</#list>
<#-- update-begin---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
// 高级查询数据
export const superQuerySchema = {
<#list columns as po>
@ -646,4 +651,5 @@ export const superQuerySchema = {
${superQueryFieldListForVue3(po,po_index)},
</#if>
</#list>
};
};
<#-- update-end---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->

View File

@ -51,8 +51,10 @@
<Icon icon="mdi:chevron-down"></Icon>
</a-button>
</a-dropdown>
<#-- update-begin---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
<!-- 高级查询 -->
<super-query :config="superQueryConfig" @search="handleSuperQuery" />
<#-- update-end---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
</template>
<!--操作栏-->
<template #action="{ record }">
@ -174,32 +176,33 @@
const [registerTable, {reload},{ rowSelection, selectedRowKeys }] = tableContext
<#-- update-begin---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
// 高级查询配置
const superQueryConfig = reactive(superQuerySchema);
// 高级查询配置
const superQueryConfig = reactive(superQuerySchema);
/**
* 高级查询事件
*/
function handleSuperQuery(params) {
Object.keys(params).map((k) => {
queryParam[k] = params[k];
});
reload();
}
/**
* 展开事件
*/
function handleExpand(expanded, record){
expandedRowKeys.value=[];
if (expanded === true) {
expandedRowKeys.value.push(record.id)
}
}
/**
* 新增事件
/**
* 高级查询事件
*/
function handleSuperQuery(params) {
Object.keys(params).map((k) => {
queryParam[k] = params[k];
});
reload();
}
<#-- update-end---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
/**
* 展开事件
* */
function handleExpand(expanded, record){
expandedRowKeys.value=[];
if (expanded === true) {
expandedRowKeys.value.push(record.id)
}
}
/**
* 新增事件
*/
function handleAdd() {
openModal(true, {
isUpdate: false,

View File

@ -243,6 +243,7 @@ export const formSchema: FormSchema[] = [
componentProps:{
dictCode:"${form_field_dictCode}"
},
<#-- update-begin---author:chenrui ---date:20231228 for[QQYUN-7583] Vue3风格表单页面多选控件渲染成了下拉多选---------- -->
<#elseif po.classType=='list_multi'>
component: 'JSelectMultiple',
componentProps:{
@ -253,6 +254,7 @@ export const formSchema: FormSchema[] = [
componentProps:{
dictCode:"${form_field_dictCode}"
},
<#-- update-end---author:chenrui ---date:20231228 for[QQYUN-7583] Vue3风格表单页面多选控件渲染成了下拉多选---------- -->
<#elseif po.classType=='sel_search'>
component: 'JSearchSelect',
componentProps:{
@ -513,6 +515,7 @@ export const ${sub.entityName?uncap_first}FormSchema: FormSchema[] = [
componentProps:{
dictCode:"${form_field_dictCode}"
},
<#-- update-begin---author:chenrui ---date:20231228 for[QQYUN-7583] Vue3风格表单页面多选控件渲染成了下拉多选---------- -->
<#elseif po.classType=='list_multi'>
component: 'JSelectMultiple',
componentProps:{
@ -523,6 +526,7 @@ export const ${sub.entityName?uncap_first}FormSchema: FormSchema[] = [
componentProps:{
dictCode:"${form_field_dictCode}"
},
<#-- update-end---author:chenrui ---date:20231228 for[QQYUN-7583] Vue3风格表单页面多选控件渲染成了下拉多选---------- -->
<#elseif po.classType=='sel_search'>
component: 'JSearchSelect',
componentProps:{
@ -804,6 +808,7 @@ export const ${sub.entityName?uncap_first}JVxeColumns: JVxeColumn[] = [
</#if>
</#list>
<#-- update-begin---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
// 高级查询数据
export const superQuerySchema = {
<#list columns as po>
@ -826,6 +831,7 @@ export const superQuerySchema = {
},
</#list>
};
<#-- update-end---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
/**
* 流程表单调用这个方法获取formSchema

View File

@ -37,8 +37,10 @@
<Icon icon="mdi:chevron-down"></Icon>
</a-button>
</a-dropdown>
<#-- update-begin---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
<!-- 高级查询 -->
<super-query :config="superQueryConfig" @search="handleSuperQuery" />
<#-- update-end---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
</template>
<!--操作栏-->
<template #action="{ record }">
@ -156,6 +158,7 @@
const [registerTable, {reload},{ rowSelection, selectedRowKeys }] = tableContext
<#-- update-begin---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
// 高级查询配置
const superQueryConfig = reactive(superQuerySchema);
@ -168,6 +171,7 @@
});
reload();
}
<#-- update-end---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
/**
* 新增事件

View File

@ -243,6 +243,7 @@ export const formSchema: FormSchema[] = [
componentProps:{
dictCode:"${form_field_dictCode}"
},
<#-- update-begin---author:chenrui ---date:20231228 for[QQYUN-7583] Vue3风格表单页面多选控件渲染成了下拉多选---------- -->
<#elseif po.classType=='list_multi'>
component: 'JSelectMultiple',
componentProps:{
@ -253,6 +254,7 @@ export const formSchema: FormSchema[] = [
componentProps:{
dictCode:"${form_field_dictCode}"
},
<#-- update-end---author:chenrui ---date:20231228 for[QQYUN-7583] Vue3风格表单页面多选控件渲染成了下拉多选---------- -->
<#elseif po.classType=='sel_search'>
component: 'JSearchSelect',
componentProps:{
@ -453,6 +455,7 @@ export const ${sub.entityName?uncap_first}FormSchema: FormSchema[] = [
componentProps:{
dictCode:"${form_field_dictCode}"
},
<#-- update-begin---author:chenrui ---date:20231228 for[QQYUN-7583] Vue3风格表单页面多选控件渲染成了下拉多选---------- -->
<#elseif po.classType=='list_multi'>
component: 'JSelectMultiple',
componentProps:{
@ -463,6 +466,7 @@ export const ${sub.entityName?uncap_first}FormSchema: FormSchema[] = [
componentProps:{
dictCode:"${form_field_dictCode}"
},
<#-- update-end---author:chenrui ---date:20231228 for[QQYUN-7583] Vue3风格表单页面多选控件渲染成了下拉多选---------- -->
<#elseif po.classType=='sel_search'>
component: 'JSearchSelect',
componentProps:{
@ -745,6 +749,7 @@ export const ${sub.entityName?uncap_first}Columns: JVxeColumn[] = [
</#list>
<#-- update-begin---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
// 高级查询数据
export const superQuerySchema = {
<#list columns as po>
@ -767,7 +772,7 @@ export const superQuerySchema = {
},
</#list>
};
<#-- update-end---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
/**
* 流程表单调用这个方法获取formSchema

View File

@ -105,8 +105,10 @@
<Icon icon="mdi:chevron-down"></Icon>
</a-button>
</a-dropdown>
<#-- update-begin---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
<!-- 高级查询 -->
<super-query :config="superQueryConfig" @search="handleSuperQuery" />
<#-- update-end---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
</template>
<!--操作栏-->
<template #action="{ record }">
@ -197,6 +199,7 @@
const [registerTable, {reload},{ rowSelection, selectedRowKeys }] = tableContext
<#-- update-begin---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
// 高级查询配置
const superQueryConfig = reactive(superQuerySchema);
@ -209,6 +212,7 @@
});
reload();
}
<#-- update-end---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
/**
* 新增事件

View File

@ -229,6 +229,7 @@ export const formSchema: FormSchema[] = [
componentProps:{
dictCode:"${form_field_dictCode}"
},
<#-- update-begin---author:chenrui ---date:20231228 for[QQYUN-7583] Vue3风格表单页面多选控件渲染成了下拉多选---------- -->
<#elseif po.classType=='list_multi'>
component: 'JSelectMultiple',
componentProps:{
@ -239,6 +240,7 @@ export const formSchema: FormSchema[] = [
componentProps:{
dictCode:"${form_field_dictCode}"
},
<#-- update-end---author:chenrui ---date:20231228 for[QQYUN-7583] Vue3风格表单页面多选控件渲染成了下拉多选---------- -->
<#elseif po.classType=='sel_search'>
component: 'JSearchSelect',
componentProps:{
@ -430,6 +432,7 @@ export const ${sub.entityName?uncap_first}FormSchema: FormSchema[] = [
componentProps:{
dictCode:"${form_field_dictCode}"
},
<#-- update-begin---author:chenrui ---date:20231228 for[QQYUN-7583]Vue3风格表单页面多选控件渲染成了下拉多选---------- -->
<#elseif po.classType=='list_multi'>
component: 'JSelectMultiple',
componentProps:{
@ -440,6 +443,7 @@ export const ${sub.entityName?uncap_first}FormSchema: FormSchema[] = [
componentProps:{
dictCode:"${form_field_dictCode}"
},
<#-- update-end---author:chenrui ---date:20231228 for[QQYUN-7583]Vue3风格表单页面多选控件渲染成了下拉多选---------- -->
<#elseif po.classType=='sel_search'>
component: 'JSearchSelect',
componentProps:{
@ -721,6 +725,7 @@ export const ${sub.entityName?uncap_first}Columns: JVxeColumn[] = [
</#if>
</#list>
<#-- update-begin---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
// 高级查询数据
export const superQuerySchema = {
<#list columns as po>
@ -742,4 +747,5 @@ export const superQuerySchema = {
}
},
</#list>
};
};
<#-- update-end---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->

View File

@ -37,8 +37,10 @@
<Icon icon="mdi:chevron-down"></Icon>
</a-button>
</a-dropdown>
<#-- update-begin---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
<!-- 高级查询 -->
<super-query :config="superQueryConfig" @search="handleSuperQuery" />
<#-- update-end---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
</template>
<!--操作栏-->
<template #action="{ record }">
@ -156,6 +158,7 @@
const [registerTable, {reload},{ rowSelection, selectedRowKeys }] = tableContext
<#-- update-begin---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
// 高级查询配置
const superQueryConfig = reactive(superQuerySchema);
@ -168,7 +171,7 @@
});
reload();
}
<#-- update-end---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
/**
* 新增事件
*/

View File

@ -240,6 +240,7 @@ export const formSchema: FormSchema[] = [
componentProps:{
dictCode:"${form_field_dictCode}"
},
<#-- update-begin---author:chenrui ---date:20231228 for[QQYUN-7583] Vue3风格表单页面多选控件渲染成了下拉多选---------- -->
<#elseif po.classType=='list_multi'>
component: 'JSelectMultiple',
componentProps:{
@ -250,6 +251,7 @@ export const formSchema: FormSchema[] = [
componentProps:{
dictCode:"${form_field_dictCode}"
},
<#-- update-end---author:chenrui ---date:20231228 for[QQYUN-7583] Vue3风格表单页面多选控件渲染成了下拉多选---------- -->
<#elseif po.classType=='sel_search'>
component: 'JSearchSelect',
componentProps:{
@ -447,6 +449,7 @@ export const ${sub.entityName?uncap_first}FormSchema: FormSchema[] = [
componentProps:{
dictCode:"${form_field_dictCode}"
},
<#-- update-begin---author:chenrui ---date:20231228 for[QQYUN-7583] Vue3风格表单页面多选控件渲染成了下拉多选---------- -->
<#elseif po.classType=='list_multi'>
component: 'JSelectMultiple',
componentProps:{
@ -457,6 +460,7 @@ export const ${sub.entityName?uncap_first}FormSchema: FormSchema[] = [
componentProps:{
dictCode:"${form_field_dictCode}"
},
<#-- update-end---author:chenrui ---date:20231228 for[QQYUN-7583] Vue3风格表单页面多选控件渲染成了下拉多选----------- -->
<#elseif po.classType=='sel_search'>
component: 'JSearchSelect',
componentProps:{
@ -738,7 +742,7 @@ export const ${sub.entityName?uncap_first}Columns: JVxeColumn[] = [
</#if>
</#list>
<#-- update-begin---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->
// 高级查询数据
export const superQuerySchema = {
<#list columns as po>
@ -760,4 +764,5 @@ export const superQuerySchema = {
}
},
</#list>
};
};
<#-- update-end---author:chenrui ---date:20231228 for[QQYUN-7527]vue3代码生成默认带上高级查询---------- -->