|
@@ -1,6 +1,6 @@
|
|
|
<script lang="ts" setup>
|
|
<script lang="ts" setup>
|
|
|
import { ref, onMounted, reactive } from 'vue'
|
|
import { ref, onMounted, reactive } from 'vue'
|
|
|
-import CalendarDate from '@/components/DateRange/src/components/CalendarDate.vue'
|
|
|
|
|
|
|
+import QuickCalendarDate from '@/components/DateRange/src/components/QuickCalendarDate.vue'
|
|
|
import { VueDraggable } from 'vue-draggable-plus'
|
|
import { VueDraggable } from 'vue-draggable-plus'
|
|
|
import PieChart from './components/PieChart.vue'
|
|
import PieChart from './components/PieChart.vue'
|
|
|
import SellerChart from './components/SellerChart.vue'
|
|
import SellerChart from './components/SellerChart.vue'
|
|
@@ -27,14 +27,19 @@ const checkboxGroup1 = ref(['All'])
|
|
|
const changeCheckboxGroup2 = ref('ETD')
|
|
const changeCheckboxGroup2 = ref('ETD')
|
|
|
const shipper = ref(['All', 'Air', 'Sea', 'Road'])
|
|
const shipper = ref(['All', 'Air', 'Sea', 'Road'])
|
|
|
const shipper_two = ref(['ETD', 'ETA'])
|
|
const shipper_two = ref(['ETD', 'ETA'])
|
|
|
|
|
+const DashDate = ref(['', ''])
|
|
|
const changeCheckboxGroup1 = (val: any) => {
|
|
const changeCheckboxGroup1 = (val: any) => {
|
|
|
- if (val.length == 0) {
|
|
|
|
|
|
|
+ if (val.length == 3) {
|
|
|
checkboxGroup1.value = ['All']
|
|
checkboxGroup1.value = ['All']
|
|
|
- } else if (val.indexOf('All') != -1) {
|
|
|
|
|
- checkboxGroup1.value.splice(val.indexOf('All'), 1)
|
|
|
|
|
}
|
|
}
|
|
|
- if (val.length == 3 && val.indexOf('All') == -1) {
|
|
|
|
|
|
|
+ if (val.length == 0) {
|
|
|
checkboxGroup1.value = ['All']
|
|
checkboxGroup1.value = ['All']
|
|
|
|
|
+ } else if (val.indexOf('All') != -1) {
|
|
|
|
|
+ if (val.indexOf('All') == 1 && val.length == 2) {
|
|
|
|
|
+ checkboxGroup1.value = ['All']
|
|
|
|
|
+ } else {
|
|
|
|
|
+ checkboxGroup1.value.splice(val.indexOf('All'), 1)
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -202,7 +207,9 @@ const GetPendingArrivalEcharts = () => {
|
|
|
const containerObj = reactive({
|
|
const containerObj = reactive({
|
|
|
bar_title: '',
|
|
bar_title: '',
|
|
|
barList: [],
|
|
barList: [],
|
|
|
- barSeries: [{ name: '' }]
|
|
|
|
|
|
|
+ barSeries: [{ name: '' }],
|
|
|
|
|
+ Max: 0,
|
|
|
|
|
+ interval: 0
|
|
|
})
|
|
})
|
|
|
const GetContainerCountEcharts = (val: any) => {
|
|
const GetContainerCountEcharts = (val: any) => {
|
|
|
$api
|
|
$api
|
|
@@ -216,6 +223,8 @@ const GetContainerCountEcharts = (val: any) => {
|
|
|
containerObj.bar_title = res.data.ContainerCount_Title
|
|
containerObj.bar_title = res.data.ContainerCount_Title
|
|
|
containerObj.barList = res.data.ContainerCountList
|
|
containerObj.barList = res.data.ContainerCountList
|
|
|
containerObj.barSeries = res.data.ContainerCounSeries
|
|
containerObj.barSeries = res.data.ContainerCounSeries
|
|
|
|
|
+ containerObj.Max = res.data.Max
|
|
|
|
|
+ containerObj.interval = res.data.interval
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
@@ -223,7 +232,9 @@ const GetContainerCountEcharts = (val: any) => {
|
|
|
const EmissionObj = reactive({
|
|
const EmissionObj = reactive({
|
|
|
bar_title: '',
|
|
bar_title: '',
|
|
|
barList: [],
|
|
barList: [],
|
|
|
- barSeries: []
|
|
|
|
|
|
|
+ barSeries: [],
|
|
|
|
|
+ Max: 0,
|
|
|
|
|
+ interval: 0
|
|
|
})
|
|
})
|
|
|
const GetCo2EmissionEcharts = () => {
|
|
const GetCo2EmissionEcharts = () => {
|
|
|
$api.GetCo2EmissionEcharts({}).then((res: any) => {
|
|
$api.GetCo2EmissionEcharts({}).then((res: any) => {
|
|
@@ -231,6 +242,8 @@ const GetCo2EmissionEcharts = () => {
|
|
|
EmissionObj.bar_title = res.data.ContainerCount_Title
|
|
EmissionObj.bar_title = res.data.ContainerCount_Title
|
|
|
EmissionObj.barList = res.data.ContainerCountList
|
|
EmissionObj.barList = res.data.ContainerCountList
|
|
|
EmissionObj.barSeries = res.data.ContainerCounSeries
|
|
EmissionObj.barSeries = res.data.ContainerCounSeries
|
|
|
|
|
+ EmissionObj.Max = res.data.Max
|
|
|
|
|
+ EmissionObj.interval = res.data.interval
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
@@ -238,7 +251,9 @@ const GetCo2EmissionEcharts = () => {
|
|
|
const DestinationObj = reactive({
|
|
const DestinationObj = reactive({
|
|
|
bar_title: '',
|
|
bar_title: '',
|
|
|
barList: [],
|
|
barList: [],
|
|
|
- barSeries: []
|
|
|
|
|
|
|
+ barSeries: [],
|
|
|
|
|
+ Max: 0,
|
|
|
|
|
+ interval: 0
|
|
|
})
|
|
})
|
|
|
const GetCo2DestinationEcharts = () => {
|
|
const GetCo2DestinationEcharts = () => {
|
|
|
$api.GetCo2DestinationEcharts({}).then((res: any) => {
|
|
$api.GetCo2DestinationEcharts({}).then((res: any) => {
|
|
@@ -246,6 +261,8 @@ const GetCo2DestinationEcharts = () => {
|
|
|
DestinationObj.bar_title = res.data.ContainerCount_Title
|
|
DestinationObj.bar_title = res.data.ContainerCount_Title
|
|
|
DestinationObj.barList = res.data.ContainerCountList
|
|
DestinationObj.barList = res.data.ContainerCountList
|
|
|
DestinationObj.barSeries = res.data.ContainerCounSeries
|
|
DestinationObj.barSeries = res.data.ContainerCounSeries
|
|
|
|
|
+ DestinationObj.Max = res.data.Max
|
|
|
|
|
+ DestinationObj.interval = res.data.interval
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
@@ -306,6 +323,10 @@ const SaveLayout = () => {
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
+//Save Filters
|
|
|
|
|
+const SaveFilters = () => {
|
|
|
|
|
+ SaveVisible.value = false
|
|
|
|
|
+}
|
|
|
</script>
|
|
</script>
|
|
|
<template>
|
|
<template>
|
|
|
<div class="dashboard">
|
|
<div class="dashboard">
|
|
@@ -365,7 +386,7 @@ const SaveLayout = () => {
|
|
|
</span>
|
|
</span>
|
|
|
</el-button>
|
|
</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
- <div class="Save_filters">
|
|
|
|
|
|
|
+ <div class="Save_filters" @click="SaveFilters">
|
|
|
<span class="iconfont_icon iconfont_icon_save">
|
|
<span class="iconfont_icon iconfont_icon_save">
|
|
|
<svg class="iconfont" aria-hidden="true">
|
|
<svg class="iconfont" aria-hidden="true">
|
|
|
<use xlink:href="#icon-icon_save_b"></use>
|
|
<use xlink:href="#icon-icon_save_b"></use>
|
|
@@ -401,7 +422,7 @@ const SaveLayout = () => {
|
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="tips_filter">
|
|
<div class="tips_filter">
|
|
|
- <CalendarDate @DateChange="DateChange"></CalendarDate>
|
|
|
|
|
|
|
+ <QuickCalendarDate @DateChange="DateChange" :Date="DashDate"></QuickCalendarDate>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="filters_right">
|
|
<div class="filters_right">
|
|
@@ -652,7 +673,7 @@ const SaveLayout = () => {
|
|
|
></SellerChart>
|
|
></SellerChart>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="map">
|
|
<div class="map">
|
|
|
- <!-- <TopMap></TopMap> -->
|
|
|
|
|
|
|
+ <TopMap></TopMap>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
@@ -666,7 +687,9 @@ const SaveLayout = () => {
|
|
|
style="height: 272px"
|
|
style="height: 272px"
|
|
|
></SellerChart>
|
|
></SellerChart>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="map">MAP</div>
|
|
|
|
|
|
|
+ <div class="map">
|
|
|
|
|
+ <TopMap></TopMap>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
</VBox_Dashboard>
|
|
</VBox_Dashboard>
|
|
@@ -695,8 +718,8 @@ const SaveLayout = () => {
|
|
|
<BarChart
|
|
<BarChart
|
|
|
ref="seller_chart"
|
|
ref="seller_chart"
|
|
|
:BarData="EmissionObj"
|
|
:BarData="EmissionObj"
|
|
|
- style="height: 222px"
|
|
|
|
|
- :barHeight="{ height: '222px' }"
|
|
|
|
|
|
|
+ style="height: 250px"
|
|
|
|
|
+ :barHeight="{ height: '250px' }"
|
|
|
></BarChart>
|
|
></BarChart>
|
|
|
</template>
|
|
</template>
|
|
|
</VBox_Dashboard>
|
|
</VBox_Dashboard>
|
|
@@ -725,8 +748,8 @@ const SaveLayout = () => {
|
|
|
<BarChart
|
|
<BarChart
|
|
|
ref="seller_chart"
|
|
ref="seller_chart"
|
|
|
:BarData="DestinationObj"
|
|
:BarData="DestinationObj"
|
|
|
- style="height: 222px"
|
|
|
|
|
- :barHeight="{ height: '222px' }"
|
|
|
|
|
|
|
+ style="height: 250px"
|
|
|
|
|
+ :barHeight="{ height: '250px' }"
|
|
|
></BarChart>
|
|
></BarChart>
|
|
|
</template>
|
|
</template>
|
|
|
</VBox_Dashboard>
|
|
</VBox_Dashboard>
|
|
@@ -894,7 +917,7 @@ const SaveLayout = () => {
|
|
|
margin-bottom: 8px;
|
|
margin-bottom: 8px;
|
|
|
}
|
|
}
|
|
|
:deep(.ETD_title) {
|
|
:deep(.ETD_title) {
|
|
|
- margin-bottom: 0;
|
|
|
|
|
|
|
+ margin-bottom: 0 !important;
|
|
|
}
|
|
}
|
|
|
:deep(:where(.css-dev-only-do-not-override-19iuou).ant-picker-range) {
|
|
:deep(:where(.css-dev-only-do-not-override-19iuou).ant-picker-range) {
|
|
|
height: 32px;
|
|
height: 32px;
|
|
@@ -949,5 +972,6 @@ const SaveLayout = () => {
|
|
|
z-index: 2014;
|
|
z-index: 2014;
|
|
|
position: relative;
|
|
position: relative;
|
|
|
background-color: white;
|
|
background-color: white;
|
|
|
|
|
+ padding-bottom: 20px;
|
|
|
}
|
|
}
|
|
|
</style>
|
|
</style>
|