Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
dj-scrm-wx-work-attachment-customer
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 6d41286e
authored
Jun 07, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
总览修改
1 parent
58bd2c56
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
73 additions
and
16 deletions
src/store/modules/solicit.js
src/views/solicit/index.vue
src/views/solicit/overview.vue
src/store/modules/solicit.js
View file @
6d41286
...
@@ -5,9 +5,13 @@ export default {
...
@@ -5,9 +5,13 @@ export default {
state
:
{
state
:
{
currentIndex
:
0
,
currentIndex
:
0
,
follewIndex
:
0
,
follewIndex
:
0
,
activityId
:
util
.
getLocalStorage
(
'dj_scrm_activityId'
)
?
util
.
getLocalStorage
(
'dj_scrm_activityId'
)
:
3
,
activityId
:
util
.
getLocalStorage
(
'dj_scrm_activityId'
)
?
util
.
getLocalStorage
(
'dj_scrm_activityId'
)
:
1
,
staffId
:
util
.
getLocalStorage
(
'dj_STAFF_ID'
)
?
util
.
getLocalStorage
(
'dj_STAFF_ID'
)
:
363
,
staffId
:
util
.
getLocalStorage
(
'dj_STAFF_ID'
)
?
util
.
getLocalStorage
(
'dj_STAFF_ID'
)
:
334
,
followResultList
:[],
followResultList
:
[],
overviewCountInfo
:
{
tabPageFollowUpCount
:
0
,
tabPageResultCount
:
0
},
customerInfoList
:
[
customerInfoList
:
[
{
{
id
:
508394
,
id
:
508394
,
...
@@ -135,13 +139,18 @@ export default {
...
@@ -135,13 +139,18 @@ export default {
},
},
[
'SET_FOLLOE_RESULT_LIST'
](
state
,
payload
){
[
'SET_FOLLOE_RESULT_LIST'
](
state
,
payload
){
state
.
followResultList
=
payload
.
followResultList
state
.
followResultList
=
payload
.
followResultList
},
[
'SET_OVERVIEW_COUNT_INFO'
](
state
,
payload
)
{
console
.
log
(
state
,
payload
)
state
.
overviewCountInfo
=
null
state
.
overviewCountInfo
=
payload
.
overviewCountInfo
}
}
},
},
actions
:
{
actions
:
{
//设置staffId
//设置staffId
getStaffId
(
conText
,
payload
)
{
getStaffId
(
conText
,
payload
)
{
console
.
log
(
22222222
)
console
.
log
(
conText
,
'conText'
)
// conText.commit('SET_STAFF_ID', { staffId: 3
})
// conText.commit('SET_STAFF_ID', { staffId: conText.state.staffId
})
solicitApi
.
getStaffid
(
payload
).
then
(
res
=>
{
solicitApi
.
getStaffid
(
payload
).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
conText
.
commit
(
'SET_STAFF_ID'
,
{
staffId
:
res
.
data
})
conText
.
commit
(
'SET_STAFF_ID'
,
{
staffId
:
res
.
data
})
...
@@ -161,5 +170,23 @@ export default {
...
@@ -161,5 +170,23 @@ export default {
conText
.
commit
(
'SET_FOLLOE_RESULT_LIST'
,
{
followResultList
:
res
.
data
})
conText
.
commit
(
'SET_FOLLOE_RESULT_LIST'
,
{
followResultList
:
res
.
data
})
})
})
},
},
// 获取跟进总数和结果总数
getTaskOverviewData
(
conText
,
payload
)
{
console
.
log
(
'------这里'
,
)
let
params
=
{
activityId
:
conText
.
state
.
activityId
,
staffId
:
conText
.
state
.
staffId
}
solicitApi
.
taskOverviewData
(
params
).
then
(({
code
,
data
,
message
})
=>
{
if
(
code
==
'0'
)
{
conText
.
commit
(
'SET_OVERVIEW_COUNT_INFO'
,
{
tabPageFollowUpCount
:
data
.
tabPageFollowUpCount
,
tabPageResultCount
:
data
.
tabPageResultCount
})
}
else
{
Notify
(
message
)
}
})
}
}
}
}
}
src/views/solicit/index.vue
View file @
6d41286
<!--
* @Description:
* @Author: huyue
* @Date: 2022-05-31 17:23:27
* @LastEditors: huyue
* @LastEditTime: 2022-06-07 18:53:43
-->
<
template
>
<
template
>
<div
class=
"solicit-container"
>
<div
class=
"solicit-container"
>
<tab
:list=
"['总览', '跟进(5)', '结果(672)']"
:index=
"currentIndex"
@
change=
"changeIndex"
></tab>
<tab
:list=
"['总览', `跟进($
{countData.tabPageFollowUpCount})`, `结果(${countData.tabPageResultCount})`]"
:index="currentIndex" @change="changeIndex">
</tab>
<div
class=
"solicit-content"
>
<div
class=
"solicit-content"
>
<overview
v-if=
"currentIndex == 0"
></overview>
<overview
v-if=
"currentIndex == 0"
@
getCountInfo=
"getCountInfo"
></overview>
<follow
v-if=
"currentIndex == 1"
></follow>
<follow
v-if=
"currentIndex == 1"
></follow>
<result
v-if=
"currentIndex == 2"
></result>
<result
v-if=
"currentIndex == 2"
></result>
</div>
</div>
...
@@ -12,11 +20,17 @@
...
@@ -12,11 +20,17 @@
import
overview
from
'./overview.vue'
import
overview
from
'./overview.vue'
import
follow
from
'./follow.vue'
import
follow
from
'./follow.vue'
import
result
from
'./result.vue'
import
result
from
'./result.vue'
import
{
mapState
,
mapMutations
,
}
from
'vuex'
import
{
mapState
,
mapMutations
}
from
'vuex'
export
default
{
export
default
{
name
:
'index'
,
name
:
'index'
,
data
()
{
data
()
{
return
{}
return
{
tabList
:
[
'总览'
,
'跟进'
,
'结果'
],
countData
:
{
tabPageFollowUpCount
:
0
,
tabPageResultCount
:
0
}
}
},
},
components
:
{
components
:
{
overview
,
overview
,
...
@@ -25,19 +39,24 @@ export default {
...
@@ -25,19 +39,24 @@ export default {
},
},
computed
:
{
computed
:
{
...
mapState
({
...
mapState
({
currentIndex
:
state
=>
state
.
solicit
.
currentIndex
currentIndex
:
state
=>
state
.
solicit
.
currentIndex
,
overviewCountInfo
:
state
=>
state
.
solicit
.
overviewCountInfo
})
})
},
},
created
()
{
},
methods
:
{
methods
:
{
...
mapMutations
({
...
mapMutations
({
SET_TAB_INDEX
:
'solicit/SET_TAB_INDEX'
SET_TAB_INDEX
:
'solicit/SET_TAB_INDEX'
,
SET_OVERVIEW_COUNT_INFO
:
'solicit/SET_OVERVIEW_COUNT_INFO'
}),
}),
changeIndex
(
index
)
{
changeIndex
(
index
)
{
this
.
SET_TAB_INDEX
({
currentIndex
:
index
})
this
.
SET_TAB_INDEX
({
currentIndex
:
index
})
},
getCountInfo
(
val
)
{
console
.
log
(
val
)
this
.
SET_OVERVIEW_COUNT_INFO
({
overviewCountInfo
:
val
})
console
.
log
(
this
.
overviewCountInfo
)
}
}
}
}
}
}
...
...
src/views/solicit/overview.vue
View file @
6d41286
...
@@ -4,7 +4,8 @@
...
@@ -4,7 +4,8 @@
<div
class=
"title-info"
>
客户招揽概况
</div>
<div
class=
"title-info"
>
客户招揽概况
</div>
<div
class=
"overview-content"
>
<div
class=
"overview-content"
>
<template
v-if=
"chart.pieData.length > 0"
>
<template
v-if=
"chart.pieData.length > 0"
>
<pieChart
:color=
"chart.pieColor"
id=
"overviewRef"
:list=
"chart.pieData"
:centerData=
"chart.centerData"
></pieChart>
<pieChart
:color=
"chart.pieColor"
id=
"overviewRef"
:list=
"chart.pieData"
:centerData=
"chart.centerData"
>
</pieChart>
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
<empty></empty>
<empty></empty>
...
@@ -137,6 +138,10 @@ export default {
...
@@ -137,6 +138,10 @@ export default {
this
.
hideLoading
()
this
.
hideLoading
()
if
(
code
==
'0'
)
{
if
(
code
==
'0'
)
{
this
.
overviewInfo
=
data
this
.
overviewInfo
=
data
this
.
$emit
(
'getCountInfo'
,
{
tabPageFollowUpCount
:
data
.
tabPageFollowUpCount
,
tabPageResultCount
:
data
.
tabPageResultCount
})
this
.
initChartData
()
this
.
initChartData
()
}
else
{
}
else
{
Notify
(
message
)
Notify
(
message
)
...
@@ -180,26 +185,32 @@ export default {
...
@@ -180,26 +185,32 @@ export default {
.overview-container
{
.overview-container
{
.overview-wrap
{
.overview-wrap
{
background
:
#fff
;
background
:
#fff
;
.overview-content
{
.overview-content
{
height
:
160px
;
height
:
160px
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
}
.overview-group
{
.overview-group
{
box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
}
.bulletin
{
.bulletin
{
height
:
236px
;
height
:
236px
;
padding
:
8px
0
16px
0
;
padding
:
8px
0
16px
0
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
&-single
{
&-single
{
width
:
50%
;
width
:
50%
;
height
:
98px
;
height
:
98px
;
padding-left
:
16px
;
padding-left
:
16px
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
.bulletin-info
{
.bulletin-info
{
margin-left
:
12px
;
margin-left
:
12px
;
}
}
.number
{
.number
{
height
:
36px
;
height
:
36px
;
line-height
:
36px
;
line-height
:
36px
;
...
...
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