ethyleneTank.vue 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. <template>
  2. <div id="app-container-ethylene">
  3. <div class="bg-color-black">
  4. <div class="d-flex pt-2 pl-2">
  5. <span style="color:#5cd9e8">
  6. <icon name="chart-area"></icon>
  7. </span>
  8. <div class="d-flex">
  9. <span class="fs-xl text mx-2">乙烯储罐</span>
  10. <div class="decoration2">
  11. <dv-decoration-2 :reverse="true" style="width:5px;height:2.4rem;" />
  12. </div>
  13. </div>
  14. </div>
  15. <div :style="transformdata ? 'transform: scale('+transformdata+') translate(0,0) !important;text-align: center; display: flex;justify-content: center;margin-top: 10px;align-items: center;height: 80%;' :'text-align: center; display: flex;justify-content: center;margin-top: 10px;align-items: center;height: 80%;'">
  16. <div class="cylindrical6">
  17. <div class="cylindrical6-container pos1 ">
  18. <div class="word">STT 1061</div>
  19. <!-- 进度条 -->
  20. <div class="progress-bar">
  21. <div class="progress-bar-inner bg1" :style="'width:100%'"></div>
  22. <!-- 数值 -->
  23. <div class="progress-bar-num" :style="'left: 75%;'">200</div>
  24. </div>
  25. </div>
  26. <div class="cylindrical6-container pos2 ">
  27. <div class="word">STT 1062</div>
  28. <!-- 进度条 -->
  29. <div class="progress-bar">
  30. <div class="progress-bar-inner bg2" :style="'width:100%'"></div>
  31. <!-- 数值 -->
  32. <div class="progress-bar-num" :style="'left: 75%;'">200</div>
  33. </div>
  34. </div>
  35. <div class="cylindrical6-container pos3 ">
  36. <div class="word">STT 1063</div>
  37. <!-- 进度条 -->
  38. <div class="progress-bar">
  39. <div class="progress-bar-inner bg1" :style="'width:100%'"></div>
  40. <!-- 数值 -->
  41. <div class="progress-bar-num" :style="'left: 75%;'">200</div>
  42. </div>
  43. </div>
  44. <div class="cylindrical6-container pos4 ">
  45. <div class="word">STT 1064</div>
  46. <!-- 进度条 -->
  47. <div class="progress-bar">
  48. <div class="progress-bar-inner bg2" :style="'width:100%'"></div>
  49. <!-- 数值 -->
  50. <div class="progress-bar-num" :style="'left: 75%;'">200</div>
  51. </div>
  52. </div>
  53. <div class="cylindrical6-container pos5 ">
  54. <div class="word">STT 1065</div>
  55. <!-- 进度条 -->
  56. <div class="progress-bar">
  57. <div class="progress-bar-inner bg2" :style="'width:100%'"></div>
  58. <!-- 数值 -->
  59. <div class="progress-bar-num" :style="'left: 75%;'">200</div>
  60. </div>
  61. </div>
  62. </div>
  63. <!-- <div style="position: relative;">
  64. <img src="@/assets/image/cylindrical1.png" style="width:40px;height: 170px;" v-if="0<=(dashboarddata.ehtOne) && (dashboarddata.ehtOne)<20">
  65. <img src="@/assets/image/cylindrical2.png" style="width:40px;height: 170px;" v-if="20<=(dashboarddata.ehtOne) && (dashboarddata.ehtOne)<40">
  66. <img src="@/assets/image/cylindrical3.png" style="width:40px;height: 170px;" v-if="40<=(dashboarddata.ehtOne) && (dashboarddata.ehtOne)<60">
  67. <img src="@/assets/image/cylindrical4.png" style="width:40px;height: 170px;" v-if="60<=(dashboarddata.ehtOne) && (dashboarddata.ehtOne)<80">
  68. <img src="@/assets/image/cylindrical5.png" style="width:40px;height: 170px;" v-if="80<=(dashboarddata.ehtOne) && (dashboarddata.ehtOne)<100">
  69. <span class="modelTop pos">STT1061</span>
  70. <span class="ModelFont">{{ dashboarddata.ehtOne }}%</span>
  71. </div>
  72. <div style="position: relative; margin-left: 8% ;">
  73. <img src="@/assets/image/cylindrical1.png" style="width:40px;height: 170px;" v-if="0<=(dashboarddata.ehtTwo) && (dashboarddata.ehtTwo)<20">
  74. <img src="@/assets/image/cylindrical2.png" style="width:40px;height: 170px;" v-if="20<=(dashboarddata.ehtTwo) && (dashboarddata.ehtTwo)<40">
  75. <img src="@/assets/image/cylindrical3.png" style="width:40px;height: 170px;" v-if="40<=(dashboarddata.ehtTwo) && (dashboarddata.ehtTwo)<60">
  76. <img src="@/assets/image/cylindrical4.png" style="width:40px;height: 170px;" v-if="60<=(dashboarddata.ehtTwo) && (dashboarddata.ehtTwo)<80">
  77. <img src="@/assets/image/cylindrical5.png" style="width:40px;height: 170px;" v-if="80<=(dashboarddata.ehtTwo) && (dashboarddata.ehtTwo)<100">
  78. <span class="modelTop pos">STT1062</span>
  79. <span class="ModelFont">{{ dashboarddata.ehtTwo }}%</span>
  80. </div>
  81. <div style="position: relative;margin-left: 8% ;">
  82. <img src="@/assets/image/cylindrical1.png" style="width:40px;height: 170px;" v-if="0<=(dashboarddata.ehtThree) && (dashboarddata.ehtThree)<20">
  83. <img src="@/assets/image/cylindrical2.png" style="width:40px;height: 170px;" v-if="20<=(dashboarddata.ehtThree) && (dashboarddata.ehtThree)<40">
  84. <img src="@/assets/image/cylindrical3.png" style="width:40px;height: 170px;" v-if="40<=(dashboarddata.ehtThree) && (dashboarddata.ehtThree)<60">
  85. <img src="@/assets/image/cylindrical4.png" style="width:40px;height: 170px;" v-if="60<=(dashboarddata.ehtThree) && (dashboarddata.ehtThree)<80">
  86. <img src="@/assets/image/cylindrical5.png" style="width:40px;height: 170px;" v-if="80<=(dashboarddata.ehtThree) && (dashboarddata.ehtThree)<100">
  87. <span class="modelTop pos">STT1063</span>
  88. <span class="ModelFont">{{ dashboarddata.ehtThree }}%</span>
  89. </div>
  90. <div style="position: relative;margin-left: 8% ;">
  91. <img src="@/assets/image/cylindrical1.png" style="width:40px;height: 170px;" v-if="0<=(dashboarddata.ehtFour) && (dashboarddata.ehtFour)<20">
  92. <img src="@/assets/image/cylindrical2.png" style="width:40px;height: 170px;" v-if="20<=(dashboarddata.ehtFour) && (dashboarddata.ehtFour)<40">
  93. <img src="@/assets/image/cylindrical3.png" style="width:40px;height: 170px;" v-if="40<=(dashboarddata.ehtFour) && (dashboarddata.ehtFour)<60">
  94. <img src="@/assets/image/cylindrical4.png" style="width:40px;height: 170px;" v-if="60<=(dashboarddata.ehtFour) && (dashboarddata.ehtFour)<80">
  95. <img src="@/assets/image/cylindrical5.png" style="width:40px;height: 170px;" v-if="80<=(dashboarddata.ehtFour) && (dashboarddata.ehtFour)<100">
  96. <span class="modelTop pos">STT1064</span>
  97. <span class="ModelFont">{{ dashboarddata.ehtFour }}%</span>
  98. </div>
  99. <div style="position: relative;margin-left: 8% ;">
  100. <img src="@/assets/image/cylindrical1.png" style="width:40px;height: 170px;" v-if="0<=(dashboarddata.ehtFive) && (dashboarddata.ehtFive)<20">
  101. <img src="@/assets/image/cylindrical2.png" style="width:40px;height: 170px;" v-if="20<=(dashboarddata.ehtFive) && (dashboarddata.ehtFive)<40">
  102. <img src="@/assets/image/cylindrical3.png" style="width:40px;height: 170px;" v-if="40<=(dashboarddata.ehtFive) && (dashboarddata.ehtFive)<60">
  103. <img src="@/assets/image/cylindrical4.png" style="width:40px;height: 170px;" v-if="60<=(dashboarddata.ehtFive) && (dashboarddata.ehtFive)<80">
  104. <img src="@/assets/image/cylindrical5.png" style="width:40px;height: 170px;" v-if="80<=(dashboarddata.ehtFive) && (dashboarddata.ehtFive)<100">
  105. <span class="modelTop pos">STT1065</span>
  106. <span class="ModelFont">{{ dashboarddata.ehtFive }}%</span>
  107. </div> -->
  108. </div>
  109. </div>
  110. </div>
  111. </template>
  112. <script>
  113. export default {
  114. props: ['dashboarddata','transformdata'],
  115. data () {
  116. return {
  117. // 查询参数
  118. queryParams: {
  119. },
  120. }
  121. },
  122. }
  123. </script>
  124. <style lang="scss">
  125. #app-container-ethylene {
  126. padding: 0.2rem 0.2rem 0;
  127. height: 100%;
  128. min-width: 3.75rem;
  129. border-radius: 0.0625rem;
  130. .bg-color-black {
  131. height: 100%;
  132. border-radius: 0.125rem;
  133. width: 90%;
  134. margin: auto;
  135. }
  136. .text {
  137. color: #c3cbde;
  138. } //下滑线动态
  139. .decoration2 {
  140. position: absolute;
  141. right: 0.125rem;
  142. }
  143. .chart-box {
  144. margin-top: 0.2rem;
  145. width: 2.125rem;
  146. height: 2.125rem;
  147. .active-ring-name {
  148. padding-top: 0.125rem;
  149. }
  150. }
  151. .ModelFont {
  152. position: absolute;
  153. bottom: -13px;
  154. left: 0;
  155. }
  156. .modelTop{
  157. position: absolute;
  158. width: 12px;
  159. display: block;
  160. word-break: break-all;
  161. top: 25%;
  162. &.pos{
  163. right: 8%;
  164. color: #5c5b15;
  165. font-weight: bold;
  166. font-size: 12px;
  167. }
  168. }
  169. }
  170. .cylindrical6{
  171. background: url("../../assets/image/cylindrical6.png");
  172. width: 70%;
  173. height: 90%;
  174. background-size: 100% 100%;
  175. margin: 0 auto;
  176. position: relative;
  177. .word{
  178. color: #0c0d9f;
  179. font-size: 12px;
  180. font-weight: bold;
  181. }
  182. .cylindrical6-container{
  183. width:20%;
  184. position: absolute;
  185. &.pos1{
  186. top: 13%;
  187. left: 8%;
  188. }
  189. &.pos2{
  190. top: 67%;
  191. left: 8%;
  192. .progress-bar{
  193. margin-top:2px;
  194. }
  195. }
  196. &.pos3{
  197. top:11%;
  198. left: 44.7%;
  199. .progress-bar{
  200. margin-top:2px;
  201. }
  202. }
  203. &.pos4{
  204. top:67%;
  205. left: 44.4%;
  206. .progress-bar{
  207. margin-top:4px;
  208. }
  209. }
  210. &.pos5{
  211. top:37.7%;
  212. left: 73.4%;
  213. .progress-bar{
  214. margin-top:4px;
  215. }
  216. }
  217. }
  218. // 进度条
  219. .progress-bar{
  220. width: 100%;
  221. height: 4px;
  222. margin-top:1px;
  223. .progress-bar-inner{
  224. height: 100%;
  225. border-radius: 5px;
  226. &.bg1{
  227. background: #f87409;
  228. }
  229. &.bg2{
  230. background: #008aff;
  231. }
  232. }
  233. }
  234. // 数值
  235. .progress-bar-num{
  236. font-size:8px;
  237. color: #ffffff;
  238. text-align: center;
  239. background: #003473;
  240. border:1px solid #4b9afd;
  241. width: 20px;
  242. height: 10px;
  243. border-radius: 5px;
  244. position: absolute;
  245. top:60%;
  246. }
  247. }
  248. </style>