diff --git a/.env.development b/.env.development index 5be9756..09279ca 100644 --- a/.env.development +++ b/.env.development @@ -4,7 +4,7 @@ VITE_PUBLIC_PATH = / # 本地开发代理,可以解决跨域及多地址代理 # 如果接口地址匹配到,则会转发到http://localhost:3000,防止本地出现跨域问题 # 可以有多个,注意多个不能换行,否则代理将会失效 -VITE_PROXY = [["/api","http://localhost:9999"],["/upload","http://localhost:9999/system_proxy/system/file/upload"]] +VITE_PROXY = [["/api","http://192.168.3.10:9999"],["/upload","http://192.168.3.10:9999/system_proxy/system/file/upload"]] # 是否删除console.log VITE_DROP_CONSOLE = false diff --git a/src/views/institution/address/address.data.ts b/src/views/institution/address/address.data.ts index 4496068..02d9f73 100644 --- a/src/views/institution/address/address.data.ts +++ b/src/views/institution/address/address.data.ts @@ -108,7 +108,7 @@ export const addressFormSchema: FormSchema[] = [ }, { field: 'code', - label: '区域代码', + label: '区域编码', component: 'Input', required: true, diff --git a/src/views/institution/doctor/doctor.data.ts b/src/views/institution/doctor/doctor.data.ts index dc9a0f5..dd35da0 100644 --- a/src/views/institution/doctor/doctor.data.ts +++ b/src/views/institution/doctor/doctor.data.ts @@ -192,7 +192,14 @@ export const doctorFormSchema: FormSchema[] = [ field: 'email', label: '医生邮箱', component: 'Input', - required: false, + rules: [ + { + type: 'email', + message: '请输入正确的邮箱', + validateTrigger: 'change', + required: true + } + ], }, { field: 'detailAddress', diff --git a/src/views/system/project/project.data.ts b/src/views/system/project/project.data.ts index 35d33c9..bb4d9fa 100644 --- a/src/views/system/project/project.data.ts +++ b/src/views/system/project/project.data.ts @@ -137,7 +137,8 @@ export const formSchema: FormSchema[] = [ { pattern: new RegExp('^1[3|4|5|6|7|8|9][0-9]\\d{8}$'), message: '请输入正确的手机号码!', - validateTrigger: 'change' + validateTrigger: 'change', + required: true } ], colProps: { @@ -165,7 +166,8 @@ export const formSchema: FormSchema[] = [ { type: 'email', message: '请输入正确的邮箱地址!', - validateTrigger: 'change' + validateTrigger: 'change', + required: true } ], colProps: { diff --git a/src/views/system/role/RoleDrawer.vue b/src/views/system/role/RoleDrawer.vue index 2877f3a..5586db3 100644 --- a/src/views/system/role/RoleDrawer.vue +++ b/src/views/system/role/RoleDrawer.vue @@ -4,6 +4,7 @@ showFooter @ok="handleSubmit" @register="registerDrawer" + @visible-change="state.checkedKeys={}" >