MeasureDetail.vue 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. <template>
  2. <div class="content-box">
  3. <div class="dust-scroll-content">
  4. <a-carousel dot-position="left" dotsClass="dots-class" :dots="true" :autoplay="true">
  5. <template v-for="(data, selectIndex) in selectData" :key="selectIndex">
  6. <div class="monitor-item">
  7. <div class="title-box">{{ data['devicePos'] }}</div>
  8. <div class="monitor-content-top">
  9. <div v-for="(dustItem, index) in topConfig" :key="index" class="top-item-box" :class="`top-item-box-${index + 1}`">
  10. <div class="item-top-title">{{ dustItem.title }}</div>
  11. <div class="item-top-value">{{ data[dustItem.code] }}</div>
  12. </div>
  13. </div>
  14. <div class="monitor-content-bottom">
  15. <div v-for="(dustItem, index) in btnConfig" :key="index" class="bottom-item-box" :class="`bottom-item-box-${index + 1}`">
  16. <div class="item-bottom-title">{{ dustItem.title }}</div>
  17. <div class="item-bottom-value">{{ data[dustItem.code] }}</div>
  18. </div>
  19. </div>
  20. </div>
  21. </template>
  22. </a-carousel>
  23. </div>
  24. </div>
  25. </template>
  26. <script setup lang="ts">
  27. import { ref, defineProps, watch } from 'vue';
  28. import { dustMonitorColumnTop, dustMonitorColumnBootom } from '../../../clique/dust.data';
  29. let props = defineProps({
  30. compositeData: {
  31. type: Array,
  32. default: () => {
  33. return [];
  34. },
  35. },
  36. topconfig: {
  37. type: Array,
  38. default: () => {
  39. return [];
  40. },
  41. },
  42. btnconfig: {
  43. type: Array,
  44. default: () => {
  45. return [];
  46. },
  47. },
  48. });
  49. const selectData = ref<any>([]);
  50. const topConfig: any = props.topconfig.length ? props.topconfig : dustMonitorColumnTop;
  51. const btnConfig: any = props.btnconfig.length ? props.btnconfig : dustMonitorColumnBootom;
  52. watch(
  53. () => props.compositeData,
  54. (newS) => {
  55. selectData.value = newS;
  56. },
  57. {
  58. immediate: true,
  59. deep: true,
  60. }
  61. );
  62. </script>
  63. <style lang="less" scoped>
  64. @font-face {
  65. font-family: 'douyuFont';
  66. src: url('/@/assets/font/douyuFont.otf');
  67. }
  68. .content-box {
  69. display: flex;
  70. justify-content: center;
  71. align-items: center;
  72. width: 100%;
  73. height: 100%;
  74. .dust-scroll-content {
  75. width: 400px;
  76. height: 420px;
  77. overflow-y: auto;
  78. overflow-x: hidden;
  79. .monitor-item {
  80. margin-bottom: 15px;
  81. .title-box {
  82. color: #fff;
  83. width: 100%;
  84. height: 40px;
  85. margin-left: 5px;
  86. margin-top: 00px;
  87. margin-bottom: 5px;
  88. padding-left: 40px;
  89. padding-top: 6px;
  90. background: url('/@/assets//images//company//lentj.png') no-repeat;
  91. background-size: 199px 100%;
  92. font-size: 15px;
  93. font-weight: 600;
  94. }
  95. .monitor-content-top {
  96. width: 100%;
  97. display: flex;
  98. flex-direction: row;
  99. flex-wrap: wrap;
  100. color: #fff;
  101. .top-item-box {
  102. width: 193px;
  103. height: 64px;
  104. display: flex;
  105. justify-content: space-between;
  106. align-items: center;
  107. padding: 0 28px;
  108. }
  109. .top-item-box-1 {
  110. background: url('/@/assets//images//company//dust//tip-bg-1.png');
  111. }
  112. .top-item-box-2 {
  113. background: url('/@/assets//images//company//dust//tip-bg-2.png');
  114. }
  115. .top-item-box-3 {
  116. background: url('/@/assets//images//company//dust//tip-bg-3.png');
  117. }
  118. .top-item-box-4 {
  119. background: url('/@/assets//images//company//dust//tip-bg-4.png');
  120. }
  121. }
  122. .monitor-content-bottom {
  123. padding: 0 20px;
  124. color: #fff;
  125. .bottom-item-box {
  126. width: 358px;
  127. height: 43px;
  128. display: flex;
  129. justify-content: space-between;
  130. align-items: center;
  131. margin-top: 14px;
  132. position: relative;
  133. .item-bottom-title {
  134. margin-left: 65px;
  135. }
  136. .item-bottom-value {
  137. margin-right: 20px;
  138. }
  139. }
  140. .bottom-item-box-1 {
  141. background: url('/@/assets//images//company//dust//tip-bg1-1.png');
  142. &::after {
  143. content: '';
  144. width: 25px;
  145. height: 25px;
  146. position: absolute;
  147. left: 13px;
  148. top: 7px;
  149. background: url('/@/assets//images//company//dust//dustCon-icon.png');
  150. }
  151. }
  152. .bottom-item-box-2 {
  153. background: url('/@/assets//images//company//dust//tip-bg1-2.png');
  154. &::after {
  155. content: '';
  156. width: 25px;
  157. height: 25px;
  158. position: absolute;
  159. left: 12px;
  160. top: 6px;
  161. background: url('/@/assets//images//company//dust//respirableDustCon-icon.png');
  162. }
  163. }
  164. .bottom-item-box-3 {
  165. background: url('/@/assets//images//company//dust//tip-bg1-1.png');
  166. &::after {
  167. content: '';
  168. width: 28px;
  169. height: 22px;
  170. position: absolute;
  171. left: 10px;
  172. top: 7px;
  173. background: url('/@/assets//images//company//dust//SiO2Content-icon.png');
  174. }
  175. }
  176. .bottom-item-box-4 {
  177. background: url('/@/assets//images//company//dust//tip-bg1-2.png');
  178. &::after {
  179. content: '';
  180. width: 26px;
  181. height: 20px;
  182. position: absolute;
  183. left: 11px;
  184. top: 8px;
  185. background: url('/@/assets//images//company//dust//respirableDustRatio-icon.png');
  186. }
  187. }
  188. }
  189. }
  190. }
  191. }
  192. .dots-class {
  193. width: 8px;
  194. }
  195. ::v-deep .slick-dots-left {
  196. left: 0 !important;
  197. }
  198. ::v-deep .zxm-select-single:not(.zxm-select-customize-input) .zxm-select-selector {
  199. height: 24px;
  200. }
  201. ::v-deep .zxm-select-single:not(.zxm-select-customize-input) .zxm-select-selector .zxm-select-selection-search-input {
  202. height: 24px;
  203. }
  204. ::v-deep .zxm-select-selection-placeholder {
  205. color: #fff !important;
  206. line-height: 22px !important;
  207. }
  208. ::v-deep .zxm-select-single:not(.zxm-select-customize-input) .zxm-select-selector::after {
  209. line-height: 24px;
  210. }
  211. ::v-deep .zxm-select:not(.zxm-select-customize-input) .zxm-select-selector {
  212. background-color: transparent;
  213. border-top: 0px;
  214. border-bottom: 0px;
  215. border-left: 2px solid;
  216. border-right: 2px solid;
  217. border-image: linear-gradient(to bottom, transparent, rgba(49, 184, 255, 1), transparent) 1 1 1;
  218. }
  219. ::v-deep .zxm-select-arrow {
  220. color: #fff !important;
  221. }
  222. ::v-deep .zxm-select-selection-item {
  223. color: #fff !important;
  224. }
  225. ::v-deep .zxm-select-single .zxm-select-selector .zxm-select-selection-item {
  226. line-height: 24px !important;
  227. }
  228. </style>