feat(property): 1
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run

This commit is contained in:
zcxlsm 2025-07-24 19:07:46 +08:00
parent 007bda30bc
commit 9131eb0e44
3 changed files with 16 additions and 10 deletions

View File

@ -144,6 +144,9 @@ export interface PersonForm extends BaseEntity {
*/
authGroupId?: string | number
begDate?: string
endDate?: string
}
export interface PersonQuery extends PageQuery {

View File

@ -212,16 +212,6 @@ export const modalSchema: FormSchemaGetter = () => [
fieldName: 'carNumber',
component: 'Input',
},
{
label: '人脸图片',
fieldName: 'img',
component: 'ImageUpload',
componentProps: {
// accept: 'image/*', // 可选拓展名或者mime类型 ,拼接
maxCount: 1, // 最大上传文件数 默认为1 为1会绑定为string而非string[]类型
},
formItemClass: 'col-span-2',
},
{
label: '授权期限',
fieldName: 'authTime',
@ -257,6 +247,16 @@ export const modalSchema: FormSchemaGetter = () => [
},
rules: 'required',
},
{
label: '人脸图片',
fieldName: 'img',
component: 'ImageUpload',
componentProps: {
// accept: 'image/*', // 可选拓展名或者mime类型 ,拼接
maxCount: 1, // 最大上传文件数 默认为1 为1会绑定为string而非string[]类型
},
formItemClass: 'col-span-2',
},
{
label: '备注',
fieldName: 'remark',

View File

@ -94,6 +94,9 @@ async function handleConfirm() {
if(unitName.value){
data.unitName = unitName.value
}
data.begDate = data.authTime[0]
data.endDate = data.authTime[1]
await (isUpdate.value ? personUpdate(data) : personAdd(data));
resetInitialized();
emit('reload');