Browse Source

修复某些漏洞

napier 2 years ago
parent
commit
e401f3a118
3 changed files with 9 additions and 15 deletions
  1. 2 3
      src/components/card.vue
  2. 7 6
      src/components/map.vue
  3. 0 6
      src/components/pcBar.vue

+ 2 - 3
src/components/card.vue

@@ -63,9 +63,8 @@ export default {
     return {
     return {
       button: '',
       button: '',
       flag: '',
       flag: '',
-      // imgArr: ['https://i.loli.net/2021/09/26/SAI1gWCvB8DMsTi.png'],
-      image: 'https://gitee.com/clqn/picgo/raw/master/imgs/card-img.png',
-      imgArr: ['https://gitee.com/clqn/picgo/raw/master/imgs/card-img.png'],
+      image: 'http://clqn-1300030890.coscd.myqcloud.com/card-img.png',
+      imgArr: ['http://clqn-1300030890.coscd.myqcloud.com/card-img.png'],
       showMore: false,
       showMore: false,
       screenSize: window.screen.width
       screenSize: window.screen.width
     }
     }

+ 7 - 6
src/components/map.vue

@@ -467,6 +467,8 @@ export default {
           style = this.otherStyles
           style = this.otherStyles
           break
           break
       }
       }
+      console.log(type)
+      console.log(type + ':' + style)
       var feature = this.GeoJSON_to_Feature(geometry, style)
       var feature = this.GeoJSON_to_Feature(geometry, style)
 
 
       // 要素属性装载
       // 要素属性装载
@@ -511,7 +513,6 @@ export default {
         console.log('printFromGeoJSON 所输入的GeoJSON不符合规范')
         console.log('printFromGeoJSON 所输入的GeoJSON不符合规范')
         return
         return
       }
       }
-
       var feature = null
       var feature = null
       // 按geometry.type类型创建要素并赋予样式
       // 按geometry.type类型创建要素并赋予样式
       switch (geometry.type) {
       switch (geometry.type) {
@@ -661,9 +662,9 @@ export default {
         .post('/others/all')
         .post('/others/all')
         .then(res => {
         .then(res => {
           res.data.forEach(e => {
           res.data.forEach(e => {
-            that.printFeature('otherLayer', e, 'other')
+            that.printFeature('otherLayer', e, 'others')
           })
           })
-          this.addCluster('otherLayer', this.otherStyles.Point)
+          that.addCluster('otherLayer', that.otherStyles.Point)
         })
         })
     },
     },
 
 
@@ -809,7 +810,7 @@ export default {
           id: id
           id: id
         })
         })
         .then(response => {
         .then(response => {
-          response.data.content = response.data.content.join('')
+          // response.data.content = response.data.content.join('')
           that.popupData.info = response.data
           that.popupData.info = response.data
           that.popupData.type = '文化设施'
           that.popupData.type = '文化设施'
 
 
@@ -1048,8 +1049,8 @@ export default {
         map.removeLayer(that.getLayerByTitle('markLayer'))
         map.removeLayer(that.getLayerByTitle('markLayer'))
         that.loadOthers()
         that.loadOthers()
         that.loadCulture()
         that.loadCulture()
-        that.loadRecentReports(7)
-        that.loadRecentNotices(7)
+        that.loadRecentReports(365)
+        that.loadRecentNotices(365)
         that.closePopup()
         that.closePopup()
       })
       })
 
 

+ 0 - 6
src/components/pcBar.vue

@@ -518,12 +518,6 @@ export default {
       .then((res) => {
       .then((res) => {
         this.form =res.data
         this.form =res.data
         this.form.type = that.getTypeName(type)
         this.form.type = that.getTypeName(type)
-        console.log(this.form)
-        // this.form={
-        //   res.data,
-        //   place:res.data.unit,
-        //   type:that.tabIndex=='0'?'通知':that.tabIndex=='1'?'报道':that.tabIndex=='2'?"文化":'更多'
-        // }
       })
       })
     },
     },