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
const whiteList = ['/login'] // no redirect whitelist
const whiteList = ['/login','/assets/map'] // no redirect whitelist
router.beforeEach(async(to, from, next) => {
// start progress bar

@ -282,7 +282,7 @@ export default {
this.addCluster();
},
init() {
init(adcode = ["320200"]) {
let winHeight = document
.querySelector(".app-main")
?.getBoundingClientRect()?.height;
@ -294,7 +294,6 @@ export default {
zoom: this.zoom,
});
//
let adcode = ["320200"];
this.areaBG(adcode);
this.infoWindow = new AMap.InfoWindow({
isCustom: true,
@ -564,11 +563,12 @@ export default {
this.getFormDetail();
},
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();
this.setMapMarker();
},
}
};
</script>

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

Loading…
Cancel
Save