| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <template>
- <div>
- <!-- <BSTList v-if="type==1"/>
- <HXYList v-else-if="type==2"/> -->
- </div>
- </template>
- <script>
- // import BSTList from '@/views/leadMatch/roomList/BSTlist';
- // import HXYList from '@/views/leadMatch/roomList/HXYlist';
- export default {
- data(){
- return{
- type:null //1倍思特 2华信源
- }
- },
- beforeRouteEnter(to,form,next){
- console.log(to);
- if(to.query.version==0||to.query.version==1){
- next('/cms/leadMatch/roomList/BSTlist');
- }else if(to.query.version == 2){
- next('/cms/leadMatch/roomList/HXYlist')
- }else{
- next('/cms/leadMatch/roomList/BSTlist');
- }
- }
- // created(){
-
- // this.axios.post('/api/get_cut_order_type').then(res=>{
- // this.type = res.data;
- // })
- // },
- // beforeRouteLeave(to, from, next) {
- // if (
- // to.path == "/cms/leadMatch/roomList/HXYedit" ||
- // to.path == "/cms/leadMatch/roomList/BSTedit"
- // ) {
- // from.meta.keepAlive = false;
- // next();
- // } else {
- // localStorage.removeItem("list");
- // localStorage.removeItem("pageSize");
- // localStorage.removeItem("pageIndex");
- // localStorage.removeItem("searchList");
- // from.meta.keepAlive = false;
- // next();
- // }
- // },
- // components:{
- // BSTList,
- // HXYList
- // }
- }
- </script>
- <style lang="scss" scoped>
- </style>
|