|
@@ -13,6 +13,9 @@
|
|
|
<div class="search-btn" @click="onSearchKeyword">搜索</div>
|
|
|
</template>
|
|
|
</van-search>
|
|
|
+ <div class="box3">
|
|
|
+ <Select v-model="area" :columns="district_type" canSelectAll @confirm="onSelectConfirm" />
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<Map
|
|
|
ref="mapRef"
|
|
@@ -96,8 +99,11 @@
|
|
|
|
|
|
<script lang="ts" setup name="reservoirMonitor">
|
|
|
import searchImg from "@/assets/images/search.png";
|
|
|
-import { onMounted, reactive, ref } from "vue";
|
|
|
+import {reactive, ref } from "vue";
|
|
|
import { ElTable, ElTableColumn } from "element-plus";
|
|
|
+import {useDict} from "@/utils/dict";
|
|
|
+
|
|
|
+const { district_type } = toRefs<any>(useDict('district_type'));
|
|
|
let mapRef = ref();
|
|
|
const getImageUrl = name => {
|
|
|
return new URL(
|
|
@@ -107,6 +113,8 @@ const getImageUrl = name => {
|
|
|
};
|
|
|
let eventDetails = ref({});
|
|
|
let keyword = ref("");
|
|
|
+let area = ref("");
|
|
|
+
|
|
|
let menu1 = ref([
|
|
|
{ name: "大型", num: 2, icon: getImageUrl("icon5.png"), checked: true },
|
|
|
{ name: "中型", num: 1, icon: getImageUrl("icon6.png"), checked: true },
|
|
@@ -164,6 +172,10 @@ const onSearchKeyword = val => {
|
|
|
initData();
|
|
|
};
|
|
|
|
|
|
+const onSelectConfirm = (data) => {
|
|
|
+ initData();
|
|
|
+}
|
|
|
+
|
|
|
const onSearchCancel = () => {
|
|
|
keyword.value = "";
|
|
|
initData();
|
|
@@ -306,13 +318,20 @@ const getTableRowClass = ({ rowIndex }) => {
|
|
|
.box1 {
|
|
|
padding: 13px 9px;
|
|
|
background-color: #ffffff;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ .common-search {
|
|
|
+ margin-right: 5px;
|
|
|
+ }
|
|
|
+ .select-box {
|
|
|
+ flex: 1;
|
|
|
+ }
|
|
|
}
|
|
|
.box2 {
|
|
|
position: relative;
|
|
|
width: 344px;
|
|
|
min-height: 114px;
|
|
|
- background: url("@/assets/images/disasterRiskMonitor/riverMonitor/box1.png")
|
|
|
- no-repeat;
|
|
|
+ background: url("@/assets/images/disasterRiskMonitor/riverMonitor/box1.png") no-repeat;
|
|
|
background-size: 100% 100%;
|
|
|
box-shadow: 0 2px 4px 0 rgba(228, 240, 255, 1);
|
|
|
padding: 35px 0 0 0;
|
|
@@ -415,7 +434,7 @@ const getTableRowClass = ({ rowIndex }) => {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- .common-search {
|
|
|
+ .van-search.common-search {
|
|
|
border: 1px solid #dce0ee;
|
|
|
border-radius: 2px;
|
|
|
padding: 0;
|
|
@@ -426,6 +445,7 @@ const getTableRowClass = ({ rowIndex }) => {
|
|
|
}
|
|
|
:deep(.van-search__content) {
|
|
|
background-color: #ffffff;
|
|
|
+ border: none !important;
|
|
|
}
|
|
|
:deep(.van-field__left-icon) {
|
|
|
.van-icon__image {
|
|
@@ -528,4 +548,7 @@ const getTableRowClass = ({ rowIndex }) => {
|
|
|
height: 33px;
|
|
|
background-size: 100% 100%;
|
|
|
}
|
|
|
+.box3 {
|
|
|
+ width: 75px;
|
|
|
+}
|
|
|
</style>
|