This commit is contained in:
2025-06-18 16:50:58 +08:00
parent 1262d4c745
commit 06a0e3649d
46 changed files with 3048 additions and 545 deletions

View File

@@ -33,6 +33,26 @@ export const querySchema: FormSchemaGetter = () => [
fieldName: 'dataState',
label: '数据状态1有效0无效',
},
{
component: 'Input',
fieldName: 'createEmpId',
label: '创建人',
},
{
component: 'DatePicker',
componentProps: {
showTime: true,
format: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'YYYY-MM-DD HH:mm:ss',
},
fieldName: 'modifyTime',
label: '修改时间',
},
{
component: 'Input',
fieldName: 'searchValue',
label: '搜索值',
},
];
// 需要使用i18n注意这里要改成getter形式 否则切换语言不会刷新
@@ -40,7 +60,7 @@ export const querySchema: FormSchemaGetter = () => [
export const columns: VxeGridProps['columns'] = [
{ type: 'checkbox', width: 60 },
{
title: '数据库id',
title: '',
field: 'id',
},
{
@@ -67,6 +87,18 @@ export const columns: VxeGridProps['columns'] = [
title: '数据状态1有效0无效',
field: 'dataState',
},
{
title: '创建人',
field: 'createEmpId',
},
{
title: '修改时间',
field: 'modifyTime',
},
{
title: '搜索值',
field: 'searchValue',
},
{
field: 'action',
fixed: 'right',
@@ -78,7 +110,7 @@ export const columns: VxeGridProps['columns'] = [
export const modalSchema: FormSchemaGetter = () => [
{
label: '数据库id',
label: '',
fieldName: 'id',
component: 'Input',
dependencies: {
@@ -120,6 +152,25 @@ export const modalSchema: FormSchemaGetter = () => [
label: '数据状态1有效0无效',
fieldName: 'dataState',
component: 'Input',
rules: 'required',
},
{
label: '创建人',
fieldName: 'createEmpId',
component: 'Input',
},
{
label: '修改时间',
fieldName: 'modifyTime',
component: 'DatePicker',
componentProps: {
showTime: true,
format: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'YYYY-MM-DD HH:mm:ss',
},
},
{
label: '搜索值',
fieldName: 'searchValue',
component: 'Input',
},
];

View File

@@ -118,7 +118,7 @@ function handleMultiDelete() {
}
function handleDownloadExcel() {
commonDownloadExcel(floorExport, '楼层数据', tableApi.formApi.form.values, {
commonDownloadExcel(floorExport, '楼层管理数据', tableApi.formApi.form.values, {
fieldMappingTime: formOptions.fieldMappingTime,
});
}
@@ -126,7 +126,7 @@ function handleDownloadExcel() {
<template>
<Page :auto-content-height="true">
<BasicTable table-title="楼层列表">
<BasicTable table-title="楼层管理列表">
<template #toolbar-tools>
<Space>
<a-button