增加人像库页面
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 5m48s

This commit is contained in:
15683799673
2025-06-25 00:37:48 +08:00
parent 9c08cca095
commit b2acba4114
3 changed files with 40 additions and 88 deletions

View File

@@ -1,7 +1,6 @@
import type { FormSchemaGetter } from '#/adapter/form';
import type { VxeGridProps } from '#/adapter/vxe-table';
export const querySchema: FormSchemaGetter = () => [
{
component: 'Input',
@@ -20,32 +19,15 @@ export const querySchema: FormSchemaGetter = () => [
},
{
component: 'Select',
componentProps: {
},
componentProps: {},
fieldName: 'libType',
label: '库类型1人员库2工服库',
label: '库类型',
},
{
component: 'Select',
componentProps: {
},
componentProps: {},
fieldName: 'busiType',
label: '库的业务类型 1: 门禁库2: 黑名单库',
},
{
component: 'Input',
fieldName: 'createById',
label: '创建人id',
},
{
component: 'Input',
fieldName: 'updateById',
label: '更新人id',
},
{
component: 'Input',
fieldName: 'searchValue',
label: '搜索值',
label: '业务类型',
},
];
@@ -126,32 +108,15 @@ export const modalSchema: FormSchemaGetter = () => [
component: 'Input',
},
{
label: '库类型1人员库2工服库',
label: '库类型',
fieldName: 'libType',
component: 'Select',
componentProps: {
},
componentProps: {},
},
{
label: '库的业务类型 1: 门禁库2: 黑名单库',
label: '业务类型',
fieldName: 'busiType',
component: 'Select',
componentProps: {
},
},
{
label: '创建人id',
fieldName: 'createById',
component: 'Input',
},
{
label: '更新人id',
fieldName: 'updateById',
component: 'Input',
},
{
label: '搜索值',
fieldName: 'searchValue',
component: 'Input',
componentProps: {},
},
];

View File

@@ -1,30 +1,24 @@
<script setup lang="ts">
import type { Recordable } from '@vben/types';
import type { VbenFormProps } from '@vben/common-ui';
import { ref } from 'vue';
import type { VxeGridProps } from '#/adapter/vxe-table';
import type { PersonLibForm } from '#/api/sis/personLib/model';
import { Page, useVbenModal, type VbenFormProps } from '@vben/common-ui';
import { Page, useVbenModal } from '@vben/common-ui';
import { getVxePopupContainer } from '@vben/utils';
import { Modal, Popconfirm, Space } from 'ant-design-vue';
import dayjs from 'dayjs';
import {
useVbenVxeGrid,
vxeCheckboxChecked,
type VxeGridProps
} from '#/adapter/vxe-table';
import { useVbenVxeGrid, vxeCheckboxChecked } from '#/adapter/vxe-table';
import {
personLibExport,
personLibList,
personLibRemove,
} from '#/api/sis/personLib';
import type { PersonLibForm } from '#/api/sis/personLib/model';
import { commonDownloadExcel } from '#/utils/file/download';
import personLibModal from './personLib-modal.vue';
import { columns, querySchema } from './data';
import personLibModal from './personLib-modal.vue';
const formOptions: VbenFormProps = {
commonConfig: {
@@ -76,7 +70,7 @@ const gridOptions: VxeGridProps = {
keyField: 'id',
},
// 表格全局唯一表示 保存列配置需要用到
id: 'sis-personLib-index'
id: 'sis-personLib-index',
};
const [BasicTable, tableApi] = useVbenVxeGrid({
@@ -118,9 +112,14 @@ function handleMultiDelete() {
}
function handleDownloadExcel() {
commonDownloadExcel(personLibExport, '人像库数据', tableApi.formApi.form.values, {
fieldMappingTime: formOptions.fieldMappingTime,
});
commonDownloadExcel(
personLibExport,
'人像库数据',
tableApi.formApi.form.values,
{
fieldMappingTime: formOptions.fieldMappingTime,
},
);
}
</script>
@@ -138,9 +137,10 @@ function handleDownloadExcel() {
<a-button
:disabled="!vxeCheckboxChecked(tableApi)"
danger
type="primary"
v-access:code="['sis:personLib:remove']"
@click="handleMultiDelete">
type="primary"
v-access:code="['sis:personLib:remove']"
@click="handleMultiDelete"
>
{{ $t('pages.common.delete') }}
</a-button>
<a-button