|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <el-dialog v-loading='loading' element-loading-text="拼命加载中" width="80%" destroy-on-close :visible.sync="dialogTableVisible" append-to-body>
|
|
|
+ <el-dialog v-loading='loading' element-loading-text="拼命加载中" width="80%" destroy-on-close :visible.sync="dialogTableVisible" append-to-body show-close>
|
|
|
<el-form v-if="showSearch" ref="ruleForm" class="demo-form-inline" :inline="true">
|
|
|
<el-form-item class="search-box">
|
|
|
<el-input size="small" @keydown.enter.native="seachEnterFun" v-model="searchKey" type="search" id="search" style="width: 280px" placeholder="请输入关键字进行搜索" />
|
|
@@ -27,6 +27,8 @@
|
|
|
<amap @click="onMapClick" ref="map" :zoom="zoom" :center="center" style="height: 700px;" class="amap-demo">
|
|
|
<amap-marker v-for="(marker,index) in markers" :key="index" :offset="marker.offset" :position="marker.position" :icon="marker.icon" :label="marker.label" />
|
|
|
</amap>
|
|
|
+ <!-- 关闭按钮 -->
|
|
|
+ <img @click="dialogTableVisible = false" class="close" src="../../../static/image/icon_close2.png" alt="">
|
|
|
</el-dialog>
|
|
|
</template>
|
|
|
|
|
@@ -281,6 +283,9 @@ export default {
|
|
|
<style lang="scss" scoped>
|
|
|
/deep/ .el-form-item {
|
|
|
display: flex;
|
|
|
+ .el-form-item__label {
|
|
|
+ flex-shrink: 0;
|
|
|
+ }
|
|
|
}
|
|
|
/deep/ .amap-marker-label {
|
|
|
font-size: 12px;
|
|
@@ -348,4 +353,12 @@ export default {
|
|
|
top: -25px !important;
|
|
|
left: -10px !important;
|
|
|
}
|
|
|
+.close {
|
|
|
+ position: absolute;
|
|
|
+ top: -5px;
|
|
|
+ right: -5px;
|
|
|
+ width: 40px;
|
|
|
+ height: 40px;
|
|
|
+ cursor: pointer;
|
|
|
+}
|
|
|
</style>
|