feat:完善景区数据
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
<circle-progress
|
||||
:width="170"
|
||||
:height="90"
|
||||
:value="scenicStore.wordkOrderData.toDayData.rate"
|
||||
:value="parseFloat(scenicStore.wordkOrderData.toDayData.rate)"
|
||||
:title="`${scenicStore.wordkOrderData.toDayData.rate}%`"
|
||||
subTitle="完成率"
|
||||
/>
|
||||
@@ -66,7 +66,7 @@
|
||||
<circle-progress
|
||||
:width="170"
|
||||
:height="90"
|
||||
:value="scenicStore.wordkOrderData.warnData.rate"
|
||||
:value="parseFloat(scenicStore.wordkOrderData.warnData.rate)"
|
||||
:title="`${scenicStore.wordkOrderData.warnData.rate}%`"
|
||||
subTitle="完成率"
|
||||
/>
|
||||
|
||||
@@ -73,7 +73,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-1 mr-8">
|
||||
<Title1 title="停车信息(调试中)" />
|
||||
<Title1 title="停车信息" />
|
||||
<div class="flex">
|
||||
<div class="height70 flex flex-1">
|
||||
<circle-progress
|
||||
@@ -81,7 +81,7 @@
|
||||
:key="index"
|
||||
:width="140"
|
||||
:height="70"
|
||||
:value="item.rate"
|
||||
:value="parseFloat(item.rate)"
|
||||
:title="item.occupied"
|
||||
:subTitle="`${item.name}剩余`"
|
||||
/>
|
||||
@@ -90,7 +90,7 @@
|
||||
<count-item label="总停车场" :count="scenicStore.stopCarData.info.count" suffix="个" />
|
||||
<count-item
|
||||
label="剩余车位数"
|
||||
:count="scenicStore.stopCarData.info.remain"
|
||||
:count="scenicStore.stopCarData.info.occupiedSpaces"
|
||||
suffix="个"
|
||||
/>
|
||||
</div>
|
||||
@@ -98,13 +98,13 @@
|
||||
<div class="flex">
|
||||
<div class="border mr-8 flex-1">
|
||||
<div class="pt-10">
|
||||
<Title3 title="今日景区车流量(调试中)" />
|
||||
<Title3 title="今日景区车流量" />
|
||||
</div>
|
||||
<Line :width="360" :height="300" :data="carBearData" :xAxisData="carBearXAxisData" />
|
||||
</div>
|
||||
<div class="border flex-1">
|
||||
<div class="pt-10">
|
||||
<Title3 title="车辆归属地占比(调试中)" />
|
||||
<Title3 title="车辆归属地占比" />
|
||||
</div>
|
||||
<PieRow
|
||||
label="停车总数"
|
||||
@@ -144,13 +144,13 @@
|
||||
</div>
|
||||
<div class="flex mt-8">
|
||||
<div class="box-3 mr-8">
|
||||
<Title1 title="交通信息(调试中)" />
|
||||
<Title1 title="交通信息" />
|
||||
<div class="count-box flex">
|
||||
<count-item
|
||||
v-for="(item, index) in scenicStore.trafficData.infoList"
|
||||
:key="index"
|
||||
:label="item.name"
|
||||
:count="item.value"
|
||||
:count="item?.value || 0"
|
||||
/>
|
||||
</div>
|
||||
<div class="flex">
|
||||
@@ -347,7 +347,7 @@
|
||||
|
||||
const carTotal = computed(() => {
|
||||
return scenicStore.stopCarData.dataLists.reduce((pre, cur) => {
|
||||
return pre + cur.count
|
||||
return pre + parseInt(cur.count)
|
||||
}, 0)
|
||||
})
|
||||
|
||||
|
||||
@@ -40,10 +40,12 @@
|
||||
|
||||
watch(
|
||||
() => props.list,
|
||||
(val) => {
|
||||
setTimeout(() => {
|
||||
init()
|
||||
}, 1000)
|
||||
() => {
|
||||
if (props.list.length > 0) {
|
||||
setTimeout(() => {
|
||||
init()
|
||||
}, 1000)
|
||||
}
|
||||
},
|
||||
{ immediate: true }
|
||||
)
|
||||
|
||||
@@ -86,10 +86,8 @@
|
||||
label: {
|
||||
show: true,
|
||||
position: 'top',
|
||||
textStyle: {
|
||||
color: '#fff',
|
||||
fontSize: fitChartSize(10)
|
||||
}
|
||||
color: '#fff',
|
||||
fontSize: fitChartSize(10)
|
||||
},
|
||||
itemStyle: {
|
||||
color: {
|
||||
|
||||
Reference in New Issue
Block a user