Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-custom
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 04905ebd
authored
Jun 23, 2022
by
xuyl
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
抽取获取跟进员工方法
1 parent
fd497a78
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
26 deletions
src/common/util.js
src/views/clientDataOverview/marketingPeople.vue
src/common/util.js
View file @
04905eb
This diff is collapsed.
Click to expand it.
src/views/clientDataOverview/marketingPeople.vue
View file @
04905eb
...
@@ -113,7 +113,6 @@
...
@@ -113,7 +113,6 @@
<
script
>
<
script
>
import
{
marketingPeopleListShow
,
getcrowdManageList
,
customerClusterListExport
}
from
'@/api/modules/clientDataOverview'
import
{
marketingPeopleListShow
,
getcrowdManageList
,
customerClusterListExport
}
from
'@/api/modules/clientDataOverview'
import
{
getStaffList
}
from
'@/api/modules/clientManage'
import
marketingPlan
from
'./components/marketingPlan.vue'
import
marketingPlan
from
'./components/marketingPlan.vue'
import
Swiper
from
'swiper'
import
Swiper
from
'swiper'
import
'swiper/dist/css/swiper.min.css'
import
'swiper/dist/css/swiper.min.css'
...
@@ -317,7 +316,7 @@ export default {
...
@@ -317,7 +316,7 @@ export default {
this
.
crowdGroupDesc
=
crowInfo
.
crowdGroupDesc
this
.
crowdGroupDesc
=
crowInfo
.
crowdGroupDesc
this
.
activeName
=
crowInfo
.
selectTab
==
'first'
?
'first'
:
'second'
this
.
activeName
=
crowInfo
.
selectTab
==
'first'
?
'first'
:
'second'
}
}
this
.
getStaffList
()
this
.
get
Follow
StaffList
()
},
},
mounted
()
{
mounted
()
{
this
.
screenWidth
=
document
.
body
.
clientWidth
this
.
screenWidth
=
document
.
body
.
clientWidth
...
@@ -372,6 +371,14 @@ export default {
...
@@ -372,6 +371,14 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
// 获取跟进员工
async
getFollowStaffList
()
{
const
formListBackup
=
JSON
.
stringify
(
this
.
marketPeopleFormList
)
const
{
id
,
staff
}
=
await
this
.
$Utils
.
getStaffListApi
(
''
,
formListBackup
,
'followStaff'
)
this
.
$nextTick
(()
=>
{
this
.
marketPeopleFormList
[
id
].
optionList
=
staff
})
},
goback
()
{
goback
()
{
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
flag
)
{
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
flag
)
{
this
.
$router
.
push
(
'/clientDataOverview/index'
)
this
.
$router
.
push
(
'/clientDataOverview/index'
)
...
@@ -436,30 +443,6 @@ export default {
...
@@ -436,30 +443,6 @@ export default {
goDetail
(
scope
)
{
goDetail
(
scope
)
{
this
.
$router
.
push
(
'/clientManage/clientDetail?id='
+
scope
.
oneId
)
this
.
$router
.
push
(
'/clientManage/clientDetail?id='
+
scope
.
oneId
)
},
},
// 获取跟进员工
getStaffList
(
val
)
{
const
params
=
{
staffName
:
val
?
val
.
trim
()
:
''
}
getStaffList
(
params
).
then
(
res
=>
{
if
(
res
.
length
==
0
)
{
return
''
}
const
id
=
this
.
marketPeopleFormList
.
findIndex
(
item
=>
{
return
item
.
name
==
'followStaff'
})
const
staff
=
res
.
map
(
item
=>
{
return
{
label
:
item
.
staffName
,
value
:
item
.
staffName
}
})
staff
.
unshift
({
label
:
'全部'
,
value
:
''
})
this
.
$nextTick
(()
=>
{
this
.
marketPeopleFormList
[
id
].
optionList
=
staff
})
})
},
// 搜索表格
// 搜索表格
searchTable
()
{
searchTable
()
{
this
.
$refs
.
marketPeople
.
refreshTable
()
this
.
$refs
.
marketPeople
.
refreshTable
()
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment