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
2d2dc236
Commit
2d2dc236
authored
Dec 10, 2025
by
刘斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复培训和面试日期错误
parent
46ab860f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
5 deletions
+29
-5
form.vue
apps/web-antd/src/views/hr/interviewProfile/form.vue
+5
-0
form.vue
apps/web-antd/src/views/hr/training/form.vue
+16
-4
vite.config.mts
apps/web-antd/vite.config.mts
+8
-1
No files found.
apps/web-antd/src/views/hr/interviewProfile/form.vue
View file @
2d2dc236
...
...
@@ -97,6 +97,11 @@ const formSchema: VbenFormSchema[] = [
},
{
component
:
'DatePicker'
,
componentProps
:
{
format
:
'YYYY-MM-DD'
,
valueFormat
:
'YYYY-MM-DD'
,
getVxePopupContainer
,
},
fieldName
:
'interviewDate'
,
label
:
'面试时间'
,
rules
:
'required'
,
...
...
apps/web-antd/src/views/hr/training/form.vue
View file @
2d2dc236
...
...
@@ -5,9 +5,10 @@ import type { TrainingApi } from '#/api/hr/training';
import
{
computed
,
ref
}
from
'vue'
;
import
{
useVbenDrawer
}
from
'@vben/common-ui'
;
import
{
getVxePopupContainer
}
from
'@vben/utils'
;
import
{
useVbenForm
}
from
'#/adapter/form'
;
import
{
apiAdd
,
apiUpdate
}
from
'#/api/hr/training'
;
import
{
apiAdd
,
api
Detail
,
api
Update
}
from
'#/api/hr/training'
;
import
{
defaultFormValueGetter
,
useBeforeCloseDiff
}
from
'#/utils/popup'
;
const
emit
=
defineEmits
<
{
...
...
@@ -63,12 +64,22 @@ const formSchema: VbenFormSchema[] = [
},
{
component
:
'DatePicker'
,
componentProps
:
{
format
:
'YYYY-MM-DD'
,
valueFormat
:
'YYYY-MM-DD'
,
getVxePopupContainer
,
},
fieldName
:
'trainingTime'
,
label
:
'参训时间'
,
rules
:
'required'
,
},
{
component
:
'DatePicker'
,
componentProps
:
{
format
:
'YYYY-MM-DD'
,
valueFormat
:
'YYYY-MM-DD'
,
getVxePopupContainer
,
},
fieldName
:
'serviceEndDate'
,
label
:
'服务期'
,
rules
:
'required'
,
...
...
@@ -121,9 +132,10 @@ const [Drawer, drawerApi] = useVbenDrawer({
if
(
!
isOpen
)
{
return
null
;
}
const
data
=
drawerApi
.
getData
<
TrainingApi
.
Training
>
();
isUpdate
.
value
=
!!
data
?.
id
;
if
(
isUpdate
.
value
)
{
const
{
id
}
=
drawerApi
.
getData
()
as
{
id
?:
number
};
isUpdate
.
value
=
!!
id
;
if
(
isUpdate
.
value
&&
id
)
{
const
data
=
await
apiDetail
(
id
);
await
formApi
.
setValues
(
data
);
}
else
{
formApi
.
resetForm
();
...
...
apps/web-antd/vite.config.mts
View file @
2d2dc236
...
...
@@ -17,7 +17,14 @@ export default defineConfig(async () => {
changeOrigin: true,
rewrite: (path) => path.replace(/^\/file-preview/, ''),
// mock代理目标地址
target: 'http://119.184.127.215:18010/file-preview',
target: 'http://172.16.200.110:18010/file-preview',
ws: true,
},
'/getCorsFile': {
changeOrigin: true,
rewrite: (path) => path.replace(/^\/getCorsFile/, ''),
// mock代理目标地址
target: 'http://119.184.127.215:666/getCorsFile',
ws: true,
},
},
...
...
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