<template>

        <component v-bind:is="currentTabComponent">

        </component>
    
    
</template>

<script>
import moment from 'moment';
import { getAction, postAction, downFile, downFilePost } from '@/api/manage';
export default {
    name:'index',
    data() {
        return {
            currentTabComponent:'operatorPlatform',
            orderStatus:undefined,//跳转到订单详情时需要里面的参数  status订单参数 role 当前角色
            role:'operator',
            materialStatus:undefined,
            orderId:undefined,
            isEdit:false,
        }
    },
    components:{   
        operatorPlatform: () => import('./platForm'), 
        orderList: () => import('../orderList'), 
        materialList: () => import('./materialList'), 
        orderDetail: () => import('../orderDetail'), 
        placeOrder: () => import('../placeOrder'), 
    },

    mounted(){
       this.currentTabComponent='operatorPlatform' 
    },
    beforeDestroy() {
        this.currentTabComponent='operatorPlatform' 
    },
   
}

</script>
