|
@@ -3,16 +3,16 @@
|
|
|
<!-- 1.============= -->
|
|
|
<div class="content_one">
|
|
|
<!-- 风险报告 -->
|
|
|
- <div class="modules_bg_color modules_bg">
|
|
|
- <TitleHeadermini :title="'风险报告'"></TitleHeadermini>
|
|
|
+ <div class="modules_bg_color modules_bg" :class="{ modules_bg_color_active: commonStore.activeModule === '风险报告' }">
|
|
|
+ <TitleHeadermini :title="'风险报告'" @setActiveModule="setActiveModule"></TitleHeadermini>
|
|
|
<div>
|
|
|
<RiskReport :levelObj="riskReportObj"></RiskReport>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<!-- 风险总览 -->
|
|
|
- <div class="modules_bg_color modules_bg2">
|
|
|
- <TitleHeader :title="'风险总览'" :buttons="riskOverViewButtons"></TitleHeader>
|
|
|
+ <div class="modules_bg_color modules_bg2" :class="{ modules_bg_color_active: commonStore.activeModule === '风险总览' }">
|
|
|
+ <TitleHeader :title="'风险总览'" :buttons="riskOverViewButtons" @setActiveModule="setActiveModule" @btnClick="btnClick"></TitleHeader>
|
|
|
<div class="modules_bg2_body">
|
|
|
<div>
|
|
|
<RiskReport :levelObj="riskOverViewObj"></RiskReport>
|
|
@@ -31,24 +31,24 @@
|
|
|
<!-- 2.=================== -->
|
|
|
<div class="content_two">
|
|
|
<!-- 风险处置 -->
|
|
|
- <div class="modules_bg_color modules_bg_340">
|
|
|
- <TitleHeadersmall :title="'风险处置'" :buttons="timeButtons"></TitleHeadersmall>
|
|
|
+ <div class="modules_bg_color modules_bg_340" :class="{ modules_bg_color_active: commonStore.activeModule === '风险处置' }">
|
|
|
+ <TitleHeadersmall :title="'风险处置'" :buttons="timeButtons" @setActiveModule="setActiveModule" @btnClick="btnClick"></TitleHeadersmall>
|
|
|
<div class="two_level_body">
|
|
|
<RiskTwoView :levelObj="riskTwoViewObj"></RiskTwoView>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<!-- 重大活动保障 -->
|
|
|
- <div class="modules_bg_color modules_bg_340">
|
|
|
- <TitleHeadersmall :title="'重大活动保障'" :buttons="timeButtons"></TitleHeadersmall>
|
|
|
+ <div class="modules_bg_color modules_bg_340" :class="{ modules_bg_color_active: commonStore.activeModule === '重大活动保障' }">
|
|
|
+ <TitleHeadersmall :title="'重大活动保障'" :buttons="timeButtons" @setActiveModule="setActiveModule" @btnClick="btnClick"></TitleHeadersmall>
|
|
|
<div class="two_level_body">
|
|
|
<RiskTwoView :levelObj="majorEventGuaranteeObj"></RiskTwoView>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<!-- 已结案风险 -->
|
|
|
- <div class="modules_bg_color modules_bg_412">
|
|
|
- <TitleHeadersmall :title="'已结案风险'" :buttons="timeButtons"></TitleHeadersmall>
|
|
|
+ <div class="modules_bg_color modules_bg_412" :class="{ modules_bg_color_active: commonStore.activeModule === '已结案风险' }">
|
|
|
+ <TitleHeadersmall :title="'已结案风险'" :buttons="timeButtons" @setActiveModule="setActiveModule" @btnClick="btnClick"></TitleHeadersmall>
|
|
|
<div class="two_level_body">
|
|
|
<RiskTwoView :levelObj="riskClosedCaseObj"></RiskTwoView>
|
|
|
</div>
|
|
@@ -59,12 +59,12 @@
|
|
|
<RiskTableContent></RiskTableContent>
|
|
|
|
|
|
<!-- 4.===================== -->
|
|
|
- <div class="content_four">
|
|
|
- <TitleHeaderLong :title="'应急处置资源'" :buttons="[]"></TitleHeaderLong>
|
|
|
- <div class="modules_bg_color content_four_body">
|
|
|
+ <div class="content_four modules_bg_color" :class="{ modules_bg_color_active: commonStore.activeModule === '应急处置资源' }">
|
|
|
+ <TitleHeaderLong :title="'应急处置资源'" :buttons="[]" @setActiveModule="setActiveModule" @btnClick="btnClick"></TitleHeaderLong>
|
|
|
+ <div class="content_four_body">
|
|
|
<!-- 检测设备 -->
|
|
|
- <div class="modules_bg_color2 modules_bg_jcsb">
|
|
|
- <TowLevelTitle :title="'检测设备'"></TowLevelTitle>
|
|
|
+ <div class="modules_bg_color2 modules_bg_jcsb" :class="{ modules_bg_color_active: commonStore.activeModule === '检测设备' }">
|
|
|
+ <TowLevelTitle :title="'检测设备'" @setActiveModule="setActiveModule"></TowLevelTitle>
|
|
|
<div class="modules_bg_jcsb_body">
|
|
|
<!-- <RiskTwoView :levelObj="riskTwoViewObj"></RiskTwoView> -->
|
|
|
<div class="modules_bg_jcsb_body_left">
|
|
@@ -92,8 +92,8 @@
|
|
|
</div>
|
|
|
|
|
|
<!-- 派单情况 -->
|
|
|
- <div class="modules_bg_color2 modules_bg_pdqk">
|
|
|
- <TowLevelTitle :title="'派单情况'"></TowLevelTitle>
|
|
|
+ <div class="modules_bg_color2 modules_bg_pdqk" :class="{ modules_bg_color_active: commonStore.activeModule === '派单情况' }">
|
|
|
+ <TowLevelTitle :title="'派单情况'" @setActiveModule="setActiveModule"></TowLevelTitle>
|
|
|
<div class="modules_bg_pdqk_body">
|
|
|
<div class="modules_bg_pdqk_body_item">
|
|
|
<img src="../../../assets//img/发出指令.png" alt="" />
|
|
@@ -121,8 +121,8 @@
|
|
|
</div>
|
|
|
|
|
|
<!-- 应急人员 -->
|
|
|
- <div class="modules_bg_color2 modules_bg_yjry">
|
|
|
- <TowLevelTitle :title="'应急人员'"></TowLevelTitle>
|
|
|
+ <div class="modules_bg_color2 modules_bg_yjry" :class="{ modules_bg_color_active: commonStore.activeModule === '应急人员' }">
|
|
|
+ <TowLevelTitle :title="'应急人员'" @setActiveModule="setActiveModule"></TowLevelTitle>
|
|
|
<div class="modules_bg_yjry_body">
|
|
|
<!-- <RiskTwoView :levelObj="riskTwoViewObj"></RiskTwoView> -->
|
|
|
<div class="modules_bg_yjry_body_zhz">
|
|
@@ -160,8 +160,8 @@
|
|
|
</div>
|
|
|
|
|
|
<!-- 应急车辆 -->
|
|
|
- <div class="modules_bg_color2 modules_bg_jcsb">
|
|
|
- <TowLevelTitle :title="'应急车辆'"></TowLevelTitle>
|
|
|
+ <div class="modules_bg_color2 modules_bg_jcsb" :class="{ modules_bg_color_active: commonStore.activeModule === '应急车辆' }">
|
|
|
+ <TowLevelTitle :title="'应急车辆'" @setActiveModule="setActiveModule"></TowLevelTitle>
|
|
|
<div class="modules_bg_jcsb_body">
|
|
|
<!-- <RiskTwoView :levelObj="riskTwoViewObj"></RiskTwoView> -->
|
|
|
<div class="modules_bg_jcsb_body_left">
|
|
@@ -189,7 +189,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <!-- 地图工具 -->
|
|
|
+ <!-- 地图工具 -->
|
|
|
<MapTools></MapTools>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -202,18 +202,66 @@ import TitleHeader from '../../../components/TitleHeader'
|
|
|
import TitleHeaderLong from '../../../components/TitleHeaderLong'
|
|
|
// import RiskTableHeader from '../../../components/TitleHeaderLong/RiskTableHeader'
|
|
|
import RiskTableContent from './common/RiskTableContent.vue'
|
|
|
-
|
|
|
import TowLevelTitle from '../../../components/TowLevelTitle'
|
|
|
import RiskReport from '../comp/RiskReport.vue'
|
|
|
import RiskTwoView from '../comp/RiskTwoView.vue'
|
|
|
-
|
|
|
import MyProgress from './common/MyProgress'
|
|
|
-
|
|
|
import { ref, nextTick, toRaw, reactive, toRefs, onBeforeMount, onMounted } from 'vue'
|
|
|
+import { useCommonStore } from '@/store/common.js'
|
|
|
+let commonStore = useCommonStore()
|
|
|
|
|
|
// let riskReportObj = ref([{ id: 1, level: 'A', count: 0 }, { id: 2, level: 'B', count: 0 }, { id: 3, level: 'C', count: 0 }, { id: 4, level: 'D', count: 0 },])
|
|
|
const emit = defineEmits(['openRiskBigTable'])
|
|
|
|
|
|
+function setActiveModule(module) {
|
|
|
+ console.log(module, 'module')
|
|
|
+ commonStore.activeModule = module
|
|
|
+ switch (module) {
|
|
|
+ case '检测设备':
|
|
|
+ commonStore.alertMessage = '暂未检测到设备信号'
|
|
|
+ break
|
|
|
+ case '派单情况':
|
|
|
+ commonStore.alertMessage = '暂未获取派单情况'
|
|
|
+ break
|
|
|
+ case '应急人员':
|
|
|
+ commonStore.alertMessage = '暂未检测到应急人员信号'
|
|
|
+ break
|
|
|
+ case '应急车辆':
|
|
|
+ commonStore.alertMessage = '暂未检测到应急车辆信号'
|
|
|
+ break
|
|
|
+
|
|
|
+ default:
|
|
|
+ break
|
|
|
+ }
|
|
|
+ if (['检测设备', '派单情况', '应急人员', '应急车辆'].includes(module)) {
|
|
|
+ commonStore.alertKey = Date.now()
|
|
|
+ commonStore.showAlert = true
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+// 模块 年 月 日
|
|
|
+function btnClick (item, module) {
|
|
|
+ console.log(item,'item=btnClick')
|
|
|
+ switch (module) {
|
|
|
+ case '风险总览':
|
|
|
+
|
|
|
+ break
|
|
|
+ case '风险处置':
|
|
|
+
|
|
|
+ break
|
|
|
+ case '重大活动保障':
|
|
|
+
|
|
|
+ break
|
|
|
+ case '已结案风险':
|
|
|
+
|
|
|
+ break
|
|
|
+
|
|
|
+ default:
|
|
|
+ break
|
|
|
+ }
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
// 1.=====================================
|
|
|
let riskReportObj = ref({
|
|
|
name: '当日新增',
|
|
@@ -337,7 +385,8 @@ function openRiskBigTable() {
|
|
|
<style lang="scss" scoped>
|
|
|
.body_container {
|
|
|
width: 100%;
|
|
|
- height: 100%;
|
|
|
+ // height: 100%;
|
|
|
+ height: 1;
|
|
|
box-sizing: border-box;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
@@ -353,15 +402,14 @@ function openRiskBigTable() {
|
|
|
position: relative;
|
|
|
background: linear-gradient(180deg, rgba(32, 70, 121, 0) 2%, rgba(32, 70, 121, 0.6) 100%);
|
|
|
border-radius: 0px 0px 0px 0px;
|
|
|
-
|
|
|
}
|
|
|
|
|
|
.modules_bg_color2 {
|
|
|
position: relative;
|
|
|
background: linear-gradient(180deg, rgba(32, 70, 121, 0) 2%, rgba(32, 70, 121, 0.6) 100%);
|
|
|
border-radius: 0px 0px 0px 0px;
|
|
|
-
|
|
|
}
|
|
|
+
|
|
|
.modules_bg_color::after {
|
|
|
position: absolute;
|
|
|
content: '';
|
|
@@ -376,21 +424,23 @@ function openRiskBigTable() {
|
|
|
.modules_bg {
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
- justify-content: center;
|
|
|
+ // justify-content: center;
|
|
|
align-items: center;
|
|
|
width: 300px;
|
|
|
- height: 253px;
|
|
|
+ // height: 253px;
|
|
|
+ height: 244px;
|
|
|
|
|
|
// background: url('../../../assets/img/m_bg.png');
|
|
|
}
|
|
|
|
|
|
.modules_bg2 {
|
|
|
width: 808px;
|
|
|
- height: 253px;
|
|
|
+ // height: 253px;
|
|
|
+ height: 244px;
|
|
|
padding-left: 10px;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
- justify-content: center;
|
|
|
+ // justify-content: center;
|
|
|
}
|
|
|
|
|
|
.modules_bg2_body {
|
|
@@ -439,8 +489,6 @@ function openRiskBigTable() {
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
.content_four {
|
|
|
// flex: 1;
|
|
|
width: 100%;
|
|
@@ -466,17 +514,21 @@ function openRiskBigTable() {
|
|
|
padding: 0px 5px 0px;
|
|
|
// padding-left: 5px;
|
|
|
box-sizing: border-box;
|
|
|
+
|
|
|
.modules_bg_jcsb_body {
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
align-items: center;
|
|
|
+
|
|
|
.modules_bg_jcsb_body_left {
|
|
|
width: 140px;
|
|
|
+
|
|
|
.modules_bg_jcsb_body_left_content {
|
|
|
display: flex;
|
|
|
align-items: end;
|
|
|
justify-content: space-between;
|
|
|
width: 140;
|
|
|
+
|
|
|
> div {
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
@@ -487,6 +539,7 @@ function openRiskBigTable() {
|
|
|
color: rgba(255, 255, 255, 0.9);
|
|
|
font-style: normal;
|
|
|
text-transform: none;
|
|
|
+
|
|
|
> span {
|
|
|
font-family: Roboto;
|
|
|
font-weight: bold;
|
|
@@ -498,6 +551,7 @@ function openRiskBigTable() {
|
|
|
-webkit-text-fill-color: transparent;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
> img {
|
|
|
width: 22px;
|
|
|
height: 21px;
|
|
@@ -505,6 +559,7 @@ function openRiskBigTable() {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.progress {
|
|
|
margin-top: 5px;
|
|
|
width: 54px;
|
|
@@ -523,6 +578,7 @@ function openRiskBigTable() {
|
|
|
text-transform: none;
|
|
|
margin-top: 6px;
|
|
|
}
|
|
|
+
|
|
|
.circle {
|
|
|
display: flex;
|
|
|
justify-content: center;
|
|
@@ -530,6 +586,7 @@ function openRiskBigTable() {
|
|
|
margin-top: 12px;
|
|
|
width: 48px;
|
|
|
height: 48px;
|
|
|
+
|
|
|
:deep(.el-progress-circle) {
|
|
|
width: 48px !important;
|
|
|
height: 48px !important;
|
|
@@ -545,11 +602,13 @@ function openRiskBigTable() {
|
|
|
height: 126px;
|
|
|
padding: 0px 20px 10px;
|
|
|
box-sizing: border-box;
|
|
|
+
|
|
|
.modules_bg_pdqk_body {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: space-between;
|
|
|
position: relative;
|
|
|
+
|
|
|
.modules_bg_pdqk_body_item {
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
@@ -560,6 +619,7 @@ function openRiskBigTable() {
|
|
|
color: rgba(255, 255, 255, 0.9);
|
|
|
font-style: normal;
|
|
|
text-transform: none;
|
|
|
+
|
|
|
> span {
|
|
|
font-family: Roboto;
|
|
|
font-weight: bold;
|
|
@@ -570,6 +630,7 @@ function openRiskBigTable() {
|
|
|
-webkit-background-clip: text;
|
|
|
-webkit-text-fill-color: transparent;
|
|
|
}
|
|
|
+
|
|
|
.line_img {
|
|
|
width: 16px;
|
|
|
height: 16px;
|
|
@@ -583,6 +644,7 @@ function openRiskBigTable() {
|
|
|
width: 192px;
|
|
|
height: 16px;
|
|
|
border-bottom: 2px dashed #175a7e;
|
|
|
+
|
|
|
// position: relative;
|
|
|
.line_img1 {
|
|
|
// position: absolute;
|
|
@@ -594,6 +656,7 @@ function openRiskBigTable() {
|
|
|
margin-top: 4px;
|
|
|
margin-right: 70px;
|
|
|
}
|
|
|
+
|
|
|
.line_img2 {
|
|
|
margin-top: 4px;
|
|
|
width: 26px;
|
|
@@ -610,6 +673,7 @@ function openRiskBigTable() {
|
|
|
padding: 0px 5px 5px;
|
|
|
// padding-left: 10px;
|
|
|
box-sizing: border-box;
|
|
|
+
|
|
|
.modules_bg_yjry_body {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
@@ -617,6 +681,7 @@ function openRiskBigTable() {
|
|
|
height: 82px;
|
|
|
padding-left: 5px;
|
|
|
box-sizing: border-box;
|
|
|
+
|
|
|
.modules_bg_yjry_body_zhz {
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
@@ -627,6 +692,7 @@ function openRiskBigTable() {
|
|
|
color: rgba(255, 255, 255, 0.9);
|
|
|
font-style: normal;
|
|
|
text-transform: none;
|
|
|
+
|
|
|
> div {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
@@ -636,6 +702,7 @@ function openRiskBigTable() {
|
|
|
color: #08ffe5;
|
|
|
font-style: normal;
|
|
|
text-transform: none;
|
|
|
+
|
|
|
> img {
|
|
|
width: 24px;
|
|
|
height: 24px;
|
|
@@ -643,19 +710,23 @@ function openRiskBigTable() {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.modules_bg_yjry_left_content {
|
|
|
display: flex;
|
|
|
// align-items: center;
|
|
|
align-items: end;
|
|
|
width: 150px;
|
|
|
+
|
|
|
.modules_bg_yjry_left {
|
|
|
width: 150px;
|
|
|
margin-right: 15px;
|
|
|
+
|
|
|
.modules_bg_yjry_left_content {
|
|
|
display: flex;
|
|
|
align-items: end;
|
|
|
justify-content: space-between;
|
|
|
width: 150;
|
|
|
+
|
|
|
> div {
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
@@ -666,6 +737,7 @@ function openRiskBigTable() {
|
|
|
color: rgba(255, 255, 255, 0.9);
|
|
|
font-style: normal;
|
|
|
text-transform: none;
|
|
|
+
|
|
|
> span {
|
|
|
font-family: Roboto;
|
|
|
font-weight: bold;
|
|
@@ -677,6 +749,7 @@ function openRiskBigTable() {
|
|
|
-webkit-text-fill-color: transparent;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
> img {
|
|
|
width: 22px;
|
|
|
height: 21px;
|
|
@@ -684,6 +757,7 @@ function openRiskBigTable() {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.progress {
|
|
|
width: 54px;
|
|
|
height: 76px;
|
|
@@ -701,6 +775,7 @@ function openRiskBigTable() {
|
|
|
text-transform: none;
|
|
|
margin-top: 6px;
|
|
|
}
|
|
|
+
|
|
|
.circle {
|
|
|
display: flex;
|
|
|
justify-content: center;
|
|
@@ -708,6 +783,7 @@ function openRiskBigTable() {
|
|
|
margin-top: 12px;
|
|
|
width: 48px;
|
|
|
height: 48px;
|
|
|
+
|
|
|
:deep(.el-progress-circle) {
|
|
|
width: 48px !important;
|
|
|
height: 48px !important;
|
|
@@ -715,6 +791,7 @@ function openRiskBigTable() {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.line {
|
|
|
height: 50px;
|
|
|
width: 2px;
|
|
@@ -732,3 +809,14 @@ function openRiskBigTable() {
|
|
|
}
|
|
|
}
|
|
|
</style>
|
|
|
+<style lang="scss">
|
|
|
+.modules_bg_color_active {
|
|
|
+ // border: 2px solid #00ffff; /* 高亮边框颜色可自定义 */
|
|
|
+ // box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
|
|
|
+ box-sizing: border-box;
|
|
|
+ box-shadow: 0 0 20px 6px rgba(0, 255, 255, 0.5) !important;
|
|
|
+ /* 柔和背光效果 */
|
|
|
+ z-index: 1;
|
|
|
+ transition: box-shadow 0.3s ease;
|
|
|
+}
|
|
|
+</style>
|