Commit f94b0e8b by xuyl

数据概览页面修改

1 parent 49bb9a0f
......@@ -162,4 +162,21 @@
display: inline-block;
vertical-align: middle;
margin-right: 8px;
}
.normalTitle {
font-size: 16px;
padding-left: 20px;
font-weight: 600;
display: block;
height: 58px;
line-height: 58px;
border-bottom: 1px solid #E5E5E5;
}
.questionImg {
margin-left: 4px;
width: 16px;
height: 16px;
vertical-align: middle;
}
\ No newline at end of file
......@@ -63,7 +63,7 @@ export default {
trigger: 'item', //模板变量有 {a}、{b}、{c}、{d},分别表示系列名,数据名,数据值,百分比。{d}数据会根据value值计算百分比
formatter: '{b} : {c}人 ({d}%)'
},
color: ['#FE9C1C ', '#716AFF'],
color: ['#FFB21F', '#5850FF'],
// legend: {
// orient: "vertical",
// bottom: "bottom",
......@@ -72,8 +72,9 @@ export default {
{
name: '客户总数',
type: 'pie',
radius: '118px',
center: ['50%', '65%'],
// radius: '118px',
center: ['50%', '25%'],
radius: ['27%', '42%'],
stillShowZeroSum: false,
data: this.pieData,
// data: [
......
import { Message } from "element-ui";
import { debounce } from "./index.js";
import { Message } from 'element-ui'
import { debounce } from './index.js'
// const error = debounce((msg, getToken) => {
// if(window.__POWERED_BY_QIANKUN__) {
// let stateRes = {
......@@ -20,70 +20,68 @@ import { debounce } from "./index.js";
// }
// }
// }, 1000, true);
const error=msg=>{
if(msg){
const error = msg => {
if (msg) {
Message({
message:msg,
type:'error'
message: msg,
type: 'error'
})
}
}
const checkStatus = (status, msg) => {
const checkStatus = (status, msg) => {
switch (status) {
case 400:
error(`Bad Request 错误的请求`);
break;
case 401:
error('用户没有权限(令牌、用户名、密码错误)!');
break;
case 403:
error('用户得到授权,但是访问是被禁止的。!');
break;
// 404请求不存在
case 404:
error('网络请求错误,未找到该资源!');
break;
case 405:
error('网络请求错误,请求方法未允许!');
break;
case 408:
error('网络请求超时!');
break;
case 500:
error('服务器错误,请联系管理员!');
break;
case 501:
error('网络未实现!');
break;
case 502:
error('网络错误!');
break;
case 503:
error('服务不可用,服务器暂时过载或维护!');
break;
case 504:
error('网络超时!');
break;
case 505:
error('http版本不支持该请求!');
break;
case 603:
error('尚未登录或登录已过期,请重新登录', 'removeToken');
break;
case 505:
error('http版本不支持该请求!');
break;
case 'fail':
error('网络连接错误');
break;
case 'custom':
error(`${msg}`);
break;
default:
case 400:
error(`Bad Request 错误的请求`)
break
case 401:
error('用户没有权限(令牌、用户名、密码错误)!')
break
case 403:
error('用户得到授权,但是访问是被禁止的。!')
break
// 404请求不存在
case 404:
error('网络请求错误,未找到该资源!')
break
case 405:
error('网络请求错误,请求方法未允许!')
break
case 408:
error('网络请求超时!')
break
case 500:
error('服务器错误,请联系管理员!')
break
case 501:
error('网络未实现!')
break
case 502:
error('网络错误!')
break
case 503:
error('服务不可用,服务器暂时过载或维护!')
break
case 504:
error('网络超时!')
break
case 505:
error('http版本不支持该请求!')
break
case 603:
error('尚未登录或登录已过期,请重新登录', 'removeToken')
break
case 505:
error('http版本不支持该请求!')
break
case 'fail':
error('网络连接错误')
break
case 'custom':
error(`${msg}`)
break
default:
}
}
}
export {
checkStatus
}
\ No newline at end of file
export { checkStatus }
\ No newline at end of file
......@@ -8,182 +8,297 @@
</template>
<!-- @click="goNextPage" -->
<div class="bannerWrapBox" v-if="isHasCustomerCountBanner">
<!-- <img src="@/assets/clientDetail/defaultAvator.png" class="inTimeBtn" alt="" /> -->
<img class="bannerWrap" usemap="#planetmap" src="@/assets/clientDataOverview/companyBanner.png" alt="" />
<map name="planetmap" id="planetmap" style="cursor: pointer">
<!-- href="https://www.baidu.com" -->
<area shape="rect" coords="849,97,933,121" @click="goNextPage" target="_blank" />
</map>
</div>
<h3 class="pageSubTitle">客户分层</h3>
<div class="topmsg">
<div class="leftPieEcharts">
<span class="title">客户总数</span>
<span class="subtitle" v-if="accountLevel == 4">门店的所有客户数,包括企微客户,导入和外部系统接入客户,并根据手机号码识别同一客户后合并去重</span>
<span class="subtitle" v-else>企业的所有客户数,包括企业客户和旗下所有门店客户,并根据手机号码识别同一客户后合并去重</span>
<span class="clientTotal">
<!-- 可以动态跑数字 -->
<!-- <animate-number from="0" :to="(topDataObj.customerCount || 0) | overThousandFilter" :key="(topDataObj.customerCount || 0) | overThousandFilter" duration="2000"></animate-number> -->
{{ (topDataObj.customerCount || 0) | overThousandFilter }}人
<!-- <span class="person-text">人</span> -->
</span>
<template v-if="isShowData">
<div class="topIcon">
<span class="normalTitle">客户分层</span>
<div style="display:flex">
<div class="leftPieEcharts" >
<div class="leftIntro">
<span class="title">客户总数</span>
<el-popover placement="top" width="400" trigger="hover" content="门店的所有客户数,包括企微客户,导入和外部系统接入客户,并根据手机号码识别同一客户后合并去重">
<img class="questionImg" v-if="accountLevel == 4" src="@/assets/clientDataOverview/grayquestion.png" slot="reference" />
</el-popover>
<el-popover placement="top" width="400" trigger="hover" content="企业的所有客户数,包括企业客户和旗下所有门店客户,并根据手机号码识别同一客户后合并去重">
<img class="questionImg" v-if="accountLevel !== 4" src="@/assets/clientDataOverview/grayquestion.png" slot="reference" />
</el-popover>
</div>
<p class="clientTotal">
<!-- 可以动态跑数字 -->
<!-- <animate-number from="0" :to="(topDataObj.customerCount || 0) | overThousandFilter" :key="(topDataObj.customerCount || 0) | overThousandFilter" duration="2000"></animate-number> -->
{{ (topDataObj.customerCount || 0) | overThousandFilter }}
<span class="totalUnit">人</span>
</p>
<template v-if="isShowData">
<!-- <div class="topIcon">
<span class="top-inWechat">已加企微</span>
<span class="top-outWechat">未加企微</span>
</div>
<div class="qiwei-total">
<div class="qiwei-describe">
<div class="inWechat">已加企微</div>
<div class="blueNum">{{ (topDataObj.entmicroAddCustomerCount || 0) | overThousandFilter }}人</div>
</div>
<div class="qiwei-describe">
<div class="outWechat">未加企微</div>
<div class="yellowNum">{{ (topDataObj.entmicroNotAddCustomerCount || 0) | overThousandFilter }}人</div>
</div> -->
<div class="qiwei-total">
<div class="qiwei-describe">
<div class="inWechat">已加企微</div>
<div class="blueNum">{{ (topDataObj.entmicroAddCustomerCount || 0) | overThousandFilter }}人</div>
</div>
<div class="qiwei-describe">
<div class="outWechat">未加企微</div>
<div class="yellowNum">{{ (topDataObj.entmicroNotAddCustomerCount || 0) | overThousandFilter }}人</div>
</div>
</div>
</div>
<!-- 引入echart组件 -->
<pie-echart width="100%" height="448px" :topDataObj="topDataObj"></pie-echart>
<div class="personsMap" v-if="topDataObj.entmicroAddCustomerCount > 0">
<!-- <pictorial-bar width="100%" height="500px" :entmicroAddCustomerCount="topDataObj.entmicroAddCustomerCount" :entmicroNotAddCustomerCount="topDataObj.entmicroNotAddCustomerCount"></pictorial-bar> -->
</div>
</template>
<no-data :type="'hasIconText'" v-if="!isShowData"></no-data>
</div>
<div class="itembox">
<div class="buy">
<div class="buy-total item" @click="goto(4)" fn="人群客户列表" mode="div">
<!-- <span>购买(存档)客户数</span> -->
<span>基盘客户数</span>
<span>有购车或其他交易行为的所有客户</span>
<span v-if="!isEmptyObj">
{{ (topDataObj.purchaseCustomerCount || 0) | overThousandFilter }}人
<!-- <span class="person-text">人</span> -->
</span>
<span v-if="!isEmptyObj">
占比:{{ purchasePercent }}%
<i class="triangle" :class="{ active: isBuyUp === 2 }" v-if="isBuyUp"></i>
<i v-else>--</i>
</span>
<no-data :type="'hasText'" v-if="isEmptyObj"></no-data>
<!-- <i class="vertical-line"></i> -->
</div>
<el-divider direction="vertical"></el-divider>
<div class="rightWrap">
<div class="inCompanyWechatNum item smallWrap" @click="goto(5)" fn="人群客户列表" mode="div">
<span>已加企微客户数</span>
<span>
{{ (topDataObj.purchaseCustomerAddCount || 0) | overThousandFilter }}人
<!-- <span class="person-text">人</span> -->
</span>
<span>在基盘客户中,已加企微的客户</span>
<!-- <button class="btn">企微魔方&gt;&gt;</button> -->
<!-- <i class="horizontal-line"></i> -->
</div>
<el-divider></el-divider>
<div class="outCompanyWechatNum item smallWrap" @click="goto(6)" fn="人群客户列表" mode="div">
<span>未加企微客户数</span>
<span>
{{ (topDataObj.purchaseCustomerNAddCount || 0) | overThousandFilter }}人
<!-- <span class="person-text">人</span> -->
</span>
<span>在基盘客户中,未加企微的客户</span>
<button class="btn" @click.stop="toGuideCompanyWechat" v-if="accountLevel == 4">
引流企微
<i class="el-icon-d-arrow-right"></i>
</button>
<!-- 引入echart组件 -->
<pie-echart width="100%" height="448px" :topDataObj="topDataObj"></pie-echart>
<div class="personsMap" v-if="topDataObj.entmicroAddCustomerCount > 0">
<!-- <pictorial-bar width="100%" height="500px" :entmicroAddCustomerCount="topDataObj.entmicroAddCustomerCount" :entmicroNotAddCustomerCount="topDataObj.entmicroNotAddCustomerCount"></pictorial-bar> -->
</div>
</div>
</template>
<no-data :type="'hasIconText'" v-if="!isShowData"></no-data>
</div>
<div class="no-buy mgt10">
<div class="no-buy-total item" @click="goto(1)" fn="人群客户列表" mode="div">
<span>潜在意向客户数</span>
<span>无购车且无其他交易行为的所有客户</span>
<span v-if="!isEmptyObj">
{{ (topDataObj.purposeCustomerCount || 0) | overThousandFilter }}人
<!-- <span class="person-text">人</span> -->
</span>
<span v-if="!isEmptyObj">
占比:{{ purposePercent }}%
<!-- active: !isNoBuyUp 有active就是绿色-->
<i class="triangle" :class="{ active: isNoBuyUp === 2 }" v-if="isNoBuyUp"></i>
<i v-else>--</i>
</span>
<!-- <i class="vertical-line"></i> -->
<no-data :type="'hasText'" v-if="isEmptyObj"></no-data>
</div>
<el-divider direction="vertical"></el-divider>
<div class="rightWrap">
<div class="inCompanyWechatNum item smallWrap" @click="goto(2)" fn="人群客户列表" mode="div">
<span>已加企微客户数</span>
<span>
{{ (topDataObj.purposeCustomerAddCount || 0) | overThousandFilter }}人
<!-- <span class="person-text">人</span> -->
</span>
<span>在潜在意向客户中,已加企微的客户</span>
<!-- <i class="horizontal-line"></i> -->
<div class="itembox">
<div style="display:flex;">
<div class="buy">
<div class="buy-total item" @click="goto(4)" fn="人群客户列表" mode="div">
<div class="buyTitle">
<span class="client">基盘客户</span>
<el-popover placement="top" trigger="hover" content="有购车或其他交易行为的所有客户">
<img class="questionImg" src="@/assets/clientDataOverview/grayquestion.png" slot="reference" />
</el-popover>
</div>
<div class="proportion">
<span class="proNum" v-if="!isEmptyObj">
{{ (topDataObj.purchaseCustomerCount || 0) | overThousandFilter }}
<span class="proPerson">人</span>
</span>
<span class="ratio" v-if="!isEmptyObj">
占比:
<img src="@/assets/clientDataOverview/upIcon.png" />
{{ purchasePercent }}%
<i class="triangle" :class="{ active: isBuyUp === 2 }" v-if="isBuyUp"></i>
<i v-else>--</i>
</span>
</div>
<no-data :type="'hasText'" v-if="isEmptyObj"></no-data>
<div class="firmClient">
<div @click="goto(5)" fn="人群客户列表" mode="div">
<div class="clientCompleted">
<span>已加企微</span>
<el-popover placement="top" trigger="hover" content="在基盘客户中,已加企微的客户">
<img class="questionImg" src="@/assets/clientDataOverview/grayquestion.png" slot="reference" />
</el-popover>
</div>
<p class="clientNum">
{{ (topDataObj.purchaseCustomerAddCount || 0) | overThousandFilter }}
<span class="personText">人</span>
<span class="numPro">占比:</span>
</p>
<div class="marketingBtn">
<el-dropdown>
<span class="el-dropdown-link">
一键营销
<i class="el-icon-arrow-down el-icon--right"></i>
</span>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item>智能营销</el-dropdown-item>
<el-dropdown-item>群发助手</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</div>
</div>
<div @click="goto(6)" fn="人群客户列表" mode="div">
<div class="clientCompleted">
<span>未加企微</span>
<el-popover placement="top" trigger="hover" content="在基盘客户中,未加企微的客户">
<img class="questionImg" src="@/assets/clientDataOverview/grayquestion.png" slot="reference" />
</el-popover>
</div>
<p class="clientNum">
{{ (topDataObj.purchaseCustomerNAddCount || 0) | overThousandFilter }}
<span class="personText">人</span>
<span class="numPro">占比:</span>
</p>
<div class="marketingBtn">
智能营销
<i class="el-icon-arrow-right"></i>
</div>
<!-- <span>未加企微客户数</span>
<span>{{ (topDataObj.purchaseCustomerNAddCount || 0) | overThousandFilter }}人</span>
<span>在基盘客户中,未加企微的客户</span>
<button class="btn" @click.stop="toGuideCompanyWechat" v-if="accountLevel == 4">
引流企微
<i class="el-icon-d-arrow-right"></i>
</button> -->
</div>
</div>
</div>
<!-- <el-divider direction="vertical"></el-divider> -->
</div>
<el-divider></el-divider>
<div class="outCompanyWechatNum item smallWrap" @click="goto(3)" fn="人群客户列表" mode="div">
<span>未加企微客户数</span>
<span>
{{ (topDataObj.purposeCustomerNAddCount || 0) | overThousandFilter }}人
<!-- <span class="person-text">人</span> -->
</span>
<span>在潜在意向客户中,未加企微的客户</span>
<!-- &nbsp;&nbsp;&gt;&gt;-->
<button class="btn" @click.stop="toGuideCompanyWechat" v-if="accountLevel == 4">
引流企微
<i class="el-icon-d-arrow-right"></i>
</button>
<div class="buy">
<div class="buy-total item" @click="goto(1)" fn="人群客户列表" mode="div">
<div class="buyTitle">
<span class="client">潜在意向客户</span>
<el-popover placement="top" trigger="hover" content="无购车且无其他交易行为的所有客户">
<img class="questionImg" src="@/assets/clientDataOverview/grayquestion.png" slot="reference" />
</el-popover>
</div>
<div class="proportion">
<span class="proNum" v-if="!isEmptyObj">
{{ (topDataObj.purposeCustomerCount || 0) | overThousandFilter }}
<span class="proPerson">人</span>
</span>
<span class="ratio" v-if="!isEmptyObj">
占比:
<img src="@/assets/clientDataOverview/upIcon.png" />
{{ purposePercent }}%
<i class="triangle" :class="{ active: isBuyUp === 2 }" v-if="isBuyUp"></i>
<i v-else>--</i>
</span>
</div>
<no-data :type="'hasText'" v-if="isEmptyObj"></no-data>
<div class="firmClient">
<div @click="goto(2)" fn="人群客户列表" mode="div">
<div class="clientCompleted">
<span>已加企微</span>
<el-popover placement="top" trigger="hover" content="在潜在意向客户中,已加企微的客户">
<img class="questionImg" src="@/assets/clientDataOverview/grayquestion.png" slot="reference" />
</el-popover>
</div>
<p class="clientNum">
{{ (topDataObj.purposeCustomerAddCount || 0) | overThousandFilter }}
<span class="personText">人</span>
<span class="numPro">占比:</span>
</p>
<div class="marketingBtn">
<el-dropdown>
<span class="el-dropdown-link">
一键营销
<i class="el-icon-arrow-down el-icon--right"></i>
</span>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item>智能营销</el-dropdown-item>
<el-dropdown-item>群发助手</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</div>
</div>
<div @click="goto(3)" fn="人群客户列表" mode="div">
<div class="clientCompleted">
<span>未加企微</span>
<el-popover placement="top" trigger="hover" content="在潜在意向客户中,未加企微的客户">
<img class="questionImg" src="@/assets/clientDataOverview/grayquestion.png" slot="reference" />
</el-popover>
</div>
<p class="clientNum">
{{ (topDataObj.purposeCustomerNAddCount || 0) | overThousandFilter }}
<span class="personText">人</span>
<span class="numPro">占比:</span>
</p>
<div class="marketingBtn">
智能营销
<i class="el-icon-arrow-right"></i>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="intended mgt10" @click="goto(11)">
<div class="intend-name">已加企微,待匹配客户</div>
<div class="intend-info">已加企微,且未匹配到潜在意向和基盘客户的客户</div>
<div class="intend-statistics">
<div class="intend-statistics-num">{{ (topDataObj.waitMatchCustomerAddCount || 0) | overThousandFilter }}人</div>
<div class="intend-statistics-rate">
占比:{{ (topDataObj.waitMatchPercent && topDataObj.waitMatchPercent.toFixed(2)) || 0 }}%
<i class="triangle" :class="{ active: topDataObj.waitMatchUp === 2 }" v-if="topDataObj.waitMatchUp"></i>
<i v-else>--</i>
<!-- 已加企微,待匹配客户 -->
<!-- <div class="intended mgt10" @click="goto(11)">
<div class="intend-name">已加企微,待匹配客户</div>
<div class="intend-info">已加企微,且未匹配到潜在意向和基盘客户的客户</div>
<div class="intend-statistics">
<div class="intend-statistics-num">{{ (topDataObj.waitMatchCustomerAddCount || 0) | overThousandFilter }}人</div>
<div class="intend-statistics-rate">
占比:{{ (topDataObj.waitMatchPercent && topDataObj.waitMatchPercent.toFixed(2)) || 0 }}%
<i class="triangle" :class="{ active: topDataObj.waitMatchUp === 2 }" v-if="topDataObj.waitMatchUp"></i>
<i v-else>--</i>
</div>
</div>
</div> -->
<div class="mgt10" style="display:flex">
<!-- 已加企微,待匹配客户 -->
<div class="intended" @click="goto(11)">
<p class="intend-name">
已加企微,待匹配客户
<span class="intend-phone">(已绑定手机号8人)</span>
<el-popover placement="top" trigger="hover" content="已加企微,且未匹配到潜在意向和基盘客户的客户">
<img class="questionImg" src="@/assets/clientDataOverview/grayquestion.png" slot="reference" />
</el-popover>
</p>
<div class="proportion">
<span class="proNum" v-if="!isEmptyObj">
{{ (topDataObj.waitMatchCustomerAddCount || 0) | overThousandFilter }}
<span class="proPerson">人</span>
</span>
<span class="ratio" v-if="!isEmptyObj">
占比:
<img src="@/assets/clientDataOverview/upIcon.png" />
{{ (topDataObj.waitMatchPercent && topDataObj.waitMatchPercent.toFixed(2)) || 0 }}%
<i class="triangle" :class="{ active: topDataObj.waitMatchUp === 2 }" v-if="topDataObj.waitMatchUp"></i>
<i v-else>--</i>
</span>
</div>
</div>
<!-- 未加企微,未匹配客户 -->
<div class="intended" @click="goto(11)">
<p class="intend-name">
未加企微,未匹配客户
<span class="intend-phone">(已绑定手机号8人)</span>
<el-popover placement="top" trigger="hover" content="未加企微,且未匹配到潜在意向和基盘客户的客户">
<img class="questionImg" src="@/assets/clientDataOverview/grayquestion.png" slot="reference" />
</el-popover>
</p>
<div class="proportion">
<span class="proNum" v-if="!isEmptyObj">
{{ (topDataObj.waitMatchCustomerAddCount || 0) | overThousandFilter }}
<span class="proPerson">人</span>
</span>
<span class="ratio" v-if="!isEmptyObj">
占比:
<img src="@/assets/clientDataOverview/upIcon.png" />
{{ (topDataObj.waitMatchPercent && topDataObj.waitMatchPercent.toFixed(2)) || 0 }}%
<i class="triangle" :class="{ active: topDataObj.waitMatchUp === 2 }" v-if="topDataObj.waitMatchUp"></i>
<i v-else>--</i>
</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="middlemsg">
<h3 class="pageSubTitle">客户分群</h3>
<span class="normalTitle">客户分群</span>
<div class="itembox">
<template v-for="(item, index) in titles">
<div class="item" @click="goto(item.id)" fn="人群客户列表" mode="div" :key="index">
<p>{{ item.name }}</p>
<p>{{ item.subName }}</p>
<p>
{{ item.num | overThousandFilter }}人
<!-- <span class="person-text">人</span> -->
</p>
<img :src="item.url" alt="" />
<div class="middlemsg-qiwei-total">
<div class="qiwei-describe">
<div class="inWechat">已加企微</div>
<div class="num">
{{ (item.add(topDataObj) || 0) | overThousandFilter }}
<span class="person-text">人</span>
<div class="itemTitle">
<span class="itemName">{{ item.name }}</span>
<el-popover placement="top" width="400" trigger="hover" :content="item.subName">
<img class="questionImg" src="@/assets/clientDataOverview/grayquestion.png" slot="reference" />
</el-popover>
</div>
<div class="itemBottom">
<p class="totalNum">
{{ item.num | overThousandFilter }}
<span class="enum">人</span>
</p>
<div class="middlemsg-qiwei-total">
<div class="qiwei-describe">
<div class="inWechat">已加企微</div>
<div class="num">
{{ (item.add(topDataObj) || 0) | overThousandFilter }}
<span class="person-text">人</span>
</div>
</div>
</div>
<div class="qiwei-describe">
<div class="inWechat">未加企微</div>
<div class="num">
{{ (item.noAdd(topDataObj) || 0) | overThousandFilter }}
<span class="person-text">人</span>
<div class="qiwei-describe">
<div class="inWechat">未加企微</div>
<div class="num">
{{ (item.noAdd(topDataObj) || 0) | overThousandFilter }}
<span class="person-text">人</span>
</div>
</div>
</div>
</div>
......@@ -191,8 +306,9 @@
</template>
</div>
</div>
<h3 class="pageSubTitle">客户增长趋势</h3>
<!-- <h3 class="pageSubTitle">客户增长趋势</h3> -->
<div class="bottommsg">
<span class="normalTitle">客户增长趋势</span>
<no-data :type="'hasIconText'" v-if="!isShowBarMap"></no-data>
<template v-if="isShowBarMap">
<span class="timeDuring">{{ allMapList[0].dateTime }}~{{ allMapList[allMapList.length - 1].dateTime }}</span>
......@@ -239,11 +355,6 @@ import { getDataOverview, getDataOverviewBarMap } from '@/api/modules/clientData
import { getLoginCount } from '@/api/modules/loginCount'
import pieEchart from '@/components/echarts/pieEchart'
import multipleEchart from '@/components/echarts/multipleEchart'
// import pictorialBar from '@/components/echarts/pictorialBar'
import url1 from '../../assets/clientDataOverview/cars.png'
import url2 from '../../assets/clientDataOverview/renewal.png'
import url3 from '../../assets/clientDataOverview/maintenance.png'
import url4 from '../../assets/clientDataOverview/silence.png'
import noData from '@/components/noData/noData'
export default {
name: 'clientDataOverview',
......@@ -285,7 +396,6 @@ export default {
noAdd: obj => {
return obj.newCarCustomerNAddCount
},
url: url1,
id: 7
},
{
......@@ -298,7 +408,6 @@ export default {
noAdd: obj => {
return obj.needRenewalCustomerNAddCount
},
url: url2,
id: 8
},
{
......@@ -311,7 +420,6 @@ export default {
noAdd: obj => {
return obj.burseholderCustomerNAddCount
},
url: url3,
id: 9
},
{
......@@ -324,7 +432,6 @@ export default {
noAdd: obj => {
return obj.silenceCustomerNAddCount
},
url: url4,
id: 10
}
],
......@@ -638,27 +745,13 @@ export default {
left: 50%;
bottom: 18%;
transform: translateX(-50%);
// font-size: 16px;
// font-weight: 500;
// color: #fff;
// background-color: $btnBlue;
// border-radius: 4px;
}
.bannerWrapBox {
width: 100%;
min-width: 1050px;
// position: relative;
// .inTimeBtn {
// position: absolute;
// bottom: 20px;
// right: 50px;
// }
.bannerWrap {
width: 100%;
// height: 146px;
//object-fit: contain; //保持图片的原始比例,最大程度展示
}
}
......@@ -673,25 +766,26 @@ export default {
letter-spacing: 1px;
}
.topmsg {
display: flex;
// display: flex;
min-width: 1050px;
background: #ffffff;
.leftPieEcharts {
position: relative;
background-color: #fff;
width: 372px;
height: 554px; //470
height: 450px;
// height: 480px; //470
box-sizing: border-box;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
.title {
position: absolute;
left: 20px;
top: 20px;
font-weight: bold;
font-size: 16px;
color: #333333;
height: 22px;
line-height: 22px;
.leftIntro {
margin-top: 20px;
.title {
margin-left: 20px;
font-weight: bold;
font-size: 16px;
color: #333333;
}
}
.subtitle {
position: absolute;
padding-right: 16px;
......@@ -703,15 +797,15 @@ export default {
line-height: 20px;
}
.clientTotal {
position: absolute;
right: 20px;
top: 20px;
height: 26px;
font-size: 26px;
font-weight: 500;
margin: 28px 0 0 20px;
font-size: 36px;
color: #333333;
line-height: 26px;
z-index: 9;
font-weight: 700;
.totalUnit {
font-size: 16px;
color: #333333;
font-weight: 400;
}
}
.topIcon {
position: absolute;
......@@ -756,58 +850,39 @@ export default {
width: 372px;
padding: 0 57px;
position: absolute;
bottom: 38px;
bottom: 50px;
display: flex;
align-items: center;
justify-content: space-between;
box-sizing: border-box;
}
.inWechat {
// position: absolute;
// left: 57px;
// top: 365px;
height: 20px;
font-size: 14px;
font-weight: 400;
color: #333333;
line-height: 20px;
z-index: 9;
margin-bottom: 4px;
text-align: center;
margin-bottom: 8px;
}
.blueNum {
// position: absolute;
// left: 57px;
// top: 389px;
height: 25px;
font-size: 18px;
text-align: center;
font-weight: 600;
color: #716aff;
color: #333333;
line-height: 25px;
z-index: 9;
}
.outWechat {
// position: absolute;
// right: 57px;
// top: 365px;
height: 20px;
font-size: 14px;
font-weight: 400;
color: #333333;
line-height: 20px;
background-color: #fff;
z-index: 9;
margin-bottom: 4px;
text-align: center;
margin-bottom: 8px;
}
.yellowNum {
// position: absolute;
// right: 57px;
// top: 389px;
font-size: 18px;
font-weight: 600;
color: #fe9c1c;
color: #333333;
line-height: 25px;
text-align: center;
}
......@@ -821,7 +896,7 @@ export default {
}
.itembox {
width: calc(100% - 382px);
margin-top: 20px;
.item {
// border: 1px solid rgba(121, 121, 121, 1);
height: 86px;
......@@ -919,228 +994,187 @@ export default {
.buy {
display: flex;
margin-left: 10px;
background-color: #fff;
width: 48%;
background-color: #f9f9fc;
height: 222px;
&:last-child {
margin-top: 10px;
}
}
.intended {
height: 90px;
background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
margin-left: 10px;
position: relative;
box-sizing: border-box;
cursor: pointer;
.intend-name {
height: 22px;
font-size: 16px;
font-weight: 500;
color: #333333;
line-height: 22px;
padding: 20px 0 8px 24px;
font-weight: bold;
}
.intend-info {
height: 20px;
font-size: 14px;
font-weight: 400;
color: #999999;
line-height: 20px;
margin-left: 24px;
width: calc(100% - 433px);
.buyTitle {
margin-top: 20px;
.client {
margin-left: 16px;
font-size: 16px;
color: #333333;
font-weight: 600;
&:hover {
color: #625aff;
}
}
}
.intend-statistics {
position: absolute;
display: flex;
left: 364px;
top: 32px;
&-num {
.proportion {
padding: 24px 0 16px 16px;
border-bottom: 1px solid #e5e5e5;
.proNum {
font-size: 26px;
font-weight: 600;
color: #424242;
color: #333333;
line-height: 26px;
letter-spacing: 1px;
margin-right: 12px;
}
&-rate {
font-size: 16px;
font-weight: 500;
color: #565656;
line-height: 22px;
font-weight: 700;
.proPerson {
font-size: 14px;
color: #333333;
font-weight: 400;
}
}
.triangle {
display: inline-block;
vertical-align: middle;
width: 0px;
height: 0px;
border-bottom: 6px solid #ff2020;
border-left: 6px solid transparent;
border-right: 6px solid transparent;
&.active {
border-bottom: 6px solid #2cca74;
transform: rotate(180deg);
.ratio {
margin-left: 16px;
font-size: 14px;
color: #666666;
img {
vertical-align: middle;
}
}
}
}
.rightWrap {
width: 48%;
margin-left: 20px;
cursor: pointer;
position: relative;
.smallWrap {
position: relative;
> span {
position: absolute;
&:first-child {
font-weight: bold;
height: 22px;
font-size: 16px;
color: #333333;
line-height: 22px;
top: 20px;
}
&:nth-child(2) {
height: 26px;
font-size: 26px;
font-weight: 600;
.firmClient {
display: flex;
justify-content: space-between;
.clientCompleted {
margin: 20px 0 10px 16px;
width: 200px;
display: flex;
font-size: 14px;
color: #666666;
}
.clientNum {
margin: 10px 0px 10px 16px;
font-size: 16px;
color: #333333;
font-weight: 700;
.personText {
font-size: 12px;
color: #333333;
line-height: 26px;
right: 20px;
top: 20px;
font-weight: 400;
}
&:nth-child(3) {
top: 50px;
height: 20px;
font-size: 14px;
.numPro {
margin-left: 16px;
font-size: 12px;
color: #666666;
font-weight: 400;
color: #999999;
line-height: 20px;
}
}
.btn {
position: absolute;
top: 82px;
padding: 6px 20px;
box-sizing: border-box;
border-radius: 4px;
border: 1px solid $btnBlue;
background-color: #fff;
color: #6861ff;
.marketingBtn {
margin: 16px 0 10px 16px;
font-size: 14px;
font-weight: 400;
color: #625aff;
/deep/ .el-dropdown-link {
color: #625aff;
}
}
}
.inCompanyWechatNum {
// background-color: red;
// position: absolute;
width: 100%;
.horizontal-line {
position: absolute;
width: 100%;
height: 1px;
background: #f0f0f0;
bottom: 0;
right: 0;
}
.intended {
height: 145px;
width: 44%;
background: #f9f9fc;
margin-left: 10px;
padding: 16px 32px 16px 16px;
cursor: pointer;
.intend-name {
font-size: 16px;
color: #333333;
letter-spacing: 0.8px;
font-weight: 600;
.intend-phone {
font-size: 14px;
color: #666666;
font-weight: 400;
}
}
.el-divider--horizontal {
display: block;
height: 1px;
width: 100%;
margin: 0;
.proportion {
padding: 24px 0 16px 16px;
.proNum {
font-size: 26px;
color: #333333;
line-height: 26px;
font-weight: 700;
.proPerson {
font-size: 14px;
color: #333333;
font-weight: 400;
}
}
.ratio {
margin-left: 16px;
font-size: 14px;
color: #666666;
img {
vertical-align: middle;
}
}
}
}
}
}
.middlemsg {
margin-top: 16px;
min-width: 1050px;
background: #ffffff;
padding-bottom: 1px;
.itembox {
margin: 20px;
display: flex;
width: 100%;
justify-content: space-between;
.item {
width: 25%;
// padding: 20px;
position: relative;
height: 215px;
border: 1px solid #fff;
background-color: #fff;
box-sizing: border-box;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
// border: 1px solid rgba(121, 121, 121, 1);
width: 24%;
cursor: pointer;
&:not(:first-child) {
margin-left: 20px;
}
&:hover {
border: 1px solid $btnBlue;
}
p {
position: absolute;
&:first-child {
left: 20px;
top: 20px;
height: 22px;
.itemTitle {
height: 54px;
background: #f4f6fc;
display: flex;
align-items: center;
.itemName {
font-size: 16px;
font-weight: bold;
color: #333333;
line-height: 22px;
}
&:nth-child(2) {
width: calc(100% - 98px);
left: 20px;
top: 46px;
height: 20px;
font-size: 14px;
font-weight: 400;
color: #999999;
line-height: 20px;
font-weight: 600;
padding-left: 16px;
}
&:nth-child(3) {
left: 20px;
top: 87px;
height: 26px;
}
.itemBottom {
padding-bottom: 20px;
border-left: 1px solid #e5e5e5;
border-right: 1px solid #e5e5e5;
border-bottom: 1px solid #e5e5e5;
.totalNum {
font-size: 26px;
font-weight: 600;
color: #333333;
line-height: 26px;
font-weight: 700;
padding: 24px 0 32px 16px;
.enum {
font-size: 18px;
font-weight: 400;
color: #333333;
vertical-align: middle;
}
}
.middlemsg-qiwei-total {
display: flex;
justify-content: space-between;
.qiwei-describe {
padding: 0px 16px;
.inWechat {
color: #666666;
font-size: 14px;
}
.num {
margin-top: 4px;
font-size: 16px;
color: #333333;
font-weight: 600;
.person-text {
font-size: 14px;
color: #333333;
font-weight: 400;
}
}
}
}
}
img {
position: absolute;
right: 20px;
top: 20px;
}
}
}
&-qiwei-total {
width: 100%;
padding: 0 20px;
position: absolute;
bottom: 20px;
display: flex;
align-items: center;
justify-content: space-between;
box-sizing: border-box;
.qiwei-describe {
font-size: 14px;
font-weight: 400;
color: #666666;
line-height: 20px;
margin-bottom: 4px;
text-align: center;
}
.num {
font-size: 16px;
font-weight: 600;
color: #333333;
line-height: 22px;
text-align: center;
.person-text {
font-weight: 500;
}
}
}
......@@ -1151,6 +1185,7 @@ export default {
min-width: 1050px;
height: 578px;
background-color: #fff;
margin-top: 16px;
.timeDuring {
margin-left: 20px;
margin-top: 20px;
......
......@@ -233,7 +233,8 @@ export default {
{
label: '客户ID',
prop: 'oneId',
minWidth: 170
minWidth: 170,
line:1
},
{
label: '客户名称',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!