Commit 276dd625 by xinla

--no commit message

1 parent a1db33e3
<template>
<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>
</template>
......@@ -9,3 +17,9 @@ export default {
name: 'App',
}
</script>
<style scoped>
.app-view + #loader-wrapper {
display: none;
}
</style>
......@@ -162,11 +162,7 @@ export default {
// (条形图)
this.xData = data.map((e) => e.xtime)
if (
'customerTotalChart,customerGroupTotalChart,customerGroupMemberTotalChart'.includes(
this.type
)
) {
if ('customerTotalChart,customerGroupTotalChart,customerGroupMemberTotalChart'.includes(this.type)) {
// 客户总数 / 客群总数 / 客群成员总数 (条形图)
this.series = data.map((e) => e.totalCnt)
} else if (this.type === 'realDataChart') {
......@@ -175,13 +171,11 @@ export default {
this.series.push(data.map((e) => e.lostCnt))
this.series.push(data.map((e) => e.netCnt))
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.quitCnt))
}
else {
} else {
let dict = {
singleChatTotalChart: 'chatCnt', // 单聊总数
sendMessageNumChart: 'messageCnt', // 发送消息数
......@@ -347,7 +341,7 @@ export default {
:xData="xData"
:legend="legend || legendDict[type]"
:series="series"
></ChartLine>
:bgLinearGradient="$attrs.bgLinearGradient"></ChartLine>
<!-- <template v-else-if="type.includes('Table')">
<el-table :data="list" style="width: 100%">
......@@ -368,19 +362,14 @@ export default {
/>
</template> -->
<ChartBar
v-else-if="'staffCustomerBar'.includes(type)"
:xData="xData"
:series="series"
></ChartBar>
<ChartBar v-else-if="'staffCustomerBar'.includes(type)" :xData="xData" :series="series"></ChartBar>
<ChartLine
v-else-if="'rowEchart'.includes('vChart')"
:xData="xData"
:legend="legend || legendDict[type]"
:series="series"
:option="option"
></ChartLine>
:option="option"></ChartLine>
</div>
<!-- <SelectWeUser
......
......@@ -53,6 +53,7 @@
<TabContent
type="groupMemberChart"
:legend="['新增成员', '退出成员']"
bgLinearGradient
:request="api.getRealCntMember"></TabContent>
</div>
</div>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!