project.vue 982 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <template>
  2. <div class="flex flex-col full-height full-width">
  3. <top-serach v-if="type === 0" />
  4. <owner-serach v-else-if="type === 1" />
  5. <div class="full-width mt-10">
  6. <dash />
  7. </div>
  8. </div>
  9. </template>
  10. <route>
  11. {
  12. path: '/project',
  13. name: '项目管理',
  14. meta: {keepAlive: true}
  15. }
  16. </route>
  17. <script>
  18. import topSerach from './component/top_serach.vue'
  19. import ownerSerach from './component/owner_serach.vue'
  20. import dash from './component/dash.vue'
  21. import { useStore } from '@/store/user.js'
  22. import tokenStore from '../../store/token.js'
  23. export default {
  24. name: '项目管理',
  25. components: { topSerach, dash, ownerSerach },
  26. setup() {
  27. const store = useStore()
  28. const token = tokenStore()
  29. return { store, token }
  30. },
  31. data() {
  32. return {
  33. type: 1
  34. }
  35. },
  36. created() {},
  37. methods: {
  38. push() {
  39. this.$router.push({ path: '/setting', query: { id: 12, type: 'test' } })
  40. }
  41. }
  42. }
  43. </script>
  44. <style lang="scss" scoped></style>