This commit is contained in:
cun-nan 2024-07-26 16:49:55 +08:00
parent c28549316b
commit 28d0f8cc33

View File

@ -233,7 +233,7 @@ export default {
this.getNoticeList()
},
mounted() {
// this.initChart()
this.initChart()
},
methods:{
getNoticeList(){
@ -278,7 +278,7 @@ export default {
getStoreList(){
getStoreAmountByTime(this.addDateRange({},this.value2)).then(res => {
this.storeList = res.data
this.initChart()
// this.initChart()
})
},
selectBannerList(){
@ -314,7 +314,7 @@ export default {
getStoreAmount(){
storeAmountIndex1(this.addDateRange(this.queryParams,this.value1)).then(res => {
this.storeAmount = res.data
this.initChart()
// this.initChart()
})
},
countPercentage(upNum,downNum){
@ -374,13 +374,13 @@ export default {
type: 'pie',
radius: '80%',
data: [
// { value: 28, name: '28%' },
// { value: 72, name: '72%' },
{ value: 28, name: '28%' },
{ value: 72, name: '72%' },
// { value: this.countPercentage(Number(this.storeAmount.noStoreTotal),Number(this.storeAmount.noStoreTotal) + Number(this.storeAmount.storeTotal)), name: '7' },
// { value: this.countPercentage(Number(this.storeAmount.storeTotal),Number(this.storeAmount.noStoreTotal) + Number(this.storeAmount.storeTotal)), name: '7' },
{ value: Number(this.storeAmount.noStoreTotal), name: '非7日活跃油站' },
{ value: Number(this.storeAmount.storeTotal), name: '7日活跃油站' },
// { value: Number(this.storeAmount.noStoreTotal), name: '7' },
// { value: Number(this.storeAmount.storeTotal), name: '7' },
],
emphasis: {
@ -408,13 +408,13 @@ export default {
type: 'pie',
radius: '80%',
data: [
// { value: 28, name: '28%' },
// { value: 72, name: '72%' },
{ value: 28, name: '28%' },
{ value: 72, name: '72%' },
// { value: this.countPercentage(Number(this.storeAmount.addStoreTotal),Number(this.storeAmount.addStoreTotal) + Number(this.storeAmount.noAddStoreTotal)), name: '' },
// { value: this.countPercentage(Number(this.storeAmount.noAddStoreTotal),Number(this.storeAmount.addStoreTotal) + Number(this.storeAmount.noAddStoreTotal)), name: '' },
{ value: Number(this.storeAmount.addStoreTotal), name: '本月新增油站' },
{ value: Number(this.storeAmount.noAddStoreTotal), name: '非本月新增油站' },
// { value: Number(this.storeAmount.addStoreTotal), name: '' },
// { value: Number(this.storeAmount.noAddStoreTotal), name: '' },
],
emphasis: {
@ -442,12 +442,12 @@ export default {
type: 'pie',
radius: '80%',
data: [
// { value: 28, name: '28%' },
// { value: 72, name: '72%' },
{ value: 28, name: '28%' },
{ value: 72, name: '72%' },
// { value: this.countPercentage(Number(this.storeAmount.weekStoreTotal),Number(this.storeAmount.weekStoreTotal) + Number(this.storeAmount.noWeekStoreTotal)), name: '7' },
// { value: this.countPercentage(Number(this.storeAmount.noWeekStoreTotal),Number(this.storeAmount.weekStoreTotal) + Number(this.storeAmount.noWeekStoreTotal)), name: '7' },
{ value: Number(this.storeAmount.weekStoreTotal), name: '本月新增7日活跃油站' },
{ value: Number(this.storeAmount.noWeekStoreTotal), name: '本月新增非7日活跃油站' },
// { value: Number(this.storeAmount.weekStoreTotal), name: '7' },
// { value: Number(this.storeAmount.noWeekStoreTotal), name: '7' },
],
emphasis: {
@ -478,8 +478,8 @@ export default {
xAxis: [
{
type: 'category',
// data: ['00:00', '01:00', '02:00', '03:00', '04:00', '05:00', '06:00', '07:00', '08:00', '09:00', '10:00', '11:00', '12:00', '13:00', '14:00', '15:00', '16:00', '17:00', '18:00', '19:00', '20:00', '21:00', '22:00', '23:00'],
data: hourList,
data: ['00:00', '01:00', '02:00', '03:00', '04:00', '05:00', '06:00', '07:00', '08:00', '09:00', '10:00', '11:00', '12:00', '13:00', '14:00', '15:00', '16:00', '17:00', '18:00', '19:00', '20:00', '21:00', '22:00', '23:00'],
// data: hourList,
axisPointer: {
type: 'shadow'
}
@ -524,10 +524,10 @@ export default {
barBorderRadius: [50, 50, 0, 0]
}
},
// data: [
// 30.0, 31.9, 71.0, 23.2, 41.6, 31.7, 21.6, 30.0, 31.9, 71.0, 23.2, 41.6,0,1,4,5,7,2
// ]
data: storeNumList
data: [
30.0, 31.9, 71.0, 23.2, 41.6, 31.7, 21.6, 30.0, 31.9, 71.0, 23.2, 41.6,0,1,4,5,7,2
]
// data: storeNumList
},
{
@ -539,8 +539,8 @@ export default {
return value + ' °C';
}
},
// data: [3.0, 3.9, 7.0, 2.2, 4.6, 3.7, 2.6, 3.0, 3.9, 7.0, 3.2, 4.6,0,4,5,7,5]
data: tradeAmountList
data: [3.0, 3.9, 7.0, 2.2, 4.6, 3.7, 2.6, 3.0, 3.9, 7.0, 3.2, 4.6,0,4,5,7,5]
// data: tradeAmountList
},
{
name: '交易笔数',
@ -551,8 +551,8 @@ export default {
return value + ' °C';
}
},
// data: [2.0, 3.9, 4.0, 5.2, 4.6, 6.7, 7.6, 6.0, 5.9, 4.0, 4.2, 2.6]
data: tradeNumList
data: [2.0, 3.9, 4.0, 5.2, 4.6, 6.7, 7.6, 6.0, 5.9, 4.0, 4.2, 2.6]
// data: tradeNumList
}
],
grid: {
@ -590,10 +590,10 @@ export default {
},
data: [
// { value: 225, name: '' },
// { value: 735, name: '' }
{ value: this.countPercentage(Number(this.storeAmount.fuYouAmount),Number(this.storeAmount.fuYouAmount) + Number(this.storeAmount.laKaLaAmount)), name: '富友占比' },
{ value: this.countPercentage(Number(this.storeAmount.laKaLaAmount),Number(this.storeAmount.fuYouAmount) + Number(this.storeAmount.laKaLaAmount)), name: '拉卡拉占比' }
{ value: 225, name: '富友占比' },
{ value: 735, name: '拉卡拉占比' }
// { value: this.countPercentage(Number(this.storeAmount.fuYouAmount),Number(this.storeAmount.fuYouAmount) + Number(this.storeAmount.laKaLaAmount)), name: '' },
// { value: this.countPercentage(Number(this.storeAmount.laKaLaAmount),Number(this.storeAmount.fuYouAmount) + Number(this.storeAmount.laKaLaAmount)), name: '' }
]
}
]