diff --git a/src/assets/icons/svg/arrow.svg b/src/assets/icons/svg/arrow.svg new file mode 100644 index 00000000..9dbfba26 --- /dev/null +++ b/src/assets/icons/svg/arrow.svg @@ -0,0 +1,14 @@ + + + 编组 13 + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/databoard/assets/head.png b/src/views/databoard/assets/head.png index 6c189973..a275c1f5 100644 Binary files a/src/views/databoard/assets/head.png and b/src/views/databoard/assets/head.png differ diff --git a/src/views/databoard/components/DefectChart.vue b/src/views/databoard/components/DefectChart.vue index 15998096..c66fd6e0 100644 --- a/src/views/databoard/components/DefectChart.vue +++ b/src/views/databoard/components/DefectChart.vue @@ -1,7 +1,7 @@ + + diff --git a/src/views/databoard/components/EnergeMonitoringChart.vue b/src/views/databoard/components/EnergeMonitoringChart.vue index 6f7f5b39..b4f99906 100644 --- a/src/views/databoard/components/EnergeMonitoringChart.vue +++ b/src/views/databoard/components/EnergeMonitoringChart.vue @@ -30,6 +30,7 @@ export default { return false } this.updateChart() + this.$emit('emitFun') } } }, diff --git a/src/views/databoard/components/FlueGasChart.vue b/src/views/databoard/components/FlueGasChart.vue index 1307c544..d0c6a623 100644 --- a/src/views/databoard/components/FlueGasChart.vue +++ b/src/views/databoard/components/FlueGasChart.vue @@ -53,6 +53,7 @@ export default { handler(newVal, oldVal) { if (this.chartTime === '日') { this.updateChart() + this.$emit('emitFun') } } }, @@ -60,6 +61,7 @@ export default { handler(newVal, oldVal) { if (this.chartTime === '周') { this.updateChart() + this.$emit('emitFun') } } }, @@ -67,6 +69,7 @@ export default { handler(newVal, oldVal) { if (this.chartTime === '月') { this.updateChart() + this.$emit('emitFun') } } }, @@ -74,6 +77,7 @@ export default { handler(newVal, oldVal) { if (this.chartTime === '年') { this.updateChart() + this.$emit('emitFun') } } }, diff --git a/src/views/databoard/components/GasChart.vue b/src/views/databoard/components/GasChart.vue index 91d48299..a808d48b 100644 --- a/src/views/databoard/components/GasChart.vue +++ b/src/views/databoard/components/GasChart.vue @@ -53,6 +53,7 @@ export default { handler(newVal, oldVal) { if (this.chartTime === '周' && this.chartType === '电耗能') { this.updateChart() + this.$emit('emitFun') } } }, @@ -60,6 +61,7 @@ export default { handler(newVal, oldVal) { if (this.chartTime === '月' && this.chartType === '电耗能') { this.updateChart() + this.$emit('emitFun') } } }, @@ -67,6 +69,7 @@ export default { handler(newVal, oldVal) { if (this.chartTime === '年' && this.chartType === '电耗能') { this.updateChart() + this.$emit('emitFun') } } }, @@ -74,6 +77,7 @@ export default { handler(newVal, oldVal) { if (this.chartType === '天然气I' || this.chartType === '天然气II') { this.updateChart() + this.$emit('emitFun') } } }, @@ -242,7 +246,7 @@ export default { .map((_, index) => { const today = new Date(); const dtimestamp = today - (index+1) * 24 * 60 * 60 * 1000; - return `${new Date(dtimestamp).getMonth() + 1}.${new Date( + return `${currentMonth < 10?'0'+currentMonth:currentMonth }.${new Date( dtimestamp ).getDate()}`;}).reverse() }else if (this.chartTime == "月") { @@ -259,7 +263,7 @@ export default { return Array(12) .fill(1) .map((_, index) => { - return `${currentYear}.${12 - index}`;}).reverse() + return `${12 - index}`;}).reverse() } }, isLeapYear(year) { diff --git a/src/views/databoard/components/Header.vue b/src/views/databoard/components/Header.vue index 3312fc46..d3c970d7 100644 --- a/src/views/databoard/components/Header.vue +++ b/src/views/databoard/components/Header.vue @@ -80,7 +80,7 @@ export default { .datetime { position: absolute; top: 45px; - right: 240px; + right: 425px; color: #fff; font-size: 20px; letter-spacing: 1px; diff --git a/src/views/databoard/components/ISRAChart.vue b/src/views/databoard/components/ISRAChart.vue index 9eb2d4db..7f85b807 100644 --- a/src/views/databoard/components/ISRAChart.vue +++ b/src/views/databoard/components/ISRAChart.vue @@ -35,6 +35,7 @@ export default { handler(newVal, oldVal) { this.chartData = newVal || [] this.updateChart() + this.$emit('emitFun') } } }, diff --git a/src/views/databoard/components/NumRateChart.vue b/src/views/databoard/components/NumRateChart.vue index 1bd7a96c..a9eaa9d5 100644 --- a/src/views/databoard/components/NumRateChart.vue +++ b/src/views/databoard/components/NumRateChart.vue @@ -1,5 +1,5 @@