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-manager-ui
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-manager-ui
Commits
b2f7c682
Commit
b2f7c682
authored
Jul 02, 2024
by
姬鋆屾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
推修改请假记录弹窗内的部门和请假人联动
parent
d397307c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
10 deletions
+21
-10
src/views/attendance/leave/record/drawershow.vue
src/views/attendance/leave/record/drawershow.vue
+21
-10
No files found.
src/views/attendance/leave/record/drawershow.vue
View file @
b2f7c682
...
...
@@ -18,6 +18,15 @@
:maxLength=
"10"
:disabled=
"pageInfo.type == 'view'"
/>
-->
<Field
label=
"所属部门"
prop=
"deptId"
v-model=
"form.deptId"
type=
"select"
placeholder=
"请选择所属部门"
:enumData=
"dict.deptId"
@
change=
"changeDept(form.deptId)"
/>
<Field
label=
"请假人"
prop=
"leavePerson"
...
...
@@ -26,20 +35,11 @@
remote
v-model=
"form.leavePerson"
placeholder=
"请输入请假人"
@
change=
"changeStaff(form.leavePerson)
"
:remote-method=
"remoteMethod
"
:maxLength=
"10"
:enumData=
"dict.staffList"
: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=
"电话号码"
...
...
@@ -228,6 +228,17 @@ export default {
this
.
remoteMethod
();
},
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
)
{
let
person
=
this
.
staffList
.
filter
((
v
)
=>
v
.
id
==
val
);
this
.
form
.
deptId
=
person
?
person
[
0
].
deptId
:
""
;
...
...
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