layout03.vue 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <template>
  2. <div class="dash--board--contents type3">
  3. <!-- CORE -->
  4. <div>
  5. <Core06x24
  6. :config="coreConfig"
  7. :interval-time="props.intervalTime"
  8. />
  9. </div>
  10. <!-- USER -->
  11. <div>
  12. <User06x24
  13. :config="userConfig"
  14. :interval-time="props.intervalTime"
  15. />
  16. </div>
  17. <!-- RAN -->
  18. <div>
  19. <Ran12x24
  20. :config="raneConfig"
  21. :interval-time="props.intervalTime"
  22. />
  23. </div>
  24. </div>
  25. </template>
  26. <script setup>
  27. /***********************
  28. * import
  29. ************************/
  30. import { useI18n } from "vue-i18n"
  31. import apiUrl from '@/composables/useApi';
  32. import useAxios from '@/composables/useAxios';
  33. import useUtil from '@/composables/useUtil';
  34. import Core06x24 from '@/components/home/dashboard/layout03/core/layout03Core.vue'
  35. import User06x24 from '@/components/home/dashboard/layout03/user/layout03User.vue'
  36. import Ran12x24 from '@/components/home/dashboard/layout03/ran/layout03Ran.vue'
  37. /***********************
  38. * plugins inject
  39. ************************/
  40. const { $toast, $log, $dayjs, $eventBus } = useNuxtApp()
  41. // props
  42. const props = defineProps({
  43. intervalTime: {
  44. type: Number,
  45. default: 5000
  46. }
  47. })
  48. // 참조가능 데이터 설정
  49. defineExpose({})
  50. // 발신 이벤트 선언
  51. const emit = defineEmits([""]);
  52. const i18n = useI18n();
  53. /***********************
  54. * data & created
  55. ************************/
  56. const widgets = computed(() => useAuthStore().getWidgets);
  57. const coreConfig = computed(() => widgets.value?.find(w => w.widgetGrp == 'CORE'));
  58. const userConfig = computed(() => widgets.value?.find(w => w.widgetGrp == 'USER'));
  59. const raneConfig = computed(() => widgets.value?.find(w => w.widgetGrp == 'RANE'));
  60. /***********************
  61. * Methods
  62. ************************/
  63. </script>