watch: {
'screenWidth':function (val) {
console.log('ssaa', val)
let height=document.body.scrollWidth - 500;
this.mapHeight=height +'px';
}
},
mounted(){
this.roadMap()
this.$api.commonsupAPI.findChildren({'dictType':'lsmtp_dkqy'}).then(res=>{
if(res!=null&&res!=undefined){
this.options=res;
}
});
this.$api.commonsupAPI.findChildren({'dictType':'lsmtp_tdyt'}).then(res=>{
if(res!=null&&res!=undefined){
this.oneLevelArr=res;
}
});
this.$store.commit('login/M_UPDATE_HEADSHOW',false);
this.$store.commit('login/M_UPDATE_FOOTSHOW',false);
let height=document.body.scrollWidth - 500;
this.mapHeight=height +'px';
var _this = this;
window.onresize = function(){
_this.screenWidth = document.documentElement.clientWidth;
_this.screenHeight = document.documentElement.clientHeight;
}
},