Commit add0f564 by 王志慧

预发布功能修改

1 parent 956df331
...@@ -110,20 +110,31 @@ export default { ...@@ -110,20 +110,31 @@ export default {
this[this.domId].resize() this[this.domId].resize()
}) })
// 鼠标划入 // 鼠标划入
this[this.domId].on('mouseover', data => { // this[this.domId].on('mouseover', data => {
this.moveAttr.dataIndex = data.dataIndex // console.log(data,'data')
this.getRankList(this.moveAttr.dataIndex, this.rankFlag + 'List') // this.moveAttr.dataIndex = data.dataIndex
}) // console.log(2222222222)
// this.getRankList(this.moveAttr.dataIndex, this.rankFlag + 'List')
// })
// 绑定点击事件 // 绑定点击事件
this[this.domId].getZr().on('mouseover', params => { this[this.domId].getZr().on('mousemove', params => {
const pointInPixel = [params.offsetX, params.offsetY] const pointInPixel = [params.offsetX, params.offsetY]
if (this[this.domId].containPixel('grid', pointInPixel)) { if (this[this.domId].containPixel('grid', pointInPixel)) {
this[this.domId].getZr().setCursorStyle('pointer')
var xIndex = this[this.domId].convertFromPixel({ seriesIndex: 0 }, [params.offsetX, params.offsetY])[0] var xIndex = this[this.domId].convertFromPixel({ seriesIndex: 0 }, [params.offsetX, params.offsetY])[0]
/* 事件处理代码书写位置 */ /* 事件处理代码书写位置 */
this.moveAttr.dataIndex = xIndex this.moveAttr.dataIndex = xIndex
this.getRankList(this.moveAttr.dataIndex, this.rankFlag + 'List') this.getRankList(this.moveAttr.dataIndex, this.rankFlag + 'List')
} }
}) })
this[this.domId].on('mouseout', (params) =>{
var pointInPixel = [params.offsetX, params.offsetY]
if (!this[this.domId].containPixel('grid', pointInPixel)) {
this[this.domId].getZr().setCursorStyle('default')
}
})
// 移除图表 // 移除图表
// this[this.domId].on('globalout', () => { // this[this.domId].on('globalout', () => {
// this.chartAction() // this.chartAction()
......
<template> <template>
<div class="tabs"> <div class="tabs">
<div class="tab pointer"> <div class="tab pointer">
<div <div class="tab-left box" @click="changeType('total')">
class="tab-left box"
@click="changeType('total')"
>
<div class="tab-total-box"> <div class="tab-total-box">
<div class="total-title-box flex"> <div class="total-title-box flex">
<div class="title inline total">客户总数</div> <div class="title inline total">客户总数</div>
<div class="title inline"> {{req.queryType == 0 ?'上月':'昨日'}}新增</div> <div class="title inline">{{ req.queryType == 0 ? '上月' : '昨日' }}新增</div>
<div class="title inline"> {{req.queryType == 0 ?'上月':'昨日'}}到店</div> <div class="title inline">{{ req.queryType == 0 ? '上月' : '昨日' }}到店</div>
</div> </div>
<div class="total-number-box flex"> <div class="total-number-box flex">
<transition-number <transition-number :num="pageData.total.totalNum" idKey="number-total" class="number-total" />
:num="pageData.total.totalNum" <transition-number :num="pageData.total.incrNum" idKey="number-incr" />
idKey="number-total" <transition-number :num="pageData.total.returnNum" idKey="number-return" />
class="number-total"
/>
<transition-number
:num="pageData.total.incrNum"
idKey="number-incr"
/>
<transition-number
:num="pageData.total.returnNum"
idKey="number-return"
/>
</div> </div>
</div> </div>
</div> </div>
<div class="tab-right box"> <div class="tab-right box">
<template v-for="(i,index) in tabs"> <template v-for="(i, index) in tabs">
<div <div :key="index" class="item flex" @click="changeType(i.key)">
:key="index" <div class="item-title">{{ i.title }}</div>
class="item flex" <transition-number :num="pageData[i.key].totalNum" :idKey="`number-${i.key}`" class="item-total" />
@click="changeType(i.key)" <div :class="['item-incr flex', { up: pageData[i.key].up }, { down: pageData[i.key].down }]">
> {{ req.queryType == 0 ? '上月' : '昨日' }}
<div class="item-title">{{i.title}}</div>
<transition-number
:num="pageData[i.key].totalNum"
:idKey="`number-${i.key}`"
class="item-total"
/>
<div :class="['item-incr flex',{'up':pageData[i.key].up},{'down':pageData[i.key].down}]">
{{req.queryType == 0 ?'上月':'昨日'}}
<template v-if="pageData[i.key].up || pageData[i.key].down"> <template v-if="pageData[i.key].up || pageData[i.key].down">
<div class="arrow"></div> <div class="arrow"></div>
</template> </template>
<transition-number <transition-number :num="pageData[i.key].incrNum" :idKey="`number-incr-${i.key}`" class="item-incr-numer" />
:num="pageData[i.key].incrNum"
:idKey="`number-incr-${i.key}`"
class="item-incr-numer"
/>
</div> </div>
</div> </div>
</template> </template>
</div> </div>
</div> </div>
<div class="tabs-content box"> <div class="tabs-content box">
<div class="tabs-title">客户增长趋势</div> <div class="tabs-title title-icon">
<span class="icon"></span>
<span>客户增长趋势</span>
</div>
<div class="tabs-content-chart flex"> <div class="tabs-content-chart flex">
<div class="line flex"> <div class="line flex">
<template v-if="flag"> <template v-if="flag">
...@@ -67,40 +45,26 @@ ...@@ -67,40 +45,26 @@
</div> </div>
</template> </template>
<template v-else> <template v-else>
<div <div ref="canvas" class="canvas"></div>
ref="canvas"
class="canvas"
></div>
</template> </template>
</template> </template>
</div> </div>
<div class="table user-select pointer"> <div class="table user-select pointer">
<div class="table-head"> <div class="table-head">
<template v-for="(i,index) in tabHead"> <template v-for="(i, index) in tabHead">
<div <div :class="['table-head-item flex', { active: index == tabIndex }]" :key="index" @click="tabIndex = index">
:class="['table-head-item flex',{'active':index == tabIndex}]" {{ i }}
:key="index"
@click="tabIndex = index"
>
{{i}}
</div> </div>
</template> </template>
</div> </div>
<div class="table-body flex"> <div class="table-body flex">
<template v-for="(i,index) in tabIndex == 0 ? pageData[tabType].top : pageData[tabType].last"> <template v-for="(i, index) in tabIndex == 0 ? pageData[tabType].top : pageData[tabType].last">
<div <div class="table-body-item flex" :key="index">
class="table-body-item flex" <div class="table-num flex">{{ index + 1 }}</div>
:key="index"
>
<div class="table-num flex">{{index + 1}}</div>
<div class="table-key"> <div class="table-key">
<marquee <marquee :direction="directionTimer" :delay="delayTimer" :text="i.name" />
:direction="directionTimer"
:delay="delayTimer"
:text="i.name"
/>
</div> </div>
<div class="table-value">{{i.num}}</div> <div class="table-value">{{ i.num }}</div>
</div> </div>
</template> </template>
</div> </div>
...@@ -429,12 +393,14 @@ export default { ...@@ -429,12 +393,14 @@ export default {
&-numer { &-numer {
font-size: 10px; font-size: 10px;
color: #fff; color: #fff;
margin-left: 2px;
} }
.arrow { .arrow {
border-top: 2.5px solid transparent; border-top: 2.5px solid transparent;
border-right: 2.5px solid transparent; border-right: 2.5px solid transparent;
border-bottom: 2.5px solid transparent; border-bottom: 2.5px solid transparent;
border-left: 2.5px solid transparent; border-left: 2.5px solid transparent;
margin-left: 2px;
} }
} }
.up { .up {
...@@ -443,6 +409,7 @@ export default { ...@@ -443,6 +409,7 @@ export default {
} }
.item-incr-numer { .item-incr-numer {
color: #e60115; color: #e60115;
margin-left: 2px;
} }
} }
.down { .down {
...@@ -451,6 +418,7 @@ export default { ...@@ -451,6 +418,7 @@ export default {
} }
.item-incr-numer { .item-incr-numer {
color: #00b900; color: #00b900;
margin-left: 2px;
} }
} }
> div { > div {
......
...@@ -56,7 +56,8 @@ export default { ...@@ -56,7 +56,8 @@ export default {
color: transparent; color: transparent;
background: linear-gradient(left, #e60115 10%, #eb6001 25%, #f5aa01 50%, #fdf006 100%); background: linear-gradient(left, #e60115 10%, #eb6001 25%, #f5aa01 50%, #fdf006 100%);
-webkit-background-clip: text; -webkit-background-clip: text;
font-size: 24px; font-size: 22px;
font-weight: 600;
&::before { &::before {
content: ''; content: '';
display: block; display: block;
......
...@@ -7,7 +7,10 @@ ...@@ -7,7 +7,10 @@
--> -->
<template> <template>
<div> <div>
<div class="title">售后客户价值分析</div> <div class="title title-icon">
<span class="icon"></span>
<span>售后客户价值分析</span>
</div>
<template v-if="barData.length > 0"> <template v-if="barData.length > 0">
<div class="analyze-content" :style="{ height: height - 5 + 'vh' }"> <div class="analyze-content" :style="{ height: height - 5 + 'vh' }">
<div class="content-left"> <div class="content-left">
...@@ -38,7 +41,7 @@ export default { ...@@ -38,7 +41,7 @@ export default {
chart: { chart: {
id: 'analyzePie', id: 'analyzePie',
radius: ['60%', '78%'], radius: ['60%', '78%'],
size:'0.8vw' size: '0.8vw'
}, },
barChart: '', barChart: '',
option: {}, option: {},
......
...@@ -7,7 +7,10 @@ ...@@ -7,7 +7,10 @@
--> -->
<template> <template>
<div> <div>
<div class="title">有效客户</div> <div class="title title-icon">
<span class="icon"></span>
<span>有效客户</span>
</div>
<div v-if="!dataList.length" class="empty"> <div v-if="!dataList.length" class="empty">
<img src="../../assets/images/empty.png" alt="" /> <img src="../../assets/images/empty.png" alt="" />
</div> </div>
......
...@@ -7,7 +7,10 @@ ...@@ -7,7 +7,10 @@
--> -->
<template> <template>
<div> <div>
<div class="title">售后档案客户</div> <div class="title title-icon">
<span class="icon"></span>
<span>售后档案客户</span>
</div>
<div v-if="!dataList.length" class="empty"> <div v-if="!dataList.length" class="empty">
<img src="../../assets/images/empty.png" alt="" /> <img src="../../assets/images/empty.png" alt="" />
</div> </div>
......
...@@ -7,7 +7,10 @@ ...@@ -7,7 +7,10 @@
--> -->
<template> <template>
<div> <div>
<div class="title">首保回店</div> <div class="title title-icon">
<span class="icon"></span>
<span>首保回店</span>
</div>
<div v-if="!dataList.length" class="empty"> <div v-if="!dataList.length" class="empty">
<img src="../../assets/images/empty.png" alt="" /> <img src="../../assets/images/empty.png" alt="" />
</div> </div>
...@@ -15,7 +18,15 @@ ...@@ -15,7 +18,15 @@
<div v-if="isEmpty" class="empty"> <div v-if="isEmpty" class="empty">
<img src="../../assets/images/empty.png" alt="" /> <img src="../../assets/images/empty.png" alt="" />
</div> </div>
<LineChart v-else ref="lineChartRef" domId="firstChart" :dataList.sync="dataList" :storeOrBrandTxt="storeOrBrandTxt" :tooltipFormatterObj="tooltipFormatterObj" :queryType="queryType"></LineChart> <LineChart
v-else
ref="lineChartRef"
domId="firstChart"
:dataList.sync="dataList"
:storeOrBrandTxt="storeOrBrandTxt"
:tooltipFormatterObj="tooltipFormatterObj"
:queryType="queryType"
></LineChart>
</div> </div>
</div> </div>
</template> </template>
...@@ -60,7 +71,7 @@ export default { ...@@ -60,7 +71,7 @@ export default {
dataList: [] dataList: []
} }
}, },
mounted() { }, mounted() {},
methods: { methods: {
init(val) { init(val) {
this.isEmpty = true this.isEmpty = true
......
...@@ -7,7 +7,10 @@ ...@@ -7,7 +7,10 @@
--> -->
<template> <template>
<div> <div>
<div class="title">客户保持</div> <div class="title title-icon">
<span class="icon"></span>
<span>客户保持</span>
</div>
<div v-if="!dataList.length" class="empty"> <div v-if="!dataList.length" class="empty">
<img src="../../assets/images/empty.png" alt="" /> <img src="../../assets/images/empty.png" alt="" />
</div> </div>
......
...@@ -7,7 +7,10 @@ ...@@ -7,7 +7,10 @@
--> -->
<template> <template>
<div> <div>
<div class="title">客户流失</div> <div class="title title-icon">
<span class="icon"></span>
<span>客户流失</span>
</div>
<div v-if="!dataList.length" class="empty"> <div v-if="!dataList.length" class="empty">
<img src="../../assets/images/empty.png" alt="" /> <img src="../../assets/images/empty.png" alt="" />
</div> </div>
......
...@@ -7,7 +7,10 @@ ...@@ -7,7 +7,10 @@
--> -->
<template> <template>
<div> <div>
<div class="title">售后车辆里程</div> <div class="title title-icon">
<span class="icon"></span>
<span>售后车辆里程</span>
</div>
<template v-if="mileageData.length > 0"> <template v-if="mileageData.length > 0">
<div class="flex container"> <div class="flex container">
<pie-chart :id="chart.id" :list="mileageData" :height="height - 5 + 'vh'" :radius="chart.radius" @pieAction="pieAction" :size="chart.size"></pie-chart> <pie-chart :id="chart.id" :list="mileageData" :height="height - 5 + 'vh'" :radius="chart.radius" @pieAction="pieAction" :size="chart.size"></pie-chart>
......
...@@ -7,7 +7,10 @@ ...@@ -7,7 +7,10 @@
--> -->
<template> <template>
<div> <div>
<div class="title">定保回店</div> <div class="title title-icon">
<span class="icon"></span>
<span>定保回店</span>
</div>
<div v-if="!dataList.length" class="empty"> <div v-if="!dataList.length" class="empty">
<img src="../../assets/images/empty.png" alt="" /> <img src="../../assets/images/empty.png" alt="" />
</div> </div>
......
...@@ -9,7 +9,10 @@ ...@@ -9,7 +9,10 @@
<div> <div>
<div v-show="hasData" class="flow-box"> <div v-show="hasData" class="flow-box">
<div class="flow-left"> <div class="flow-left">
<div class="title inline" style="padding-left: 0">客流转化</div> <div class="title title-icon">
<span class="icon"></span>
<span>客流转化</span>
</div>
<div class="chart-box"> <div class="chart-box">
<div id="flow" :style="{ height: height - 4.1 + 'vh' }"></div> <div id="flow" :style="{ height: height - 4.1 + 'vh' }"></div>
</div> </div>
...@@ -31,7 +34,10 @@ ...@@ -31,7 +34,10 @@
</div> </div>
</div> </div>
<div v-show="!hasData"> <div v-show="!hasData">
<div class="title">客流转化</div> <div class="title title-icon">
<span class="icon"></span>
<span>客流转化</span>
</div>
<div class="empty"> <div class="empty">
<img src="../../assets/images/empty.png" alt="" /> <img src="../../assets/images/empty.png" alt="" />
</div> </div>
...@@ -240,11 +246,14 @@ export default { ...@@ -240,11 +246,14 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.flow-box { .flow-box {
display: flex; display: flex;
padding: 0 8px 1vh; padding: 0 8px 1vh 0;
box-sizing: border-box; box-sizing: border-box;
.flow-left { .flow-left {
padding-bottom: 0.9vh; padding-bottom: 0.9vh;
width: 50%; width: 50%;
.title {
text-align: left;
}
} }
.flow-right { .flow-right {
flex: 1; flex: 1;
...@@ -269,13 +278,15 @@ export default { ...@@ -269,13 +278,15 @@ export default {
} }
.ranking-content { .ranking-content {
background-color: #262525; background-color: #262525;
padding: 0.4vh 0;
} }
.ranking-item { .ranking-item {
display: flex; display: flex;
width: 100%; width: 100%;
align-items: center; align-items: center;
line-height: 2.1vh;
height: 2.1vh; line-height: 2.2vh;
height: 2.2vh;
.ranking-sort { .ranking-sort {
display: inline-block; display: inline-block;
width: 0.3vw; width: 0.3vw;
......
...@@ -7,7 +7,10 @@ ...@@ -7,7 +7,10 @@
--> -->
<template> <template>
<div> <div>
<div class="title">转化趋势</div> <div class="title title-icon">
<span class="icon"></span>
<span>转化趋势</span>
</div>
<div v-show="hasData" class="linetrend-box"> <div v-show="hasData" class="linetrend-box">
<div id="lineTrend" :style="{ height: height - 4.1 + 'vh' }"></div> <div id="lineTrend" :style="{ height: height - 4.1 + 'vh' }"></div>
</div> </div>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!