|
|
@@ -140,20 +140,14 @@ const GetETDEcharts = () => {
|
|
|
const currentDate = new Date()
|
|
|
let tenyear = currentDate.getFullYear()
|
|
|
let tenmonth = currentDate.getMonth() - 11
|
|
|
- let month = currentDate.getMonth() + 1
|
|
|
if (tenmonth < 0) {
|
|
|
tenyear -= 1
|
|
|
tenmonth += 11
|
|
|
}
|
|
|
$api
|
|
|
.GetETDEcharts({
|
|
|
- e_date:
|
|
|
- currentDate.getFullYear() +
|
|
|
- '-' +
|
|
|
- month +
|
|
|
- '-' +
|
|
|
- new Date(currentDate.getFullYear(), month, 0).getDate(),
|
|
|
- b_date: tenyear + '-' + tenmonth + '-01'
|
|
|
+ e_date: currentDate.getMonth() + 1 + '/' + currentDate.getFullYear(),
|
|
|
+ b_date: tenmonth + '/' + tenyear
|
|
|
})
|
|
|
.then((res: any) => {
|
|
|
if (res.code === 200) {
|
|
|
@@ -282,7 +276,6 @@ const GetContainerCountEcharts = (val: any) => {
|
|
|
const currentDate = new Date()
|
|
|
let tenyear = currentDate.getFullYear()
|
|
|
let tenmonth = currentDate.getMonth() - 11
|
|
|
- let month = currentDate.getMonth() + 1
|
|
|
if (tenmonth < 0) {
|
|
|
tenyear -= 1
|
|
|
tenmonth += 11
|
|
|
@@ -290,13 +283,8 @@ const GetContainerCountEcharts = (val: any) => {
|
|
|
containerType.value = []
|
|
|
$api
|
|
|
.GetContainerCountEcharts({
|
|
|
- e_date:
|
|
|
- currentDate.getFullYear() +
|
|
|
- '-' +
|
|
|
- month +
|
|
|
- '-' +
|
|
|
- new Date(currentDate.getFullYear(), month, 0).getDate(),
|
|
|
- b_date: tenyear + '-' + tenmonth + '-01',
|
|
|
+ e_date: currentDate.getMonth() + 1 + '/' + currentDate.getFullYear(),
|
|
|
+ b_date: tenmonth + '/' + tenyear,
|
|
|
...val
|
|
|
})
|
|
|
.then((res: any) => {
|