Commit bd48eb43 by 胡悦

提交

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