|
@@ -14,12 +14,12 @@
|
|
</div>
|
|
</div>
|
|
<div ref="searchBoxRef" class="search-box">
|
|
<div ref="searchBoxRef" class="search-box">
|
|
<van-search
|
|
<van-search
|
|
- v-model="queryParams.keywords"
|
|
|
|
- placeholder="请输入位置信息"
|
|
|
|
- class="common-search"
|
|
|
|
- :left-icon="searchImg"
|
|
|
|
- show-action
|
|
|
|
- @search="onSearchKeyword"
|
|
|
|
|
|
+ v-model="queryParams.keywords"
|
|
|
|
+ placeholder="请输入位置信息"
|
|
|
|
+ class="common-search"
|
|
|
|
+ :left-icon="searchImg"
|
|
|
|
+ show-action
|
|
|
|
+ @search="onSearchKeyword"
|
|
>
|
|
>
|
|
<template #action>
|
|
<template #action>
|
|
<div class="search-btn" @click="onSearchKeyword">搜索</div>
|
|
<div class="search-btn" @click="onSearchKeyword">搜索</div>
|
|
@@ -46,13 +46,13 @@
|
|
</van-list>
|
|
</van-list>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div class="content" style="margin-top: 0;">
|
|
|
|
|
|
+ <div class="content" style="margin-top: 0">
|
|
<Map
|
|
<Map
|
|
- ref="mapRef"
|
|
|
|
- class="map"
|
|
|
|
- active-map="satellite"
|
|
|
|
- :event-details="eventDetails"
|
|
|
|
- @onLoadCompleted="initData"
|
|
|
|
|
|
+ ref="mapRef"
|
|
|
|
+ class="map"
|
|
|
|
+ active-map="satellite"
|
|
|
|
+ :event-details="eventDetails"
|
|
|
|
+ @onLoadCompleted="initData"
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
<div class="content">
|
|
<div class="content">
|
|
@@ -73,7 +73,7 @@
|
|
<div class="select-box" @click="showPicker = true">
|
|
<div class="select-box" @click="showPicker = true">
|
|
<div class="text1">年度</div>
|
|
<div class="text1">年度</div>
|
|
<div class="select-item">
|
|
<div class="select-item">
|
|
- <div class="label">{{ yearLabel ? yearLabel : '请选择' }}</div>
|
|
|
|
|
|
+ <div class="label">{{ yearLabel ? yearLabel : "请选择" }}</div>
|
|
<i class="icon-down" />
|
|
<i class="icon-down" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -83,6 +83,17 @@
|
|
<el-table-column label="发生时间" prop="data3" align="center" />
|
|
<el-table-column label="发生时间" prop="data3" align="center" />
|
|
<el-table-column label="受伤人数" prop="data4" align="center" />
|
|
<el-table-column label="受伤人数" prop="data4" align="center" />
|
|
<el-table-column label="死亡人数" prop="data5" align="center" />
|
|
<el-table-column label="死亡人数" prop="data5" align="center" />
|
|
|
|
+ <!-- <el-table-column label="操作" align="center" width="50px">-->
|
|
|
|
+ <!-- <template #default="scope">-->
|
|
|
|
+ <!-- <div-->
|
|
|
|
+ <!-- class="btn"-->
|
|
|
|
+ <!-- style="color: #1d92ff"-->
|
|
|
|
+ <!-- @click="showDetails(scope.row)"-->
|
|
|
|
+ <!-- >-->
|
|
|
|
+ <!-- 详情-->
|
|
|
|
+ <!-- </div>-->
|
|
|
|
+ <!-- </template>-->
|
|
|
|
+ <!-- </el-table-column>-->
|
|
</el-table>
|
|
</el-table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -112,8 +123,9 @@ const router = useRouter();
|
|
const noticeBarState = reactive({
|
|
const noticeBarState = reactive({
|
|
show: false,
|
|
show: false,
|
|
event_id: "",
|
|
event_id: "",
|
|
- time: '2024-03-01 12:12:12',
|
|
|
|
- event_title: "茂名市茂南区xxx高速路口发生交通事故,今日凌晨三点在xx高速路口,由于突降暴雨路面湿滑,导致路面积水严重,不少路过车辆都减速慢行…"
|
|
|
|
|
|
+ time: "2024-03-01 12:12:12",
|
|
|
|
+ event_title:
|
|
|
|
+ "茂名市茂南区xxx高速路口发生交通事故,今日凌晨三点在xx高速路口,由于突降暴雨路面湿滑,导致路面积水严重,不少路过车辆都减速慢行…"
|
|
});
|
|
});
|
|
const handleNoticeBar = () => {};
|
|
const handleNoticeBar = () => {};
|
|
// 搜索
|
|
// 搜索
|
|
@@ -217,6 +229,9 @@ const onPickerConfirm = ({ selectedOptions }) => {
|
|
yearLabel.value = selectedOptions[0].text;
|
|
yearLabel.value = selectedOptions[0].text;
|
|
queryParams.year = selectedOptions[0].value;
|
|
queryParams.year = selectedOptions[0].value;
|
|
};
|
|
};
|
|
|
|
+const showDetails = row => {
|
|
|
|
+ router.push({ name: "CityEmergencyDetails", query: { id: row.id } });
|
|
|
|
+};
|
|
const initData = () => {
|
|
const initData = () => {
|
|
const dom = mapRef.value;
|
|
const dom = mapRef.value;
|
|
// getActiveEventList().then(res => {
|
|
// getActiveEventList().then(res => {
|
|
@@ -392,9 +407,10 @@ const initData = () => {
|
|
position: relative;
|
|
position: relative;
|
|
width: 375px;
|
|
width: 375px;
|
|
height: 117px;
|
|
height: 117px;
|
|
- background: url('@/assets/images/disasterRiskMonitor/cityEmergencyEvent/box1.png') no-repeat;
|
|
|
|
|
|
+ background: url("@/assets/images/disasterRiskMonitor/cityEmergencyEvent/box1.png")
|
|
|
|
+ no-repeat;
|
|
background-size: 100% 100%;
|
|
background-size: 100% 100%;
|
|
- box-shadow:0 2px 4px 0 rgba(228, 240, 255, 1);
|
|
|
|
|
|
+ box-shadow: 0 2px 4px 0 rgba(228, 240, 255, 1);
|
|
.box-header {
|
|
.box-header {
|
|
display: flex;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
@@ -402,32 +418,33 @@ const initData = () => {
|
|
padding: 0 6px;
|
|
padding: 0 6px;
|
|
.more {
|
|
.more {
|
|
font-size: 12px;
|
|
font-size: 12px;
|
|
- color: #2C81FF;
|
|
|
|
|
|
+ color: #2c81ff;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.title-box {
|
|
.title-box {
|
|
height: 30px;
|
|
height: 30px;
|
|
background-color: #ffffff; /* 背景颜色 */
|
|
background-color: #ffffff; /* 背景颜色 */
|
|
transform: skewX(-20deg); /* 斜切变形 */
|
|
transform: skewX(-20deg); /* 斜切变形 */
|
|
- box-shadow:0 2px 4px 0 rgba(250, 217, 97, 0.18);
|
|
|
|
|
|
+ box-shadow: 0 2px 4px 0 rgba(250, 217, 97, 0.18);
|
|
padding: 0 10px;
|
|
padding: 0 10px;
|
|
display: flex;
|
|
display: flex;
|
|
align-items: center;
|
|
align-items: center;
|
|
border-radius: 2px;
|
|
border-radius: 2px;
|
|
&::after {
|
|
&::after {
|
|
- content: '';
|
|
|
|
|
|
+ content: "";
|
|
position: absolute;
|
|
position: absolute;
|
|
top: 0;
|
|
top: 0;
|
|
right: -6px;
|
|
right: -6px;
|
|
transform: skewX(20deg);
|
|
transform: skewX(20deg);
|
|
width: 11px;
|
|
width: 11px;
|
|
height: 27px;
|
|
height: 27px;
|
|
- background: url('@/assets/images/disasterRiskMonitor/riverMonitor/thickness.png') no-repeat;
|
|
|
|
|
|
+ background: url("@/assets/images/disasterRiskMonitor/riverMonitor/thickness.png")
|
|
|
|
+ no-repeat;
|
|
background-size: 100% 100%;
|
|
background-size: 100% 100%;
|
|
}
|
|
}
|
|
.title {
|
|
.title {
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
- color: #FFAF00;
|
|
|
|
|
|
+ color: #ffaf00;
|
|
transform: skewX(20deg);
|
|
transform: skewX(20deg);
|
|
display: flex;
|
|
display: flex;
|
|
align-items: center;
|
|
align-items: center;
|
|
@@ -435,7 +452,8 @@ const initData = () => {
|
|
display: inline-block;
|
|
display: inline-block;
|
|
width: 16px;
|
|
width: 16px;
|
|
height: 16px;
|
|
height: 16px;
|
|
- background: url('@/assets/images/disasterRiskMonitor/riverMonitor/speaker.png') no-repeat;
|
|
|
|
|
|
+ background: url("@/assets/images/disasterRiskMonitor/riverMonitor/speaker.png")
|
|
|
|
+ no-repeat;
|
|
background-size: 100% 100%;
|
|
background-size: 100% 100%;
|
|
margin-right: 5px;
|
|
margin-right: 5px;
|
|
}
|
|
}
|
|
@@ -451,7 +469,7 @@ const initData = () => {
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
text-overflow: ellipsis;
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
- color: #414F64;
|
|
|
|
|
|
+ color: #414f64;
|
|
}
|
|
}
|
|
.text2 {
|
|
.text2 {
|
|
font-size: 12px;
|
|
font-size: 12px;
|
|
@@ -530,7 +548,7 @@ const initData = () => {
|
|
align-items: center;
|
|
align-items: center;
|
|
border-top-left-radius: 4px;
|
|
border-top-left-radius: 4px;
|
|
border-top-right-radius: 4px;
|
|
border-top-right-radius: 4px;
|
|
- background-image: linear-gradient(180deg, #F3F7FD 0%, #FFFFFF 100%);
|
|
|
|
|
|
+ background-image: linear-gradient(180deg, #f3f7fd 0%, #ffffff 100%);
|
|
.icon-line {
|
|
.icon-line {
|
|
display: inline-block;
|
|
display: inline-block;
|
|
width: 6px;
|
|
width: 6px;
|
|
@@ -553,7 +571,7 @@ const initData = () => {
|
|
padding-right: 20px;
|
|
padding-right: 20px;
|
|
.text1 {
|
|
.text1 {
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
- color: #414F64;
|
|
|
|
|
|
+ color: #414f64;
|
|
margin-right: 5px;
|
|
margin-right: 5px;
|
|
}
|
|
}
|
|
.select-item {
|
|
.select-item {
|
|
@@ -563,7 +581,7 @@ const initData = () => {
|
|
height: 32px;
|
|
height: 32px;
|
|
border-raduis: 4px;
|
|
border-raduis: 4px;
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
- color: #414F64;
|
|
|
|
|
|
+ color: #414f64;
|
|
display: flex;
|
|
display: flex;
|
|
align-items: center;
|
|
align-items: center;
|
|
.label {
|
|
.label {
|
|
@@ -574,7 +592,7 @@ const initData = () => {
|
|
display: inline-block;
|
|
display: inline-block;
|
|
width: 14px;
|
|
width: 14px;
|
|
height: 14px;
|
|
height: 14px;
|
|
- background: url('@/assets/images/down.png') no-repeat;
|
|
|
|
|
|
+ background: url("@/assets/images/down.png") no-repeat;
|
|
background-size: 100% 100%;
|
|
background-size: 100% 100%;
|
|
margin-left: 5px;
|
|
margin-left: 5px;
|
|
}
|
|
}
|