equipmentControlOverdue.vue 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  1. <!-- 数据看板-设备管控-超期服役排行 -->
  2. <template>
  3. <view class="equipmentControl">
  4. <!-- 超期服役排行 -->
  5. <view class="table">
  6. <view class="table-border">
  7. <view class="table-th">
  8. <view class="table-th-li">
  9. <view>排行</view>
  10. <view>学院单位</view>
  11. <view>设备总数(台)</view>
  12. <view>超期服役数(台)</view>
  13. </view>
  14. </view>
  15. <view class="table-tb">
  16. <view class="table-tb-li" v-for="(item,index) in dataList" :key="index">
  17. <view>{{index}}</view>
  18. <view>{{item.data2}}</view>
  19. <view>{{item.data2}}</view>
  20. <view>{{item.data2}}</view>
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. <!-- 设备使用寿命 -->
  26. <view class="table-tow">
  27. <view class="table-border">
  28. <view class="table-th">
  29. <view class="table-th-li">
  30. <view>学院单位</view>
  31. <view>5年内(台)</view>
  32. <view>10年内(台)</view>
  33. <view>12年内(台)</view>
  34. <view>20年内(台)</view>
  35. </view>
  36. </view>
  37. <view class="table-tb">
  38. <view class="table-tb-li" v-for="(item,index) in dataList" :key="index">
  39. <view>{{index}}</view>
  40. <view>{{item.data2}}</view>
  41. <view>{{item.data2}}</view>
  42. <view>{{item.data2}}</view>
  43. <view>{{item.data2}}</view>
  44. </view>
  45. </view>
  46. </view>
  47. </view>
  48. </view>
  49. </template>
  50. <script>
  51. import {
  52. config
  53. } from '@/api/request/config.js'
  54. import {
  55. } from '@/pages_basics/api/index.js'
  56. export default {
  57. name: "equipmentControl",
  58. components: {
  59. },
  60. data() {
  61. return {
  62. // 查询参数
  63. queryParams: {
  64. page: 1,
  65. pageSize: 10,
  66. },
  67. dataList: [{
  68. data1: '学院学院简称',
  69. data2: '666',
  70. },
  71. {
  72. data1: '学院学院简称',
  73. data2: '666',
  74. },
  75. {
  76. data1: '学院学院简称',
  77. data2: '666',
  78. },
  79. {
  80. data1: '学院学院简称',
  81. data2: '666',
  82. },
  83. ],
  84. total: 0,
  85. }
  86. },
  87. onLoad(option) {
  88. if(option.pageType){
  89. }
  90. },
  91. created() {
  92. },
  93. beforeMount() {
  94. },
  95. mounted() {},
  96. methods: {
  97. dateClick(index) {
  98. this.dateIndex = index;
  99. },
  100. },
  101. }
  102. </script>
  103. <style lang="stylus" scoped>
  104. .equipmentControl {
  105. height: 100%;
  106. width: 100%;
  107. background: #363744;
  108. box-sizing: border-box;
  109. .table {
  110. width: 750rpx;
  111. margin-top: 20rpx;
  112. .table-border {
  113. overflow: auto;
  114. .table-th {
  115. width: 750rpx;
  116. height: 80rpx;
  117. background: rgba(162, 162, 162, 0.2);
  118. padding: 0 30rpx;
  119. box-sizing: border-box;
  120. .table-th-li {
  121. height: 80rpx;
  122. display: flex;
  123. justify-content: flex-start;
  124. >view {
  125. font-weight: 400;
  126. font-size: 30rpx;
  127. color: #FFFFFF;
  128. line-height: 80rpx;
  129. text-align: center;
  130. margin-right: 18rpx;
  131. width: 120rpx;
  132. overflow: hidden;
  133. text-overflow: ellipsis;
  134. white-space: nowrap;
  135. }
  136. >view:nth-of-type(1) {
  137. width: 90rpx;
  138. text-align: left;
  139. }
  140. >view:nth-of-type(2) {
  141. width: 168rpx;
  142. }
  143. >view:nth-of-type(3) {
  144. width: 190rpx;
  145. }
  146. >view:nth-of-type(4) {
  147. width: 300rpx;
  148. }
  149. }
  150. }
  151. .table-tb {
  152. width: 750rpx;
  153. border-bottom: 1rpx dashed rgba(216, 216, 216, 0.2);
  154. background: #3E414F;
  155. padding: 0 30rpx;
  156. box-sizing: border-box;
  157. .table-tb-li {
  158. height: 80rpx;
  159. border-bottom: 1rpx dashed rgba(216, 216, 216, 0.2);
  160. display: flex;
  161. justify-content: flex-start;
  162. >view {
  163. font-weight: 400;
  164. font-size: 28rpx;
  165. color: #FFFFFF;
  166. line-height: 80rpx;
  167. text-align: center;
  168. margin-right: 38rpx;
  169. width: 120rpx;
  170. overflow: hidden;
  171. text-overflow: ellipsis;
  172. white-space: nowrap;
  173. }
  174. >view:nth-of-type(1) {
  175. width: 90rpx;
  176. text-align: left;
  177. }
  178. >view:nth-of-type(2) {
  179. width: 168rpx;
  180. }
  181. >view:nth-of-type(3) {
  182. width: 190rpx;
  183. }
  184. >view:nth-of-type(4) {
  185. width: 300rpx;
  186. }
  187. }
  188. }
  189. }
  190. }
  191. .table-tow {
  192. width: 750rpx;
  193. margin-top: 20rpx;
  194. .table-border {
  195. overflow: auto;
  196. .table-th {
  197. width: 860rpx;
  198. height: 80rpx;
  199. background: rgba(162, 162, 162, 0.2);
  200. padding: 0 30rpx;
  201. box-sizing: border-box;
  202. .table-th-li {
  203. height: 80rpx;
  204. display: flex;
  205. justify-content: flex-start;
  206. >view {
  207. font-weight: 400;
  208. font-size: 30rpx;
  209. color: #FFFFFF;
  210. line-height: 80rpx;
  211. text-align: center;
  212. margin-right: 18rpx;
  213. width: 140rpx;
  214. overflow: hidden;
  215. text-overflow: ellipsis;
  216. white-space: nowrap;
  217. }
  218. >view:nth-of-type(1) {
  219. width: 168rpx;
  220. text-align: left;
  221. }
  222. }
  223. }
  224. .table-tb {
  225. width: 750rpx;
  226. border-bottom: 1rpx dashed rgba(216, 216, 216, 0.2);
  227. background: #3E414F;
  228. padding: 0 30rpx;
  229. box-sizing: border-box;
  230. .table-tb-li {
  231. height: 80rpx;
  232. border-bottom: 1rpx dashed rgba(216, 216, 216, 0.2);
  233. display: flex;
  234. justify-content: flex-start;
  235. >view {
  236. font-weight: 400;
  237. font-size: 28rpx;
  238. color: #FFFFFF;
  239. line-height: 80rpx;
  240. text-align: center;
  241. margin-right: 38rpx;
  242. width: 140rpx;
  243. overflow: hidden;
  244. text-overflow: ellipsis;
  245. white-space: nowrap;
  246. }
  247. >view:nth-of-type(1) {
  248. width: 168rpx;
  249. text-align: left;
  250. }
  251. }
  252. }
  253. }
  254. }
  255. }
  256. </style>
  257. <style>
  258. page {
  259. background-color: #363744 !important;
  260. }
  261. </style>