+
@@ -30,6 +30,7 @@ export default {
return false
}
this.updateChart()
+ this.$emit('emitFun')
}
}
},
@@ -51,9 +52,11 @@ export default {
let outputNum = []
let passRate = []
this.productline && this.productline.length > 0 && this.productline.map(item => {
- xData.push(item.lineName)
- outputNum.push(item.outputNum)
- passRate.push(item.passRate?item.passRate*100:null)
+ if ((item.lineName).includes('D')) {
+ xData.push(item.lineName)
+ outputNum.push(item.outputNum)
+ passRate.push(item.passRate?item.passRate*100:null)
+ }
})
if (
this.chart !== null &&
@@ -64,7 +67,7 @@ export default {
}
this.chart = echarts.init(document.getElementById('numRateChart'));
var option = {
- grid: { top: 82, right: 60, bottom: 20, left: 60 },
+ grid: { top: 82, right: 60, bottom: 20, left: 90 },
tooltip: {
trigger: "axis",
axisPointer: {
@@ -145,7 +148,6 @@ export default {
color: "#fff",
fontSize: 12,
formatter: () =>{
- console.log(value)
return value ? '{value} %': '-'
}
},
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 @@