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
3e36e41e
Commit
3e36e41e
authored
Apr 28, 2025
by
‘老张’
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
员工年假修改
parent
6996feeb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
index.vue
src/views/system/balance/index.vue
+4
-1
No files found.
src/views/system/balance/index.vue
View file @
3e36e41e
...
@@ -82,6 +82,7 @@
...
@@ -82,6 +82,7 @@
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"唯一标识每条记录"
align=
"center"
prop=
"id"
/>
<el-table-column
label=
"唯一标识每条记录"
align=
"center"
prop=
"id"
/>
<el-table-column
label=
"员工ID"
align=
"center"
prop=
"employeeId"
/>
<el-table-column
label=
"员工ID"
align=
"center"
prop=
"employeeId"
/>
<el-table-column
label=
"员工姓名"
align=
"center"
prop=
"name"
/>
<el-table-column
label=
"年假余额/天"
align=
"center"
prop=
"annualLeaveBalance"
>
<el-table-column
label=
"年假余额/天"
align=
"center"
prop=
"annualLeaveBalance"
>
<template
#
default=
"scope"
>
<template
#
default=
"scope"
>
<span>
{{
scope
.
row
.
annualLeaveBalance
}}
</span>
<span>
{{
scope
.
row
.
annualLeaveBalance
}}
</span>
...
@@ -182,6 +183,7 @@ const data = reactive({
...
@@ -182,6 +183,7 @@ const data = reactive({
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
10
,
pageSize
:
10
,
employeeId
:
null
,
employeeId
:
null
,
name
:
null
,
annualLeaveBalance
:
null
,
annualLeaveBalance
:
null
,
overtimeHoursBalance
:
null
,
overtimeHoursBalance
:
null
,
createdAt
:
null
,
createdAt
:
null
,
...
@@ -224,6 +226,7 @@ function reset() {
...
@@ -224,6 +226,7 @@ function reset() {
form
.
value
=
{
form
.
value
=
{
id
:
null
,
id
:
null
,
employeeId
:
null
,
employeeId
:
null
,
name
:
null
,
annualLeaveBalance
:
null
,
annualLeaveBalance
:
null
,
overtimeHoursBalance
:
null
,
overtimeHoursBalance
:
null
,
createdAt
:
null
,
createdAt
:
null
,
...
@@ -270,7 +273,7 @@ function handleAdd() {
...
@@ -270,7 +273,7 @@ function handleAdd() {
/** 修改按钮操作 */
/** 修改按钮操作 */
function
handleUpdate
(
row
)
{
function
handleUpdate
(
row
)
{
reset
();
reset
();
const
_id
=
row
.
id
||
ids
.
value
const
_id
=
row
.
employeeId
||
employeeId
.
value
;
getBalance
(
_id
).
then
(
response
=>
{
getBalance
(
_id
).
then
(
response
=>
{
form
.
value
=
response
.
data
;
form
.
value
=
response
.
data
;
open
.
value
=
true
;
open
.
value
=
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