smodule103.vue 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. <template>
  2. <div class="module-main">
  3. <div class="module-box">
  4. <!-- <div class="main-box"> -->
  5. <div class="block2 flex-col">
  6. <div class="text-wrapper1 flex-row justify-between">
  7. <span class="text5">{{ info.count1 }}</span>
  8. <span class="text6">{{ info.count2 }}</span>
  9. </div>
  10. <div class="text-wrapper2 flex-row justify-between">
  11. <span class="text7">点位总数</span>
  12. <span class="text8">计划点位数</span>
  13. </div>
  14. <div class="box1 flex-row">
  15. <span class="text9" style="margin-left: 1.5vw;">{{ info.count3 }}</span>
  16. <span class="text9" style="font-size: 15px;margin-top: 4.3vw;margin-left: -17vw;">总人数</span>
  17. </div>
  18. <div class="box2 justify-between">
  19. <div class="text-group2 justify-between">
  20. <span class="text11">{{ info.count4 }}</span>
  21. <span class="text12">当班人数</span>
  22. </div>
  23. <div class=" justify-between">
  24. <span class="text13">{{ info.count5 }}<a v-if=" info.count5 > 0 " style="font-size: 30px;">%</a></span>
  25. <span class="text14">今日巡更完成率</span>
  26. </div>
  27. </div>
  28. </div>
  29. <!-- </div> -->
  30. </div>
  31. </div>
  32. </template>
  33. <script>
  34. import Vue from 'vue';
  35. import Component from 'vue-class-component';
  36. import api from '../../api';
  37. @Component({
  38. props: {
  39. data: {
  40. type: Object,
  41. default: null,
  42. },
  43. },
  44. })
  45. export default class Echarts extends Vue {
  46. info = {}
  47. created() {
  48. this.getNewData();
  49. setInterval(() => {
  50. this.getNewData();
  51. }, 1000 * 60 * 15);
  52. }
  53. getNewData() {
  54. api.getNewData().then((res) => {
  55. this.info = res.data;
  56. }).catch(() => {}).finally(() => {
  57. });
  58. }
  59. }
  60. </script>
  61. <style scoped lang="scss">
  62. .flex-col {
  63. display: flex;
  64. flex-direction: column;
  65. }
  66. .flex-row {
  67. display: flex;
  68. flex-direction: row;
  69. }
  70. .justify-between {
  71. display: flex;
  72. justify-content: space-between;
  73. }
  74. .block2 {
  75. background-image: url(../../images/smodule/smodule103.png);
  76. background-repeat: no-repeat;
  77. background-size: 100% 80%;
  78. height: 77vh;
  79. .text-wrapper1 {
  80. width: 18.8vw;
  81. height: 11vh;
  82. margin: 4vh 0 0 2.2vw;
  83. .text5 {
  84. width: 13.9vw;
  85. height: 11vh;
  86. overflow-wrap: break-word;
  87. color: rgba(255, 255, 255, 1);
  88. font-size: 3.7vw;
  89. font-family: AlibabaPuHuiTi-Bold;
  90. font-weight: 700;
  91. text-align: left;
  92. white-space: nowrap;
  93. line-height: 11vh;
  94. }
  95. .text6 {
  96. width: 13.9vw;
  97. height: 11vh;
  98. overflow-wrap: break-word;
  99. color: rgba(255, 255, 255, 1);
  100. font-size: 3.7vw;
  101. font-family: AlibabaPuHuiTi-Bold;
  102. font-weight: 700;
  103. text-align: right;
  104. margin-left: 15.8vw;
  105. white-space: nowrap;
  106. line-height: 11vh;
  107. }
  108. }
  109. .text-wrapper2 {
  110. width: 26.5vw;
  111. height: 5vh;
  112. // margin: 0 0 0 2.9vw;
  113. .text7 {
  114. width: 9.3vw;
  115. height: 5vh;
  116. overflow-wrap: break-word;
  117. color: rgba(11, 226, 223, 1);
  118. font-size: 18px;
  119. font-family: AlibabaPuHuiTi-Regular;
  120. font-weight: NaN;
  121. text-align: left;
  122. margin-left: 2.5vw;
  123. margin-top: -5.5vh;
  124. white-space: nowrap;
  125. line-height: 11vh;
  126. }
  127. .text8 {
  128. width: 9.3vw;
  129. height: 5vh;
  130. overflow-wrap: break-word;
  131. color: rgba(11, 226, 223, 1);
  132. font-size: 18px;
  133. font-family: AlibabaPuHuiTi-Regular;
  134. font-weight: NaN;
  135. text-align: left;
  136. margin-left: 18.4vw;
  137. margin-top: -6vh;
  138. white-space: nowrap;
  139. line-height: 11vh;
  140. }
  141. }
  142. .box1 {
  143. width: 23.1vw;
  144. height: 27vh;
  145. margin: 0 0 0 11.6vw;
  146. .text9 {
  147. width: 23.1vw;
  148. height: 16vh;
  149. overflow-wrap: break-word;
  150. color: rgba(11, 226, 223, 1);
  151. font-size: 100px;
  152. font-family: AlibabaPuHuiTi-Heavy;
  153. font-weight: 900;
  154. text-align: left;
  155. white-space: nowrap;
  156. line-height: 20vh;
  157. }
  158. }
  159. .box2 {
  160. // width: 71.5vw;
  161. height: 11.5vw;
  162. margin: 5vh 0 0 2vw;
  163. .text-group2{
  164. .text11 {
  165. width: 13.9vw;
  166. height: 11vh;
  167. overflow-wrap: break-word;
  168. color: rgba(255, 255, 255, 1);
  169. font-size: 3.7vw;
  170. font-family: AlibabaPuHuiTi-Bold;
  171. font-weight: 700;
  172. text-align: left;
  173. margin-top: -2.5vw;
  174. white-space: nowrap;
  175. line-height: 49px;
  176. }
  177. .text12 {
  178. width: 69px;
  179. height: 17px;
  180. overflow-wrap: break-word;
  181. color: rgba(11, 226, 223, 1);
  182. font-size: 18px;
  183. font-family: AlibabaPuHuiTi-Regular;
  184. font-weight: NaN;
  185. text-align: left;
  186. white-space: nowrap;
  187. line-height: 48px;
  188. margin-left: -13.5vw;
  189. margin-top: 1vh;
  190. }
  191. }
  192. .text13 {
  193. width: 104px;
  194. height: 47px;
  195. overflow-wrap: break-word;
  196. color: rgba(255, 255, 255, 1);
  197. font-size: 3.7vw;
  198. font-family: AlibabaPuHuiTi-Bold;
  199. font-weight: 700;
  200. text-align: left;
  201. white-space: nowrap;
  202. margin-top: -4vh;
  203. margin-left: -9vw;
  204. line-height: 5vh;
  205. }
  206. .text14 {
  207. position: absolute;
  208. width: 123px;
  209. height: 17px;
  210. overflow-wrap: break-word;
  211. color: rgba(11, 226, 223, 1);
  212. font-size: 18px;
  213. font-family: AlibabaPuHuiTi-Regular;
  214. font-weight: NaN;
  215. text-align: left;
  216. white-space: nowrap;
  217. line-height: 6vh;
  218. margin-left: -9vw;
  219. margin-top: 1vh;
  220. }
  221. }
  222. }
  223. </style>