index.vue 949 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <template>
  2. <div class="bs-manage-main-wrap">
  3. <side-menu
  4. :type="type"
  5. @getPageInfo="getPageInfo"
  6. />
  7. <menu-content
  8. :catalog-info="catalogInfo"
  9. :type="type"
  10. />
  11. </div>
  12. </template>
  13. <script>
  14. import SideMenu from './SideMenu'
  15. import MenuContent from './MenuContent'
  16. export default {
  17. name: '',
  18. props: {
  19. type: {
  20. type: String,
  21. default: 'bigScreenCatalog'
  22. }
  23. },
  24. components: { SideMenu, MenuContent },
  25. data () {
  26. return {
  27. catalogInfo: {
  28. isAll: true,
  29. page: {
  30. id: null,
  31. code: null,
  32. type: ''
  33. }
  34. }
  35. }
  36. },
  37. mounted () {},
  38. methods: {
  39. getPageInfo (pageInfo) {
  40. this.catalogInfo = pageInfo
  41. }
  42. }
  43. }
  44. </script>
  45. <style lang="scss" scoped>
  46. .bs-manage-main-wrap {
  47. position: relative;
  48. width: 100%;
  49. height: 100%;
  50. display: flex;
  51. background-color: var(--bs-background-1);
  52. // padding-top: 16px;
  53. }
  54. </style>