Commit 733b1c15 by 王志慧

Merge branch 'wangzh_dev_2.3.3' of http://192.168.3.233:8090/glsx/dj-scrm-wx-wor…

…k-attachment-customer into wangzh_dev_2.3.3
2 parents 6a983d94 6d41286e
...@@ -43,14 +43,32 @@ export default { ...@@ -43,14 +43,32 @@ export default {
} }
}) })
}, },
// 获取跟进结果字典数据 // 获取跟进结果字典数据
getFollowDataList(conText, payload) { getFollowDataList(conText, payload) {
var params = { var params = {
dictType:'follow_result' dictType:'follow_result'
}
solicitApi.followFindAllDictData(params).then(res => {
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)
} }
solicitApi.followFindAllDictData(params).then(res => { })
conText.commit('SET_FOLLOE_RESULT_LIST', { followResultList: res.data }) }
})
},
} }
} }
<!--
* @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)
} }
} }
} }
......
...@@ -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>
...@@ -110,7 +111,7 @@ export default { ...@@ -110,7 +111,7 @@ export default {
created() { created() {
this.bulletinList = this.$constants.BULLETINLIST this.bulletinList = this.$constants.BULLETINLIST
this.getStaffId({ this.getStaffId({
success: res => { success: res => {
this.getTaskOverviewData() this.getTaskOverviewData()
} }
}) })
...@@ -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;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!