Commit f605a845 by 胡悦

修改

1 parent 396927a5
...@@ -3,12 +3,30 @@ ...@@ -3,12 +3,30 @@
* @Author: huyue * @Author: huyue
* @Date: 2023-07-19 17:18:33 * @Date: 2023-07-19 17:18:33
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2023-07-27 10:40:12 * @LastEditTime: 2023-07-27 17:51:57
--> -->
<template> <template>
<div> <div class="trends-box">
<box-title title="业务趋势"></box-title> <box-title title="业务趋势"></box-title>
<BarChart ref="barTrendsRef" height="44.89vh" domId="barTrends" :dataList.sync="dataList" :tooltipFormatterObj="tooltipFormatterObj"></BarChart> <BarChart ref="barTrendsRef" height="44.89vh" domId="barTrends" :dataList.sync="dataList" :tooltipFormatterObj="tooltipFormatterObj"></BarChart>
<div class="legend">
<div class="legend-item">
<span class="legend-deploy legend-span"></span>
<span>部署门店</span>
</div>
<div class="legend-item">
<span class="legend-camp legend-span"></span>
<span>在营门店</span>
</div>
<div class="legend-item">
<span class="legend-dijia legend-span"></span>
<span>嘀加供货</span>
</div>
<div class="legend-item">
<span class="legend-closed legend-span"></span>
<span>停业门店</span>
</div>
</div>
</div> </div>
</template> </template>
...@@ -78,3 +96,53 @@ export default { ...@@ -78,3 +96,53 @@ export default {
} }
} }
</script> </script>
<style lang="scss" scoped>
.trends-box {
position: relative;
}
.legend {
display: flex;
position: absolute;
right: 1.39vw;
top: 2.22vh;
&-item {
display: flex;
align-items: center;
color: #fff;
margin-right: 1.67vw;
&:last-child {
margin-right: 0;
}
img {
width: 1.32vw;
height: 1vh;
margin-right: 0.28vw;
}
.icon-line {
width: 0.98vw;
height: 0.56vh;
}
.legend-span {
width: 0.56vw;
height: 0.89vh;
margin-right: 0.28vw;
}
.legend {
&-deploy {
background-image: linear-gradient(180deg, #22D8FF 0%, #223FA9 100%);
}
&-camp {
background-image: linear-gradient(179deg, #38FBB0 1%, #00A89E 100%);
}
&-dijia {
background-image: linear-gradient(179deg, #FFC200 1%, #F2C101 100%);
}
&-closed {
background-image: linear-gradient(179deg, #E65C01 1%, #E65C17 100%);
}
}
}
}
</style>
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2023-07-19 17:18:33 * @Date: 2023-07-19 17:18:33
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2023-07-26 16:23:48 * @LastEditTime: 2023-07-27 17:47:18
--> -->
<template> <template>
<div> <div>
...@@ -29,50 +29,50 @@ export default { ...@@ -29,50 +29,50 @@ export default {
data() { data() {
return { return {
storeDistrictList: [ storeDistrictList: [
{ // {
province: '广东省', // province: '广东省',
num: '1225家' // num: '1225家'
}, // },
{ // {
province: '广东省', // province: '广东省',
num: '1225家' // num: '1225家'
}, // },
{ // {
province: '广东省', // province: '广东省',
num: '1225家' // num: '1225家'
}, // },
{ // {
province: '广东省', // province: '广东省',
num: '1225家' // num: '1225家'
}, // },
{ // {
province: '广东省', // province: '广东省',
num: '1225家' // num: '1225家'
}, // },
{ // {
province: '广东省', // province: '广东省',
num: '1225家' // num: '1225家'
}, // },
{ // {
province: '广东省', // province: '广东省',
num: '1225家' // num: '1225家'
}, // },
{ // {
province: '广东省', // province: '广东省',
num: '1225家' // num: '1225家'
}, // },
{ // {
province: '宁夏回族自治区', // province: '宁夏回族自治区',
num: '1225家' // num: '1225家'
}, // },
{ // {
province: '西藏自治区', // province: '西藏自治区',
num: '1225家' // num: '1225家'
}, // },
{ // {
province: '新疆', // province: '新疆',
num: '1225家' // num: '1225家'
} // }
], ],
rankStoreObj: [ rankStoreObj: [
{ {
...@@ -112,6 +112,8 @@ export default { ...@@ -112,6 +112,8 @@ export default {
display: flex; display: flex;
&-right { &-right {
margin-left: 4.41vw; margin-left: 4.41vw;
height: 44.44vh;
overflow: hidden;
} }
.rank-title { .rank-title {
width: 7.5vw; width: 7.5vw;
......
...@@ -30,6 +30,7 @@ export default { ...@@ -30,6 +30,7 @@ export default {
{ {
name: '总产值', name: '总产值',
unit: '¥', unit: '¥',
unitType: 'left',
valueName: 'outputvalue', valueName: 'outputvalue',
value: '0', value: '0',
bottomLabel: '本月产值:', bottomLabel: '本月产值:',
...@@ -49,6 +50,7 @@ export default { ...@@ -49,6 +50,7 @@ export default {
valueName: 'perCusTrans', valueName: 'perCusTrans',
value: '0', value: '0',
unit: '¥', unit: '¥',
unitType: 'left',
bottomType: 'ratio', bottomType: 'ratio',
ratioLeftLabel: '月环比', ratioLeftLabel: '月环比',
ratioLeftValueName: 'perCusTransHB', ratioLeftValueName: 'perCusTransHB',
...@@ -62,6 +64,7 @@ export default { ...@@ -62,6 +64,7 @@ export default {
valueName: 'conversionRate', valueName: 'conversionRate',
value: '0', value: '0',
unit: '%', unit: '%',
unitType: 'right',
bottomType: 'ratio', bottomType: 'ratio',
ratioLeftLabel: '月环比', ratioLeftLabel: '月环比',
ratioLeftValueName: 'conversionRateHB', ratioLeftValueName: 'conversionRateHB',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!