增加人像库
增加人像库图片
This commit is contained in:
237
apps/web-antd/src/views/sis/personLibImg/data.ts
Normal file
237
apps/web-antd/src/views/sis/personLibImg/data.ts
Normal file
@@ -0,0 +1,237 @@
|
||||
import type { FormSchemaGetter } from '#/adapter/form';
|
||||
import type { VxeGridProps } from '#/adapter/vxe-table';
|
||||
|
||||
|
||||
export const querySchema: FormSchemaGetter = () => [
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'libCode',
|
||||
label: '人员库编码',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'imgName',
|
||||
label: '人像名称',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'imgCode',
|
||||
label: '图片编码',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'imgUrl',
|
||||
label: '图片的存储地址',
|
||||
},
|
||||
{
|
||||
component: 'Select',
|
||||
componentProps: {
|
||||
},
|
||||
fieldName: 'sex',
|
||||
label: '性别 1:男
|
||||
2:女 99:未说明',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'email',
|
||||
label: '邮箱',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'tel',
|
||||
label: '联系方式',
|
||||
},
|
||||
{
|
||||
component: 'Select',
|
||||
componentProps: {
|
||||
},
|
||||
fieldName: 'certificateType',
|
||||
label: '证件类型
|
||||
1:身份证 2:护照
|
||||
3:行驶证 99:其它',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'certificateNo',
|
||||
label: '证件号码',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'birthDate',
|
||||
label: '出生日期',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'createById',
|
||||
label: '创建人id',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'updateById',
|
||||
label: '更新人id',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'searchValue',
|
||||
label: '搜索值',
|
||||
},
|
||||
];
|
||||
|
||||
// 需要使用i18n注意这里要改成getter形式 否则切换语言不会刷新
|
||||
// export const columns: () => VxeGridProps['columns'] = () => [
|
||||
export const columns: VxeGridProps['columns'] = [
|
||||
{ type: 'checkbox', width: 60 },
|
||||
{
|
||||
title: '主键id',
|
||||
field: 'id',
|
||||
},
|
||||
{
|
||||
title: '人员库编码',
|
||||
field: 'libCode',
|
||||
},
|
||||
{
|
||||
title: '人像名称',
|
||||
field: 'imgName',
|
||||
},
|
||||
{
|
||||
title: '图片编码',
|
||||
field: 'imgCode',
|
||||
},
|
||||
{
|
||||
title: '图片的存储地址',
|
||||
field: 'imgUrl',
|
||||
},
|
||||
{
|
||||
title: '性别 1:男
|
||||
2:女 99:未说明',
|
||||
field: 'sex',
|
||||
},
|
||||
{
|
||||
title: '邮箱',
|
||||
field: 'email',
|
||||
},
|
||||
{
|
||||
title: '联系方式',
|
||||
field: 'tel',
|
||||
},
|
||||
{
|
||||
title: '证件类型
|
||||
1:身份证 2:护照
|
||||
3:行驶证 99:其它',
|
||||
field: 'certificateType',
|
||||
},
|
||||
{
|
||||
title: '证件号码',
|
||||
field: 'certificateNo',
|
||||
},
|
||||
{
|
||||
title: '出生日期',
|
||||
field: 'birthDate',
|
||||
},
|
||||
{
|
||||
title: '创建人id',
|
||||
field: 'createById',
|
||||
},
|
||||
{
|
||||
title: '更新人id',
|
||||
field: 'updateById',
|
||||
},
|
||||
{
|
||||
title: '搜索值',
|
||||
field: 'searchValue',
|
||||
},
|
||||
{
|
||||
field: 'action',
|
||||
fixed: 'right',
|
||||
slots: { default: 'action' },
|
||||
title: '操作',
|
||||
width: 180,
|
||||
},
|
||||
];
|
||||
|
||||
export const modalSchema: FormSchemaGetter = () => [
|
||||
{
|
||||
label: '主键id',
|
||||
fieldName: 'id',
|
||||
component: 'Input',
|
||||
dependencies: {
|
||||
show: () => false,
|
||||
triggerFields: [''],
|
||||
},
|
||||
},
|
||||
{
|
||||
label: '人员库编码',
|
||||
fieldName: 'libCode',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '人像名称',
|
||||
fieldName: 'imgName',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '图片编码',
|
||||
fieldName: 'imgCode',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '图片的存储地址',
|
||||
fieldName: 'imgUrl',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '性别 1:男
|
||||
2:女 99:未说明',
|
||||
fieldName: 'sex',
|
||||
component: 'Select',
|
||||
componentProps: {
|
||||
},
|
||||
},
|
||||
{
|
||||
label: '邮箱',
|
||||
fieldName: 'email',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '联系方式',
|
||||
fieldName: 'tel',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '证件类型
|
||||
1:身份证 2:护照
|
||||
3:行驶证 99:其它',
|
||||
fieldName: 'certificateType',
|
||||
component: 'Select',
|
||||
componentProps: {
|
||||
},
|
||||
},
|
||||
{
|
||||
label: '证件号码',
|
||||
fieldName: 'certificateNo',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '出生日期',
|
||||
fieldName: 'birthDate',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '创建人id',
|
||||
fieldName: 'createById',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '更新人id',
|
||||
fieldName: 'updateById',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '搜索值',
|
||||
fieldName: 'searchValue',
|
||||
component: 'Input',
|
||||
},
|
||||
];
|
Reference in New Issue
Block a user