qualityScreen.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <template>
  2. <div class="screen-window">
  3. <dv-full-screen-container id="dv-full-screen">
  4. <ScreenHeader title="质量综合大屏" />
  5. <div class="screen-content" style="flex-direction: column">
  6. <div class="top-container">
  7. <dv-border-box-3 class="top-container-box top-left">
  8. <component :is="qualityTOP01" moduleId="qualityTOP01" />
  9. </dv-border-box-3>
  10. <!-- <div class="top-container-box top-middle">
  11. <component :is="qualityTOP02" moduleId="qualityTOP02" />
  12. </div> -->
  13. <dv-border-box-3 class="top-container-box top-right">
  14. <component :is="qualityTOP03" moduleId="qualityTOP03" />
  15. </dv-border-box-3>
  16. </div>
  17. <div class="vertical-space"></div>
  18. <div class="bottom-container">
  19. <dv-border-box-8 class="bottom-container-box bottom-left">
  20. <component :is="qualityBottom01" moduleId="qualityBottom01" />
  21. </dv-border-box-8>
  22. <div class="bottom-container-box bottom-right">
  23. <component :is="qualityBottom02" moduleId="qualityBottom02" />
  24. </div>
  25. </div>
  26. </div>
  27. </dv-full-screen-container>
  28. <SelectComponents />
  29. </div>
  30. </template>
  31. <script lang="ts" setup>
  32. import { getComponetnByName } from "@/views/screens/configs/components";
  33. import SelectComponents from "@/views/screens/configs/SelectComponents.vue";
  34. import { useCommonStore } from "@/store";
  35. import ScreenHeader from "@/views/screens/headers/screenHeader.vue";
  36. const commonS = useCommonStore();
  37. const qualityTOP01 = computed(() => {
  38. return getComponetnByName(commonS.qualityTOP01);
  39. });
  40. const qualityTOP02 = computed(() => {
  41. return getComponetnByName(commonS.qualityTOP02);
  42. });
  43. const qualityTOP03 = computed(() => {
  44. return getComponetnByName(commonS.qualityTOP03);
  45. });
  46. const qualityBottom01 = computed(() => {
  47. return getComponetnByName(commonS.qualityBottom01);
  48. });
  49. const qualityBottom02 = computed(() => {
  50. return getComponetnByName(commonS.qualityBottom02);
  51. });
  52. </script>
  53. <style lang="scss" scoped>
  54. .top-container {
  55. height: 45%;
  56. width: 100%;
  57. display: flex;
  58. justify-content: center;
  59. align-items: center;
  60. .top-container-box {
  61. height: 100%;
  62. //border: 1px solid yellow;
  63. padding: 25px;
  64. }
  65. .top-left {
  66. width: 73%;
  67. }
  68. // .top-middle {
  69. // width: 46%;
  70. // }
  71. .top-right {
  72. width: 27%;
  73. }
  74. }
  75. .vertical-space {
  76. height: 15px;
  77. width: 100%;
  78. }
  79. .bottom-container {
  80. height: calc(55% - 15px);
  81. width: 100%;
  82. display: flex;
  83. justify-content: center;
  84. align-items: center;
  85. .bottom-container-box {
  86. height: 100%;
  87. padding: 25px;
  88. //border: 1px solid yellow;
  89. }
  90. .bottom-left {
  91. width: 50%;
  92. }
  93. .bottom-right {
  94. width: 50%;
  95. }
  96. }
  97. </style>