|
@@ -356,8 +356,10 @@ const ClickParams = (val: any) => {
|
|
|
} else {
|
|
} else {
|
|
|
tenyear = currentDate.getFullYear()
|
|
tenyear = currentDate.getFullYear()
|
|
|
}
|
|
}
|
|
|
|
|
+ const reportList: any = {}
|
|
|
// ETD to ETA(DAYS)点击跳转
|
|
// ETD to ETA(DAYS)点击跳转
|
|
|
if (val == 'ETD to ETA (Days)') {
|
|
if (val == 'ETD to ETA (Days)') {
|
|
|
|
|
+ console.log(pie_chart_ETD.value)
|
|
|
$api
|
|
$api
|
|
|
.ClickEtdToEta({
|
|
.ClickEtdToEta({
|
|
|
_reportRef: pie_chart_ETD.value[0].paramsdata.name,
|
|
_reportRef: pie_chart_ETD.value[0].paramsdata.name,
|
|
@@ -366,7 +368,11 @@ const ClickParams = (val: any) => {
|
|
|
})
|
|
})
|
|
|
.then((res: any) => {
|
|
.then((res: any) => {
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
|
|
|
+ reportList._reportRef = pie_chart_ETD.value[0].paramsdata.name
|
|
|
|
|
+ reportList._reportRefe_date = currentDate.getMonth() + 1 + '/' + currentDate.getFullYear()
|
|
|
|
|
+ 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))
|
|
|
let obj: any = {}
|
|
let obj: any = {}
|
|
|
obj.title = 'ETD to ETA (Days)'
|
|
obj.title = 'ETD to ETA (Days)'
|
|
|
obj.data = pie_chart_ETD.value[0].paramsdata.name
|
|
obj.data = pie_chart_ETD.value[0].paramsdata.name
|
|
@@ -385,7 +391,9 @@ 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
|
|
|
sessionStorage.setItem('clickParams', JSON.stringify(res.data))
|
|
sessionStorage.setItem('clickParams', JSON.stringify(res.data))
|
|
|
|
|
+ sessionStorage.setItem('reportList', JSON.stringify(reportList))
|
|
|
let obj: any = {}
|
|
let obj: any = {}
|
|
|
obj.title = 'Pending Arrival'
|
|
obj.title = 'Pending Arrival'
|
|
|
obj.data = pie_chart_pending_arrival.value[0].paramsdata.name
|
|
obj.data = pie_chart_pending_arrival.value[0].paramsdata.name
|
|
@@ -404,7 +412,9 @@ const ClickParams = (val: any) => {
|
|
|
})
|
|
})
|
|
|
.then((res: any) => {
|
|
.then((res: any) => {
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
|
|
|
+ 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))
|
|
|
let obj: any = {}
|
|
let obj: any = {}
|
|
|
obj.title = 'Pending Departure'
|
|
obj.title = 'Pending Departure'
|
|
|
obj.data = pie_chart_pending_departure.value[0].paramsdata.name
|
|
obj.data = pie_chart_pending_departure.value[0].paramsdata.name
|
|
@@ -417,13 +427,16 @@ const ClickParams = (val: any) => {
|
|
|
}
|
|
}
|
|
|
// KPIDeparture点击跳转
|
|
// KPIDeparture点击跳转
|
|
|
else if (val == 'KPI0') {
|
|
else if (val == 'KPI0') {
|
|
|
|
|
+ console.log(pie_chart_kpi_departure.value)
|
|
|
$api
|
|
$api
|
|
|
.ClickKPIDeparture({
|
|
.ClickKPIDeparture({
|
|
|
_reportRef: pie_chart_kpi_departure.value[0].paramsdata.name
|
|
_reportRef: pie_chart_kpi_departure.value[0].paramsdata.name
|
|
|
})
|
|
})
|
|
|
.then((res: any) => {
|
|
.then((res: any) => {
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
|
|
|
+ reportList._reportRef = pie_chart_kpi_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))
|
|
|
let obj: any = {}
|
|
let obj: any = {}
|
|
|
obj.title = 'KPI Departure'
|
|
obj.title = 'KPI Departure'
|
|
|
obj.data = pie_chart_kpi_departure.value[0].paramsdata.name
|
|
obj.data = pie_chart_kpi_departure.value[0].paramsdata.name
|
|
@@ -442,7 +455,9 @@ 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
|
|
|
sessionStorage.setItem('clickParams', JSON.stringify(res.data))
|
|
sessionStorage.setItem('clickParams', JSON.stringify(res.data))
|
|
|
|
|
+ sessionStorage.setItem('reportList', JSON.stringify(reportList))
|
|
|
let obj: any = {}
|
|
let obj: any = {}
|
|
|
obj.title = 'KPI Arrival'
|
|
obj.title = 'KPI Arrival'
|
|
|
obj.data = pie_chart_kpi_arrival.value[0].paramsdata.name
|
|
obj.data = pie_chart_kpi_arrival.value[0].paramsdata.name
|
|
@@ -465,7 +480,10 @@ const ClickParams = (val: any) => {
|
|
|
})
|
|
})
|
|
|
.then((res: any) => {
|
|
.then((res: any) => {
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
|
|
|
+ reportList._reportRef = array
|
|
|
|
|
+ reportList._reportStationType = 'origin'
|
|
|
sessionStorage.setItem('clickParams', JSON.stringify(res.data))
|
|
sessionStorage.setItem('clickParams', JSON.stringify(res.data))
|
|
|
|
|
+ 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].paramsdata
|
|
@@ -488,7 +506,10 @@ const ClickParams = (val: any) => {
|
|
|
})
|
|
})
|
|
|
.then((res: any) => {
|
|
.then((res: any) => {
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
|
|
|
+ reportList._reportRef = array
|
|
|
|
|
+ reportList._reportStationType = 'agent'
|
|
|
sessionStorage.setItem('clickParams', JSON.stringify(res.data))
|
|
sessionStorage.setItem('clickParams', JSON.stringify(res.data))
|
|
|
|
|
+ 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].paramsdata
|
|
@@ -509,7 +530,11 @@ const ClickParams = (val: any) => {
|
|
|
})
|
|
})
|
|
|
.then((res: any) => {
|
|
.then((res: any) => {
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
|
|
|
+ reportList._reportRef = seller_chart_CO2_origin.value[0].paramsdata.name
|
|
|
|
|
+ reportList._reportDataType = seller_chart_CO2_origin.value[0].paramsdata.type
|
|
|
|
|
+ reportList._reportStationType = 'origin'
|
|
|
sessionStorage.setItem('clickParams', JSON.stringify(res.data))
|
|
sessionStorage.setItem('clickParams', JSON.stringify(res.data))
|
|
|
|
|
+ sessionStorage.setItem('reportList', JSON.stringify(reportList))
|
|
|
let obj: any = {}
|
|
let obj: any = {}
|
|
|
obj.title = 'CO2e Emission by Origin (Top 10)'
|
|
obj.title = 'CO2e Emission by Origin (Top 10)'
|
|
|
obj.data = seller_chart_CO2_origin.value[0].paramsdata.name
|
|
obj.data = seller_chart_CO2_origin.value[0].paramsdata.name
|
|
@@ -526,11 +551,15 @@ const ClickParams = (val: any) => {
|
|
|
.ClickCO2({
|
|
.ClickCO2({
|
|
|
_reportRef: seller_chart_CO2_destination.value[0].paramsdata.name,
|
|
_reportRef: seller_chart_CO2_destination.value[0].paramsdata.name,
|
|
|
_reportDataType: seller_chart_CO2_destination.value[0].paramsdata.type,
|
|
_reportDataType: seller_chart_CO2_destination.value[0].paramsdata.type,
|
|
|
- _reportStationType: 'origin'
|
|
|
|
|
|
|
+ _reportStationType: 'agent'
|
|
|
})
|
|
})
|
|
|
.then((res: any) => {
|
|
.then((res: any) => {
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
|
|
|
+ reportList._reportRef = seller_chart_CO2_destination.value[0].paramsdata.name
|
|
|
|
|
+ reportList._reportDataType = seller_chart_CO2_destination.value[0].paramsdata.type
|
|
|
|
|
+ reportList._reportStationType = 'agent'
|
|
|
sessionStorage.setItem('clickParams', JSON.stringify(res.data))
|
|
sessionStorage.setItem('clickParams', JSON.stringify(res.data))
|
|
|
|
|
+ sessionStorage.setItem('reportList', JSON.stringify(reportList))
|
|
|
let obj: any = {}
|
|
let obj: any = {}
|
|
|
obj.title = 'CO2e Emission by Destination (Top 10)'
|
|
obj.title = 'CO2e Emission by Destination (Top 10)'
|
|
|
obj.data = seller_chart_CO2_destination.value[0].paramsdata.name
|
|
obj.data = seller_chart_CO2_destination.value[0].paramsdata.name
|