index.vue 813 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <template>
  2. <component v-bind:is="currentTabComponent">
  3. </component>
  4. </template>
  5. <script>
  6. import moment from 'moment';
  7. import { getAction, postAction, downFile, downFilePost } from '@/api/manage';
  8. export default {
  9. name:'index',
  10. data() {
  11. return {
  12. currentTabComponent:'createStrategy',
  13. isEdit:false,
  14. strategyInfo:{},
  15. accountInfo:{},
  16. }
  17. },
  18. components:{
  19. createStrategy: () => import('./createStrategy'),
  20. setDirectional: () => import('./setDirectional'),
  21. setCreate: () => import('./setCreate'),
  22. },
  23. mounted(){
  24. this.currentTabComponent='createStrategy'
  25. },
  26. beforeDestroy() {
  27. this.currentTabComponent='createStrategy'
  28. },
  29. }
  30. </script>