Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-app-operator-master
Commits
d7828b8f
Commit
d7828b8f
authored
Aug 29, 2022
by
dcy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
跟单客服修改
parent
5b6c2f39
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
15 deletions
+14
-15
index.vue
src/views/system/user/index.vue
+14
-15
No files found.
src/views/system/user/index.vue
View file @
d7828b8f
...
@@ -146,7 +146,7 @@
...
@@ -146,7 +146,7 @@
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"岗位"
>
<el-form-item
label=
"岗位"
>
<el-select
@
change=
"changList"
v-model=
"form.postIds"
multiple
placeholder=
"请选择"
>
<el-select
v-model=
"form.postIds"
multiple
placeholder=
"请选择"
>
<el-option
<el-option
v-for=
"item in postOptions"
v-for=
"item in postOptions"
:key=
"item.id"
:key=
"item.id"
...
@@ -369,6 +369,18 @@ export default {
...
@@ -369,6 +369,18 @@ export default {
// 根据名称筛选部门树
// 根据名称筛选部门树
deptName
(
val
)
{
deptName
(
val
)
{
this
.
$refs
.
tree
.
filter
(
val
);
this
.
$refs
.
tree
.
filter
(
val
);
},
'
form.postIds
'
(
val
){
let
codes
=
this
.
postOptions
.
filter
(
i
=>
{
if
(
val
.
indexOf
(
i
.
id
)
>
-
1
)
return
i
}).
map
(
v
=>
v
.
code
).
join
(
'
,
'
);
if
(
codes
){
userList
(
codes
).
then
(
r
=>
{
this
.
followUpList
=
r
.
data
;
})
}
else
{
this
.
followUpList
=
[];
}
}
}
},
},
created
()
{
created
()
{
...
@@ -652,20 +664,7 @@ export default {
...
@@ -652,20 +664,7 @@ export default {
children
:
node
.
children
children
:
node
.
children
}
}
},
},
changList
(
e
){
},
let
codes
=
this
.
postOptions
.
filter
(
i
=>
{
if
(
e
.
indexOf
(
i
.
id
)
>
-
1
)
return
i
.
code
}).
map
(
v
=>
v
.
code
).
join
(
'
,
'
);
if
(
codes
){
userList
(
codes
).
then
(
r
=>
{
console
.
log
(
r
,
'
r
'
);
this
.
followUpList
=
r
.
data
;
})
}
else
{
this
.
followUpList
=
[];
}
},
}
};
};
</
script
>
</
script
>
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