Commit e6280a9e by 王志慧

commit

1 parent 8338eb3e
...@@ -26,7 +26,8 @@ ...@@ -26,7 +26,8 @@
<div v-if="item.nickName"> <div v-if="item.nickName">
<span class="customer-info-message customer-info-wechatnick text-hide">{{ item.nickName }}</span> <span class="customer-info-message customer-info-wechatnick text-hide">{{ item.nickName }}</span>
<span class="customer-info-wechat customer-info-message" v-if="item.type == 1">@微信</span> <span class="customer-info-wechat customer-info-message" v-if="item.type == 1">@微信</span>
<span class="customer-info-qiwechat customer-info-message" v-else>@企微</span> <span class="customer-info-qiwechat customer-info-message" v-else-if="item.type == 2">@企微</span>
<span class="customer-info-qiwechat customer-info-message" v-else></span>
</div> </div>
<div class="customer-info-message" v-else>未添加</div> <div class="customer-info-message" v-else>未添加</div>
</div> </div>
......
<template> <template>
<div :class="[{'sticky':sticky}]"> <div :class="[{ sticky: sticky }]">
<van-tabs <van-tabs v-model="tabIndex" color="#3975C6" title-inactive-color="#BBB" title-active-color="#2c2c2c" @click="click" :key="updata">
v-model="tabIndex" <template v-for="(i, index) in data">
color="#3975C6" <van-tab :title="i" :key="index"></van-tab>
title-inactive-color="#BBB"
title-active-color="#2c2c2c"
@click="click"
:key="updata"
>
<template v-for="(i,index) in data">
<van-tab
:title="i"
:key="index"
></van-tab>
</template> </template>
</van-tabs> </van-tabs>
</div> </div>
</template> </template>
<script type='text/ecmascript-6'> <script type="text/ecmascript-6">
export default { export default {
name: 'Tab', name: 'Tab',
props: { props: {
...@@ -48,6 +38,9 @@ export default { ...@@ -48,6 +38,9 @@ export default {
'updata' (n) { 'updata' (n) {
this.data = this.list this.data = this.list
this.tabIndex = this.index this.tabIndex = this.index
},
'list'(n){
this.data = n
} }
}, },
mounted () { mounted () {
...@@ -61,7 +54,7 @@ export default { ...@@ -61,7 +54,7 @@ export default {
} }
</script> </script>
<style lang='scss'> <style lang="scss">
.sticky { .sticky {
position: sticky; position: sticky;
top: 0; top: 0;
...@@ -76,4 +69,4 @@ export default { ...@@ -76,4 +69,4 @@ export default {
.van-tab--active { .van-tab--active {
font-size: 16px !important; font-size: 16px !important;
} }
</style>
\ No newline at end of file \ No newline at end of file
</style>
...@@ -8,8 +8,12 @@ export default { ...@@ -8,8 +8,12 @@ export default {
follewIndex: 0, follewIndex: 0,
activityId: util.getLocalStorage('dj_scrm_activityId') ? util.getLocalStorage('dj_scrm_activityId') : '', activityId: util.getLocalStorage('dj_scrm_activityId') ? util.getLocalStorage('dj_scrm_activityId') : '',
staffId: util.getLocalStorage('dj_scrm_staffId') ? util.getLocalStorage('dj_scrm_staffId') : '', staffId: util.getLocalStorage('dj_scrm_staffId') ? util.getLocalStorage('dj_scrm_staffId') : '',
followResultList: util.getLocalStorage('followResultList') ? JSON.parse(util.getLocalStorage('followResultList')) : [], followResultList: util.getLocalStorage('followResultList') ? util.getLocalStorage('followResultList') : [],
customerInfoList: [] customerInfoList: [],
overviewCountInfo: {
tabPageFollowUpCount: 0,
tabPageResultCount: 0
}
}, },
mutations: { mutations: {
['SET_TAB_INDEX'](state, payload) { ['SET_TAB_INDEX'](state, payload) {
...@@ -27,11 +31,14 @@ export default { ...@@ -27,11 +31,14 @@ export default {
}, },
['SET_FOLLOE_RESULT_LIST'](state, payload) { ['SET_FOLLOE_RESULT_LIST'](state, payload) {
state.followResultList = payload.followResultList state.followResultList = payload.followResultList
util.setLocalStorage('followResultList', JSON.stringify(payload.followResultList)) util.setLocalStorage('followResultList', payload.followResultList)
}, },
['SET_ACTIVITY_ID'](state, payload) { ['SET_ACTIVITY_ID'](state, payload) {
state.activityId = payload.activityId state.activityId = payload.activityId
util.setLocalStorage('dj_scrm_activityId', payload.activityId) util.setLocalStorage('dj_scrm_activityId', payload.activityId)
},
['SET_OVERVIEW_COUNT_INFO'](state, payload) {
state.overviewCountInfo = payload.overviewCountInfo
} }
}, },
actions: { actions: {
...@@ -65,8 +72,10 @@ export default { ...@@ -65,8 +72,10 @@ export default {
solicitApi.taskOverviewData(params).then(({ code, data, message }) => { solicitApi.taskOverviewData(params).then(({ code, data, message }) => {
if (code == '0') { if (code == '0') {
conText.commit('SET_OVERVIEW_COUNT_INFO', { conText.commit('SET_OVERVIEW_COUNT_INFO', {
tabPageFollowUpCount: data.tabPageFollowUpCount, overviewCountInfo: {
tabPageResultCount: data.tabPageResultCount tabPageFollowUpCount: data.tabPageFollowUpCount,
tabPageResultCount: data.tabPageResultCount
}
}) })
} else { } else {
Notify(message) Notify(message)
......
...@@ -50,8 +50,6 @@ export default { ...@@ -50,8 +50,6 @@ export default {
// let offsetY // let offsetY
// offsetY = document.getElementById(id).height * 0.4 // offsetY = document.getElementById(id).height * 0.4
// await this.dynamicTick() //动态生成各个标度点的间距 // await this.dynamicTick() //动态生成各个标度点的间距
// id = this.refId
console.log(this.lineData, 8)
const data = this.lineData const data = this.lineData
this.chart && this.chart.clear() this.chart && this.chart.clear()
this.chart = null this.chart = null
......
...@@ -60,56 +60,7 @@ export default { ...@@ -60,56 +60,7 @@ export default {
solicitationTotal: 20, solicitationTotal: 20,
solicitationWeComCustomerCount: 30, solicitationWeComCustomerCount: 30,
solicitationNotWeComCustomerCount: 20, solicitationNotWeComCustomerCount: 20,
weComMarketingList: [ weComMarketingList: []
{
activityId: 1,
groupId: 2,
staffId: 3,
groupName: '定保招揽定保招揽定保招揽 N-3',
groupWeComCustomerCount: 265,
solicitationMonth: 5
},
{
activityId: 0,
groupId: 527,
staffId: 0,
groupName: '定保招揽定保招揽定保招揽 N-4',
groupWeComCustomerCount: 265,
solicitationMonth: 5
},
{
activityId: 0,
groupId: 0,
staffId: 0,
groupName: '定保招揽定保招揽定保招揽 N-5',
groupWeComCustomerCount: 265,
solicitationMonth: 5
},
{
activityId: 0,
groupId: 0,
staffId: 0,
groupName: '定保招揽定保招揽定保招揽 N-6',
groupWeComCustomerCount: 265,
solicitationMonth: 5
},
{
activityId: 0,
groupId: 0,
staffId: 0,
groupName: '定保招揽定保招揽定保招揽 N-7',
groupWeComCustomerCount: 265,
solicitationMonth: 5
},
{
activityId: 0,
groupId: 0,
staffId: 0,
groupName: '定保招揽定保招揽定保招揽 N-3',
groupWeComCustomerCount: 265,
solicitationMonth: 5
}
]
}, },
statisticList: [] statisticList: []
} }
......
...@@ -7,8 +7,7 @@ ...@@ -7,8 +7,7 @@
--> -->
<template> <template>
<div class="solicit-container"> <div class="solicit-container">
<tab :list="['总览', `跟进(${countData.tabPageFollowUpCount})`, `结果(${countData.tabPageResultCount})`]" <tab :list="['总览', `跟进(${countData.tabPageFollowUpCount})`, `结果(${countData.tabPageResultCount})`]" :index="currentIndex" @change="changeIndex"></tab>
:index="currentIndex" @change="changeIndex"></tab>
<div class="solicit-content"> <div class="solicit-content">
<overview v-if="currentIndex == 0" @getCountInfo="getCountInfo"></overview> <overview v-if="currentIndex == 0" @getCountInfo="getCountInfo"></overview>
<follow v-if="currentIndex == 1"></follow> <follow v-if="currentIndex == 1"></follow>
...@@ -32,6 +31,15 @@ export default { ...@@ -32,6 +31,15 @@ export default {
} }
} }
}, },
watch: {
overviewCountInfo: {
handler(n) {
this.countData = n
},
immediate: true,
deep: true
}
},
components: { components: {
overview, overview,
follow, follow,
...@@ -52,11 +60,9 @@ export default { ...@@ -52,11 +60,9 @@ export default {
this.SET_TAB_INDEX({ currentIndex: index }) this.SET_TAB_INDEX({ currentIndex: index })
}, },
getCountInfo(val) { getCountInfo(val) {
console.log(val)
this.SET_OVERVIEW_COUNT_INFO({ this.SET_OVERVIEW_COUNT_INFO({
overviewCountInfo: val overviewCountInfo: val
}) })
console.log(this.overviewCountInfo)
} }
} }
} }
......
...@@ -70,28 +70,7 @@ export default { ...@@ -70,28 +70,7 @@ export default {
followedUpCount: 10, followedUpCount: 10,
notFollowedUpCount: 4, notFollowedUpCount: 4,
followedUpPercent: '20%', followedUpPercent: '20%',
customerGroupList: [ customerGroupList: [ ],
{
groupName: '名称展示上限为十个字',
groupCount: 5
},
{
groupName: 'N-4',
groupCount: 6
},
{
groupName: 'N-3',
groupCount: 3
},
{
groupName: 'N-2',
groupCount: 8
},
{
groupName: '名称测试展示上限为十个字',
groupCount: 1
}
],
workBriefingFollowUpTodayCount: 6, workBriefingFollowUpTodayCount: 6,
workBriefingFollowUpMonthCount: 0, workBriefingFollowUpMonthCount: 0,
workBriefingAddedTodayCount: 3, workBriefingAddedTodayCount: 3,
......
...@@ -156,7 +156,7 @@ export default { ...@@ -156,7 +156,7 @@ export default {
this.lineData = [...appointmentDaily, ...successDaily] this.lineData = [...appointmentDaily, ...successDaily]
} }
if (followResultsAnalyzeVos) { if (followResultsAnalyzeVos) {
const followResultList = window.localStorage.getItem('followResultList')?JSON.parse(window.localStorage.getItem('followResultList')):[] const followResultList = window.localStorage.getItem('followResultList')?JSON.parse(window.localStorage.getItem('followResultList'),'',null):[]
this.reasonBar = followResultsAnalyzeVos.map(item => { this.reasonBar = followResultsAnalyzeVos.map(item => {
return { value: item.times, text: followResultList.find(follow => follow.dictValue == item.followResult).dictLabel } return { value: item.times, text: followResultList.find(follow => follow.dictValue == item.followResult).dictLabel }
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!