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