feat(property): 1
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:
parent
007bda30bc
commit
9131eb0e44
@ -144,6 +144,9 @@ export interface PersonForm extends BaseEntity {
|
||||
*/
|
||||
authGroupId?: string | number
|
||||
|
||||
begDate?: string
|
||||
|
||||
endDate?: string
|
||||
}
|
||||
|
||||
export interface PersonQuery extends PageQuery {
|
||||
|
@ -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',
|
||||
|
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user