Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
attendance-performance-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
attendance-performance-platform
Commits
d5568cf9
Commit
d5568cf9
authored
May 27, 2024
by
姬鋆屾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
推修改请假记录选择部门后展示部门对应人员,并支持人员输入搜索;修改每日打卡记录中异常信息展示为红色
parent
a224f2e0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
11 deletions
+29
-11
attendance-performance-manager-ui/admin/src/views/attendance/leave/record/drawershow.vue
...ui/admin/src/views/attendance/leave/record/drawershow.vue
+22
-10
attendance-performance-manager-ui/admin/src/views/attendance/record/list.vue
...nce-manager-ui/admin/src/views/attendance/record/list.vue
+7
-1
No files found.
attendance-performance-manager-ui/admin/src/views/attendance/leave/record/drawershow.vue
View file @
d5568cf9
...
@@ -18,6 +18,15 @@
...
@@ -18,6 +18,15 @@
:maxLength=
"10"
:maxLength=
"10"
:disabled=
"pageInfo.type == 'view'"
:disabled=
"pageInfo.type == 'view'"
/>
-->
/>
-->
<Field
label=
"所属部门"
prop=
"deptId"
v-model=
"form.deptId"
type=
"select"
placeholder=
"请选择所属部门"
:enumData=
"dict.deptId"
@
change=
"changeDept(form.deptId)"
/>
<Field
<Field
label=
"请假人"
label=
"请假人"
prop=
"leavePerson"
prop=
"leavePerson"
...
@@ -26,21 +35,12 @@
...
@@ -26,21 +35,12 @@
remote
remote
v-model=
"form.leavePerson"
v-model=
"form.leavePerson"
placeholder=
"请输入请假人"
placeholder=
"请输入请假人"
@
change=
"changeStaff(form.leavePerson)"
:remote-method=
"remoteMethod"
:remote-method=
"remoteMethod"
:maxLength=
"10"
:maxLength=
"10"
:enumData=
"dict.staffList"
:enumData=
"dict.staffList"
:disabled=
"pageInfo.type == 'view'"
:disabled=
"pageInfo.type == 'view'"
/>
/>
<Field
label=
"所属部门"
prop=
"deptId"
v-model=
"form.deptId"
type=
"select"
placeholder=
"请选择所属部门"
:enumData=
"dict.deptId"
:disabled=
"true"
/>
<!--
<Field
label=
"所属部门"
prop=
"deptName"
v-model=
"form.deptName"
type=
"textarea"
placeholder=
"请输入所属部门"
/>
-->
<!--
<Field
label=
"所属部门"
prop=
"deptName"
v-model=
"form.deptName"
type=
"textarea"
placeholder=
"请输入所属部门"
/>
-->
<Field
<Field
label=
"电话号码"
label=
"电话号码"
...
@@ -259,7 +259,19 @@ export default {
...
@@ -259,7 +259,19 @@ export default {
this
.
remoteMethod
();
this
.
remoteMethod
();
},
},
methods
:
{
methods
:
{
changeDept
(
val
)
{
console
.
log
(
val
);
this
.
form
.
leavePerson
=
""
;
let
arr
=
this
.
staffList
.
filter
((
v
)
=>
v
.
deptId
==
val
);
let
obj
=
{};
for
(
let
key
in
arr
)
{
obj
[
arr
[
key
].
id
]
=
arr
[
key
].
name
;
}
this
.
dict
.
staffList
=
obj
;
console
.
log
(
this
.
staffList
);
},
changeStaff
(
val
)
{
changeStaff
(
val
)
{
console
.
log
(
val
);
let
person
=
this
.
staffList
.
filter
((
v
)
=>
v
.
id
==
val
);
let
person
=
this
.
staffList
.
filter
((
v
)
=>
v
.
id
==
val
);
console
.
log
(
person
);
console
.
log
(
person
);
console
.
log
(
this
.
form
);
console
.
log
(
this
.
form
);
...
...
attendance-performance-manager-ui/admin/src/views/attendance/record/list.vue
View file @
d5568cf9
...
@@ -325,7 +325,13 @@ export default {
...
@@ -325,7 +325,13 @@ export default {
property
===
"
offWorkResult
"
property
===
"
offWorkResult
"
)
{
)
{
let
val
=
arr
[
index
][
property
];
let
val
=
arr
[
index
][
property
];
return
this
.
tableData
.
dict
.
goWorkResult
[
val
];
return
val
==
1
?
(
this
.
tableData
.
dict
.
goWorkResult
[
val
]
)
:
(
<
el
-
tag
type
=
{
"
danger
"
}
size
=
"
mini
"
>
{
this
.
tableData
.
dict
.
goWorkResult
[
val
]}
<
/el-tag
>
);
}
}
}
else
{
}
else
{
return
"
-
"
;
return
"
-
"
;
...
...
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