index.vue 877 B

123456789101112131415161718192021222324252627282930313233
  1. <template>
  2. <keep-alive>
  3. <component v-bind:is="currentTabComponent"></component>
  4. </keep-alive>
  5. </template>
  6. <script>
  7. import moment from 'moment';
  8. import { getAction, postAction, downFile, downFilePost } from '@/api/manage';
  9. export default {
  10. components:{
  11. designleaderPlatform: () => import('./platForm'),
  12. orderList: () => import('../orderList'),
  13. orderDetail: () => import('../orderDetail'),
  14. materialList: () => import('../materialList'),
  15. },
  16. data() {
  17. return {
  18. currentTabComponent:'designleaderPlatform',//当前加载的组件名称
  19. orderStatus:undefined,//跳转到订单详情时需要里面的参数 status订单参数 role 当前角色
  20. role:'designLeader',
  21. materialStatus:undefined,
  22. orderId:undefined,
  23. }
  24. },
  25. }
  26. </script>