|
@@ -124,16 +124,16 @@ const ETDobj = reactive({
|
|
|
})
|
|
})
|
|
|
const GetETDEcharts = () => {
|
|
const GetETDEcharts = () => {
|
|
|
const currentDate = new Date()
|
|
const currentDate = new Date()
|
|
|
- let tenyear: any = 0
|
|
|
|
|
- if (currentDate.getMonth() - 11 < 0) {
|
|
|
|
|
- tenyear = currentDate.getFullYear() - 1
|
|
|
|
|
- } else {
|
|
|
|
|
- tenyear = currentDate.getFullYear()
|
|
|
|
|
|
|
+ let tenyear = currentDate.getFullYear()
|
|
|
|
|
+ let tenmonth = currentDate.getMonth() - 11
|
|
|
|
|
+ if (tenmonth < 0) {
|
|
|
|
|
+ tenyear -= 1
|
|
|
|
|
+ tenmonth += 11
|
|
|
}
|
|
}
|
|
|
$api
|
|
$api
|
|
|
.GetETDEcharts({
|
|
.GetETDEcharts({
|
|
|
b_date: currentDate.getMonth() + 1 + '/' + currentDate.getFullYear(),
|
|
b_date: currentDate.getMonth() + 1 + '/' + currentDate.getFullYear(),
|
|
|
- e_date: currentDate.getMonth() + 3 + '/' + tenyear
|
|
|
|
|
|
|
+ e_date: tenmonth + '/' + tenyear
|
|
|
})
|
|
})
|
|
|
.then((res: any) => {
|
|
.then((res: any) => {
|
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
@@ -240,17 +240,17 @@ const containerObj = reactive({
|
|
|
const containerType = ref([])
|
|
const containerType = ref([])
|
|
|
const GetContainerCountEcharts = (val: any) => {
|
|
const GetContainerCountEcharts = (val: any) => {
|
|
|
const currentDate = new Date()
|
|
const currentDate = new Date()
|
|
|
- let tenyear: any = 0
|
|
|
|
|
- if (currentDate.getMonth() - 11 < 0) {
|
|
|
|
|
- tenyear = currentDate.getFullYear() - 1
|
|
|
|
|
- } else {
|
|
|
|
|
- tenyear = currentDate.getFullYear()
|
|
|
|
|
|
|
+ let tenyear = currentDate.getFullYear()
|
|
|
|
|
+ let tenmonth = currentDate.getMonth() - 11
|
|
|
|
|
+ if (tenmonth < 0) {
|
|
|
|
|
+ tenyear -= 1
|
|
|
|
|
+ tenmonth += 11
|
|
|
}
|
|
}
|
|
|
containerType.value = []
|
|
containerType.value = []
|
|
|
$api
|
|
$api
|
|
|
.GetContainerCountEcharts({
|
|
.GetContainerCountEcharts({
|
|
|
b_date: currentDate.getMonth() + 1 + '/' + currentDate.getFullYear(),
|
|
b_date: currentDate.getMonth() + 1 + '/' + currentDate.getFullYear(),
|
|
|
- e_date: currentDate.getMonth() + 3 + '/' + tenyear,
|
|
|
|
|
|
|
+ e_date: tenmonth + '/' + tenyear,
|
|
|
...val
|
|
...val
|
|
|
})
|
|
})
|
|
|
.then((res: any) => {
|
|
.then((res: any) => {
|
|
@@ -418,11 +418,11 @@ const seller_chart_CO2_origin = ref()
|
|
|
const seller_chart_CO2_destination = ref()
|
|
const seller_chart_CO2_destination = ref()
|
|
|
const ClickParams = (val: any) => {
|
|
const ClickParams = (val: any) => {
|
|
|
const currentDate = new Date()
|
|
const currentDate = new Date()
|
|
|
- let tenyear: any = 0
|
|
|
|
|
- if (currentDate.getMonth() - 11 < 0) {
|
|
|
|
|
- tenyear = currentDate.getFullYear() - 1
|
|
|
|
|
- } else {
|
|
|
|
|
- tenyear = currentDate.getFullYear()
|
|
|
|
|
|
|
+ let tenyear = currentDate.getFullYear()
|
|
|
|
|
+ let tenmonth = currentDate.getMonth() - 11
|
|
|
|
|
+ if (tenmonth < 0) {
|
|
|
|
|
+ tenyear -= 1
|
|
|
|
|
+ tenmonth += 11
|
|
|
}
|
|
}
|
|
|
const reportList: any = {}
|
|
const reportList: any = {}
|
|
|
// ETD to ETA(DAYS)点击跳转
|
|
// ETD to ETA(DAYS)点击跳转
|
|
@@ -431,14 +431,14 @@ const ClickParams = (val: any) => {
|
|
|
.ClickEtdToEta({
|
|
.ClickEtdToEta({
|
|
|
_reportRef: pie_chart_ETD.value[0].paramsdata.name,
|
|
_reportRef: pie_chart_ETD.value[0].paramsdata.name,
|
|
|
_reportRefe_date: currentDate.getMonth() + 1 + '/' + currentDate.getFullYear(),
|
|
_reportRefe_date: currentDate.getMonth() + 1 + '/' + currentDate.getFullYear(),
|
|
|
- _reportRefb_date: currentDate.getMonth() + 3 + '/' + tenyear
|
|
|
|
|
|
|
+ _reportRefb_date: tenmonth + '/' + tenyear
|
|
|
})
|
|
})
|
|
|
.then((res: any) => {
|
|
.then((res: 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._reportType = 'r1'
|
|
|
- reportList._reportRefb_date = currentDate.getMonth() + 3 + '/' + tenyear
|
|
|
|
|
|
|
+ reportList._reportRefb_date = tenmonth + '/' + 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))
|
|
|
let obj: any = {}
|
|
let obj: any = {}
|