2023年3月30日 修改模板

This commit is contained in:
bai 2023-03-30 21:43:16 +08:00
parent a45265fd96
commit aba9345350
3 changed files with 12 additions and 11 deletions

View File

@ -1,7 +1,7 @@
<#if po.isQuery=='Y'> <#if po.isQuery=='Y'>
<#assign query_flag=true> <#assign query_flag=true>
<#if query_field_no==2> <#if query_field_no==2>
<template v-if="toggleSearchStatus"> <!--<template v-if="toggleSearchStatus">-->
</#if> </#if>
<#assign query_field_dictCode=""> <#assign query_field_dictCode="">
<#if po.dictTable?default("")?trim?length gt 1> <#if po.dictTable?default("")?trim?length gt 1>

View File

@ -61,7 +61,7 @@
<#include "/common/form/native/vue3NativeSearch.ftl"> <#include "/common/form/native/vue3NativeSearch.ftl">
</#list> </#list>
<#if query_field_no gt 2> <#if query_field_no gt 2>
</template> <!--</template>-->
</#if> </#if>
<#if query_flag> <#if query_flag>
<a-col :xl="6" :lg="7" :md="8" :sm="24"> <a-col :xl="6" :lg="7" :md="8" :sm="24">
@ -69,10 +69,10 @@
<a-col :lg="6"> <a-col :lg="6">
<a-button type="primary" preIcon="ant-design:search-outlined" @click="searchQuery">查询</a-button> <a-button type="primary" preIcon="ant-design:search-outlined" @click="searchQuery">查询</a-button>
<a-button type="primary" preIcon="ant-design:reload-outlined" @click="searchReset" style="margin-left: 8px">重置</a-button> <a-button type="primary" preIcon="ant-design:reload-outlined" @click="searchReset" style="margin-left: 8px">重置</a-button>
<a @click="toggleSearchStatus = !toggleSearchStatus" style="margin-left: 8px"> <!--<a @click="toggleSearchStatus = !toggleSearchStatus" style="margin-left: 8px">
{{ toggleSearchStatus ? '收起' : '展开' }} {{ toggleSearchStatus ? '收起' : '展开' }}
<Icon :icon="toggleSearchStatus ? 'ant-design:up-outlined' : 'ant-design:down-outlined'" /> <Icon :icon="toggleSearchStatus ? 'ant-design:up-outlined' : 'ant-design:down-outlined'" />
</a> </a>-->
</a-col> </a-col>
</span> </span>
</a-col> </a-col>
@ -111,9 +111,9 @@
<div v-html="text"></div> <div v-html="text"></div>
</template> </template>
<!--省市区字段回显插槽--> <!--省市区字段回显插槽-->
<template #pcaSlot="{text}"> <!--<template #pcaSlot="{text}">
{{ getAreaTextByCode(text) }} {{ getAreaTextByCode(text) }}
</template> </template>-->
<template #fileSlot="{text}"> <template #fileSlot="{text}">
<span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span> <span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
<a-button v-else :ghost="true" type="primary" preIcon="ant-design:download-outlined" size="small" @click="downloadFile(text)">下载</a-button> <a-button v-else :ghost="true" type="primary" preIcon="ant-design:download-outlined" size="small" @click="downloadFile(text)">下载</a-button>
@ -161,6 +161,7 @@
fixed: 'right', fixed: 'right',
}, },
beforeFetch: (params) => { beforeFetch: (params) => {
params.column = '',params.order = '';//新生成的默认不带排序
return Object.assign(params, queryParam.value); return Object.assign(params, queryParam.value);
}, },
}, },
@ -168,10 +169,10 @@
name: "${tableVo.ftlDescription}", name: "${tableVo.ftlDescription}",
url: getExportUrl, url: getExportUrl,
}, },
importConfig: { importConfig: {
url: getImportUrl, url: getImportUrl,
success: handleSuccess success: handleSuccess
}, },
}); });
const [registerTable, { reload, collapseAll, updateTableDataRecord, findTableDataRecord, getDataSource }, { rowSelection, selectedRowKeys }] = tableContext; const [registerTable, { reload, collapseAll, updateTableDataRecord, findTableDataRecord, getDataSource }, { rowSelection, selectedRowKeys }] = tableContext;
const labelCol = reactive({ const labelCol = reactive({

View File

@ -77,7 +77,7 @@
<#elseif po.fieldDbType=='Blob'> <#elseif po.fieldDbType=='Blob'>
${po.fieldName}String: '', ${po.fieldName}String: '',
<#else> <#else>
${po.fieldName}: '', ${po.fieldName}: '',
</#if> </#if>
</#if> </#if>
</#list> </#list>