diff --git a/src/api/problemmodify/index.js b/src/api/problemmodify/index.js
index 69d8768..7f22b69 100644
--- a/src/api/problemmodify/index.js
+++ b/src/api/problemmodify/index.js
@@ -44,8 +44,23 @@ const getMonitAndWarning=(deptId,projectId=0)=>{
}
+const listSspProblemmodify=data=>{
+ return request({
+ url: `bgscreen/problemmodify/listSspProblemmodify`,
+ method: 'post',
+ data:data
+ })
+}
+
+const groupByInfotypeCheckState=data=>{
+ return request({
+ url: `bgscreen/problemmodify/groupByInfotypeCheckState`,
+ method: 'post',
+ data:data
+ })
+}
export default{
- safetySummary,qualitySummary,safetySummaryByProject,qualitySummaryByProject,getMonitAndWarning
+ safetySummary,qualitySummary,safetySummaryByProject,qualitySummaryByProject,getMonitAndWarning,listSspProblemmodify,groupByInfotypeCheckState
}
diff --git a/src/pages/components/ProblemmodifyDetail.vue b/src/pages/components/ProblemmodifyDetail.vue
new file mode 100644
index 0000000..ca1a567
--- /dev/null
+++ b/src/pages/components/ProblemmodifyDetail.vue
@@ -0,0 +1,113 @@
+
+
+
+ {{ row.projectName}}【{{infoType==0?'安全隐患':'质量隐患' }}】
+
+
+
+
待整改({{count['0']}})
+
待复检({{count['1']}})
+
复检驳回({{count['3']}})
+
复检通过({{count['4']}})
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/projectQuality.vue b/src/pages/projectQuality.vue
index 0a4c880..2bc279f 100644
--- a/src/pages/projectQuality.vue
+++ b/src/pages/projectQuality.vue
@@ -20,30 +20,50 @@
-
+
质量隐患类型分析
-
- 项目质量隐患占比
-
-
-
-
- {{scope.$index + 1}}
-
-
-
-
-
-
-
-
-
- {{scope.row.value}}
-
-
-
+
+
+ 项目质量隐患占比({{ summaryPrjTotal }})
+
+
+
+
+
+ {{ scope.$index + 1 }}
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.id }}
+
+
+
+
+ {{ scope.row.infoType }}
+
+
+
+
+
+
+
+
+
+
@@ -266,10 +286,10 @@ export default {
this.$api.problemmodify.qualitySummaryByProject(this.dept.id,this.safeNav).then(d=>{
this.summaryPrj=(d||[]).map(it=>{
return {
- text:it.problemArea,
- prop:'0.0',
- name:it.problemArea,
- value:it.roleType||0
+ ...it,
+ prop: '0.0',
+ value: it.id || 0,
+ rate: 0,
}
});
this.summaryPrjTotal=0;
@@ -277,11 +297,12 @@ export default {
this.summaryPrjTotal+=it.value;
});
this.summaryPrj.forEach(it=>{
- if(this.summaryPrjTotal==0){
- it.prop="0.0"
- }else{
- it.prop=(it.value*100.0/this.summaryPrjTotal).toFixed(1);
+ if (this.summaryPrjTotal == 0) {
+ it.prop = "0.0"
+ } else {
+ it.prop = (it.value * 100.0 / this.summaryPrjTotal).toFixed(1);
}
+ it.rate = (it.checkState * 100.0 / it.value).toFixed(1);
})
this.elKey++;
});
@@ -314,6 +335,22 @@ export default {
\ No newline at end of file
+