liujq 3 lat temu
rodzic
commit
8f0f8fc85d

Plik diff jest za duży
+ 0 - 0
dist/index.html


Plik diff jest za duży
+ 0 - 0
dist/static/css/chunk-145f736a.344a639d.css


Plik diff jest za duży
+ 0 - 0
dist/static/css/chunk-2051d580.c0645615.css


Plik diff jest za duży
+ 0 - 0
dist/static/css/chunk-265fb9ec.69481bd6.css


Plik diff jest za duży
+ 0 - 0
dist/static/js/app.f9e71193.js


Plik diff jest za duży
+ 0 - 0
dist/static/js/chunk-145f736a.ff81222d.js


Plik diff jest za duży
+ 0 - 0
dist/static/js/chunk-2051d580.dda5f26e.js


Plik diff jest za duży
+ 0 - 0
dist/static/js/chunk-265fb9ec.a22e5dd0.js


+ 26 - 13
src/views/map/dtl.vue

@@ -1,12 +1,12 @@
 <template>
   <div class="app-container">
-    <div class="scoped-deal-box">
+    <div :class="isDbShow ? 'scoped-deal-box' : 'scoped-deal-box t2'">
       <div class="sdb-info">
         <div class="p1">当前缩放级别:{{mapDiyObj.zoom}}<span class="more" @click="setShowChange">{{isMapSetShow ? '收起设置' : '展开设置'}}></span></div>
         <div class="p2" v-show="isMapSetShow">
           <base-form ref="ruleForm" :data="formData" :is-inline="false" label-width="80px">
             <div slot="footer">
-              <el-button class="xl-form-btn bgc2" @click="setHandle">保存设置</el-button>
+              <el-button class="xl-form-btn bgc2" @click="setHandle">设置</el-button>
               <div class="scoped-select-center" @click="setCenterHandle">中心坐标<div class="s">{{centerStr}}</div></div>
             </div>
           </base-form>
@@ -101,6 +101,7 @@ export default {
   data() {
     const that = this
     return {
+      isDbShow: true,
       isMapSetShow: false,
       formData: [],
       isMteShow: false,
@@ -283,15 +284,18 @@ export default {
       mouseTool.marker({
         content: ' ',
       })
-      window.setTimeout(() => {
-        mouseTool.close(true)
-      }, 1000)
+      that.isDbShow = false
+      that.$msgs('请在地图上选择中心点')
       AMap.event.addListener(mouseTool,'draw',function(e){
         let cPath = e.obj.getPosition()
         let mapDiyObj = {...that.mapDiyObj}
         mapDiyObj.center = [cPath.lng, cPath.lat]
         that.mapDiyObj = {...mapDiyObj}
-        that.$msg('中心坐标选取成功~')
+        that.$msg('中心坐标选取成功~如需重新选中心点,请再次点击中心坐标位置')
+        that.isDbShow = true
+        window.setTimeout(() => {
+          mouseTool.close(true)
+        }, 100)
       })
     },
     saveHandle () {
@@ -347,12 +351,14 @@ export default {
           fillColor: obj.fillColor || '#DC3021', // 填充色
           fillOpacity: obj.fillOpacity || 0.3, // 填充透明度
           strokeColor: obj.strokeColor || '#DC3021', // 轮廓颜色
-          strokeWeight: 1, // 轮廓宽度
-          strokeOpacity: 0.6, // 轮廓透明度
+          strokeWeight: 2, // 轮廓宽度
+          strokeOpacity: 0.9, // 轮廓透明度
           text: obj.text,
         })
         that.polygons = [...polygons]
         mouseTool.close(true)
+        that.isDbShow = true
+        console.log(that.isDbShow)
       })
     },
     mapIsEdit (index, str) {
@@ -389,10 +395,10 @@ export default {
     },
     closeMte (obj, bcStr) {
       this.isMteShow = false
-      this.mteObj = {}
       if (obj) {
         if (bcStr && bcStr === 'edit') {
           const index = this.mteObj.index || 0
+          console.log(this.mteObj)
           const str = this.mteStr === 'textAdd' ? 'markerData' : 'polygons'
           let tempData = [...this[str]]
           if (this.mteStr === 'textAdd') {
@@ -410,7 +416,10 @@ export default {
         } else {
           this[this.mteStr](obj)
         }
+        this.isDbShow = false
+        this.$msgs('请在地图上操作')
       }
+      this.mteObj = {}
     },
     textAdd (obj) {
       const that = this
@@ -419,9 +428,6 @@ export default {
       mouseTool.marker({
         content: ' ',
       })
-      window.setTimeout(() => {
-        mouseTool.close(true)
-      }, 1000)
       AMap.event.addListener(mouseTool,'draw',function(e){
         let cPath = e.obj.getPosition()
         let markerData = [...that.markerData]
@@ -435,6 +441,10 @@ export default {
           color: obj.color,
         })
         that.markerData = [...markerData]
+        window.setTimeout(() => {
+          mouseTool.close(true)
+          that.isDbShow = true
+        }, 100)
       })
     },
   }
@@ -452,7 +462,7 @@ export default {
 }
 .scoped-deal-box {
   background: #f2f2f2;
-  box-shadow: 0 0 5px #ccc;
+  box-shadow: 0 0 5px #666;
   position: absolute;
   z-index: 999;
   left: 0;
@@ -461,6 +471,9 @@ export default {
   width: 220px;
   overflow-y: auto;
   overflow-x: hidden;
+  &.t2 {
+    opacity: 0.5;
+  }
   .sdb-info {
     background: #fff;
     margin-bottom: 10px;

+ 1 - 1
src/views/map/list.vue

@@ -75,7 +75,7 @@ export default {
     delHandle(row) {
       this.$msg(`您确定要删除该楼盘吗?`, 'confirm', () => {
         this.$api.other.admmapcoordindel({
-          id: row.id,
+          uuid: row.uuid,
         }).then(() => {
           this.$msgs(`已删除!`)
           this.fetchData()

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików