master
xy 2 years ago
parent 828c6cffd8
commit 356567153f

@ -8,7 +8,7 @@ import getPageTitle from '@/utils/get-page-title'
NProgress.configure({ showSpinner: false }) // NProgress Configuration NProgress.configure({ showSpinner: false }) // NProgress Configuration
const whiteList = ['/login'] // no redirect whitelist const whiteList = ['/login','/assets/map'] // no redirect whitelist
router.beforeEach(async(to, from, next) => { router.beforeEach(async(to, from, next) => {
// start progress bar // start progress bar

@ -282,7 +282,7 @@ export default {
this.addCluster(); this.addCluster();
}, },
init() { init(adcode = ["320200"]) {
let winHeight = document let winHeight = document
.querySelector(".app-main") .querySelector(".app-main")
?.getBoundingClientRect()?.height; ?.getBoundingClientRect()?.height;
@ -294,7 +294,6 @@ export default {
zoom: this.zoom, zoom: this.zoom,
}); });
// //
let adcode = ["320200"];
this.areaBG(adcode); this.areaBG(adcode);
this.infoWindow = new AMap.InfoWindow({ this.infoWindow = new AMap.InfoWindow({
isCustom: true, isCustom: true,
@ -564,11 +563,12 @@ export default {
this.getFormDetail(); this.getFormDetail();
}, },
async mounted() { async mounted() {
this.init(); let areaId = Number(this.$route.query.area) || ''
areaId ? (this.init(this.wxAreas[areaId - 1]),this.select.filter[0].value = areaId) : this.init();
await this.getList(); await this.getList();
this.setMapMarker(); this.setMapMarker();
}, }
}; };
</script> </script>

@ -4,7 +4,7 @@
<div> <div>
<div ref="lxHeader"> <div ref="lxHeader">
<LxHeader <LxHeader
icon="md-apps" :icon="$route.meta.icon"
:text="$route.meta.title" :text="$route.meta.title"
style="margin-bottom: 10px; border: 0px; margin-top: 15px" style="margin-bottom: 10px; border: 0px; margin-top: 15px"
> >

Loading…
Cancel
Save