diff --git a/src/router/index.js b/src/router/index.js index 2c802762..51a6fd06 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -717,6 +717,11 @@ const routes2 = [ name: '质量管理_数据中心', component: resolve => require(['@/views/projectFront/quality/recordsCenter.vue'], resolve) }, + { + path: '/project/quality/qualityProblem', //质量管理 -- 质量问题库配置 + name: '质量管理_质量问题库配置', + component: resolve => require(['@/views/projectFront/quality/qualityProblem.vue'], resolve) + }, //标养室 { diff --git a/src/views/projectAdmin/fourEngin/quality/index.vue b/src/views/projectAdmin/fourEngin/quality/index.vue index d0adc0ee..8835c2da 100644 --- a/src/views/projectAdmin/fourEngin/quality/index.vue +++ b/src/views/projectAdmin/fourEngin/quality/index.vue @@ -3,7 +3,7 @@
-
+
diff --git a/src/views/projectAdmin/fourEngin/quality/leftMiddle.vue b/src/views/projectAdmin/fourEngin/quality/leftMiddle.vue index 2b3c9aca..4cd1a07a 100644 --- a/src/views/projectAdmin/fourEngin/quality/leftMiddle.vue +++ b/src/views/projectAdmin/fourEngin/quality/leftMiddle.vue @@ -5,21 +5,21 @@
室内温度
-
{{ currentData.temperature }}
+
{{ currentData.temperature||0 }}
室内湿度
-
{{ currentData.humidity }}%RH
+
{{ currentData.humidity||0 }}%RH
喷淋温度
-
{{ currentData.currentDayAlarmNum }}
+
{{ currentData.currentDayAlarmNum||0}}
远程验收
@@ -53,6 +53,7 @@ export default { this.searchSn = this.$store.state.projectSn; this.$nextTick(() => { this.getDevList(); + this.getRealTimeData() }); } else { this.initData(); @@ -65,7 +66,7 @@ export default { projectSn: this.searchSn, devSn: this.devSn, }).then((res) => { - console.log('标养室数据',res); + console.log('标养室数据------',res); this.currentData = res.result.currentData; }); }, diff --git a/src/views/projectAdmin/fourEngin/quality/leftTop.vue b/src/views/projectAdmin/fourEngin/quality/leftTop.vue index ad7d8f9f..4c2268d0 100644 --- a/src/views/projectAdmin/fourEngin/quality/leftTop.vue +++ b/src/views/projectAdmin/fourEngin/quality/leftTop.vue @@ -4,62 +4,62 @@
- 已处理 + 已闭合 占比
- {{list.disposeNum}} - {{list.disposeNumRatio}}% + {{list.allClose}} + {{list.allCloseRatio}}%
- 未处理 + 未闭合 占比
- {{list.noDisposeNum}} - {{list.noDisposeNumRatio}}% + {{list.allNoClose}} + {{list.allNoCloseRatio}}%
- 已巡检 + 已闭合 占比
- {{list.pollingNum}} - {{list.pollingNumRatio}}% + {{list.todayClose}} + {{list.todayCloseRatio}}%
- 未巡检 + 未闭合 占比
- {{list.noPollingNum}} - {{list.noPollingNumRatio}}% + {{list.todayNoClose}} + {{list.todayNoCloseRatio}}%
@@ -76,16 +76,16 @@ export default { data(){ return{ list:{ - pollingNumRatio: 0, - disposeNum: 0, - noDisposeNum: 0, - disposeTotal: 0, - disposeNumRatio: 0, - pollingNum: 0, - noPollingNum: 0, - noPollingNumRatio: 0, - noDisposeNumRatio: 0, - pollingTotal: 0 + allClose:0,//检查已闭合 + allNoClose:0,//检查未闭合 + allCloseRatio:0,//以闭合占比 + allNoCloseRatio:0,//未闭合占比 + allTotal:0,//检查总数 + todayClose:0,//巡检已闭合 + todayNoClose:0,//巡检未闭合 + todayCloseRatio:0,//巡检已闭合占比 + todayNoCloseRatio:0,//巡检未闭合占比 + todayTotal:0,//今日巡检总数 } } }, @@ -96,7 +96,7 @@ export default { getData(){ getQualityAcceptanceApi({projectSn: this.$store.state.projectSn}).then((res)=>{ this.list = res.result - console.log('-----',this.list) + console.log('质量巡检-----',this.list) }) } } diff --git a/src/views/projectFront/quality/qualityProblem.vue b/src/views/projectFront/quality/qualityProblem.vue new file mode 100644 index 00000000..79837008 --- /dev/null +++ b/src/views/projectFront/quality/qualityProblem.vue @@ -0,0 +1,868 @@ + + + + + + \ No newline at end of file