Commit ef25b0ea by 胡悦

Merge branch 'gh_v1.2.0' into ty_v1.2.0

2 parents 61d965e1 1a577473
......@@ -13,11 +13,8 @@
</div>
<div class="line-item">
<span class="txt-orange" :direction="directionTimer" :delay="delayTimer">{{ item.value }}</span>
</div>
<!-- <div class="line-item">
<marquee class="txt-orange" :direction="directionTimer" :delay="delayTimer" :text="item.value"></marquee>
</div> -->
</div>
</div>
</div>
</div>
......@@ -142,7 +139,8 @@ export default {
// 移除图表
this[this.domId].on('globalout', () => {
this.chartAction()
this.getRankList(this.dataList.length - 1, this.rankFlag + 'List')
this.moveAttr.dataIndex = this.dataList.length - 1
this.getRankList(this.moveAttr.dataIndex, this.rankFlag + 'List')
})
},
chartAction(type) {
......@@ -169,10 +167,12 @@ export default {
this[this.domId].setOption(this.lineOptions)
// 默认展示tooltip
this.chartAction()
this.getRankList(this.dataList.length - 1)
this.moveAttr.dataIndex = this.dataList.length - 1
this.getRankList(this.moveAttr.dataIndex)
},
handleRankChange(value) {
this.rankFlag = value
this.moveAttr.dataIndex = this.dataList.length - 1
this.getRankList(this.moveAttr.dataIndex, this.rankFlag + 'List')
}
}
......@@ -203,6 +203,8 @@ p {
border-top: 1px solid #373739;
.rank-title-block {
// flex: 0 0 55px;
width: 100%;
overflow: hidden;
width: 55px;
.rank-title {
box-sizing: border-box;
......
......@@ -6,7 +6,7 @@
<div class="total-title-box flex">
<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 ? '上月' : '昨日' }}到店<span class="describe">维保</span></div>
</div>
<div class="total-number-box flex">
<transition-number :num="pageData.total.totalNum" idKey="number-total" class="number-total" />
......@@ -382,6 +382,11 @@ export default {
box-sizing: border-box;
width: 25%;
padding-left: 0;
white-space: nowrap;
.describe{
font-size:8px;
color: #eb6001;
}
}
}
.total-number-box {
......
......@@ -68,7 +68,7 @@ export default {
axisPointer: {
type: 'shadow',
shadowStyle: {
color: 'rgba(235,96,1,0.30'
color: 'rgba(235,96,1,0.30)'
}
},
borderWidth: 0,
......@@ -120,10 +120,11 @@ export default {
show: true,
position: 'center',
textStyle: {
fontSize: '12',
fontSize: 12,
color: '#fff',
height: '18',
padding: [1, 0, 0, 0]
height: 18,
padding: [1, 0, 0, 0],
lineHeight: 18
}
},
color: new echarts.graphic.LinearGradient(1, 0, 0, 0, [
......
......@@ -116,18 +116,18 @@ export default {
Object.keys(topTempList).forEach(item => {
topList.push({
label: item,
value: topTempList[item].rate ? topTempList[item].rate.toFixed(4) + '%' : '- -'
value: topTempList[item].rate ? topTempList[item].rate.toFixed(2) + '%' : '- -'
})
})
Object.keys(lastTempList).forEach(item => {
lastList.push({
label: item,
value: lastTempList[item].rate ? lastTempList[item].rate.toFixed(4) + '%' : '- -'
value: lastTempList[item].rate ? lastTempList[item].rate.toFixed(2) + '%' : '- -'
})
})
this.dataList.push({
num: item.num || 0,
rate: item.rate.toFixed(4) || 0,
rate: item.rate.toFixed(2) || 0,
hrate: item.hrate.toFixed(4) || 0,
trate: item.trate.toFixed(4) || 0,
statDate: item.statDate,
......
......@@ -108,18 +108,18 @@ export default {
Object.keys(topTempList).forEach(item => {
topList.push({
label: item,
value: topTempList[item].rate ? topTempList[item].rate.toFixed(4) + '%' : '- -'
value: topTempList[item].rate ? topTempList[item].rate.toFixed(2) + '%' : '- -'
})
})
Object.keys(lastTempList).forEach(item => {
lastList.push({
label: item,
value: lastTempList[item].rate ? lastTempList[item].rate.toFixed(4) + '%' : '- -'
value: lastTempList[item].rate ? lastTempList[item].rate.toFixed(2) + '%' : '- -'
})
})
this.dataList.push({
num: item.num || 0,
rate: item.rate.toFixed(4) || 0,
rate: item.rate.toFixed(2) || 0,
hrate: item.hrate.toFixed(4) || 0,
trate: item.trate.toFixed(4) || 0,
statDate: item.statDate,
......
......@@ -108,18 +108,18 @@ export default {
Object.keys(topTempList).forEach(item => {
topList.push({
label: item,
value: topTempList[item].rate ? topTempList[item].rate.toFixed(4) + '%' : '- -'
value: topTempList[item].rate ? topTempList[item].rate.toFixed(2) + '%' : '- -'
})
})
Object.keys(lastTempList).forEach(item => {
lastList.push({
label: item,
value: lastTempList[item].rate ? lastTempList[item].rate.toFixed(4) + '%' : '- -'
value: lastTempList[item].rate ? lastTempList[item].rate.toFixed(2) + '%' : '- -'
})
})
this.dataList.push({
num: item.num || 0,
rate: item.rate.toFixed(4) || 0,
rate: item.rate.toFixed(2) || 0,
hrate: item.hrate.toFixed(4) || 0,
trate: item.trate.toFixed(4) || 0,
statDate: item.statDate,
......
......@@ -116,18 +116,18 @@ export default {
Object.keys(topTempList).forEach(item => {
topList.push({
label: item,
value: topTempList[item].rate ? topTempList[item].rate.toFixed(4) + '%' : '- -'
value: topTempList[item].rate ? topTempList[item].rate.toFixed(2) + '%' : '- -'
})
})
Object.keys(lastTempList).forEach(item => {
lastList.push({
label: item,
value: lastTempList[item].rate ? lastTempList[item].rate.toFixed(4) + '%' : '- -'
value: lastTempList[item].rate ? lastTempList[item].rate.toFixed(2) + '%' : '- -'
})
})
this.dataList.push({
num: item.num || 0,
rate: item.rate.toFixed(4) || 0,
rate: item.rate.toFixed(2) || 0,
hrate: item.hrate.toFixed(4) || 0,
trate: item.trate.toFixed(4) || 0,
statDate: item.statDate,
......
......@@ -114,7 +114,7 @@ export default {
return txt
}
},
color: ['#BF98FF', '#E60115', '#4FA0FF', '#EB6001', '#F5AA01'],
color: this.colorList,
grid: {
left: '3%',
right: '4%',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!