+
日
月
+
+
+
+
+
+
+
+
+
@@ -285,6 +307,7 @@ import TechyBox from './components/TechyBox.vue'
import TechyTable from './components/TechyTable.vue'
import TechyAnalysisBar from './components/TechyAnalysisBar.vue'
import TechyAnalysisHeader from './components/TechyAnalysisHeader.vue'
+import productionRateHeader from './components/productionRateHeader.vue'
// import FaultCategoryChart from './components/charts/FaultCategoryChart.vue'
import PlFaultAnalysisPieChart from './components/charts/PlFaultAnalysisPieChart.vue'
import { mapGetters } from 'vuex'
@@ -307,41 +330,46 @@ export default {
// FaultCategoryChart,
PlFaultAnalysisPieChart,
TechyBar,
- NewLineStack
+ NewLineStack,
+ productionRateHeader
},
data() {
const quexianDatalist = [
[
+ // 月a
+ { value: 5.21, name: '破片' },
+ { value: 3.2, name: '崩边' },
+ { value: 4.12, name: '脏污' },
+ { value: 2.61, name: '划擦伤' },
+ { value: 0.96, name: '崩孔' },
+ { value: 2.2, name: '其他' }
+ ],
+ [
+ // 月b
{ value: 4.34, name: '破片' },
{ value: 3.4, name: '崩边' },
{ value: 4.1, name: '脏污' },
{ value: 2.4, name: '划擦伤' },
- { value: 0.23, name: '崩孔' },
+ { value: 0.32, name: '崩孔' },
{ value: 2.14, name: '其他' }
],
[
- { value: 4.17, name: '破片' },
- { value: 3.6, name: '崩边' },
- { value: 4, name: '脏污' },
- { value: 2.2, name: '划擦伤' },
- { value: 0.2, name: '崩孔' },
- { value: 1.9, name: '其他' }
+ // 日a
+ { value: 184, name: '破片' },
+ { value: 110, name: '崩边' },
+ { value: 163, name: '脏污' },
+ { value: 96, name: '划擦伤' },
+ { value: 22, name: '崩孔' },
+ { value: 74, name: '其他' }
],
[
- { value: 3.33, name: '破片' },
- { value: 3, name: '崩边' },
- { value: 4.3, name: '脏污' },
- { value: 2.1, name: '划擦伤' },
- { value: 1, name: '崩孔' },
- { value: 1.8, name: '其他' }
- ],
- [
- { value: 2.7, name: '破片' },
- { value: 1.56, name: '崩边' },
- { value: 2.3, name: '脏污' },
- { value: 1.2, name: '划擦伤' },
- { value: 0.23, name: '崩孔' },
- { value: 2, name: '其他' }
+ // 日b
+ { value: 172, name: '破片' },
+ { value: 122, name: '崩边' },
+ { value: 162, name: '脏污' },
+ { value: 82, name: '划擦伤' },
+ { value: 15, name: '崩孔' },
+ { value: 74, name: '其他' }
]
]
@@ -349,7 +377,7 @@ export default {
dataUpdateToken: 'xx-token',
plMode: 'a',
dateMode: 'month',
- dateMode2: 'month',
+ dateMode2: 'day',
qualityTableProps,
qualityDatalist,
qualityExceptionDatalist,
@@ -407,7 +435,10 @@ export default {
}
},
computed: {
- ...mapGetters(['sidebar'])
+ ...mapGetters(['sidebar']),
+ unit() {
+ return this.dateMode === 'month' ? '单位: 千片' : '单位: 片'
+ }
},
methods: {
changeFullScreen() {
@@ -419,29 +450,39 @@ export default {
return false
}
screenfull.toggle(this.$refs['cockpit-container-quality'])
+ },
+ getFaultDataList() {
+ const { dateMode, plMode, quexianDatalist } = this
+ if (dateMode === 'month' && plMode === 'a') return quexianDatalist[0]
+ else if (dateMode === 'month' && plMode === 'b') return quexianDatalist[1]
+ else if (dateMode === 'day' && plMode === 'a') return quexianDatalist[2]
+ else if (dateMode === 'day' && plMode === 'b') return quexianDatalist[3]
}
}
}
diff --git a/src/views/QualityManager/components/TechyAnalysisHeader.vue b/src/views/QualityManager/components/TechyAnalysisHeader.vue
index 8b2eb85..da99412 100644
--- a/src/views/QualityManager/components/TechyAnalysisHeader.vue
+++ b/src/views/QualityManager/components/TechyAnalysisHeader.vue
@@ -1,119 +1,125 @@