productTank.vue 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <template>
  2. <div id="app-container-product">
  3. <div class="bg-color-black" style=";">
  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="float: left; margin-left: 0.1rem;position: relative">
  16. <img src="@/assets/image/warehouse1.png" style="height: 124px;margin-top: 0.3rem" v-if="0<=(dashboarddata.proTwo) && (dashboarddata.proTwo)<20">
  17. <img src="@/assets/image/warehouse2.png" style="height: 124px;margin-top: 0.3rem" v-if="20<=(dashboarddata.proTwo) && (dashboarddata.proTwo)<40">
  18. <img src="@/assets/image/warehouse3.png" style="height: 124px;margin-top: 0.3rem" v-if="40<=(dashboarddata.proTwo) && (dashboarddata.proTwo)<60">
  19. <img src="@/assets/image/warehouse1.png" style="height: 124px;margin-top: 0.3rem" v-if="60<=(dashboarddata.proTwo) && (dashboarddata.proTwo)<80">
  20. <img src="@/assets/image/warehouse1.png" style="height: 124px;margin-top: 0.3rem" v-if="80<=(dashboarddata.proTwo) && (dashboarddata.proTwo)<100">
  21. <div class="ModelFont" style="margin-left: 55px;margin-top: 7px">{{ dashboarddata.proTwo }}%</div>
  22. <span class="modelTop pos1">STT1520</span>
  23. </div>
  24. <div style="float: left; margin-left: 0.1rem;position: relative">
  25. <div style="text-align: center">
  26. <img src="@/assets/image/warehouse1.png" style="height:80px" v-if="0<=(dashboarddata.proOne) && (dashboarddata.proOne)<20">
  27. <img src="@/assets/image/warehouse2.png" style="height:80px" v-if="20<=(dashboarddata.proOne) && (dashboarddata.proOne)<40">
  28. <img src="@/assets/image/warehouse3.png" style="height:80px" v-if="40<=(dashboarddata.proOne) && (dashboarddata.proOne)<60">
  29. <img src="@/assets/image/warehouse1.png" style="height:80px" v-if="60<=(dashboarddata.proOne) && (dashboarddata.proOne)<80">
  30. <img src="@/assets/image/warehouse1.png" style="height:80px" v-if="80<=(dashboarddata.proOne) && (dashboarddata.proOne)<100">
  31. <div class="ModelFont ModelFont2" style="top: 80px;left: 80px;">{{ dashboarddata.proOne }}%</div>
  32. <span class="modelTop pos2">STT1510</span>
  33. </div>
  34. <div style="text-align: center;; margin-top: 0.2rem">
  35. <img src="@/assets/image/warehouse1.png" style="height:80px" v-if="0<=(dashboarddata.proThree) && (dashboarddata.proThree)<20">
  36. <img src="@/assets/image/warehouse2.png" style="height:80px" v-if="20<=(dashboarddata.proThree) && (dashboarddata.proThree)<40">
  37. <img src="@/assets/image/warehouse3.png" style="height:80px" v-if="40<=(dashboarddata.proThree) && (dashboarddata.proThree)<60">
  38. <img src="@/assets/image/warehouse1.png" style="height:80px" v-if="60<=(dashboarddata.proThree) && (dashboarddata.proThree)<80">
  39. <img src="@/assets/image/warehouse1.png" style="height:80px" v-if="80<=(dashboarddata.proThree) && (dashboarddata.proThree)<100">
  40. <div class="ModelFont ModelFont2" style="top: 185px;left: 25px;">{{ dashboarddata.proThree }}%</div>
  41. <span class="modelTop pos3">STT1360</span>
  42. <img src="@/assets/image/warehouse1.png" style="height:80px; margin-left: 0.2rem" v-if="0<=(dashboarddata.proFour) && (dashboarddata.proFour)<20">
  43. <img src="@/assets/image/warehouse2.png" style="height:80px; margin-left: 0.2rem" v-if="20<=(dashboarddata.proFour) && (dashboarddata.proFour)<40">
  44. <img src="@/assets/image/warehouse3.png" style="height:80px; margin-left: 0.2rem" v-if="40<=(dashboarddata.proFour) && (dashboarddata.proFour)<60">
  45. <img src="@/assets/image/warehouse1.png" style="height:80px; margin-left: 0.2rem" v-if="60<=(dashboarddata.proFour) && (dashboarddata.proFour)<80">
  46. <img src="@/assets/image/warehouse1.png" style="height:80px; margin-left: 0.2rem" v-if="80<=(dashboarddata.proFour) && (dashboarddata.proFour)<100">
  47. <div class="ModelFont ModelFont2" style="top: 185px;left: 140px;">{{ dashboarddata.proFour }}%</div>
  48. <span class="modelTop pos4">STT1410</span>
  49. </div>
  50. </div>
  51. </div>
  52. </div>
  53. </template>
  54. <script>
  55. export default {
  56. props: ['dashboarddata'],
  57. components: {
  58. },
  59. }
  60. </script>
  61. <style lang="scss">
  62. #app-container-product {
  63. padding: 0.2rem 0.2rem 0;
  64. height: 2.9rem;
  65. min-width: 3.75rem;
  66. border-radius: 0.0625rem;
  67. .bg-color-black {
  68. height: 2.7rem;
  69. border-radius: 0.125rem;
  70. }
  71. .text {
  72. color: #c3cbde;
  73. }
  74. //下滑线动态
  75. .decoration2 {
  76. position: absolute;
  77. right: 0.125rem;
  78. }
  79. .ModelFont2{
  80. position: absolute;
  81. }
  82. .modelTop{
  83. position: absolute;
  84. &.pos1{
  85. left: 44px;
  86. top: 0px;
  87. }
  88. &.pos2{
  89. left: 75px;
  90. top: -15px;
  91. }
  92. &.pos3{
  93. left: 22px;
  94. top: 80px;
  95. }
  96. &.pos4{
  97. left: 130px;
  98. top: 80px;
  99. }
  100. }
  101. }
  102. </style>