Commit e6280a9e by 王志慧

commit

1 parent 8338eb3e
......@@ -26,7 +26,8 @@
<div v-if="item.nickName">
<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-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 class="customer-info-message" v-else>未添加</div>
</div>
......
<template>
<div :class="[{'sticky':sticky}]">
<van-tabs
v-model="tabIndex"
color="#3975C6"
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>
<div :class="[{ sticky: sticky }]">
<van-tabs v-model="tabIndex" color="#3975C6" 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>
</van-tabs>
</div>
</template>
<script type='text/ecmascript-6'>
<script type="text/ecmascript-6">
export default {
name: 'Tab',
props: {
......@@ -48,6 +38,9 @@ export default {
'updata' (n) {
this.data = this.list
this.tabIndex = this.index
},
'list'(n){
this.data = n
}
},
mounted () {
......@@ -61,7 +54,7 @@ export default {
}
</script>
<style lang='scss'>
<style lang="scss">
.sticky {
position: sticky;
top: 0;
......@@ -76,4 +69,4 @@ export default {
.van-tab--active {
font-size: 16px !important;
}
</style>
\ No newline at end of file
</style>
......@@ -8,8 +8,12 @@ export default {
follewIndex: 0,
activityId: util.getLocalStorage('dj_scrm_activityId') ? util.getLocalStorage('dj_scrm_activityId') : '',
staffId: util.getLocalStorage('dj_scrm_staffId') ? util.getLocalStorage('dj_scrm_staffId') : '',
followResultList: util.getLocalStorage('followResultList') ? JSON.parse(util.getLocalStorage('followResultList')) : [],
customerInfoList: []
followResultList: util.getLocalStorage('followResultList') ? util.getLocalStorage('followResultList') : [],
customerInfoList: [],
overviewCountInfo: {
tabPageFollowUpCount: 0,
tabPageResultCount: 0
}
},
mutations: {
['SET_TAB_INDEX'](state, payload) {
......@@ -27,11 +31,14 @@ export default {
},
['SET_FOLLOE_RESULT_LIST'](state, payload) {
state.followResultList = payload.followResultList
util.setLocalStorage('followResultList', JSON.stringify(payload.followResultList))
util.setLocalStorage('followResultList', payload.followResultList)
},
['SET_ACTIVITY_ID'](state, payload) {
state.activityId = payload.activityId
util.setLocalStorage('dj_scrm_activityId', payload.activityId)
},
['SET_OVERVIEW_COUNT_INFO'](state, payload) {
state.overviewCountInfo = payload.overviewCountInfo
}
},
actions: {
......@@ -65,8 +72,10 @@ export default {
solicitApi.taskOverviewData(params).then(({ code, data, message }) => {
if (code == '0') {
conText.commit('SET_OVERVIEW_COUNT_INFO', {
tabPageFollowUpCount: data.tabPageFollowUpCount,
tabPageResultCount: data.tabPageResultCount
overviewCountInfo: {
tabPageFollowUpCount: data.tabPageFollowUpCount,
tabPageResultCount: data.tabPageResultCount
}
})
} else {
Notify(message)
......
......@@ -50,8 +50,6 @@ export default {
// let offsetY
// offsetY = document.getElementById(id).height * 0.4
// await this.dynamicTick() //动态生成各个标度点的间距
// id = this.refId
console.log(this.lineData, 8)
const data = this.lineData
this.chart && this.chart.clear()
this.chart = null
......
......@@ -60,56 +60,7 @@ export default {
solicitationTotal: 20,
solicitationWeComCustomerCount: 30,
solicitationNotWeComCustomerCount: 20,
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
}
]
weComMarketingList: []
},
statisticList: []
}
......
......@@ -7,8 +7,7 @@
-->
<template>
<div class="solicit-container">
<tab :list="['总览', `跟进(${countData.tabPageFollowUpCount})`, `结果(${countData.tabPageResultCount})`]"
:index="currentIndex" @change="changeIndex"></tab>
<tab :list="['总览', `跟进(${countData.tabPageFollowUpCount})`, `结果(${countData.tabPageResultCount})`]" :index="currentIndex" @change="changeIndex"></tab>
<div class="solicit-content">
<overview v-if="currentIndex == 0" @getCountInfo="getCountInfo"></overview>
<follow v-if="currentIndex == 1"></follow>
......@@ -32,6 +31,15 @@ export default {
}
}
},
watch: {
overviewCountInfo: {
handler(n) {
this.countData = n
},
immediate: true,
deep: true
}
},
components: {
overview,
follow,
......@@ -52,11 +60,9 @@ export default {
this.SET_TAB_INDEX({ currentIndex: index })
},
getCountInfo(val) {
console.log(val)
this.SET_OVERVIEW_COUNT_INFO({
overviewCountInfo: val
})
console.log(this.overviewCountInfo)
}
}
}
......
......@@ -70,28 +70,7 @@ export default {
followedUpCount: 10,
notFollowedUpCount: 4,
followedUpPercent: '20%',
customerGroupList: [
{
groupName: '名称展示上限为十个字',
groupCount: 5
},
{
groupName: 'N-4',
groupCount: 6
},
{
groupName: 'N-3',
groupCount: 3
},
{
groupName: 'N-2',
groupCount: 8
},
{
groupName: '名称测试展示上限为十个字',
groupCount: 1
}
],
customerGroupList: [ ],
workBriefingFollowUpTodayCount: 6,
workBriefingFollowUpMonthCount: 0,
workBriefingAddedTodayCount: 3,
......
......@@ -156,7 +156,7 @@ export default {
this.lineData = [...appointmentDaily, ...successDaily]
}
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 => {
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!