Commit 276dd625 by xinla

--no commit message

1 parent a1db33e3
<template> <template>
<div id="app"> <div id="app">
<router-view /> <router-view class="app-view" />
<!-- 这里使用和index.html同样的loading,无缝衔接 -->
<div id="loader-wrapper">
<div id="loader"></div>
<div class="loader-section section-left"></div>
<div class="loader-section section-right"></div>
<div class="load_title">正在加载系统资源,请耐心等待</div>
</div>
</div> </div>
</template> </template>
...@@ -9,3 +17,9 @@ export default { ...@@ -9,3 +17,9 @@ export default {
name: 'App', name: 'App',
} }
</script> </script>
<style scoped>
.app-view + #loader-wrapper {
display: none;
}
</style>
...@@ -162,11 +162,7 @@ export default { ...@@ -162,11 +162,7 @@ export default {
// (条形图) // (条形图)
this.xData = data.map((e) => e.xtime) this.xData = data.map((e) => e.xtime)
if ( if ('customerTotalChart,customerGroupTotalChart,customerGroupMemberTotalChart'.includes(this.type)) {
'customerTotalChart,customerGroupTotalChart,customerGroupMemberTotalChart'.includes(
this.type
)
) {
// 客户总数 / 客群总数 / 客群成员总数 (条形图) // 客户总数 / 客群总数 / 客群成员总数 (条形图)
this.series = data.map((e) => e.totalCnt) this.series = data.map((e) => e.totalCnt)
} else if (this.type === 'realDataChart') { } else if (this.type === 'realDataChart') {
...@@ -175,13 +171,11 @@ export default { ...@@ -175,13 +171,11 @@ export default {
this.series.push(data.map((e) => e.lostCnt)) this.series.push(data.map((e) => e.lostCnt))
this.series.push(data.map((e) => e.netCnt)) this.series.push(data.map((e) => e.netCnt))
this.series.push(data.map((e) => e.gjCnt)) this.series.push(data.map((e) => e.gjCnt))
} } else if (this.type === 'groupMemberChart') {
else if (this.type === 'groupMemberChart') {
// 实时数据 // 实时数据
this.series.push(data.map((e) => e.addCnt)) this.series.push(data.map((e) => e.addCnt))
this.series.push(data.map((e) => e.quitCnt)) this.series.push(data.map((e) => e.quitCnt))
} } else {
else {
let dict = { let dict = {
singleChatTotalChart: 'chatCnt', // 单聊总数 singleChatTotalChart: 'chatCnt', // 单聊总数
sendMessageNumChart: 'messageCnt', // 发送消息数 sendMessageNumChart: 'messageCnt', // 发送消息数
...@@ -347,7 +341,7 @@ export default { ...@@ -347,7 +341,7 @@ export default {
:xData="xData" :xData="xData"
:legend="legend || legendDict[type]" :legend="legend || legendDict[type]"
:series="series" :series="series"
></ChartLine> :bgLinearGradient="$attrs.bgLinearGradient"></ChartLine>
<!-- <template v-else-if="type.includes('Table')"> <!-- <template v-else-if="type.includes('Table')">
<el-table :data="list" style="width: 100%"> <el-table :data="list" style="width: 100%">
...@@ -368,19 +362,14 @@ export default { ...@@ -368,19 +362,14 @@ export default {
/> />
</template> --> </template> -->
<ChartBar <ChartBar v-else-if="'staffCustomerBar'.includes(type)" :xData="xData" :series="series"></ChartBar>
v-else-if="'staffCustomerBar'.includes(type)"
:xData="xData"
:series="series"
></ChartBar>
<ChartLine <ChartLine
v-else-if="'rowEchart'.includes('vChart')" v-else-if="'rowEchart'.includes('vChart')"
:xData="xData" :xData="xData"
:legend="legend || legendDict[type]" :legend="legend || legendDict[type]"
:series="series" :series="series"
:option="option" :option="option"></ChartLine>
></ChartLine>
</div> </div>
<!-- <SelectWeUser <!-- <SelectWeUser
......
...@@ -53,6 +53,7 @@ ...@@ -53,6 +53,7 @@
<TabContent <TabContent
type="groupMemberChart" type="groupMemberChart"
:legend="['新增成员', '退出成员']" :legend="['新增成员', '退出成员']"
bgLinearGradient
:request="api.getRealCntMember"></TabContent> :request="api.getRealCntMember"></TabContent>
</div> </div>
</div> </div>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!