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..bbcac2f9 100644
--- a/src/views/databoard/components/NumRateChart.vue
+++ b/src/views/databoard/components/NumRateChart.vue
@@ -30,6 +30,7 @@ export default {
return false
}
this.updateChart()
+ this.$emit('emitFun')
}
}
},
diff --git a/src/views/databoard/components/TimePrompt.vue b/src/views/databoard/components/TimePrompt.vue
new file mode 100644
index 00000000..23a0a6af
--- /dev/null
+++ b/src/views/databoard/components/TimePrompt.vue
@@ -0,0 +1,75 @@
+
+
+ {{timestr}}
+
+
+
+
+
+
diff --git a/src/views/databoard/components/YieldRateChart.vue b/src/views/databoard/components/YieldRateChart.vue
index a445c1db..26bf50df 100644
--- a/src/views/databoard/components/YieldRateChart.vue
+++ b/src/views/databoard/components/YieldRateChart.vue
@@ -5,7 +5,6 @@
\ No newline at end of file
+
+
\ No newline at end of file
diff --git a/src/views/databoard/deepProcessing/EnergyMonitoring.vue b/src/views/databoard/deepProcessing/EnergyMonitoring.vue
index 1a73b90c..8719306a 100644
--- a/src/views/databoard/deepProcessing/EnergyMonitoring.vue
+++ b/src/views/databoard/deepProcessing/EnergyMonitoring.vue
@@ -1,25 +1,41 @@
+
-
+
\ No newline at end of file
diff --git a/src/views/databoard/deepProcessing/NumRate.vue b/src/views/databoard/deepProcessing/NumRate.vue
index ce0f7282..ef3a4cc9 100644
--- a/src/views/databoard/deepProcessing/NumRate.vue
+++ b/src/views/databoard/deepProcessing/NumRate.vue
@@ -1,25 +1,41 @@
+
-
+
\ No newline at end of file
diff --git a/src/views/databoard/kiln/EnergeCost.vue b/src/views/databoard/kiln/EnergeCost.vue
index 719c962c..c1a277c7 100644
--- a/src/views/databoard/kiln/EnergeCost.vue
+++ b/src/views/databoard/kiln/EnergeCost.vue
@@ -7,6 +7,7 @@
+
@@ -35,7 +36,7 @@
-
+
@@ -49,6 +50,8 @@ import SplitLine from '../components/line';
import EnergeTop from './EnergeTop';
import GasChart from '../components/GasChart.vue';
import SelectorBtnGroup from '../components/SelectorBtnGroup';
+import TimePrompt from '../components/TimePrompt';
+import { switchShowTime } from '../utils'
export default {
name: 'EnergeCost',
components: {
@@ -58,14 +61,19 @@ export default {
EnergeTop,
GasChart,
SelectorBtnGroup,
+ TimePrompt
},
props: {},
data() {
return {
chartType:'电耗能',
- chartTime:'周'
+ chartTime:'周',
+ timestr: ''
};
},
+ mounted() {
+ this.timestr = switchShowTime(this.chartTime)
+ },
computed: {
gasInfoMsg() {
return this.$store.state.websocket.gasInfo
@@ -74,37 +82,27 @@ export default {
methods: {
// 切换能源
toggleType(val) {
- console.log('能源' + val)
this.chartType = val
- // if (val === '天然气I' || val === '天然气II') {
- // if (this.chartTime === '周') {
- // this.chartType = val
- // } else {
- // this.$message.warning('暂无数据')
- // }
- // }else {
- // this.chartType = val
- // }
},
// 切换时间
toggleDate(val) {
- console.log('时间' + val)
this.chartTime = val
- // if (val === '月' || val === '年') {
- // if (this.chartType === '电耗能') {
- // this.chartTime = val
- // } else {
- // this.$message.warning('暂无数据')
- // }
- // }else{
- // this.chartTime = val
- // }
- }
+ this.timestr = switchShowTime(val)
+ },
+ // 数据更新
+ dateUpdate() {
+ this.timestr = switchShowTime(this.chartTime)
+ }
},
};
\ No newline at end of file
diff --git a/src/views/databoard/wholePlant/DefectStatistics.vue b/src/views/databoard/wholePlant/DefectStatistics.vue
index cc96c75c..75419374 100644
--- a/src/views/databoard/wholePlant/DefectStatistics.vue
+++ b/src/views/databoard/wholePlant/DefectStatistics.vue
@@ -1,38 +1,54 @@
\ No newline at end of file
diff --git a/src/views/databoard/wholePlant/OrderStatus.vue b/src/views/databoard/wholePlant/OrderStatus.vue
index 945b7d60..24eae6ad 100644
--- a/src/views/databoard/wholePlant/OrderStatus.vue
+++ b/src/views/databoard/wholePlant/OrderStatus.vue
@@ -1,6 +1,7 @@
+
@@ -9,10 +10,12 @@
\ No newline at end of file
+
+
\ No newline at end of file
diff --git a/src/views/databoard/wholePlant/YieldRate.vue b/src/views/databoard/wholePlant/YieldRate.vue
index 521e5875..fcf68e55 100644
--- a/src/views/databoard/wholePlant/YieldRate.vue
+++ b/src/views/databoard/wholePlant/YieldRate.vue
@@ -1,5 +1,6 @@
+
@@ -22,7 +23,7 @@
-
+
@@ -33,10 +34,12 @@ import ScrollBoard from '../components/ScrollBoard'
import KilnLine from '../components/line'
import Switcher from '../components/Switcher'
import SelectorBtnGroup from '../components/SelectorBtnGroup';
-import YieldRateChart from '../components/YieldRateChart'
+import YieldRateChart from '../components/YieldRateChart';
+import TimePrompt from '../components/TimePrompt';
+import { switchShowTime } from '../utils';
export default {
name: 'YieldRate',
- components: { Container, ScrollBoard, KilnLine, Switcher, SelectorBtnGroup, YieldRateChart },
+ components: { Container, ScrollBoard, KilnLine, Switcher, SelectorBtnGroup, YieldRateChart, TimePrompt },
computed: {
yieldRateTable() {
return this.$store.state.websocket.yieldRateTable
@@ -55,7 +58,8 @@ export default {
rowNum: 5
},
chartType:false,
- chartTime: "日"
+ chartTime: "日",
+ timestr: ""
}
},
watch:{
@@ -73,6 +77,9 @@ export default {
}
}
},
+ mounted() {
+ this.timestr = switchShowTime(this.chartTime)
+ },
methods: {
changeType(val) {
this.chartType = val
@@ -80,11 +87,21 @@ export default {
// 切换时间
toggleDate(val) {
this.chartTime = val
- }
+ this.timestr = switchShowTime(this.chartTime)
+ },
+ // 数据更新
+ dateUpdate() {
+ this.timestr = switchShowTime(this.chartTime)
+ }
}
}