diff --git a/packages/mobile/src/router/index.js b/packages/mobile/src/router/index.js index c09dc05..61416b8 100644 --- a/packages/mobile/src/router/index.js +++ b/packages/mobile/src/router/index.js @@ -66,6 +66,16 @@ const routes = [ name: 'IceEventDetail', component: () => import('../views/IceEvent/IceEventDetails.vue') }, + { + path: '/warningMessage/:data', + name: 'WarningMessage', + component: () => import('../views/WarningMessage/WarningMessage.vue') + }, + { + path: '/warningMessage-detail/:data', + name: 'WarningMessageDetail', + component: () => import('../views/WarningMessage/WarningMessageDetail.vue') + }, ] const router = createRouter({ diff --git a/packages/mobile/src/views/Home.vue b/packages/mobile/src/views/Home.vue index eb7fce9..bb07b35 100644 --- a/packages/mobile/src/views/Home.vue +++ b/packages/mobile/src/views/Home.vue @@ -40,6 +40,14 @@ params: { data: encodeURIComponent(JSON.stringify(yhzinfo)) }, }" /> + +
+ + + + +
+ +
+ + +
+ 当前站点: + {{ currentSite }} +
+ + +
+
+
+
{{ item.title }}
+
+ 发布时间: + {{ item.publishTime }} +
+
+
+
+ +
+
+
+ + +
+ +
暂无预警消息
+
+
+ + + + + diff --git a/packages/mobile/src/views/WarningMessage/WarningMessageDetail.vue b/packages/mobile/src/views/WarningMessage/WarningMessageDetail.vue new file mode 100644 index 0000000..4397a0e --- /dev/null +++ b/packages/mobile/src/views/WarningMessage/WarningMessageDetail.vue @@ -0,0 +1,395 @@ + + + + + diff --git a/packages/screen/src/assets/RiskWarning_img/一级标题栏bg@2x.png b/packages/screen/src/assets/RiskWarning_img/一级标题栏bg@2x.png new file mode 100644 index 0000000..371d5ed Binary files /dev/null and b/packages/screen/src/assets/RiskWarning_img/一级标题栏bg@2x.png differ diff --git a/packages/screen/src/assets/RiskWarning_img/位图@2x.png b/packages/screen/src/assets/RiskWarning_img/位图@2x.png new file mode 100644 index 0000000..b6e25c0 Binary files /dev/null and b/packages/screen/src/assets/RiskWarning_img/位图@2x.png differ diff --git a/packages/screen/src/assets/RiskWarning_img/渝路畅行-风险预警一键响应@2x.png b/packages/screen/src/assets/RiskWarning_img/渝路畅行-风险预警一键响应@2x.png new file mode 100644 index 0000000..26e16fa Binary files /dev/null and b/packages/screen/src/assets/RiskWarning_img/渝路畅行-风险预警一键响应@2x.png differ diff --git a/packages/screen/src/router/index.js b/packages/screen/src/router/index.js index 75fce03..f08c5ba 100644 --- a/packages/screen/src/router/index.js +++ b/packages/screen/src/router/index.js @@ -61,6 +61,30 @@ const routes = [ }, component: () => import('../views/RiskWarning/index.vue') }, + { + path: '/regulationsDivision', + name: 'RegulationsDivision', + meta: { + screen: true + }, + component: () => import('../views/RegulationsDivision/RegulationsDivision.vue') + }, + { + path: '/warningCounty', + name: 'WarningCounty', + meta: { + screen: true + }, + component: () => import('../views/warningCounty/warningCounty.vue') + }, + { + path: '/constructionDepartment', + name: 'ConstructionDepartment', + meta: { + screen: true + }, + component: () => import('../views/ConstructionDepartment/ConstructionDepartment.vue') + }, ] const router = createRouter({ diff --git a/packages/screen/src/views/ConstructionDepartment/ConstructionDepartment.vue b/packages/screen/src/views/ConstructionDepartment/ConstructionDepartment.vue new file mode 100644 index 0000000..0d92472 --- /dev/null +++ b/packages/screen/src/views/ConstructionDepartment/ConstructionDepartment.vue @@ -0,0 +1,548 @@ + + + + + \ No newline at end of file diff --git a/packages/screen/src/views/RegulationsDivision/RegulationsDivision.vue b/packages/screen/src/views/RegulationsDivision/RegulationsDivision.vue new file mode 100644 index 0000000..9189754 --- /dev/null +++ b/packages/screen/src/views/RegulationsDivision/RegulationsDivision.vue @@ -0,0 +1,1540 @@ + + + + + diff --git a/packages/screen/src/views/RiskWarning/bottom.vue b/packages/screen/src/views/RiskWarning/bottom.vue index 2552672..e52882d 100644 --- a/packages/screen/src/views/RiskWarning/bottom.vue +++ b/packages/screen/src/views/RiskWarning/bottom.vue @@ -1,5 +1,5 @@ diff --git a/packages/screen/src/views/RiskWarning/component/clearanceSituationDialog.vue b/packages/screen/src/views/RiskWarning/component/clearanceSituationDialog.vue new file mode 100644 index 0000000..fcce624 --- /dev/null +++ b/packages/screen/src/views/RiskWarning/component/clearanceSituationDialog.vue @@ -0,0 +1,590 @@ + + + + + diff --git a/packages/screen/src/views/RiskWarning/component/confirmDialog.vue b/packages/screen/src/views/RiskWarning/component/confirmDialog.vue new file mode 100644 index 0000000..7aad61b --- /dev/null +++ b/packages/screen/src/views/RiskWarning/component/confirmDialog.vue @@ -0,0 +1,183 @@ + + + + + diff --git a/packages/screen/src/views/RiskWarning/component/controlSituationDialog.vue b/packages/screen/src/views/RiskWarning/component/controlSituationDialog.vue new file mode 100644 index 0000000..03e9888 --- /dev/null +++ b/packages/screen/src/views/RiskWarning/component/controlSituationDialog.vue @@ -0,0 +1,530 @@ + + + + + diff --git a/packages/screen/src/views/RiskWarning/component/dispatchDetailDialog.vue b/packages/screen/src/views/RiskWarning/component/dispatchDetailDialog.vue new file mode 100644 index 0000000..7827e23 --- /dev/null +++ b/packages/screen/src/views/RiskWarning/component/dispatchDetailDialog.vue @@ -0,0 +1,473 @@ + + + + + diff --git a/packages/screen/src/views/RiskWarning/component/dispatchDistrictDialog.vue b/packages/screen/src/views/RiskWarning/component/dispatchDistrictDialog.vue new file mode 100644 index 0000000..f1d67d7 --- /dev/null +++ b/packages/screen/src/views/RiskWarning/component/dispatchDistrictDialog.vue @@ -0,0 +1,455 @@ + + + + + diff --git a/packages/screen/src/views/RiskWarning/component/eventDetailDialog.vue b/packages/screen/src/views/RiskWarning/component/eventDetailDialog.vue new file mode 100644 index 0000000..603eed9 --- /dev/null +++ b/packages/screen/src/views/RiskWarning/component/eventDetailDialog.vue @@ -0,0 +1,542 @@ + + + + + diff --git a/packages/screen/src/views/RiskWarning/component/impactPointDetailDialog.vue b/packages/screen/src/views/RiskWarning/component/impactPointDetailDialog.vue new file mode 100644 index 0000000..b36ab5d --- /dev/null +++ b/packages/screen/src/views/RiskWarning/component/impactPointDetailDialog.vue @@ -0,0 +1,567 @@ + + + + + diff --git a/packages/screen/src/views/RiskWarning/component/impactPointDialog.vue b/packages/screen/src/views/RiskWarning/component/impactPointDialog.vue new file mode 100644 index 0000000..062842c --- /dev/null +++ b/packages/screen/src/views/RiskWarning/component/impactPointDialog.vue @@ -0,0 +1,569 @@ + + + + + diff --git a/packages/screen/src/views/RiskWarning/component/responsePointDetailDialog.vue b/packages/screen/src/views/RiskWarning/component/responsePointDetailDialog.vue new file mode 100644 index 0000000..e32da45 --- /dev/null +++ b/packages/screen/src/views/RiskWarning/component/responsePointDetailDialog.vue @@ -0,0 +1,677 @@ + + + + + diff --git a/packages/screen/src/views/RiskWarning/component/responsePointInfoDialog.vue b/packages/screen/src/views/RiskWarning/component/responsePointInfoDialog.vue new file mode 100644 index 0000000..d49ec1e --- /dev/null +++ b/packages/screen/src/views/RiskWarning/component/responsePointInfoDialog.vue @@ -0,0 +1,714 @@ + + + + + diff --git a/packages/screen/src/views/RiskWarning/component/responseSituationDiaLog.vue b/packages/screen/src/views/RiskWarning/component/responseSituationDiaLog.vue new file mode 100644 index 0000000..2315a42 --- /dev/null +++ b/packages/screen/src/views/RiskWarning/component/responseSituationDiaLog.vue @@ -0,0 +1,502 @@ + + + + + diff --git a/packages/screen/src/views/RiskWarning/component/responseStatusDialog.vue b/packages/screen/src/views/RiskWarning/component/responseStatusDialog.vue new file mode 100644 index 0000000..315f79d --- /dev/null +++ b/packages/screen/src/views/RiskWarning/component/responseStatusDialog.vue @@ -0,0 +1,573 @@ + + + + + diff --git a/packages/screen/src/views/RiskWarning/component/riskPointDetailDialog.vue b/packages/screen/src/views/RiskWarning/component/riskPointDetailDialog.vue new file mode 100644 index 0000000..8230fa0 --- /dev/null +++ b/packages/screen/src/views/RiskWarning/component/riskPointDetailDialog.vue @@ -0,0 +1,784 @@ + + + + + diff --git a/packages/screen/src/views/RiskWarning/component/sectionHeader.vue b/packages/screen/src/views/RiskWarning/component/sectionHeader.vue index fe382c1..1f163d9 100644 --- a/packages/screen/src/views/RiskWarning/component/sectionHeader.vue +++ b/packages/screen/src/views/RiskWarning/component/sectionHeader.vue @@ -28,7 +28,6 @@ defineProps({ display: flex; justify-content: space-between; align-items: center; - margin-bottom: 20px; background-image: url(v-bind(bgImg)); background-size: cover; background-position: left; @@ -39,7 +38,7 @@ defineProps({ gap: 8px; .title { - margin-left: 35px; + margin-left: 45px; font-size: 18px; font-weight: bold; color: #fff; diff --git a/packages/screen/src/views/RiskWarning/component/title.vue b/packages/screen/src/views/RiskWarning/component/title.vue deleted file mode 100644 index b75cfc8..0000000 --- a/packages/screen/src/views/RiskWarning/component/title.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - \ No newline at end of file diff --git a/packages/screen/src/views/RiskWarning/component/tongnanInfoDialog.vue b/packages/screen/src/views/RiskWarning/component/tongnanInfoDialog.vue new file mode 100644 index 0000000..18e69d9 --- /dev/null +++ b/packages/screen/src/views/RiskWarning/component/tongnanInfoDialog.vue @@ -0,0 +1,438 @@ + + + + + diff --git a/packages/screen/src/views/RiskWarning/component/tongnanResponsibleDialog.vue b/packages/screen/src/views/RiskWarning/component/tongnanResponsibleDialog.vue new file mode 100644 index 0000000..ba1c5a9 --- /dev/null +++ b/packages/screen/src/views/RiskWarning/component/tongnanResponsibleDialog.vue @@ -0,0 +1,375 @@ + + + + + diff --git a/packages/screen/src/views/RiskWarning/component/tongnanTeamDialog.vue b/packages/screen/src/views/RiskWarning/component/tongnanTeamDialog.vue new file mode 100644 index 0000000..4296401 --- /dev/null +++ b/packages/screen/src/views/RiskWarning/component/tongnanTeamDialog.vue @@ -0,0 +1,397 @@ + + + + + diff --git a/packages/screen/src/views/RiskWarning/component/warningInfoDialog.vue b/packages/screen/src/views/RiskWarning/component/warningInfoDialog.vue new file mode 100644 index 0000000..1cdce80 --- /dev/null +++ b/packages/screen/src/views/RiskWarning/component/warningInfoDialog.vue @@ -0,0 +1,605 @@ + + + + + diff --git a/packages/screen/src/views/RiskWarning/component/warningSituationDialog.vue b/packages/screen/src/views/RiskWarning/component/warningSituationDialog.vue new file mode 100644 index 0000000..31b558d --- /dev/null +++ b/packages/screen/src/views/RiskWarning/component/warningSituationDialog.vue @@ -0,0 +1,557 @@ + + + + + diff --git a/packages/screen/src/views/RiskWarning/index.vue b/packages/screen/src/views/RiskWarning/index.vue index 86ad990..b1f0d54 100644 --- a/packages/screen/src/views/RiskWarning/index.vue +++ b/packages/screen/src/views/RiskWarning/index.vue @@ -1,37 +1,320 @@ diff --git a/packages/screen/src/views/RiskWarning/left.vue b/packages/screen/src/views/RiskWarning/left.vue index 70e938f..898727a 100644 --- a/packages/screen/src/views/RiskWarning/left.vue +++ b/packages/screen/src/views/RiskWarning/left.vue @@ -12,6 +12,7 @@ :key="index" class="warning-card" :class="item.class" + @click="handleWarningCardClick(item)" >
影响点概况
-
影响点明细
+
+ 影响点明细 +
数量
@@ -87,7 +90,18 @@
-
+
@@ -99,7 +113,18 @@
-
+
{{ item.value }}
{{ item.label }}
@@ -113,6 +138,57 @@ import { ref } from "vue"; import SectionHeader from "./component/sectionHeader.vue"; +const emit = defineEmits([ + "openWarningInfo", + "openImpactPoint", + "openWarningSituation", + "openResponseStatus", + "openDispatchDistrict", + "openImpactDetail", + "showCenterCard", +]); + +// 点击统计项 +const handleStatClick = (item) => { + if (item.label === "叫应总数") { + emit("openWarningInfo"); + } else if (item.label === "已回应数") { + emit("openResponseStatus"); + } else if (item.label === "调度区县数") { + emit("openDispatchDistrict"); + } +}; + +// 点击气象预警卡片 +const handleWarningCardClick = (item) => { + emit("openWarningSituation", item); +}; + +// 点击影响点明细 +const handleImpactDetailClick = () => { + emit("openImpactDetail"); +}; + +// 点击调度清单卡片 +const handleDispatchCardClick = (item) => { + if (item.label === "建设工程调度清单") { + emit("showCenterCard", { + type: "first", + value: item.value, + }); + } else if (item.label === "国省道调度清单") { + emit("showCenterCard", { + type: "second", + value: item.value, + }); + } else if (item.label === "农村公路调度清单") { + emit("showCenterCard", { + type: "third", + value: item.value, + }); + } +}; + // 导入图片资源 import imgCall from "../../assets/RiskWarning_img/回应icon@2x.png"; import imgReply from "../../assets/RiskWarning_img/已回应icon@2x.png"; @@ -153,9 +229,11 @@ const getBarHeight = (value) => { // 区县数据 const districtData = [ + { name: "江北区", road: 1, bridge: 1, tunnel: 1, slope: 8, project: 11 }, { name: "江北区", road: 1, bridge: 1, tunnel: 1, slope: 8, project: 11 }, { name: "南岸区", road: 1, bridge: 2, tunnel: 2, slope: 6, project: 12 }, { name: "九龙坡区", road: 2, bridge: 1, tunnel: 1, slope: 9, project: 9 }, + { name: "九龙坡区", road: 2, bridge: 1, tunnel: 1, slope: 9, project: 9 }, { name: "万州区", road: 1, bridge: 2, tunnel: 2, slope: 11, project: 7 }, ]; @@ -227,10 +305,16 @@ const cellStyle = () => ({