napTank.vue 4.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <template>
  2. <div id="app-container-nap">
  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="text-align: center; display: flex;justify-content: space-between;margin-top: 10px;">
  16. <div style="position: relative;">
  17. <span class="span-num1">T1621</span>
  18. <img src="@/assets/image/warehouse1.png" style="height: 100px;width:120px;margin-top: 0.3rem" v-if="0<=(dashboarddata.napOne) && (dashboarddata.napOne)<20">
  19. <img src="@/assets/image/warehouse2.png" style="height: 100px;width:120px;margin-top: 0.3rem" v-if="20<=(dashboarddata.napOne) && (dashboarddata.napOne)<40">
  20. <img src="@/assets/image/warehouse3.png" style="height: 100px;width:120px;margin-top: 0.3rem" v-if="40<=(dashboarddata.napOne) && (dashboarddata.napOne)<60">
  21. <img src="@/assets/image/warehouse1.png" style="height: 100px;width:120px;margin-top: 0.3rem" v-if="60<=(dashboarddata.napOne) && (dashboarddata.napOne)<80">
  22. <img src="@/assets/image/warehouse1.png" style="height: 100px;width:120px;margin-top: 0.3rem" v-if="80<=(dashboarddata.napOne) && (dashboarddata.napOne)<100">
  23. <div class="ModelFont">{{ dashboarddata.napOne }}%</div>
  24. </div>
  25. <div style="position: relative;">
  26. <span class="span-num2">T1622</span>
  27. <img src="@/assets/image/warehouse1.png" style="height: 100px;width:120px;margin-top: 0.3rem" v-if="0<=(dashboarddata.napTwo) && (dashboarddata.napTwo)<20">
  28. <img src="@/assets/image/warehouse2.png" style="height: 100px;width:120px;margin-top: 0.3rem" v-if="20<=(dashboarddata.napTwo) && (dashboarddata.napTwo)<40">
  29. <img src="@/assets/image/warehouse3.png" style="height: 100px;width:120px;margin-top: 0.3rem" v-if="40<=(dashboarddata.napTwo) && (dashboarddata.napTwo)<60">
  30. <img src="@/assets/image/warehouse1.png" style="height: 100px;width:120px;margin-top: 0.3rem" v-if="60<=(dashboarddata.napTwo) && (dashboarddata.napTwo)<80">
  31. <img src="@/assets/image/warehouse1.png" style="height: 100px;width:120px;margin-top: 0.3rem" v-if="80<=(dashboarddata.napTwo) && (dashboarddata.napTwo)<100">
  32. <div class="ModelFont">{{ dashboarddata.napTwo }}%</div>
  33. </div>
  34. <div style="position: relative;">
  35. <span class="span-num3">T1623</span>
  36. <img src="@/assets/image/warehouse1.png" style="height: 100px;width:120px;margin-top: 0.3rem" v-if="0<=(dashboarddata.napThree) && (dashboarddata.napThree)<20">
  37. <img src="@/assets/image/warehouse2.png" style="height: 100px;width:120px;margin-top: 0.3rem" v-if="20<=(dashboarddata.napThree) && (dashboarddata.napThree)<40">
  38. <img src="@/assets/image/warehouse3.png" style="height: 100px;width:120px;margin-top: 0.3rem" v-if="40<=(dashboarddata.napThree) && (dashboarddata.napThree)<60">
  39. <img src="@/assets/image/warehouse1.png" style="height: 100px;width:120px;margin-top: 0.3rem" v-if="60<=(dashboarddata.napThree) && (dashboarddata.napThree)<80">
  40. <img src="@/assets/image/warehouse1.png" style="height: 100px;width:120px;margin-top: 0.3rem" v-if="80<=(dashboarddata.napThree) && (dashboarddata.napThree)<100">
  41. <div class="ModelFont">{{ dashboarddata.napThree }}%</div>
  42. </div>
  43. </div>
  44. </div>
  45. </div>
  46. </template>
  47. <script>
  48. export default {
  49. components: {},
  50. props: ['dashboarddata'],
  51. }
  52. </script>
  53. <style lang="scss">
  54. #app-container-nap {
  55. padding: 0.2rem 0.2rem 0;
  56. height: 220px;
  57. border-radius: 0.0625rem;
  58. .bg-color-black {
  59. border-radius: 0.125rem;
  60. height: 220px;
  61. }
  62. .text {
  63. color: #c3cbde;
  64. }
  65. //下滑线动态
  66. .decoration2 {
  67. position: absolute;
  68. right: 0.125rem;
  69. }
  70. .span-num1{
  71. position: absolute;
  72. left: 32%;
  73. top: 0px;
  74. }
  75. .span-num2{
  76. position: absolute;
  77. left: 32%;
  78. top: 0px;
  79. }
  80. .span-num3{
  81. position: absolute;
  82. left: 32%;
  83. top: 0px;
  84. }
  85. }
  86. </style>