index.vue 862 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. previewStrategyInfo:{},
  17. }
  18. },
  19. components:{
  20. createStrategy: () => import('./createStrategy'),
  21. setDirectional: () => import('./setDirectional'),
  22. previewStrategy: () => import('./previewStrategy'),
  23. },
  24. mounted(){
  25. this.currentTabComponent='createStrategy'
  26. },
  27. beforeDestroy() {
  28. this.currentTabComponent='createStrategy'
  29. },
  30. }
  31. </script>