refactor(property): 入驻人员表单变动
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:
@@ -5,6 +5,7 @@ import { renderDict } from "#/utils/render"
|
||||
import { resident_unitList } from "#/api/property/resident/unit"
|
||||
import { authGroupList } from '#/api/sis/authGroup'
|
||||
import type { AuthGroupVO, AuthGroupQuery } from '#/api/sis/authGroup/model'
|
||||
import { toRaw } from 'vue'
|
||||
|
||||
|
||||
export const querySchema: FormSchemaGetter = () => [
|
||||
@@ -151,15 +152,16 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
label: '性别',
|
||||
fieldName: 'gender',
|
||||
component: "Select",
|
||||
componentProps:{
|
||||
componentProps: {
|
||||
options: getDictOptions('sys_user_sex')
|
||||
},
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '身份证号',
|
||||
label: '证件号',
|
||||
fieldName: 'idCard',
|
||||
component: "Input",
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '邮箱',
|
||||
@@ -221,12 +223,23 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
format: 'YYYY-MM-DD HH:mm:ss',
|
||||
valueFormat: 'YYYY-MM-DD HH:mm:ss',
|
||||
},
|
||||
rules: 'required',
|
||||
dependencies: {
|
||||
show: (values) => {
|
||||
return typeof (values.id) !== 'undefined'
|
||||
},
|
||||
triggerFields: ['id'],
|
||||
}
|
||||
},
|
||||
{
|
||||
label: '通行权限组',
|
||||
fieldName: 'authGroupId',
|
||||
component: 'ApiSelect',
|
||||
dependencies: {
|
||||
show: (values) => {
|
||||
return typeof (values.id) !== 'undefined'
|
||||
},
|
||||
triggerFields: ['id'],
|
||||
},
|
||||
componentProps: {
|
||||
resultField: 'list', // 根据API返回结构调整
|
||||
labelField: 'name',
|
||||
@@ -244,8 +257,7 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
}
|
||||
return authGroupArr
|
||||
},
|
||||
},
|
||||
rules: 'required',
|
||||
}
|
||||
},
|
||||
{
|
||||
label: '人脸图片',
|
||||
|
Reference in New Issue
Block a user