|
@@ -9,6 +9,9 @@ import RecentStatus from './components/RecentStatus.vue'
|
|
|
import ScoringSystem from './components/ScoringSystem.vue'
|
|
import ScoringSystem from './components/ScoringSystem.vue'
|
|
|
import TopMap from './components/TopMap.vue'
|
|
import TopMap from './components/TopMap.vue'
|
|
|
import { ElMessageBox } from 'element-plus'
|
|
import { ElMessageBox } from 'element-plus'
|
|
|
|
|
+import { useRouter } from 'vue-router'
|
|
|
|
|
+
|
|
|
|
|
+const router = useRouter()
|
|
|
const value = ref('All')
|
|
const value = ref('All')
|
|
|
const activeName = ref('first')
|
|
const activeName = ref('first')
|
|
|
const SaveVisible = ref(false)
|
|
const SaveVisible = ref(false)
|
|
@@ -275,10 +278,12 @@ const Top1OInterval = reactive({
|
|
|
Max: 0,
|
|
Max: 0,
|
|
|
interval: 0
|
|
interval: 0
|
|
|
})
|
|
})
|
|
|
|
|
+const MapData = ref()
|
|
|
const GetTop10ODEcharts = () => {
|
|
const GetTop10ODEcharts = () => {
|
|
|
$api.GetTop10ODEcharts({}).then((res: any) => {
|
|
$api.GetTop10ODEcharts({}).then((res: any) => {
|
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
|
Top10Obj.DestinationData = res.data.seller_data_list_destination
|
|
Top10Obj.DestinationData = res.data.seller_data_list_destination
|
|
|
|
|
+ MapData.value = res.data.toporiginMap
|
|
|
Top10Obj.OriginData = res.data.seller_data_list_origin
|
|
Top10Obj.OriginData = res.data.seller_data_list_origin
|
|
|
Top1OInterval.Max = res.data.Max
|
|
Top1OInterval.Max = res.data.Max
|
|
|
Top1OInterval.interval = res.data.interval
|
|
Top1OInterval.interval = res.data.interval
|
|
@@ -333,6 +338,210 @@ const SearchCustomer = () => {
|
|
|
dashboardObj.customer = BookingSearch.value
|
|
dashboardObj.customer = BookingSearch.value
|
|
|
GetDashboardData(dashboardObj, 'no')
|
|
GetDashboardData(dashboardObj, 'no')
|
|
|
}
|
|
}
|
|
|
|
|
+//ETD to ETA(DAYS)点击跳转
|
|
|
|
|
+const pie_chart_ETD = ref()
|
|
|
|
|
+const pie_chart_pending_arrival = ref()
|
|
|
|
|
+const pie_chart_pending_departure = ref()
|
|
|
|
|
+const pie_chart_kpi_departure = ref()
|
|
|
|
|
+const pie_chart_kpi_arrival = ref()
|
|
|
|
|
+const seller_chart_top10_origin = ref()
|
|
|
|
|
+const seller_chart_top10_destination = ref()
|
|
|
|
|
+const seller_chart_CO2_origin = ref()
|
|
|
|
|
+const seller_chart_CO2_destination = ref()
|
|
|
|
|
+const ClickParams = (val: any) => {
|
|
|
|
|
+ const currentDate = new Date()
|
|
|
|
|
+ let tenyear: any = 0
|
|
|
|
|
+ if (currentDate.getMonth() - 11 < 0) {
|
|
|
|
|
+ tenyear = currentDate.getFullYear() - 1
|
|
|
|
|
+ } else {
|
|
|
|
|
+ tenyear = currentDate.getFullYear()
|
|
|
|
|
+ }
|
|
|
|
|
+ // ETD to ETA(DAYS)点击跳转
|
|
|
|
|
+ if (val == 'ETD to ETA (Days)') {
|
|
|
|
|
+ $api
|
|
|
|
|
+ .ClickEtdToEta({
|
|
|
|
|
+ _reportRef: pie_chart_ETD.value[0].paramsdata.name,
|
|
|
|
|
+ _reportRefe_date: currentDate.getMonth() + 1 + '/' + currentDate.getFullYear(),
|
|
|
|
|
+ _reportRefb_date: currentDate.getMonth() + 3 + '/' + tenyear
|
|
|
|
|
+ })
|
|
|
|
|
+ .then((res: any) => {
|
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
|
+ sessionStorage.setItem('clickParams', JSON.stringify(res.data))
|
|
|
|
|
+ let obj: any = {}
|
|
|
|
|
+ obj.title = 'ETD to ETA (Days)'
|
|
|
|
|
+ obj.data = pie_chart_ETD.value[0].paramsdata.name
|
|
|
|
|
+ sessionStorage.setItem('tagsList', JSON.stringify(obj))
|
|
|
|
|
+ router.push({
|
|
|
|
|
+ path: '/tracking'
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ // PendingArrival点击跳转
|
|
|
|
|
+ else if (val == 'Pending Departure & Arrival1') {
|
|
|
|
|
+ $api
|
|
|
|
|
+ .ClickPendingArrival({
|
|
|
|
|
+ _reportRef: pie_chart_pending_arrival.value[0].paramsdata.name
|
|
|
|
|
+ })
|
|
|
|
|
+ .then((res: any) => {
|
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
|
+ sessionStorage.setItem('clickParams', JSON.stringify(res.data))
|
|
|
|
|
+ let obj: any = {}
|
|
|
|
|
+ obj.title = 'Pending Arrival'
|
|
|
|
|
+ obj.data = pie_chart_pending_arrival.value[0].paramsdata.name
|
|
|
|
|
+ sessionStorage.setItem('tagsList', JSON.stringify(obj))
|
|
|
|
|
+ router.push({
|
|
|
|
|
+ path: '/tracking'
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ // PendingDeparture点击跳转
|
|
|
|
|
+ else if (val == 'Pending Departure & Arrival0') {
|
|
|
|
|
+ $api
|
|
|
|
|
+ .ClickPendingDeparture({
|
|
|
|
|
+ _reportRef: pie_chart_pending_departure.value[0].paramsdata.name
|
|
|
|
|
+ })
|
|
|
|
|
+ .then((res: any) => {
|
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
|
+ sessionStorage.setItem('clickParams', JSON.stringify(res.data))
|
|
|
|
|
+ let obj: any = {}
|
|
|
|
|
+ obj.title = 'Pending Departure'
|
|
|
|
|
+ obj.data = pie_chart_pending_departure.value[0].paramsdata.name
|
|
|
|
|
+ sessionStorage.setItem('tagsList', JSON.stringify(obj))
|
|
|
|
|
+ router.push({
|
|
|
|
|
+ path: '/tracking'
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ // KPIDeparture点击跳转
|
|
|
|
|
+ else if (val == 'KPI0') {
|
|
|
|
|
+ $api
|
|
|
|
|
+ .ClickKPIDeparture({
|
|
|
|
|
+ _reportRef: pie_chart_kpi_departure.value[0].paramsdata.name
|
|
|
|
|
+ })
|
|
|
|
|
+ .then((res: any) => {
|
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
|
+ sessionStorage.setItem('clickParams', JSON.stringify(res.data))
|
|
|
|
|
+ let obj: any = {}
|
|
|
|
|
+ obj.title = 'KPI Departure'
|
|
|
|
|
+ obj.data = pie_chart_kpi_departure.value[0].paramsdata.name
|
|
|
|
|
+ sessionStorage.setItem('tagsList', JSON.stringify(obj))
|
|
|
|
|
+ router.push({
|
|
|
|
|
+ path: '/tracking'
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ // KPIArrival点击跳转
|
|
|
|
|
+ else if (val == 'KPI1') {
|
|
|
|
|
+ $api
|
|
|
|
|
+ .ClickKPIArrival({
|
|
|
|
|
+ _reportRef: pie_chart_kpi_arrival.value[0].paramsdata.name
|
|
|
|
|
+ })
|
|
|
|
|
+ .then((res: any) => {
|
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
|
+ sessionStorage.setItem('clickParams', JSON.stringify(res.data))
|
|
|
|
|
+ let obj: any = {}
|
|
|
|
|
+ obj.title = 'KPI Arrival'
|
|
|
|
|
+ obj.data = pie_chart_kpi_arrival.value[0].paramsdata.name
|
|
|
|
|
+ sessionStorage.setItem('tagsList', JSON.stringify(obj))
|
|
|
|
|
+ router.push({
|
|
|
|
|
+ path: '/tracking'
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ // Top10 origin点击跳转
|
|
|
|
|
+ else if (val == 'Top 10 Origin') {
|
|
|
|
|
+ let array: any = []
|
|
|
|
|
+ array.push(seller_chart_top10_origin.value[0].paramsdata)
|
|
|
|
|
+ console.log(array)
|
|
|
|
|
+ $api
|
|
|
|
|
+ .ClickTop10({
|
|
|
|
|
+ _reportRef: array,
|
|
|
|
|
+ _reportStationType: 'origin'
|
|
|
|
|
+ })
|
|
|
|
|
+ .then((res: any) => {
|
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
|
+ sessionStorage.setItem('clickParams', JSON.stringify(res.data))
|
|
|
|
|
+ let obj: any = {}
|
|
|
|
|
+ obj.title = 'Top 10 Origin'
|
|
|
|
|
+ obj.data = seller_chart_top10_origin.value[0].paramsdata
|
|
|
|
|
+ sessionStorage.setItem('tagsList', JSON.stringify(obj))
|
|
|
|
|
+ router.push({
|
|
|
|
|
+ path: '/tracking'
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ // Top10 destination点击跳转
|
|
|
|
|
+ else if (val == 'Top 10 Destination') {
|
|
|
|
|
+ let array: any = []
|
|
|
|
|
+ array.push(seller_chart_top10_destination.value[0].paramsdata)
|
|
|
|
|
+ console.log(array)
|
|
|
|
|
+ $api
|
|
|
|
|
+ .ClickTop10({
|
|
|
|
|
+ _reportRef: array,
|
|
|
|
|
+ _reportStationType: 'agent'
|
|
|
|
|
+ })
|
|
|
|
|
+ .then((res: any) => {
|
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
|
+ sessionStorage.setItem('clickParams', JSON.stringify(res.data))
|
|
|
|
|
+ let obj: any = {}
|
|
|
|
|
+ obj.title = 'Top 10 Destination'
|
|
|
|
|
+ obj.data = seller_chart_top10_destination.value[0].paramsdata
|
|
|
|
|
+ sessionStorage.setItem('tagsList', JSON.stringify(obj))
|
|
|
|
|
+ router.push({
|
|
|
|
|
+ path: '/tracking'
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ // CO2e Emission by Origin (Top 10)点击跳转
|
|
|
|
|
+ else if (val == 'CO2e Emission by Origin (Top 10)') {
|
|
|
|
|
+ $api
|
|
|
|
|
+ .ClickCO2({
|
|
|
|
|
+ _reportRef: seller_chart_CO2_origin.value[0].paramsdata.name,
|
|
|
|
|
+ _reportDataType: seller_chart_CO2_origin.value[0].paramsdata.type,
|
|
|
|
|
+ _reportStationType: 'origin'
|
|
|
|
|
+ })
|
|
|
|
|
+ .then((res: any) => {
|
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
|
+ sessionStorage.setItem('clickParams', JSON.stringify(res.data))
|
|
|
|
|
+ let obj: any = {}
|
|
|
|
|
+ obj.title = 'CO2e Emission by Origin (Top 10)'
|
|
|
|
|
+ obj.data = seller_chart_CO2_origin.value[0].paramsdata.name
|
|
|
|
|
+ sessionStorage.setItem('tagsList', JSON.stringify(obj))
|
|
|
|
|
+ router.push({
|
|
|
|
|
+ path: '/tracking'
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ // CO2e Emission by Origin (Top 10)点击跳转
|
|
|
|
|
+ else if (val == 'CO2e Emission by Destination (Top 10)') {
|
|
|
|
|
+ $api
|
|
|
|
|
+ .ClickCO2({
|
|
|
|
|
+ _reportRef: seller_chart_CO2_destination.value[0].paramsdata.name,
|
|
|
|
|
+ _reportDataType: seller_chart_CO2_destination.value[0].paramsdata.type,
|
|
|
|
|
+ _reportStationType: 'origin'
|
|
|
|
|
+ })
|
|
|
|
|
+ .then((res: any) => {
|
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
|
+ sessionStorage.setItem('clickParams', JSON.stringify(res.data))
|
|
|
|
|
+ let obj: any = {}
|
|
|
|
|
+ obj.title = 'CO2e Emission by Destination (Top 10)'
|
|
|
|
|
+ obj.data = seller_chart_CO2_destination.value[0].paramsdata.name
|
|
|
|
|
+ sessionStorage.setItem('tagsList', JSON.stringify(obj))
|
|
|
|
|
+ router.push({
|
|
|
|
|
+ path: '/tracking'
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
</script>
|
|
</script>
|
|
|
<template>
|
|
<template>
|
|
|
<div class="dashboard">
|
|
<div class="dashboard">
|
|
@@ -455,7 +664,7 @@ const SearchCustomer = () => {
|
|
|
handle=".handle-draggable"
|
|
handle=".handle-draggable"
|
|
|
>
|
|
>
|
|
|
<template v-for="item in Management" :key="item">
|
|
<template v-for="item in Management" :key="item">
|
|
|
- <div v-if="item.id === 1 && item.switchValue" class="filters_left">
|
|
|
|
|
|
|
+ <div v-if="item.title === 'KPI' && item.switchValue" class="filters_left">
|
|
|
<!-- KPI -->
|
|
<!-- KPI -->
|
|
|
<VBox_Dashboard @changeCancel="changeCancel(item.id)">
|
|
<VBox_Dashboard @changeCancel="changeCancel(item.id)">
|
|
|
<template #header>
|
|
<template #header>
|
|
@@ -478,12 +687,18 @@ const SearchCustomer = () => {
|
|
|
<template #content>
|
|
<template #content>
|
|
|
<div class="KPI_Pending">
|
|
<div class="KPI_Pending">
|
|
|
<div class="kpi">
|
|
<div class="kpi">
|
|
|
- <PieChart ref="pie_chart" :PieData="KPIobj" style="height: 300px"></PieChart>
|
|
|
|
|
|
|
+ <PieChart
|
|
|
|
|
+ ref="pie_chart_kpi_departure"
|
|
|
|
|
+ @ClickParams="ClickParams(item.title + '0')"
|
|
|
|
|
+ :PieData="KPIobj"
|
|
|
|
|
+ style="height: 300px"
|
|
|
|
|
+ ></PieChart>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="kpi">
|
|
<div class="kpi">
|
|
|
<PieChart
|
|
<PieChart
|
|
|
- ref="pie_chart"
|
|
|
|
|
|
|
+ ref="pie_chart_kpi_arrival"
|
|
|
:PieData="Arrivalobj"
|
|
:PieData="Arrivalobj"
|
|
|
|
|
+ @ClickParams="ClickParams(item.title + '1')"
|
|
|
style="height: 300px"
|
|
style="height: 300px"
|
|
|
></PieChart>
|
|
></PieChart>
|
|
|
</div>
|
|
</div>
|
|
@@ -491,7 +706,10 @@ const SearchCustomer = () => {
|
|
|
</template>
|
|
</template>
|
|
|
</VBox_Dashboard>
|
|
</VBox_Dashboard>
|
|
|
</div>
|
|
</div>
|
|
|
- <div v-else-if="item.id === 2 && item.switchValue" class="filters_left">
|
|
|
|
|
|
|
+ <div
|
|
|
|
|
+ v-else-if="item.title === 'Pending Departure & Arrival' && item.switchValue"
|
|
|
|
|
+ class="filters_left"
|
|
|
|
|
+ >
|
|
|
<!-- Pending -->
|
|
<!-- Pending -->
|
|
|
<VBox_Dashboard @changeCancel="changeCancel(item.id)">
|
|
<VBox_Dashboard @changeCancel="changeCancel(item.id)">
|
|
|
<template #header>
|
|
<template #header>
|
|
@@ -515,14 +733,16 @@ const SearchCustomer = () => {
|
|
|
<div class="KPI_Pending">
|
|
<div class="KPI_Pending">
|
|
|
<div class="kpi">
|
|
<div class="kpi">
|
|
|
<PieChart
|
|
<PieChart
|
|
|
- ref="pie_chart"
|
|
|
|
|
|
|
+ ref="pie_chart_pending_departure"
|
|
|
:PieData="Pendingobj"
|
|
:PieData="Pendingobj"
|
|
|
|
|
+ @ClickParams="ClickParams(item.title + '0')"
|
|
|
style="height: 300px"
|
|
style="height: 300px"
|
|
|
></PieChart>
|
|
></PieChart>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="kpi">
|
|
<div class="kpi">
|
|
|
<PieChart
|
|
<PieChart
|
|
|
- ref="pie_chart"
|
|
|
|
|
|
|
+ ref="pie_chart_pending_arrival"
|
|
|
|
|
+ @ClickParams="ClickParams(item.title + '1')"
|
|
|
:PieData="PendingArrivalobj"
|
|
:PieData="PendingArrivalobj"
|
|
|
style="height: 300px"
|
|
style="height: 300px"
|
|
|
></PieChart>
|
|
></PieChart>
|
|
@@ -532,7 +752,9 @@ const SearchCustomer = () => {
|
|
|
</VBox_Dashboard>
|
|
</VBox_Dashboard>
|
|
|
</div>
|
|
</div>
|
|
|
<div
|
|
<div
|
|
|
- v-else-if="item.id === 3 && item.switchValue && RecentStatusList.length != 0"
|
|
|
|
|
|
|
+ v-else-if="
|
|
|
|
|
+ item.title === 'Recent Status' && item.switchValue && RecentStatusList.length != 0
|
|
|
|
|
+ "
|
|
|
class="KPI_Pending"
|
|
class="KPI_Pending"
|
|
|
>
|
|
>
|
|
|
<!-- Recent Status -->
|
|
<!-- Recent Status -->
|
|
@@ -573,7 +795,10 @@ const SearchCustomer = () => {
|
|
|
</VBox_Dashboard>
|
|
</VBox_Dashboard>
|
|
|
</div>
|
|
</div>
|
|
|
<!-- ETD to ETA -->
|
|
<!-- ETD to ETA -->
|
|
|
- <div v-else-if="item.id === 4 && item.switchValue" class="filters_left">
|
|
|
|
|
|
|
+ <div
|
|
|
|
|
+ v-else-if="item.title === 'ETD to ETA (Days)' && item.switchValue"
|
|
|
|
|
+ class="filters_left"
|
|
|
|
|
+ >
|
|
|
<VBox_Dashboard @changeCancel="changeCancel(item.id)">
|
|
<VBox_Dashboard @changeCancel="changeCancel(item.id)">
|
|
|
<template #header>
|
|
<template #header>
|
|
|
<div class="Title_flex">
|
|
<div class="Title_flex">
|
|
@@ -593,12 +818,20 @@ const SearchCustomer = () => {
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<template #content>
|
|
<template #content>
|
|
|
- <PieChart ref="pie_chart" :PieData="ETDobj" style="height: 300px"></PieChart>
|
|
|
|
|
|
|
+ <PieChart
|
|
|
|
|
+ ref="pie_chart_ETD"
|
|
|
|
|
+ @ClickParams="ClickParams(item.title)"
|
|
|
|
|
+ :PieData="ETDobj"
|
|
|
|
|
+ style="height: 300px"
|
|
|
|
|
+ ></PieChart>
|
|
|
</template>
|
|
</template>
|
|
|
</VBox_Dashboard>
|
|
</VBox_Dashboard>
|
|
|
</div>
|
|
</div>
|
|
|
<!-- Container Count -->
|
|
<!-- Container Count -->
|
|
|
- <div v-else-if="item.id === 5 && item.switchValue" class="filters_left">
|
|
|
|
|
|
|
+ <div
|
|
|
|
|
+ v-else-if="item.title === 'Container Count' && item.switchValue"
|
|
|
|
|
+ class="filters_left"
|
|
|
|
|
+ >
|
|
|
<VBox_Dashboard @changeCancel="changeCancel(item.id)">
|
|
<VBox_Dashboard @changeCancel="changeCancel(item.id)">
|
|
|
<template #header>
|
|
<template #header>
|
|
|
<div class="Title_flex" style="justify-content: space-between">
|
|
<div class="Title_flex" style="justify-content: space-between">
|
|
@@ -646,7 +879,10 @@ const SearchCustomer = () => {
|
|
|
</VBox_Dashboard>
|
|
</VBox_Dashboard>
|
|
|
</div>
|
|
</div>
|
|
|
<!-- Top10 Origin/Top 10 Destination -->
|
|
<!-- Top10 Origin/Top 10 Destination -->
|
|
|
- <div v-else-if="item.id === 6 && item.switchValue" class="KPI_Pending">
|
|
|
|
|
|
|
+ <div
|
|
|
|
|
+ v-else-if="item.title === 'Top 10 Origin/Destination' && item.switchValue"
|
|
|
|
|
+ class="KPI_Pending"
|
|
|
|
|
+ >
|
|
|
<VBox_Dashboard @changeCancel="changeCancel(item.id)" style="width: 100%">
|
|
<VBox_Dashboard @changeCancel="changeCancel(item.id)" style="width: 100%">
|
|
|
<template #header>
|
|
<template #header>
|
|
|
<div class="Title_flex" style="align-items: start">
|
|
<div class="Title_flex" style="align-items: start">
|
|
@@ -672,14 +908,14 @@ const SearchCustomer = () => {
|
|
|
<div class="KPI_Pending">
|
|
<div class="KPI_Pending">
|
|
|
<div class="seller_chart">
|
|
<div class="seller_chart">
|
|
|
<SellerChart
|
|
<SellerChart
|
|
|
- ref="seller_chart"
|
|
|
|
|
|
|
+ ref="seller_chart_top10_origin"
|
|
|
|
|
+ @clickParams="ClickParams(item.title1)"
|
|
|
:SellerData="Top10Obj.OriginData"
|
|
:SellerData="Top10Obj.OriginData"
|
|
|
:Interval="Top1OInterval"
|
|
:Interval="Top1OInterval"
|
|
|
- style="height: 272px"
|
|
|
|
|
></SellerChart>
|
|
></SellerChart>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="map">
|
|
<div class="map">
|
|
|
- <TopMap></TopMap>
|
|
|
|
|
|
|
+ <TopMap :MapData="MapData"></TopMap>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
@@ -687,21 +923,25 @@ const SearchCustomer = () => {
|
|
|
<div class="KPI_Pending">
|
|
<div class="KPI_Pending">
|
|
|
<div class="seller_chart">
|
|
<div class="seller_chart">
|
|
|
<SellerChart
|
|
<SellerChart
|
|
|
- ref="seller_chart"
|
|
|
|
|
|
|
+ ref="seller_chart_top10_destination"
|
|
|
|
|
+ @clickParams="ClickParams(item.title2)"
|
|
|
:SellerData="Top10Obj.DestinationData"
|
|
:SellerData="Top10Obj.DestinationData"
|
|
|
:Interval="Top1OInterval"
|
|
:Interval="Top1OInterval"
|
|
|
style="height: 272px"
|
|
style="height: 272px"
|
|
|
></SellerChart>
|
|
></SellerChart>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="map">
|
|
|
|
|
- <TopMap></TopMap>
|
|
|
|
|
|
|
+ <div class="map" style="height: 272px">
|
|
|
|
|
+ <TopMap :MapData="MapData"></TopMap>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
</VBox_Dashboard>
|
|
</VBox_Dashboard>
|
|
|
</div>
|
|
</div>
|
|
|
<!-- CO2e Emission by Origin (Top 10) -->
|
|
<!-- CO2e Emission by Origin (Top 10) -->
|
|
|
- <div v-else-if="item.id === 7 && item.switchValue" class="filters_left">
|
|
|
|
|
|
|
+ <div
|
|
|
|
|
+ v-else-if="item.title === 'CO2e Emission by Origin (Top 10)' && item.switchValue"
|
|
|
|
|
+ class="filters_left"
|
|
|
|
|
+ >
|
|
|
<VBox_Dashboard @changeCancel="changeCancel(item.id)">
|
|
<VBox_Dashboard @changeCancel="changeCancel(item.id)">
|
|
|
<template #header>
|
|
<template #header>
|
|
|
<div class="Title_flex">
|
|
<div class="Title_flex">
|
|
@@ -722,8 +962,9 @@ const SearchCustomer = () => {
|
|
|
</template>
|
|
</template>
|
|
|
<template #content>
|
|
<template #content>
|
|
|
<BarChart
|
|
<BarChart
|
|
|
- ref="seller_chart"
|
|
|
|
|
|
|
+ ref="seller_chart_CO2_origin"
|
|
|
:BarData="EmissionObj"
|
|
:BarData="EmissionObj"
|
|
|
|
|
+ @clickParams="ClickParams(item.title)"
|
|
|
style="height: 250px"
|
|
style="height: 250px"
|
|
|
:barHeight="{ height: '250px' }"
|
|
:barHeight="{ height: '250px' }"
|
|
|
></BarChart>
|
|
></BarChart>
|
|
@@ -731,7 +972,10 @@ const SearchCustomer = () => {
|
|
|
</VBox_Dashboard>
|
|
</VBox_Dashboard>
|
|
|
</div>
|
|
</div>
|
|
|
<!-- CO2e Emission by Destination (Top 10) -->
|
|
<!-- CO2e Emission by Destination (Top 10) -->
|
|
|
- <div v-else-if="item.id === 8 && item.switchValue" class="filters_left">
|
|
|
|
|
|
|
+ <div
|
|
|
|
|
+ v-else-if="item.title === 'CO2e Emission by Destination (Top 10)' && item.switchValue"
|
|
|
|
|
+ class="filters_left"
|
|
|
|
|
+ >
|
|
|
<VBox_Dashboard @changeCancel="changeCancel(item.id)">
|
|
<VBox_Dashboard @changeCancel="changeCancel(item.id)">
|
|
|
<template #header>
|
|
<template #header>
|
|
|
<div class="Title_flex">
|
|
<div class="Title_flex">
|
|
@@ -752,9 +996,10 @@ const SearchCustomer = () => {
|
|
|
</template>
|
|
</template>
|
|
|
<template #content>
|
|
<template #content>
|
|
|
<BarChart
|
|
<BarChart
|
|
|
- ref="seller_chart"
|
|
|
|
|
|
|
+ ref="seller_chart_CO2_destination"
|
|
|
:BarData="DestinationObj"
|
|
:BarData="DestinationObj"
|
|
|
style="height: 250px"
|
|
style="height: 250px"
|
|
|
|
|
+ @clickParams="ClickParams(item.title)"
|
|
|
:barHeight="{ height: '250px' }"
|
|
:barHeight="{ height: '250px' }"
|
|
|
></BarChart>
|
|
></BarChart>
|
|
|
</template>
|
|
</template>
|