From 984f248886d3ba2807698f57392ea4f76bcc0154 Mon Sep 17 00:00:00 2001 From: Vce Date: Mon, 13 May 2024 20:48:56 +0800 Subject: [PATCH] =?UTF-8?q?flx=EF=BC=9A=E5=AE=89=E5=85=A8=E7=BB=A9?= =?UTF-8?q?=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/js/api/laborPerson.js | 9 +- src/assets/js/api/quality.js | 7 + .../projectFront/quality/qualityAnalysis.vue | 127 +++-- .../safetyEducation/safetyAnalysis.vue | 125 +++-- .../safetyEducation/securityRiskAnalysis.vue | 497 ++++++++++++++---- 5 files changed, 602 insertions(+), 163 deletions(-) diff --git a/src/assets/js/api/laborPerson.js b/src/assets/js/api/laborPerson.js index 90060be1..4229a6b9 100644 --- a/src/assets/js/api/laborPerson.js +++ b/src/assets/js/api/laborPerson.js @@ -225,11 +225,18 @@ export const entryRecordListApi = data => get('xmgl/workerAccessRecord/page', da export const delayAlarmRecordListApi = data => get('xmgl/xzCertificateExpireAlarmRecord/page', data); // 安全分析 -// export const getProjectDetailData = data => post('', data); // 查询对应企业统计数据 export const getSelectQualityStatisticsNumApi = data => post('/xmgl/xzSecurityQualityInspectionRecord/selectQualityStatisticsNum', data); // 检查统计 export const getStatsByEnterpriseApi= data => post('/xmgl/xzSecurityQualityInspectionRecord/statsByEnterprise', data); // 分包单位统计 export const getRiskChartApi = data => post('/xmgl/xzSecurityQualityInspectionRecord/riskChart', data); // 风险走势图 export const getCountDangerLevelApi = data => post('/xmgl/xzSecurityQualityInspectionRecord/countDangerLevel', data); // 隐患数量展示 export const getcountQualityInspectionRecordRegionApi = data => post('/xmgl/xzSecurityQualityInspectionRecord/countQualityInspectionRecordRegion', data); // 责任区域数据统计 +// 人员安全绩效评分 +// export const getRiskChartApi = data => post('/xmgl/xzSecurityQualityInspectionRecord/riskChart', data); // 风险走势图 +export const getStatsSafeScoreApi = data => post('/xmgl/workerInfo/statsSafeScore', data); // 人员风险概览 +export const getStatsEnterpriseApi = data => post('/xmgl/workerInfo/statsEnterprise', data); // 企业安全评分汇总 +export const getStatsEnterpriseRiskApi = data => post('/xmgl/workerInfo/statsEnterpriseRisk', data); // 企业人员风险汇总 +export const getEnterpriseListApi = data => post('/xmgl/enterpriseInfo/list', data); // 企业列表 +export const getSelectWorkerInfoListApi = data => post('/xmgl/workerInfo/selectWorkerInfoList', data); // 人员列表 +export const getDeductScoreListApi = data => get('/xmgl/xzDeductScoreRecord/list', data); // 安全扣分记录 diff --git a/src/assets/js/api/quality.js b/src/assets/js/api/quality.js index 97388847..d41b91a3 100644 --- a/src/assets/js/api/quality.js +++ b/src/assets/js/api/quality.js @@ -212,3 +212,10 @@ export const editSystemUserApi = data=>post('/xmgl/systemUser/zjwj/update',data) export const getSystemUserPageApi = data=>get('/xmgl/systemUser/zjwj/list',data) +// 质量分析 +// export const getProjectDetailData = data => post('', data); // 查询对应企业统计数据 +export const getSelectQualityStatisticsNumApi = data => post('/xmgl/qualityInspectionRecord/selectQualityStatisticsNum', data); // 检查统计 +export const getStatsByEnterpriseApi= data => post('/xmgl/qualityInspectionRecord/statsByEnterprise', data); // 分包单位统计 +export const getRiskChartApi = data => post('/xmgl/qualityInspectionRecord/riskChart', data); // 风险走势图 +export const getCountDangerLevelApi = data => post('/xmgl/qualityInspectionRecord/countDangerLevel', data); // 隐患数量展示 +export const getcountQualityInspectionRecordRegionApi = data => post('/xmgl/qualityInspectionRecord/countQualityInspectionRecordRegion', data); // 责任区域数据统计 \ No newline at end of file diff --git a/src/views/projectFront/quality/qualityAnalysis.vue b/src/views/projectFront/quality/qualityAnalysis.vue index daeb0b17..c6ea0cb1 100644 --- a/src/views/projectFront/quality/qualityAnalysis.vue +++ b/src/views/projectFront/quality/qualityAnalysis.vue @@ -34,7 +34,7 @@
-
分包单位统计TOP10
+
分包单位质量隐患统计
-
风险走势图({{ riskListup }}%{{ - riskListup > 0 ? '↑' : '↓' }}比上月({{ riskList.length > 2 && - riskList[riskList.length - 1].lastMonth }}))
+
风险走势图({{ riskCount }}%{{ + riskCount > 0 ? '↑' : '↓' }}比上月({{ riskName }}))
-
+
@@ -156,22 +155,24 @@
隐患超期未整改
-
重大隐患超期未整改{{ this.dangerLevelInfo1.data ? this.dangerLevelInfo1.data[0].count : '0' +
重大隐患超期未整改{{ this.dangerLevelInfo1.data ? this.dangerLevelInfo1.data[0].count : + '0' }}个,占比{{ this.dangerLevelInfo1.data ? - this.dangerLevelInfo1.data[0].percent: '0'}}%
-
严重隐患超期未整改{{ this.dangerLevelInfo1.data ? this.dangerLevelInfo1.data[1].count : '0' + this.dangerLevelInfo1.data[0].percent : '0' }}%
+
严重隐患超期未整改{{ this.dangerLevelInfo1.data ? this.dangerLevelInfo1.data[1].count : + '0' }}个,占比{{ this.dangerLevelInfo1.data - ? this.dangerLevelInfo1.data[1].percent: '0'}}%
+ ? this.dangerLevelInfo1.data[1].percent : '0' }}
%
-
未消项隐患
-
重大隐患未消项{{ this.dangerLevelInfo2.data ? this.dangerLevelInfo2.data[0].count : '0' +
未销项隐患
+
重大隐患未销项{{ this.dangerLevelInfo2.data ? this.dangerLevelInfo2.data[0].count : '0' }}个,占比{{ this.dangerLevelInfo2.data ? - this.dangerLevelInfo2.data[0].percent : '0'}}%
-
严重隐患未消项{{ this.dangerLevelInfo2.data ? this.dangerLevelInfo2.data[0].count : '0' + this.dangerLevelInfo2.data[0].percent : '0' }}%
+
严重隐患未销项{{ this.dangerLevelInfo2.data ? this.dangerLevelInfo2.data[0].count : '0' }}个,占比{{ this.dangerLevelInfo2.data ? - this.dangerLevelInfo2.data[0].percent : '0'}}%
+ this.dangerLevelInfo2.data[0].percent : '0' }}
%
@@ -197,15 +198,15 @@
-
-
-
- -

暂无数据

+
+
+
+ +

暂无数据

+
-
@@ -213,14 +214,14 @@ \ No newline at end of file