|
|
@@ -10,6 +10,7 @@ import ScoringSystem from './components/ScoringSystem.vue'
|
|
|
import TopMap from './components/TopMap.vue'
|
|
|
import { ElMessageBox } from 'element-plus'
|
|
|
import { useRouter } from 'vue-router'
|
|
|
+import dayjs from 'dayjs'
|
|
|
|
|
|
const router = useRouter()
|
|
|
const value = ref('All')
|
|
|
@@ -30,7 +31,6 @@ const checkboxGroup1 = ref(['All'])
|
|
|
const changeCheckboxGroup2 = ref('ETD')
|
|
|
const shipper = ref(['All', 'Air', 'Sea', 'Road'])
|
|
|
const shipper_two = ref(['ETD', 'ETA'])
|
|
|
-const DashDate = ref(['', ''])
|
|
|
const changeCheckboxGroup1 = (val: any) => {
|
|
|
if (val.length == 3) {
|
|
|
checkboxGroup1.value = ['All']
|
|
|
@@ -62,8 +62,13 @@ const handleTabClick = (tab: any) => {
|
|
|
isShowtitle1.value = false
|
|
|
}
|
|
|
}
|
|
|
+const DashDate = ref([dayjs().startOf('month'), dayjs().endOf('month')])
|
|
|
// 获取首页数据
|
|
|
-let dashboardObj: any = {}
|
|
|
+let dashboardObj: any = {
|
|
|
+ date_start: DashDate.value[0].format('MM/DD/YYYY'),
|
|
|
+ date_end: DashDate.value[1].format('MM/DD/YYYY'),
|
|
|
+ date_type: changeCheckboxGroup2.value
|
|
|
+}
|
|
|
const GetDashboardData = (value: any, is_default: any) => {
|
|
|
$api
|
|
|
.GetDashboardData({
|
|
|
@@ -210,11 +215,13 @@ const GetPendingArrivalEcharts = () => {
|
|
|
const containerObj = reactive({
|
|
|
bar_title: '',
|
|
|
barList: [],
|
|
|
- barSeries: [{ name: '' }],
|
|
|
+ barSeries: [],
|
|
|
Max: 0,
|
|
|
interval: 0
|
|
|
})
|
|
|
+const containerType = ref([])
|
|
|
const GetContainerCountEcharts = (val: any) => {
|
|
|
+ containerType.value = []
|
|
|
$api
|
|
|
.GetContainerCountEcharts({
|
|
|
b_date: '',
|
|
|
@@ -228,6 +235,10 @@ const GetContainerCountEcharts = (val: any) => {
|
|
|
containerObj.barSeries = res.data.ContainerCounSeries
|
|
|
containerObj.Max = res.data.Max
|
|
|
containerObj.interval = res.data.interval
|
|
|
+ for (let i = 0; i < res.data.ContainerCounSeries.length; i++) {
|
|
|
+ containerType.value.push(res.data.ContainerCounSeries[i].name)
|
|
|
+ }
|
|
|
+ containerType.value.push('All')
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
@@ -616,7 +627,11 @@ const ClickParams = (val: any) => {
|
|
|
</el-popover>
|
|
|
<el-popover width="142" :visible="SaveVisible">
|
|
|
<template #reference>
|
|
|
- <el-button class="el-button--default" @click="SaveVisible = !SaveVisible">
|
|
|
+ <el-button
|
|
|
+ class="el-button--default"
|
|
|
+ @click="SaveVisible = !SaveVisible"
|
|
|
+ @blur="SaveFilters"
|
|
|
+ >
|
|
|
<span class="iconfont_icon">
|
|
|
<svg class="iconfont" aria-hidden="true">
|
|
|
<use xlink:href="#icon-icon_save_b"></use>
|
|
|
@@ -888,10 +903,10 @@ const ClickParams = (val: any) => {
|
|
|
@change="changeType"
|
|
|
>
|
|
|
<el-option
|
|
|
- v-for="item in containerObj.barSeries"
|
|
|
- :key="item.name"
|
|
|
- :label="item.name"
|
|
|
- :value="item.name"
|
|
|
+ v-for="item in containerType"
|
|
|
+ :key="item"
|
|
|
+ :label="item"
|
|
|
+ :value="item"
|
|
|
/>
|
|
|
</el-select>
|
|
|
</div>
|
|
|
@@ -899,7 +914,7 @@ const ClickParams = (val: any) => {
|
|
|
</template>
|
|
|
<template #content>
|
|
|
<BarChart
|
|
|
- ref="seller_chart"
|
|
|
+ ref="seller_chart_Container_count"
|
|
|
:BarData="containerObj"
|
|
|
style="height: 300px"
|
|
|
:barHeight="{ height: '300px' }"
|
|
|
@@ -914,7 +929,7 @@ const ClickParams = (val: any) => {
|
|
|
>
|
|
|
<VBox_Dashboard @changeCancel="changeCancel(item.id)" style="width: 100%">
|
|
|
<template #header>
|
|
|
- <div class="Title_flex" style="align-items: start">
|
|
|
+ <div class="Title_flex">
|
|
|
<el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleTabClick">
|
|
|
<el-tab-pane :label="item.title1" name="first"></el-tab-pane>
|
|
|
<el-tab-pane :label="item.title2" name="second"></el-tab-pane>
|
|
|
@@ -1263,4 +1278,7 @@ const ClickParams = (val: any) => {
|
|
|
background-color: white;
|
|
|
padding-bottom: 40px;
|
|
|
}
|
|
|
+:deep(.el-tabs__header) {
|
|
|
+ height: 48px;
|
|
|
+}
|
|
|
</style>
|