develop #1

Merged
dashixiong merged 37 commits from develop into main 2026-02-11 02:07:35 +00:00
48 changed files with 15940 additions and 887 deletions
Showing only changes of commit fb8c8aab28 - Show all commits

View File

@ -80,7 +80,7 @@
enableScroll: true, enableScroll: true,
xAxis: { xAxis: {
scrollShow: true, scrollShow: true,
itemCount: 7, itemCount: 5,
disableGrid: true disableGrid: true
}, },
// update: true, // update: true,
@ -221,6 +221,13 @@
} }
}) })
}, },
handleDate(date) {
if (!date) return date
const time = new Date(date)
const month = time.getMonth() + 1,
day = time.getDate()
return `${month<10?'0'+month : month}/${day<10 ? '0'+day : day}`
},
getWeekChartData() { getWeekChartData() {
this.$refs.weekChartDateRangeSelect.showBtnLoading(true) this.$refs.weekChartDateRangeSelect.showBtnLoading(true)
getSevenChargeData({ getSevenChargeData({
@ -234,9 +241,9 @@
chargedCap = [], chargedCap = [],
disChargedCap = [] disChargedCap = []
data.forEach(item => { data.forEach(item => {
categories.push(item.ammeterDate || undefined) categories.push(this.handleDate(item.ammeterDate) || undefined)
chargedCap.push(item.chargedCap || undefined) chargedCap.push(item.chargedCap)
disChargedCap.push(item.disChargedCap || undefined) disChargedCap.push(item.disChargedCap)
}) })
this.weekChartData = JSON.parse(JSON.stringify({ this.weekChartData = JSON.parse(JSON.stringify({
categories, categories,