Commit a18f6225 by 李伟康

Merge branch 'dev_v1.0.0' of http://192.168.3.233:8090/gh/data-view into dev_v1.0.0

2 parents 3014c221 a6d7829c
...@@ -36,7 +36,7 @@ export default { ...@@ -36,7 +36,7 @@ export default {
}, },
colors: { colors: {
type: Array, type: Array,
default: () => ['#4FA0FF', '#FF6E76', '#7CFFB2', '#FDF006', '#EB6001', '#F5AA01', '#BF98FF', '#4FA0FF'] default: () => ['#4FA0FF', '#FF6E76', '#7CFFB2', '#FDF006', '#EB6001', '#F5AA01', '#BF98FF', '#58D9F9']
}, },
size: { size: {
type: String, type: String,
......
<template> <template>
<div class="content flex"> <div class="content flex">
<div class="logo user-select"> <div class="logo user-select">
<img <img src="@/assets/images/logo.svg" alt="logo" />
src="@/assets/images/logo.svg"
alt="logo"
/>
</div> </div>
<div class="view-title flex user-select">广汇集团客户池数据大屏</div> <div class="view-title flex user-select">广汇集团客户池数据大屏</div>
<div class="time"> <div class="time">
<div class="top flex"> <div class="top flex">
<img <img src="@/assets/images/time.svg" class="icon" />
src="@/assets/images/time.svg" <div class="now">{{ now }}</div>
class="icon"
/>
<div class="now">{{now}}</div>
</div> </div>
<div class="bottom flex"> <div class="bottom flex">
<div class="merchant">已同步门店数:68</div> <div class="merchant">已同步门店数:160</div>
数据截止至 {{yesterday}} 数据截止至 {{ yesterday }}
</div> </div>
</div> </div>
<div class="center-control"> <div class="center-control">
...@@ -26,7 +20,7 @@ ...@@ -26,7 +20,7 @@
</div> </div>
</template> </template>
<script type='text/ecmascript-6'> <script type="text/ecmascript-6">
export default { export default {
name: 'ViewTitle', name: 'ViewTitle',
data () { data () {
...@@ -49,7 +43,7 @@ export default { ...@@ -49,7 +43,7 @@ export default {
} }
</script> </script>
<style scoped lang='scss'> <style scoped lang="scss">
.content { .content {
width: 100%; width: 100%;
height: 100%; height: 100%;
...@@ -77,7 +71,7 @@ export default { ...@@ -77,7 +71,7 @@ export default {
text-align: right; text-align: right;
font-size: 14px; font-size: 14px;
color: #ffffff; color: #ffffff;
.top{ .top {
justify-content: flex-end; justify-content: flex-end;
} }
.icon { .icon {
...@@ -94,7 +88,7 @@ export default { ...@@ -94,7 +88,7 @@ export default {
margin-right: 10px; margin-right: 10px;
padding-right: 10px; padding-right: 10px;
position: relative; position: relative;
&::after{ &::after {
position: absolute; position: absolute;
right: 0; right: 0;
top: 50%; top: 50%;
...@@ -115,4 +109,4 @@ export default { ...@@ -115,4 +109,4 @@ export default {
z-index: 2; z-index: 2;
} }
} }
</style>
\ No newline at end of file \ No newline at end of file
</style>
...@@ -95,8 +95,8 @@ export default { ...@@ -95,8 +95,8 @@ export default {
}) })
this.dataList.push({ this.dataList.push({
num: item.num || 0, num: item.num || 0,
hrate: item.hrate || 0, hrate: item.hrate.toFixed(2) || 0,
trate: item.trate || 0, trate: item.trate.toFixed(2) || 0,
statDate: item.statDate, statDate: item.statDate,
topList: topList, topList: topList,
lastList: lastList lastList: lastList
......
...@@ -97,8 +97,8 @@ export default { ...@@ -97,8 +97,8 @@ export default {
}) })
this.dataList.push({ this.dataList.push({
num: item.num || 0, num: item.num || 0,
hrate: item.hrate || 0, hrate: item.hrate.toFixed(2) || 0,
trate: item.trate || 0, trate: item.trate.toFixed(2) || 0,
statDate: item.statDate, statDate: item.statDate,
topList: topList, topList: topList,
lastList: lastList lastList: lastList
......
...@@ -112,9 +112,9 @@ export default { ...@@ -112,9 +112,9 @@ export default {
}) })
this.dataList.push({ this.dataList.push({
num: item.num || 0, num: item.num || 0,
rate: item.rate || 0, rate: item.rate.toFixed(2) || 0,
hrate: item.hrate || 0, hrate: item.hrate.toFixed(2) || 0,
trate: item.trate || 0, trate: item.trate.toFixed(2) || 0,
statDate: item.statDate, statDate: item.statDate,
topList: topList, topList: topList,
lastList: lastList lastList: lastList
......
...@@ -112,9 +112,9 @@ export default { ...@@ -112,9 +112,9 @@ export default {
}) })
this.dataList.push({ this.dataList.push({
num: item.num || 0, num: item.num || 0,
rate: item.rate || 0, rate: item.rate.toFixed(2) || 0,
hrate: item.hrate || 0, hrate: item.hrate.toFixed(2) || 0,
trate: item.trate || 0, trate: item.trate.toFixed(2) || 0,
statDate: item.statDate, statDate: item.statDate,
topList: topList, topList: topList,
lastList: lastList lastList: lastList
......
...@@ -113,9 +113,9 @@ export default { ...@@ -113,9 +113,9 @@ export default {
}) })
this.dataList.push({ this.dataList.push({
num: item.num || 0, num: item.num || 0,
rate: item.rate || 0, rate: item.rate.toFixed(2) || 0,
hrate: item.hrate || 0, hrate: item.hrate.toFixed(2) || 0,
trate: item.trate || 0, trate: item.trate.toFixed(2) || 0,
statDate: item.statDate, statDate: item.statDate,
topList: topList, topList: topList,
lastList: lastList lastList: lastList
......
...@@ -112,9 +112,9 @@ export default { ...@@ -112,9 +112,9 @@ export default {
}) })
this.dataList.push({ this.dataList.push({
num: item.num || 0, num: item.num || 0,
rate: item.rate || 0, rate: item.rate.toFixed(2) || 0,
hrate: item.hrate || 0, hrate: item.hrate.toFixed(2) || 0,
trate: item.trate || 0, trate: item.trate.toFixed(2) || 0,
statDate: item.statDate, statDate: item.statDate,
topList: topList, topList: topList,
lastList: lastList lastList: lastList
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2022-06-23 15:05:21 * @Date: 2022-06-23 15:05:21
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2022-07-04 18:39:00 * @LastEditTime: 2022-07-05 17:16:23
--> -->
<template> <template>
<div> <div>
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
</div> </div>
<div class="ranking-content"> <div class="ranking-content">
<div class="ranking-item" v-for="(item, index) in flowData" :key="index"> <div class="ranking-item" v-for="(item, index) in flowData" :key="index">
<span>{{ index + 1 }}</span> <span class="ranking-sort">{{ index + 1 }}</span>
<span class="ranking-name"> <span class="ranking-name">
<marquee :direction="directionTimer" :delay="delayTimer" :text="item.brand" /> <marquee :direction="directionTimer" :delay="delayTimer" :text="item.brand" />
</span> </span>
...@@ -187,6 +187,7 @@ export default { ...@@ -187,6 +187,7 @@ export default {
'mouseover', 'mouseover',
utils.debounce(data => { utils.debounce(data => {
this.getSaleTrans(this.paramsData, data.data.type) this.getSaleTrans(this.paramsData, data.data.type)
this.isActive = 1
}), }),
1000 / 60 1000 / 60
) )
...@@ -276,6 +277,11 @@ export default { ...@@ -276,6 +277,11 @@ export default {
align-items: center; align-items: center;
line-height: 2.1vh; line-height: 2.1vh;
height: 2.1vh; height: 2.1vh;
.ranking-sort {
display: inline-block;
width: 0.3vw;
text-align: center;
}
.ranking-name { .ranking-name {
width: calc(100% - 33% - 28px); width: calc(100% - 33% - 28px);
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!