Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
psa-web
Project
Project
Details
Activity
Releases
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
高滢
psa-web
Commits
31bf840e
Commit
31bf840e
authored
Mar 17, 2025
by
祁正
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
9fb8b9bf
5eae305e
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
1471 additions
and
13 deletions
+1471
-13
onboardmanage.js
src/api/onboardmanage/onboardmanage.js
+24
-0
apply.vue
src/views/staffmanage/confirmationmanage/apply.vue
+24
-8
add.vue
src/views/staffmanage/onboardmanage/add.vue
+13
-2
draft.vue
src/views/staffmanage/onboardmanage/draft.vue
+624
-0
edit.vue
src/views/staffmanage/onboardmanage/edit.vue
+0
-1
editDraft.vue
src/views/staffmanage/onboardmanage/editDraft.vue
+782
-0
index.vue
src/views/staffmanage/onboardmanage/index.vue
+4
-2
No files found.
src/api/onboardmanage/onboardmanage.js
View file @
31bf840e
...
@@ -42,3 +42,27 @@ export function delOnBoardManage(id) {
...
@@ -42,3 +42,27 @@ export function delOnBoardManage(id) {
method
:
'delete'
method
:
'delete'
})
})
}
}
// 查询入职草稿箱
export
function
listOnBoardManageDraft
(
query
)
{
return
request
({
url
:
'/staffmanage/onboardmanage/listDraft'
,
method
:
'get'
,
params
:
query
})
}
// 新增入职草稿
export
function
addOnBoardManageDraft
(
data
)
{
return
request
({
url
:
'/staffmanage/onboardmanage/addDraft'
,
method
:
'post'
,
data
:
data
})
}
// 修改入职草稿箱(草稿箱提交 状态修改)
export
function
updateOnBoardManageDraft
(
data
)
{
return
request
({
url
:
'/staffmanage/onboardmanage/updateDraft'
,
method
:
'put'
,
data
:
data
})
}
src/views/staffmanage/confirmationmanage/apply.vue
View file @
31bf840e
...
@@ -56,19 +56,20 @@
...
@@ -56,19 +56,20 @@
<el-input
<el-input
v-model=
"form.achievementDescription"
v-model=
"form.achievementDescription"
type=
"textarea"
type=
"textarea"
autosize
:autosize=
"
{ minRows: 2, maxRows: 4 }"
placeholder="试用期工作成果描述(不能超过255个字符)"
placeholder="试用期工作成果描述(不能超过255个字符)"
maxlength="255"
maxlength="255"
class=
"applyInput
"
class="applyInput custom-textarea
"
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"自我评价"
prop=
"selfEvaluation"
class=
"selfEvaluationInput"
>
<el-form-item
label=
"自我评价"
prop=
"selfEvaluation"
class=
"selfEvaluationInput"
>
<el-input
<el-input
v-model=
"form.selfEvaluation"
v-model=
"form.selfEvaluation"
type=
"textarea"
type=
"textarea"
autosize
:autosize=
"
{ minRows: 2, maxRows: 4 }"
placeholder="试用期综合自我评价(不能超过255个字符)"
placeholder="试用期综合自我评价(不能超过255个字符)"
class=
"applyInput
"
class="applyInput custom-textarea
"
maxlength="255"
maxlength="255"
/>
/>
</el-form-item>
</el-form-item>
...
@@ -592,4 +593,19 @@ onMounted(() => {
...
@@ -592,4 +593,19 @@ onMounted(() => {
width
:
400px
!important
;
width
:
400px
!important
;
height
:
40px
!important
;
height
:
40px
!important
;
}
}
/* 添加固定高度和滚动条 */
.fixed-textarea
textarea
{
max-height
:
200px
!important
;
overflow-y
:
auto
!important
;
}
/* 增加表单项间距 */
.el-form-item
{
margin-bottom
:
20px
;
}
/* 上传区域增加顶部间距 */
.textForInput
[
prop
=
"confirmationMaterials"
]
{
margin-top
:
20px
;
}
</
style
>
</
style
>
src/views/staffmanage/onboardmanage/add.vue
View file @
31bf840e
...
@@ -234,7 +234,7 @@
...
@@ -234,7 +234,7 @@
</el-row>
</el-row>
<el-form-item
class=
"bottom-button"
>
<el-form-item
class=
"bottom-button"
>
<el-button
@
click=
"cancel"
class=
"cancel-button"
>
取 消
</el-button>
<el-button
@
click=
"cancel"
class=
"cancel-button"
>
取 消
</el-button>
<el-button
class=
"savecConfirm-button"
>
保存
</el-button>
<el-button
class=
"savecConfirm-button"
@
click=
"saveOnDraft"
>
保存
</el-button>
<el-button
class=
"savecConfirm-button"
@
click=
"submitForm"
>
确 定
</el-button>
<el-button
class=
"savecConfirm-button"
@
click=
"submitForm"
>
确 定
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
@@ -245,7 +245,7 @@
...
@@ -245,7 +245,7 @@
<
script
setup
>
<
script
setup
>
import
{
reactive
}
from
'vue'
import
{
reactive
}
from
'vue'
import
{
listOnBoardManage
,
getOnBoardManage
,
delOnBoardManage
,
addOnBoardManage
,
updateOnBoardManage
}
from
"@/api/onboardmanage/onboardmanage"
;
import
{
listOnBoardManage
,
getOnBoardManage
,
delOnBoardManage
,
addOnBoardManage
,
updateOnBoardManage
,
addOnBoardManageDraft
}
from
"@/api/onboardmanage/onboardmanage"
;
import
{
pcaTextArr
}
from
"element-china-area-data"
;
import
{
pcaTextArr
}
from
"element-china-area-data"
;
import
{
useRouter
}
from
'vue-router'
;
import
{
useRouter
}
from
'vue-router'
;
const
pcaTextArrRef
=
pcaTextArr
;
const
pcaTextArrRef
=
pcaTextArr
;
...
@@ -517,6 +517,17 @@ function submitForm() {
...
@@ -517,6 +517,17 @@ function submitForm() {
}
}
});
});
}
}
function
saveOnDraft
(){
proxy
.
$refs
[
"onboardmanageRef"
].
validate
(
valid
=>
{
if
(
valid
)
{
addOnBoardManageDraft
(
form
.
value
).
then
(
response
=>
{
proxy
.
$modal
.
msgSuccess
(
"新增成功"
);
router
.
push
(
'/staffManage/draftonboardmanage'
);
getList
();
});
}
});
}
/** 删除按钮操作 */
/** 删除按钮操作 */
function
handleDelete
(
row
)
{
function
handleDelete
(
row
)
{
...
...
src/views/staffmanage/onboardmanage/draft.vue
0 → 100644
View file @
31bf840e
This diff is collapsed.
Click to expand it.
src/views/staffmanage/onboardmanage/edit.vue
View file @
31bf840e
...
@@ -224,7 +224,6 @@
...
@@ -224,7 +224,6 @@
</el-row>
</el-row>
<el-form-item
class=
"bottom-button"
>
<el-form-item
class=
"bottom-button"
>
<el-button
@
click=
"goBack"
class=
"cancel-button"
>
取 消
</el-button>
<el-button
@
click=
"goBack"
class=
"cancel-button"
>
取 消
</el-button>
<el-button
class=
"savecConfirm-button"
>
保存
</el-button>
<el-button
class=
"savecConfirm-button"
@
click=
"submitForm"
>
确 定
</el-button>
<el-button
class=
"savecConfirm-button"
@
click=
"submitForm"
>
确 定
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
...
src/views/staffmanage/onboardmanage/editDraft.vue
0 → 100644
View file @
31bf840e
This diff is collapsed.
Click to expand it.
src/views/staffmanage/onboardmanage/index.vue
View file @
31bf840e
...
@@ -107,7 +107,7 @@
...
@@ -107,7 +107,7 @@
>
新增入职
</el-button>
>
新增入职
</el-button>
<div
class=
"main-container"
>
<div
class=
"main-container"
>
<el-tooltip
effect=
"dark"
content=
"草稿箱"
placement=
"top"
class=
"img-container"
>
<el-tooltip
effect=
"dark"
content=
"草稿箱"
placement=
"top"
class=
"img-container"
>
<el-button
link
type=
"primary"
>
<el-button
link
type=
"primary"
@
click=
"handleDrafts"
>
<img
src=
"@/assets/icons/common/rightone.png"
>
<img
src=
"@/assets/icons/common/rightone.png"
>
</el-button>
</el-button>
</el-tooltip>
</el-tooltip>
...
@@ -426,7 +426,9 @@ function handleImport() {
...
@@ -426,7 +426,9 @@ function handleImport() {
upload
.
title
=
"数据导入"
;
upload
.
title
=
"数据导入"
;
upload
.
open
=
true
;
upload
.
open
=
true
;
}
;
}
;
function
handleDrafts
(){
router
.
push
({
path
:
'/staffmanage/draftonboardmanage'
}
);
}
/** 下载模板操作 */
/** 下载模板操作 */
function
importTemplate
()
{
function
importTemplate
()
{
proxy
.
download
(
"staffmanage/onboardmanage/importTemplate"
,
{
proxy
.
download
(
"staffmanage/onboardmanage/importTemplate"
,
{
...
...
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