Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
H
hr-mobile-view
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
anjia-hr
hr-mobile-view
Commits
49cb4861
Commit
49cb4861
authored
Nov 26, 2025
by
刘斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 完善校验
parent
e75d47cb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
17 deletions
+23
-17
auto-imports.d.ts
auto-imports.d.ts
+4
-4
components.d.ts
components.d.ts
+11
-11
rsbuild.config.ts
rsbuild.config.ts
+1
-1
App.vue
src/App.vue
+7
-1
No files found.
auto-imports.d.ts
View file @
49cb4861
...
...
@@ -4,9 +4,9 @@
// noinspection JSUnusedGlobalSymbols
// Generated by unplugin-auto-import
// biome-ignore lint: disable
export
{}
export
{}
;
declare
global
{
const
showFailToast
:
typeof
import
(
'vant/es'
).
showFailToast
const
showSuccessToast
:
typeof
import
(
'vant/es'
).
showSuccessToast
const
showToast
:
typeof
import
(
'vant/es'
).
showToast
const
showFailToast
:
typeof
import
(
'vant/es'
).
showFailToast
;
const
showSuccessToast
:
typeof
import
(
'vant/es'
).
showSuccessToast
;
const
showToast
:
typeof
import
(
'vant/es'
).
showToast
;
}
components.d.ts
View file @
49cb4861
...
...
@@ -6,20 +6,20 @@
// Generated by unplugin-vue-components
// Read more: https://github.com/vuejs/core/pull/3399
export
{}
export
{}
;
/* prettier-ignore */
declare
module
'vue'
{
export
interface
GlobalComponents
{
VanButton
:
typeof
import
(
'vant/es'
)[
'Button'
]
VanCellGroup
:
typeof
import
(
'vant/es'
)[
'CellGroup'
]
VanDatePicker
:
typeof
import
(
'vant/es'
)[
'DatePicker'
]
VanField
:
typeof
import
(
'vant/es'
)[
'Field'
]
VanForm
:
typeof
import
(
'vant/es'
)[
'Form'
]
VanPicker
:
typeof
import
(
'vant/es'
)[
'Picker'
]
VanPopup
:
typeof
import
(
'vant/es'
)[
'Popup'
]
VanRadio
:
typeof
import
(
'vant/es'
)[
'Radio'
]
VanRadioGroup
:
typeof
import
(
'vant/es'
)[
'RadioGroup'
]
VanUploader
:
typeof
import
(
'vant/es'
)[
'Uploader'
]
VanButton
:
typeof
import
(
'vant/es'
)[
'Button'
]
;
VanCellGroup
:
typeof
import
(
'vant/es'
)[
'CellGroup'
]
;
VanDatePicker
:
typeof
import
(
'vant/es'
)[
'DatePicker'
]
;
VanField
:
typeof
import
(
'vant/es'
)[
'Field'
]
;
VanForm
:
typeof
import
(
'vant/es'
)[
'Form'
]
;
VanPicker
:
typeof
import
(
'vant/es'
)[
'Picker'
]
;
VanPopup
:
typeof
import
(
'vant/es'
)[
'Popup'
]
;
VanRadio
:
typeof
import
(
'vant/es'
)[
'Radio'
]
;
VanRadioGroup
:
typeof
import
(
'vant/es'
)[
'RadioGroup'
]
;
VanUploader
:
typeof
import
(
'vant/es'
)[
'Uploader'
]
;
}
}
rsbuild.config.ts
View file @
49cb4861
...
...
@@ -9,7 +9,7 @@ import Components from 'unplugin-vue-components/rspack';
export
default
defineConfig
({
output
:
{
assetPrefix
:
'/mobile/'
,
},
},
plugins
:
[
pluginVue
(),
pluginLess
()],
tools
:
{
rspack
:
{
...
...
src/App.vue
View file @
49cb4861
...
...
@@ -45,12 +45,14 @@
name=
"ethnicity"
label=
"民族"
placeholder=
"请输入民族"
:rules=
"[{ required: true, message: '请输入民族' }]"
/>
<van-field
v-model=
"form.nativePlace"
name=
"nativePlace"
label=
"籍贯"
placeholder=
"请输入籍贯"
:rules=
"[{ required: true, message: '请输入籍贯' }]"
/>
<van-field
v-model=
"form.maritalStatus"
...
...
@@ -73,9 +75,10 @@
placeholder=
"请选择政治面貌"
readonly
is-link
:rules=
"[{ required: true, message: '请选择政治面貌' }]"
@
click=
"showPoliticalPicker = true"
/>
<van-field
name=
"photo"
label=
"照片"
>
<van-field
name=
"photo"
label=
"照片"
:rules=
"[{ required: true, message: '请上传照片' }]"
>
<
template
#
input
>
<van-uploader
v-model=
"form.photoList"
...
...
@@ -109,6 +112,7 @@
name=
"emergencyContact"
label=
"紧急联系人"
placeholder=
"请输入紧急联系人"
:rules=
"[{ required: true, message: '请输入紧急联系人' }]"
/>
<van-field
v-model=
"form.emergencyContactPhone"
...
...
@@ -129,6 +133,7 @@
rows=
"2"
autosize
placeholder=
"请输入家庭地址"
:rules=
"[{ required: true, message: '请输入家庭地址' }]"
/>
<van-field
v-model=
"form.householdRegistrationAddress"
...
...
@@ -138,6 +143,7 @@
rows=
"2"
autosize
placeholder=
"请输入户口所在地"
:rules=
"[{ required: true, message: '请输入户口所在地' }]"
/>
</van-cell-group>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment