数据总览页面修改2

This commit is contained in:
zzyuan 2025-06-23 16:41:06 +08:00
parent a664075dc1
commit cd1e57cba4
1 changed files with 10 additions and 0 deletions

View File

@ -198,6 +198,7 @@ export default {
},
InitEChartsOne() {
console.log(this.dateRange1)
console.log(this.formatDate(this.dateRange1[0]))
var chartData=[]
// getProportionOfOrderTypesApi({type:this.type3}).then((response) => {
// 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>