refactor(sis): 人像添加同步关联多个人像库
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run
This commit is contained in:
@@ -92,8 +92,7 @@ export interface PersonLibImgForm extends BaseEntity {
|
||||
imgUrl?: string;
|
||||
|
||||
/**
|
||||
* 性别 1:男
|
||||
2:女 99:未说明
|
||||
* 性别 1:男 2:女 99:未说明
|
||||
*/
|
||||
sex?: number;
|
||||
|
||||
@@ -108,9 +107,7 @@ export interface PersonLibImgForm extends BaseEntity {
|
||||
tel?: string;
|
||||
|
||||
/**
|
||||
* 证件类型
|
||||
1:身份证 2:护照
|
||||
3:行驶证 99:其它
|
||||
* 证件类型、1:身份证 2:护照 3:行驶证 99:其它
|
||||
*/
|
||||
certificateType?: number;
|
||||
|
||||
@@ -152,8 +149,7 @@ export interface PersonLibImgQuery extends PageQuery {
|
||||
imgUrl?: string;
|
||||
|
||||
/**
|
||||
* 性别 1:男
|
||||
2:女 99:未说明
|
||||
* 性别 1:男 2:女 99:未说明
|
||||
*/
|
||||
sex?: number;
|
||||
|
||||
@@ -168,9 +164,7 @@ export interface PersonLibImgQuery extends PageQuery {
|
||||
tel?: string;
|
||||
|
||||
/**
|
||||
* 证件类型
|
||||
1:身份证 2:护照
|
||||
3:行驶证 99:其它
|
||||
* 证件类型 1:身份证 2:护照 3:行驶证 99:其它
|
||||
*/
|
||||
certificateType?: number;
|
||||
|
||||
|
@@ -9,31 +9,29 @@ import { personLibList } from '#/api/sis/personLib';
|
||||
import type { PersonLibQuery, PersonLibVO } from '#/api/sis/personLib/model';
|
||||
|
||||
let libArr: PersonLibVO[] = [];
|
||||
const labelText: VbenFormSchema = {
|
||||
label: '图片库',
|
||||
fieldName: 'libId',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
resultField: 'list', // 根据API返回结构调整
|
||||
labelField: 'libName',
|
||||
valueField: 'id',
|
||||
// immediate: true,
|
||||
api: async () => {
|
||||
if (!libArr || libArr.length == 0) {
|
||||
const params: PersonLibQuery = {
|
||||
pageNum: 1,
|
||||
pageSize: 500,
|
||||
};
|
||||
const res = await personLibList(params);
|
||||
libArr = res.rows;
|
||||
}
|
||||
return libArr;
|
||||
export const querySchema: FormSchemaGetter = () => [
|
||||
{
|
||||
label: '图片库',
|
||||
fieldName: 'libId',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
resultField: 'list', // 根据API返回结构调整
|
||||
labelField: 'libName',
|
||||
valueField: 'id',
|
||||
// immediate: true,
|
||||
api: async () => {
|
||||
if (!libArr || libArr.length == 0) {
|
||||
const params: PersonLibQuery = {
|
||||
pageNum: 1,
|
||||
pageSize: 500,
|
||||
};
|
||||
const res = await personLibList(params);
|
||||
libArr = res.rows;
|
||||
}
|
||||
return libArr;
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export const querySchema: FormSchemaGetter = () => [
|
||||
labelText,
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'imgName',
|
||||
@@ -96,7 +94,29 @@ export const columns: VxeGridProps['columns'] = [
|
||||
];
|
||||
|
||||
export const modalSchema: FormSchemaGetter = () => [
|
||||
labelText,
|
||||
{
|
||||
label: '图片库',
|
||||
fieldName: 'libId',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
resultField: 'list', // 根据API返回结构调整
|
||||
labelField: 'libName',
|
||||
valueField: 'id',
|
||||
mode: 'multiple',
|
||||
// immediate: true,
|
||||
api: async () => {
|
||||
if (!libArr || libArr.length == 0) {
|
||||
const params: PersonLibQuery = {
|
||||
pageNum: 1,
|
||||
pageSize: 500,
|
||||
};
|
||||
const res = await personLibList(params);
|
||||
libArr = res.rows;
|
||||
}
|
||||
return libArr;
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
label: '人像名称',
|
||||
fieldName: 'imgName',
|
||||
|
@@ -141,14 +141,14 @@ function accessControlAuth() {
|
||||
<BasicTable table-title="人像信息列表">
|
||||
<template #toolbar-tools>
|
||||
<Space>
|
||||
<a-button
|
||||
<!-- <a-button
|
||||
type="primary"
|
||||
:disabled="!vxeCheckboxChecked(tableApi)"
|
||||
v-access:code="['system:personLibImg:add']"
|
||||
@click="accessControlAuth"
|
||||
>
|
||||
门禁授权
|
||||
</a-button>
|
||||
</a-button> -->
|
||||
<a-button
|
||||
v-access:code="['system:personLibImg:export']"
|
||||
@click="handleDownloadExcel"
|
||||
|
Reference in New Issue
Block a user