export default{
data(){return{
exportshowFlag:false; // 是否显示导出按钮
}},
created(){
this.initPage();
this.reload();
},
watch :{
'$route': function (to, from) {
this.initPage();
}
},
methods:{
initPage(){
//let url = window.location.href;
//let name = url.split('/')[url.split('/').length-1];
let name = let name = this.$route.meta.name; // routes query
this.exportshowFlag = false; // 初始化
switch(name){
case 'collectRecordquery':this.exportshowFlag = false;break;
case 'collectRecordExp': this.exportshowFlag = true;break;
default:break;
}
this.reload();
},
}
}