Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
H
hr-admin-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-admin-view
Commits
bbfaeace
Commit
bbfaeace
authored
Nov 26, 2025
by
刘斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 放开编辑
parent
4fa8b184
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
12 deletions
+21
-12
form.vue
apps/web-antd/src/views/hr/employeeInfo/form.vue
+10
-9
list.vue
apps/web-antd/src/views/hr/employeeInfo/list.vue
+11
-3
No files found.
apps/web-antd/src/views/hr/employeeInfo/form.vue
View file @
bbfaeace
...
...
@@ -159,10 +159,18 @@ const formSchema: VbenFormSchema[] = [
componentProps
:
{
maxCount
:
1
,
},
fieldName
:
'
photo
'
,
fieldName
:
'
ossId
'
,
label
:
'照片'
,
// rules: 'required',
},
{
component
:
'Input'
,
fieldName
:
'phoneNumber'
,
label
:
'手机号码'
,
rules
:
z
.
string
()
.
regex
(
/^1
[
3-9
]\d{9}
$/
,
{
message
:
'请输入正确的联系电话'
}),
},
{
component
:
'Input'
,
fieldName
:
'idCardNumber'
,
...
...
@@ -226,14 +234,6 @@ const formSchema: VbenFormSchema[] = [
label
:
'政治面貌'
,
// rules: 'selectRequired',
},
{
component
:
'Input'
,
fieldName
:
'phoneNumber'
,
label
:
'手机号码'
,
rules
:
z
.
string
()
.
regex
(
/^1
[
3-9
]\d{9}
$/
,
{
message
:
'请输入正确的联系电话'
}),
},
{
component
:
'Input'
,
fieldName
:
'emergencyContact'
,
...
...
@@ -802,6 +802,7 @@ const [Drawer, drawerApi] = useVbenDrawer({
// console.log('[id]', id);
if
(
isUpdate
.
value
&&
id
)
{
const
data
=
await
apiDetail
(
id
);
data
.
ossId
=
data
.
ossId
?
`
${
data
.
ossId
}
`
:
data
.
ossId
;
await
formApi
.
setValues
(
data
);
// await setupDeptLevel2Options(data.firstLevelDepartment);
}
else
{
...
...
apps/web-antd/src/views/hr/employeeInfo/list.vue
View file @
bbfaeace
...
...
@@ -128,10 +128,12 @@ const [Grid, gridApi] = useVbenVxeGrid({
function
onRefresh
()
{
gridApi
.
query
();
}
function
onEdit
(
row
:
EmployeeInfoApi
.
Employee
)
{
// formDrawerApi.setData({ id: row.id }).open();
function
onShowDetail
(
row
:
EmployeeInfoApi
.
Employee
)
{
employeeDetailDrawerApi
.
setData
({
id
:
row
.
id
}).
open
();
}
function
onEdit
(
row
:
EmployeeInfoApi
.
Employee
)
{
formDrawerApi
.
setData
({
id
:
row
.
id
}).
open
();
}
function
onCreate
()
{
formDrawerApi
.
setData
({}).
open
();
}
...
...
@@ -241,10 +243,16 @@ function handleDownloadEmployeeList() {
</GhostButton>
<GhostButton
v-access:code=
"['employee:info:edit']"
@
click
.
stop=
"on
Edit
(row)"
@
click
.
stop=
"on
ShowDetail
(row)"
>
查看
</GhostButton>
<GhostButton
v-access:code=
"['employee:info:edit']"
@
click
.
stop=
"onEdit(row)"
>
编辑
</GhostButton>
<GhostButton
v-access:code=
"['employee:info:add']"
@
click
.
stop=
"onEntryApply(row)"
...
...
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