Commit ef25b0ea by 胡悦

Merge branch 'gh_v1.2.0' into ty_v1.2.0

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