Commit bd48eb43 by 胡悦

提交

1 parent 6753022c
// 运营版接口
// 企业客户总览接口,获取企业客户总览数据
const getEnterpriseOverview = params => {
return window.$HTTP.get('dj/overview/getEnterpriseOverview', params)
}
// 企业客户总览接口
export default {
getEnterpriseOverview
}
<template>
<div class="user-tab flex">
<template v-for="(tab, index) in userData">
<div class="user-tab">
<StatisticsBox class="user" :list="userData"></StatisticsBox>
<!-- <template v-for="(tab, index) in userData">
<div :class="['tab-item', { active: selectIndex == index }]" :key="index" @click="getTrend(tab.view, tab.text)">
<div class="tab-title">{{ tab.text }}</div>
<div class="tab-count text-linear">{{ numAddSymbol(dataList[tab.value]) }}</div>
......@@ -9,43 +10,85 @@
<div class="increase-count">{{ numAddSymbol(dataList[tab.key]) }}</div>
</div>
</div>
</template>
</template> -->
</div>
</template>
<script>
const TEXT_VIEW = [
{
text: '用户数',
value: 'totalnum',
key: 'increnum',
view: 'total'
name: '用户数',
valueName: 'totalnum',
value: '15,351,2',
bottomLabel: '当年新增',
bottemName: 'increnum',
bottomValue: '7,329,2'
},
{
text: '企微客户数',
value: 'totalwechatnum',
key: 'increwechatnum',
view: 'wechat'
name: '企微客户数',
valueName: 'totalwechatnum',
value: '15,351,2',
bottomLabel: '当年新增',
bottemName: 'increwechatnum',
bottomValue: '7,329,2'
},
{
text: '企微群数',
value: 'totalwechatgroupnum',
key: 'increwechatgroupnum',
view: 'wechatgroup'
name: '企微群数',
valueName: 'totalwechatgroupnum',
value: '15,351,2',
bottomLabel: '当年新增',
bottemName: 'increwechatgroupnum',
bottomValue: '7,329,2'
},
{
text: '小程序',
value: 'totalappletnum',
key: 'increappletnum',
view: 'applet'
name: '小程序',
valueName: 'totalappletnum',
value: '15,351,2',
bottomLabel: '当年新增',
bottemName: 'increappletnum',
bottomValue: '7,329,2'
},
{
text: '个微客户数',
value: 'totalsinglewechantnum',
key: 'incresinglewechantnum',
view: 'individual'
name: '个微客户数',
valueName: 'totalsinglewechantnum',
value: '15,351,2',
bottomLabel: '当年新增',
bottemName: 'incresinglewechantnum',
bottomValue: '7,329,2'
}
]
// const TEXT_VIEW1 = [
// {
// text: '用户数',
// value: 'totalnum',
// key: 'increnum',
// view: 'total'
// },
// {
// text: '企微客户数',
// value: 'totalwechatnum',
// key: 'increwechatnum',
// view: 'wechat'
// },
// {
// text: '企微群数',
// value: 'totalwechatgroupnum',
// key: 'increwechatgroupnum',
// view: 'wechatgroup'
// },
// {
// text: '小程序',
// value: 'totalappletnum',
// key: 'increappletnum',
// view: 'applet'
// },
// {
// text: '个微客户数',
// value: 'totalsinglewechantnum',
// key: 'incresinglewechantnum',
// view: 'individual'
// }
// ]
export default {
name: 'UserTab',
data() {
......@@ -89,8 +132,20 @@ export default {
</script>
<style scoped lang="scss">
.user-tab {
width: 100%;
height: 9.02vh;
margin: 1.46vh 0 0.98vh 0;
/deep/ {
.statistics {
height: 9.51vh;
.statistics-name {
margin-bottom: 0;
}
.statistics-bottom {
margin-top: 0;
}
}
}
.tab-item {
cursor: pointer;
width: 9.65vw;
......
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2023-08-16 14:44:03
* @LastEditors: huyue
* @LastEditTime: 2023-08-16 17:32:12
* @LastEditTime: 2023-08-18 17:04:54
-->
<template>
<div class="tabs flex">
......@@ -49,7 +49,7 @@ export default {
return (val * 100).toFixed(1) + '%'
},
getEnterpriseOverview() {
this.api.customer.getEnterpriseOverview().then(res => {
this.api.operational.getEnterpriseOverview().then(res => {
if (res.code == 0) {
this.dataList = res.data.dataList[0]
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!