|
@@ -280,6 +280,8 @@ const GetCo2DestinationEcharts = () => {
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
+const topdestinationinType = ref()
|
|
|
|
|
+const toporiginType = ref()
|
|
|
//获取Top10 Origin/Destination
|
|
//获取Top10 Origin/Destination
|
|
|
const Top10Obj = reactive({
|
|
const Top10Obj = reactive({
|
|
|
OriginData: [],
|
|
OriginData: [],
|
|
@@ -302,6 +304,8 @@ const GetTop10ODEcharts = () => {
|
|
|
Top1OInterval.interval = res.data.interval
|
|
Top1OInterval.interval = res.data.interval
|
|
|
Top1OInterval_dest.Max = res.data.dest_Max
|
|
Top1OInterval_dest.Max = res.data.dest_Max
|
|
|
Top1OInterval_dest.interval = res.data.dest_interval
|
|
Top1OInterval_dest.interval = res.data.dest_interval
|
|
|
|
|
+ topdestinationinType.value = res.data.topdestinationinType
|
|
|
|
|
+ toporiginType.value = res.data.toporiginType
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
@@ -384,6 +388,7 @@ const ClickParams = (val: any) => {
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
|
reportList._reportRef = pie_chart_ETD.value[0].paramsdata.name
|
|
reportList._reportRef = pie_chart_ETD.value[0].paramsdata.name
|
|
|
reportList._reportRefe_date = currentDate.getMonth() + 1 + '/' + currentDate.getFullYear()
|
|
reportList._reportRefe_date = currentDate.getMonth() + 1 + '/' + currentDate.getFullYear()
|
|
|
|
|
+ reportList._reportType = 'r1'
|
|
|
reportList._reportRefb_date = currentDate.getMonth() + 3 + '/' + tenyear
|
|
reportList._reportRefb_date = currentDate.getMonth() + 3 + '/' + tenyear
|
|
|
sessionStorage.setItem('clickParams', JSON.stringify(res.data))
|
|
sessionStorage.setItem('clickParams', JSON.stringify(res.data))
|
|
|
sessionStorage.setItem('reportList', JSON.stringify(reportList))
|
|
sessionStorage.setItem('reportList', JSON.stringify(reportList))
|
|
@@ -406,6 +411,7 @@ const ClickParams = (val: any) => {
|
|
|
.then((res: any) => {
|
|
.then((res: any) => {
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
|
reportList._reportRef = pie_chart_pending_arrival.value[0].paramsdata.name
|
|
reportList._reportRef = pie_chart_pending_arrival.value[0].paramsdata.name
|
|
|
|
|
+ reportList._reportType = 'r3'
|
|
|
sessionStorage.setItem('clickParams', JSON.stringify(res.data))
|
|
sessionStorage.setItem('clickParams', JSON.stringify(res.data))
|
|
|
sessionStorage.setItem('reportList', JSON.stringify(reportList))
|
|
sessionStorage.setItem('reportList', JSON.stringify(reportList))
|
|
|
let obj: any = {}
|
|
let obj: any = {}
|
|
@@ -426,6 +432,7 @@ const ClickParams = (val: any) => {
|
|
|
})
|
|
})
|
|
|
.then((res: any) => {
|
|
.then((res: any) => {
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
|
|
|
+ reportList._reportType = 'r4'
|
|
|
reportList._reportRef = pie_chart_pending_departure.value[0].paramsdata.name
|
|
reportList._reportRef = pie_chart_pending_departure.value[0].paramsdata.name
|
|
|
sessionStorage.setItem('clickParams', JSON.stringify(res.data))
|
|
sessionStorage.setItem('clickParams', JSON.stringify(res.data))
|
|
|
sessionStorage.setItem('reportList', JSON.stringify(reportList))
|
|
sessionStorage.setItem('reportList', JSON.stringify(reportList))
|
|
@@ -448,6 +455,7 @@ const ClickParams = (val: any) => {
|
|
|
.then((res: any) => {
|
|
.then((res: any) => {
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
|
reportList._reportRef = pie_chart_kpi_departure.value[0].paramsdata.name
|
|
reportList._reportRef = pie_chart_kpi_departure.value[0].paramsdata.name
|
|
|
|
|
+ reportList._reportType = 'atd_r4'
|
|
|
sessionStorage.setItem('clickParams', JSON.stringify(res.data))
|
|
sessionStorage.setItem('clickParams', JSON.stringify(res.data))
|
|
|
sessionStorage.setItem('reportList', JSON.stringify(reportList))
|
|
sessionStorage.setItem('reportList', JSON.stringify(reportList))
|
|
|
let obj: any = {}
|
|
let obj: any = {}
|
|
@@ -469,6 +477,7 @@ const ClickParams = (val: any) => {
|
|
|
.then((res: any) => {
|
|
.then((res: any) => {
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
|
reportList._reportRef = pie_chart_kpi_arrival.value[0].paramsdata.name
|
|
reportList._reportRef = pie_chart_kpi_arrival.value[0].paramsdata.name
|
|
|
|
|
+ reportList._reportType = 'ata_r3'
|
|
|
sessionStorage.setItem('clickParams', JSON.stringify(res.data))
|
|
sessionStorage.setItem('clickParams', JSON.stringify(res.data))
|
|
|
sessionStorage.setItem('reportList', JSON.stringify(reportList))
|
|
sessionStorage.setItem('reportList', JSON.stringify(reportList))
|
|
|
let obj: any = {}
|
|
let obj: any = {}
|
|
@@ -483,22 +492,23 @@ const ClickParams = (val: any) => {
|
|
|
}
|
|
}
|
|
|
// Top10 origin点击跳转
|
|
// Top10 origin点击跳转
|
|
|
else if (val == 'Top 10 Origin') {
|
|
else if (val == 'Top 10 Origin') {
|
|
|
- let array: any = []
|
|
|
|
|
- array.push(seller_chart_top10_origin.value[0].paramsdata)
|
|
|
|
|
$api
|
|
$api
|
|
|
.ClickTop10({
|
|
.ClickTop10({
|
|
|
- _reportRef: array,
|
|
|
|
|
- _reportStationType: 'origin'
|
|
|
|
|
|
|
+ _reportRef: seller_chart_top10_origin.value[0].paramsdata,
|
|
|
|
|
+ _reportStationType: toporiginType.value,
|
|
|
|
|
+ _city_name: seller_chart_top10_origin.value[0].paramscityname
|
|
|
})
|
|
})
|
|
|
.then((res: any) => {
|
|
.then((res: any) => {
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
|
- reportList._reportRef = array
|
|
|
|
|
- reportList._reportStationType = 'origin'
|
|
|
|
|
|
|
+ reportList._reportRef = seller_chart_top10_origin.value[0].paramsdata
|
|
|
|
|
+ reportList._reportType = 'top'
|
|
|
|
|
+ reportList._reportStationType = toporiginType.value
|
|
|
|
|
+ reportList._city_name = seller_chart_top10_origin.value[0].paramscityname
|
|
|
sessionStorage.setItem('clickParams', JSON.stringify(res.data))
|
|
sessionStorage.setItem('clickParams', JSON.stringify(res.data))
|
|
|
sessionStorage.setItem('reportList', JSON.stringify(reportList))
|
|
sessionStorage.setItem('reportList', JSON.stringify(reportList))
|
|
|
let obj: any = {}
|
|
let obj: any = {}
|
|
|
obj.title = 'Top 10 Origin'
|
|
obj.title = 'Top 10 Origin'
|
|
|
- obj.data = seller_chart_top10_origin.value[0].paramsdata
|
|
|
|
|
|
|
+ obj.data = seller_chart_top10_origin.value[0].paramscityname
|
|
|
sessionStorage.setItem('tagsList', JSON.stringify(obj))
|
|
sessionStorage.setItem('tagsList', JSON.stringify(obj))
|
|
|
router.push({
|
|
router.push({
|
|
|
path: '/tracking'
|
|
path: '/tracking'
|
|
@@ -508,22 +518,23 @@ const ClickParams = (val: any) => {
|
|
|
}
|
|
}
|
|
|
// Top10 destination点击跳转
|
|
// Top10 destination点击跳转
|
|
|
else if (val == 'Top 10 Destination') {
|
|
else if (val == 'Top 10 Destination') {
|
|
|
- let array: any = []
|
|
|
|
|
- array.push(seller_chart_top10_destination.value[0].paramsdata)
|
|
|
|
|
$api
|
|
$api
|
|
|
.ClickTop10({
|
|
.ClickTop10({
|
|
|
- _reportRef: array,
|
|
|
|
|
- _reportStationType: 'agent'
|
|
|
|
|
|
|
+ _reportRef: seller_chart_top10_destination.value[0].paramsdata,
|
|
|
|
|
+ _reportStationType: topdestinationinType.value,
|
|
|
|
|
+ _city_name: seller_chart_top10_destination.value[0].paramscityname
|
|
|
})
|
|
})
|
|
|
.then((res: any) => {
|
|
.then((res: any) => {
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
|
- reportList._reportRef = array
|
|
|
|
|
- reportList._reportStationType = 'agent'
|
|
|
|
|
|
|
+ reportList._reportRef = seller_chart_top10_destination.value[0].paramsdata
|
|
|
|
|
+ reportList._reportStationType = topdestinationinType.value
|
|
|
|
|
+ reportList._reportType = 'top'
|
|
|
|
|
+ reportList._city_name = seller_chart_top10_destination.value[0].paramscityname
|
|
|
sessionStorage.setItem('clickParams', JSON.stringify(res.data))
|
|
sessionStorage.setItem('clickParams', JSON.stringify(res.data))
|
|
|
sessionStorage.setItem('reportList', JSON.stringify(reportList))
|
|
sessionStorage.setItem('reportList', JSON.stringify(reportList))
|
|
|
let obj: any = {}
|
|
let obj: any = {}
|
|
|
obj.title = 'Top 10 Destination'
|
|
obj.title = 'Top 10 Destination'
|
|
|
- obj.data = seller_chart_top10_destination.value[0].paramsdata
|
|
|
|
|
|
|
+ obj.data = seller_chart_top10_destination.value[0].paramscityname
|
|
|
sessionStorage.setItem('tagsList', JSON.stringify(obj))
|
|
sessionStorage.setItem('tagsList', JSON.stringify(obj))
|
|
|
router.push({
|
|
router.push({
|
|
|
path: '/tracking'
|
|
path: '/tracking'
|
|
@@ -544,6 +555,7 @@ const ClickParams = (val: any) => {
|
|
|
reportList._reportRef = seller_chart_CO2_origin.value[0].paramsdata.name
|
|
reportList._reportRef = seller_chart_CO2_origin.value[0].paramsdata.name
|
|
|
reportList._reportDataType = seller_chart_CO2_origin.value[0].paramsdata.type
|
|
reportList._reportDataType = seller_chart_CO2_origin.value[0].paramsdata.type
|
|
|
reportList._reportStationType = 'origin'
|
|
reportList._reportStationType = 'origin'
|
|
|
|
|
+ reportList._reportType = 'co2e'
|
|
|
sessionStorage.setItem('clickParams', JSON.stringify(res.data))
|
|
sessionStorage.setItem('clickParams', JSON.stringify(res.data))
|
|
|
sessionStorage.setItem('reportList', JSON.stringify(reportList))
|
|
sessionStorage.setItem('reportList', JSON.stringify(reportList))
|
|
|
let obj: any = {}
|
|
let obj: any = {}
|
|
@@ -568,6 +580,7 @@ const ClickParams = (val: any) => {
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
|
reportList._reportRef = seller_chart_CO2_destination.value[0].paramsdata.name
|
|
reportList._reportRef = seller_chart_CO2_destination.value[0].paramsdata.name
|
|
|
reportList._reportDataType = seller_chart_CO2_destination.value[0].paramsdata.type
|
|
reportList._reportDataType = seller_chart_CO2_destination.value[0].paramsdata.type
|
|
|
|
|
+ reportList._reportType = 'co2e'
|
|
|
reportList._reportStationType = 'agent'
|
|
reportList._reportStationType = 'agent'
|
|
|
sessionStorage.setItem('clickParams', JSON.stringify(res.data))
|
|
sessionStorage.setItem('clickParams', JSON.stringify(res.data))
|
|
|
sessionStorage.setItem('reportList', JSON.stringify(reportList))
|
|
sessionStorage.setItem('reportList', JSON.stringify(reportList))
|
|
@@ -630,7 +643,7 @@ const ClickParams = (val: any) => {
|
|
|
<el-button
|
|
<el-button
|
|
|
class="el-button--default"
|
|
class="el-button--default"
|
|
|
@click="SaveVisible = !SaveVisible"
|
|
@click="SaveVisible = !SaveVisible"
|
|
|
- @blur="SaveFilters"
|
|
|
|
|
|
|
+ @blur="SaveVisible = false"
|
|
|
>
|
|
>
|
|
|
<span class="iconfont_icon">
|
|
<span class="iconfont_icon">
|
|
|
<svg class="iconfont" aria-hidden="true">
|
|
<svg class="iconfont" aria-hidden="true">
|
|
@@ -704,7 +717,13 @@ const ClickParams = (val: any) => {
|
|
|
<!-- 图表 -->
|
|
<!-- 图表 -->
|
|
|
<div class="echarts">
|
|
<div class="echarts">
|
|
|
<VueDraggable
|
|
<VueDraggable
|
|
|
- style="display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px"
|
|
|
|
|
|
|
+ style="
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ flex-wrap: wrap;
|
|
|
|
|
+ justify-content: space-between;
|
|
|
|
|
+ gap: 8px;
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ "
|
|
|
ref="infoContentRef"
|
|
ref="infoContentRef"
|
|
|
ghost-class="ghost-class"
|
|
ghost-class="ghost-class"
|
|
|
:forceFallback="true"
|
|
:forceFallback="true"
|
|
@@ -1223,7 +1242,7 @@ const ClickParams = (val: any) => {
|
|
|
height: 32px;
|
|
height: 32px;
|
|
|
}
|
|
}
|
|
|
.echarts {
|
|
.echarts {
|
|
|
- padding: 0 24px;
|
|
|
|
|
|
|
+ padding: 0 22px;
|
|
|
}
|
|
}
|
|
|
.kpi {
|
|
.kpi {
|
|
|
width: 50%;
|
|
width: 50%;
|