From eebddf04db6c21b0a59fdac3855c549458876829 Mon Sep 17 00:00:00 2001 From: haha Date: Tue, 15 Aug 2023 00:47:59 +0800 Subject: [PATCH] update code --- src/api/problemmodify/index.js | 17 +- src/pages/components/ProblemmodifyDetail.vue | 113 ++ src/pages/projectQuality.vue | 95 +- src/pages/projectSafety.vue | 1167 ++++++++++-------- 4 files changed, 832 insertions(+), 560 deletions(-) create mode 100644 src/pages/components/ProblemmodifyDetail.vue 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 @@ + + + + + \ 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 @@
- +
质量隐患类型分析
- -
项目质量隐患占比
-
- - - - - - - - - - - + +
+ 项目质量隐患占比({{ summaryPrjTotal }})
+
+ + + + + + + + + + + + + + + + + +
@@ -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 + } + .center-image .screen-one-2-1 { + overflow: hidden; + } + + .my-svg-icon { + width: 40px; + height: 40px; + margin-bottom: 20px; + } + + .my-svg-icon * { + fill: #389DE3; + + } + + .people-number-con div:nth-child(3) { + background: none; + } + + .labour-education .number-unit { + position: relative; + bottom: -8px; + } + + .bottom-line2, + .bottom-line { + position: relative; + border: none !important; + } + + .bottom-line::after { + content: " "; + display: block; + position: absolute; + width: calc(100% - 30px); + border-bottom: solid 1px rgba(90, 192, 244, 0.3); + bottom: 5px; + left: 20px; + opacity: 0.5; + } + + .idle-list .el-table__body .el-table__row { + line-height: 55px; + height: 55px !important; + } + + .bottom-line2::after { + content: " "; + display: block; + position: absolute; + width: calc(100% - 5px); + border-bottom: solid 1px rgba(90, 192, 244, 0.3); + bottom: -4px; + opacity: 0.5; + } + + .bottom-line2::before { + content: " "; + display: inline-block; + position: absolute; + width: 60px; + border-bottom: solid 2px #389DE3; + bottom: -4px; + opacity: 0.5; + } + + .my-svg-icon2 { + width: 40px; + height: 40px; + } + + .my-svg-icon2 * { + fill: #01A9FF; + } + + .file-nav { + padding-left: 10px; + cursor: pointer; + font-size: 12px; + line-height: 30px; + margin-bottom: 20px; + margin-top: 10px; + } + + .file-nav .file-nav-item { + display: inline-block; + margin-right: 20px; + color: #fff + } + + .file-nav .file-nav-item.active { + color: #00A9BC; + } + + .file-item { + display: flex; + margin-left: 20px; + margin-right: 20px; + margin-bottom: 30px; + font-size: 12px; + } + + .file-item .file-detail { + color: #0189D4; + cursor: pointer; + display: inline-block; + width: 60px; + position: relative; + top: 3px; + } + + .special-table th .cell { + color: aquamarine; + font-size: 12px; + } + + td.td-left { + text-align: left !important; + } + + .file-list { + max-height: calc(100% - 90px); + margin-right: 12px; + overflow-y: auto; + } + + .transition-item { + cursor: pointer; + } + + .train-list { + max-height: calc(100% - 45px); + margin-right: 12px; + overflow-y: auto; + } + + .train-img { + width: 85px; + height: 60px; + } + + .train-img-par { + height: 60px; + overflow: hidden; + margin: 10px 5px 5px 5px; + } +} \ No newline at end of file