接口注释打开

main
jn517618 2 years ago
parent 3fdd5ce0db
commit b41e88c24a
  1. 29
      src/views/energySourcesProvince/component/pathMap.vue

@ -83,15 +83,15 @@ export default {
}, },
created() { created() {
this.$nextTick(() => { this.$nextTick(() => {
// this.getData() this.getData()
setTimeout(() => { // setTimeout(() => {
this.initMap(); // this.initMap();
}, 0); // }, 0);
window.addEventListener('resize', () => { // window.addEventListener('resize', () => {
if (this.baiduMap) { // if (this.baiduMap) {
this.backMap(); // this.backMap();
} // }
}); // });
}) })
}, },
mounted() { mounted() {
@ -104,7 +104,6 @@ export default {
console.log(data, '.....') console.log(data, '.....')
this.markList.forEach(e => { this.markList.forEach(e => {
data.forEach(r => { data.forEach(r => {
if (e.name.includes(r.name)) { if (e.name.includes(r.name)) {
e.carbon = r.carbon || 0 e.carbon = r.carbon || 0
e.electricity = r.electricity || 0 e.electricity = r.electricity || 0
@ -158,11 +157,11 @@ export default {
// // fillOpacity: 0 // // fillOpacity: 0
// })) // }))
try { // try {
BMapGLLib.AreaRestriction.setBounds(this.baiduMap, bound); // BMapGLLib.AreaRestriction.setBounds(this.baiduMap, bound);
} catch (e) { // } catch (e) {
console.log(e) // console.log(e)
} // }
// bdary.get('', (rs) => { // bdary.get('', (rs) => {
// // // //

Loading…
Cancel
Save