数据总览页面修改2
This commit is contained in:
parent
a664075dc1
commit
cd1e57cba4
|
|
@ -198,6 +198,7 @@ export default {
|
||||||
},
|
},
|
||||||
InitEChartsOne() {
|
InitEChartsOne() {
|
||||||
console.log(this.dateRange1)
|
console.log(this.dateRange1)
|
||||||
|
console.log(this.formatDate(this.dateRange1[0]))
|
||||||
var chartData=[]
|
var chartData=[]
|
||||||
// getProportionOfOrderTypesApi({type:this.type3}).then((response) => {
|
// getProportionOfOrderTypesApi({type:this.type3}).then((response) => {
|
||||||
// chartData = response.data;
|
// chartData = response.data;
|
||||||
|
|
@ -1105,6 +1106,15 @@ export default {
|
||||||
// });
|
// });
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
//日期
|
||||||
|
formatDate(date) {
|
||||||
|
// 格式化为 YYYY-MM-DD
|
||||||
|
const year = date.getFullYear();
|
||||||
|
const month = String(date.getMonth() + 1).padStart(2, '0'); // 月份从0开始
|
||||||
|
const day = String(date.getDate()).padStart(2, '0');
|
||||||
|
return `${year}-${month}-${day}`;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue