diff --git a/src/api/modules/projectOverview.ts b/src/api/modules/projectOverview.ts index 1dcb944..c7a2766 100644 --- a/src/api/modules/projectOverview.ts +++ b/src/api/modules/projectOverview.ts @@ -109,3 +109,13 @@ export const getInspectionRiskChartApi = (params: {}) => { export const getSpecialCountAllSpecialApi = (params: {}) => { return http.post(BASEURL + `/xmgl/xzSpecial/countAllSpecial`, params); }; + +// 应急类型统计(今日) +export const getCountEmergencyTypedApi = (params: {}) => { + return http.post(BASEURL + `/xmgl/xzEmergencyRecord/countEmergencyTyped`, params); +}; + +// 应急处置(近七日) +export const getCountAlarmNumByEnterpriseApi = (params: {}) => { + return http.post(BASEURL + `/xmgl/xzEmergencyRecord/countAlarmNumByEnterprise`, params); +}; diff --git a/src/views/commandScreen/commandCenter/centerBottom.vue b/src/views/commandScreen/commandCenter/centerBottom.vue index c6f06d4..b118426 100644 --- a/src/views/commandScreen/commandCenter/centerBottom.vue +++ b/src/views/commandScreen/commandCenter/centerBottom.vue @@ -5,7 +5,7 @@
-
应急处置
+
应急处置(近七天)
事故风险趋势预期
@@ -118,9 +118,9 @@ @@ -610,17 +689,18 @@ onMounted(async () => { width: 140px; text-align: center; // background-color: #315296; - background: rgb(0,33,116); - background: linear-gradient(270deg, rgba(0,33,116,0.8) 0%, rgba(40,88,184,0.3) 96%); + background: rgb(0, 33, 116); + background: linear-gradient(270deg, rgba(0, 33, 116, 0.8) 0%, rgba(40, 88, 184, 0.3) 96%); cursor: pointer; } .title-color { // background-color: #1449b6; - background: rgb(0,33,116); - background: linear-gradient(270deg, rgba(0,33,116,1) 0%, rgba(40,88,184,1) 96%); + background: rgb(0, 33, 116); + background: linear-gradient(270deg, rgba(0, 33, 116, 1) 0%, rgba(40, 88, 184, 1) 96%); } } + .notoDta { top: 50%; // width: 50%; @@ -641,6 +721,7 @@ onMounted(async () => { margin: -6% 30%; } } + .scroll { height: 100%; width: 100%; @@ -670,7 +751,7 @@ onMounted(async () => { } .ctContent { - height: 74%; + height: 85%; // background-color: darkred; } } @@ -761,6 +842,7 @@ onMounted(async () => { margin: 9px 0; margin-left: 2px; } + .itemHeadInner2 { font-size: 16px; border: 1px solid #f46649; @@ -771,6 +853,7 @@ onMounted(async () => { margin: 9px 0; margin-left: 2px; } + .itemHeadInner3 { font-size: 16px; border: 1px solid #ecbe45; @@ -781,6 +864,7 @@ onMounted(async () => { margin: 9px 0; margin-left: 2px; } + .itemHeadInner4 { font-size: 16px; border: 1px solid #5394f7; @@ -791,6 +875,7 @@ onMounted(async () => { margin: 9px 0; margin-left: 2px; } + .itemHeadInner5 { font-size: 16px; border: 1px solid #9400d3; @@ -801,6 +886,7 @@ onMounted(async () => { margin: 9px 0; margin-left: 2px; } + .itemHeadInner6 { font-size: 16px; border: 1px solid #00ced1; diff --git a/src/views/commandScreen/commandCenter/rightAll.vue b/src/views/commandScreen/commandCenter/rightAll.vue index ee58fe5..3547a26 100644 --- a/src/views/commandScreen/commandCenter/rightAll.vue +++ b/src/views/commandScreen/commandCenter/rightAll.vue @@ -16,7 +16,7 @@
-
+
重大隐患超期未整改{{ overdueMajorDangerCount }}
--> -
+
-
+
@@ -391,7 +391,7 @@ function drawEchart() { let percentage = dataList.value[i].greatFaultLevelNumJzrRate + "%"; const greatFaultLevelNumJzrRate = Number(dataList.value[i].greatFaultLevelNumJzrRate); const templateString = greatFaultLevelNumJzrRate > 0 ? `color1|↑` : "color2|↓"; - return "{name| " + data + "} {gap| }" + `{value|${value}} {${templateString}} {value1|${percentage}}`; + return "{name| " + data + "} {gap| }" + `{value|${value}} {${templateString}} {value1|${percentage}}`; } } } @@ -457,7 +457,7 @@ function drawEchart() { const templateString = rectificationNumJzrRate > 0 ? `color1|↑` : "color2|↓"; // ↓ return ( - "{name| " + rectificationName + "} {gap| }" + `{value|${value}} {${templateString}} {value1|${percentage}}` + "{name| " + rectificationName + "} {gap| }" + `{value|${value}} {${templateString}} {value1|${percentage}}` ); } } @@ -998,18 +998,18 @@ const getSafeInfo = async () => { dataList.value.push(obj); } questionTotal.value = result.result.dangerNum; - overdueMajorDangerCount.value = result.result.overdueRectificationNum; - overdueMajorDangerRate.value = result.result.overdueRectificationNumRatio; - majorDangerCount.value = result.result.notCloseNum; + // overdueMajorDangerCount.value = result.result.overdueRectificationNum; + // overdueMajorDangerRate.value = result.result.overdueRectificationNumRatio; + // majorDangerCount.value = result.result.notCloseNum; // majorDangerRate.value = result.result.percent; console.log("1111111111111", dataList.value); - // const res: any = await getCountDangerLevelApi({ - // projectSn: store.sn, - // isOverdueRectification: 1, - // inspectStartTime: dateRange.value[0], - // inspectEndTime: dateRange.value[1] - // }); + const res: any = await getCountDangerLevelApi({ + projectSn: store.sn, + isOverdueRectification: 1, + inspectStartTime: dateRange.value[0], + inspectEndTime: dateRange.value[1] + }); // dataList.value = res.result.data.map((item: any, index: number) => { // return { // ...item, @@ -1026,10 +1026,10 @@ const getSafeInfo = async () => { // questionTotal.value = res.result.count; // console.log("饼图", res); - // const filterResult = res.result.data.find((item: any) => item.enumType == 1); + const filterResult = res.result.data.find((item: any) => item.enumType == 1); - // overdueMajorDangerCount.value = filterResult.count; - // overdueMajorDangerRate.value = filterResult.percent; + overdueMajorDangerCount.value = filterResult.count; + overdueMajorDangerRate.value = filterResult.percent; drawEchart(); }; @@ -1312,20 +1312,20 @@ const qualityInfo = async () => { inspectStartTime: dateRange.value[0], inspectEndTime: dateRange.value[1] }); - dataList2.value = res.result.data.map((item: any, index: number) => { - return { - ...item, - value: item.count, - show: true, - itemStyle: { - normal: { - color: classColorList.value[index], - borderWidth: 20 - } - } - }; - }); - questionTotal.value = res.result.count; + // dataList2.value = res.result.data.map((item: any, index: number) => { + // return { + // ...item, + // value: item.count, + // show: true, + // itemStyle: { + // normal: { + // color: classColorList.value[index], + // borderWidth: 20 + // } + // } + // }; + // }); + // questionTotal.value = res.result.count; const filterResult = res.result.data.find((item: any) => item.enumType == 1); majorDangerCount.value = filterResult.count; @@ -1435,14 +1435,14 @@ onMounted(async () => { width: 140px; text-align: center; // background-color: #315296; - background: rgb(0,33,116); + background: rgb(0, 33, 116); background: linear-gradient(270deg, rgba(0, 33, 116, 0.8) 0%, rgba(40, 88, 184, 0.3) 96%); cursor: pointer; } .title-color { // background-color: #1449b6; - background: rgb(0,33,116); + background: rgb(0, 33, 116); background: linear-gradient(270deg, rgba(0, 33, 116, 1) 0%, rgba(40, 88, 184, 1) 96%); } } @@ -1506,7 +1506,7 @@ onMounted(async () => { .content { padding: 0 20px; - height: 100%; + height: calc(100% - 100px); .contentTop { margin-top: 10px; diff --git a/src/views/commandScreen/components/leftBottom.vue b/src/views/commandScreen/components/leftBottom.vue index 8e97935..c6dc506 100644 --- a/src/views/commandScreen/components/leftBottom.vue +++ b/src/views/commandScreen/components/leftBottom.vue @@ -4,7 +4,7 @@
-
人员履职情况分析
+
责任单位隐患整改统计
@@ -555,7 +555,7 @@ onMounted(async () => { // height: 10%; .hLeft { - width: 50%; + width: 58%; font-size: 20px; font-weight: bold; background-image: linear-gradient(to bottom left, #c8e3ff, #007aff); @@ -565,7 +565,7 @@ onMounted(async () => { } .hRight { - width: 50%; + width: 42%; } } @@ -597,7 +597,7 @@ onMounted(async () => { border-bottom: 1px solid #0059ff; .hLeft { - width: 50%; + width: 58%; font-size: 20px; font-weight: bold; background-image: linear-gradient(to bottom left, #c8e3ff, #007aff); @@ -607,7 +607,7 @@ onMounted(async () => { } .hRight { - width: 50%; + width: 42%; } }