equipmentControlOverdue.vue 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312
  1. <!-- 数据看板-设备管控-超期服役排行 -->
  2. <template>
  3. <view class="equipmentControl">
  4. <!-- 超期服役排行 -->
  5. <view class="table" v-if="pageType==1">
  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" v-if="pageType==2">
  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>{{item.data1}}</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. pageType: 1,
  63. // 查询参数
  64. queryParams: {
  65. page: 1,
  66. pageSize: 10,
  67. },
  68. dataList: [{
  69. data1: '学院学院简称',
  70. data2: '666',
  71. },
  72. {
  73. data1: '学院学院简称',
  74. data2: '666',
  75. },
  76. {
  77. data1: '学院学院简称',
  78. data2: '666',
  79. },
  80. {
  81. data1: '学院学院简称',
  82. data2: '666',
  83. },
  84. ],
  85. total: 0,
  86. }
  87. },
  88. onLoad(option) {
  89. if (option.pageType) {
  90. this.pageType = option.pageType;
  91. if (this.pageType == 1) {
  92. uni.setNavigationBarTitle({
  93. title: '超期服役排行'
  94. })
  95. }else if(this.pageType == 2){
  96. uni.setNavigationBarTitle({
  97. title:'设备使用寿命统计'
  98. })
  99. }
  100. }
  101. },
  102. created() {
  103. },
  104. beforeMount() {
  105. },
  106. mounted() {},
  107. methods: {
  108. dateClick(index) {
  109. this.dateIndex = index;
  110. },
  111. },
  112. }
  113. </script>
  114. <style lang="stylus" scoped>
  115. .equipmentControl {
  116. height: 100%;
  117. width: 100%;
  118. background: #363744;
  119. box-sizing: border-box;
  120. .table {
  121. width: 750rpx;
  122. margin-top: 20rpx;
  123. .table-border {
  124. overflow: auto;
  125. .table-th {
  126. width: 750rpx;
  127. height: 80rpx;
  128. background: rgba(162, 162, 162, 0.2);
  129. padding: 0 30rpx;
  130. box-sizing: border-box;
  131. .table-th-li {
  132. height: 80rpx;
  133. display: flex;
  134. justify-content: flex-start;
  135. >view {
  136. font-weight: 400;
  137. font-size: 30rpx;
  138. color: #FFFFFF;
  139. line-height: 80rpx;
  140. text-align: center;
  141. margin-right: 18rpx;
  142. width: 120rpx;
  143. overflow: hidden;
  144. text-overflow: ellipsis;
  145. white-space: nowrap;
  146. }
  147. >view:nth-of-type(1) {
  148. width: 90rpx;
  149. text-align: left;
  150. }
  151. >view:nth-of-type(2) {
  152. width: 168rpx;
  153. }
  154. >view:nth-of-type(3) {
  155. width: 190rpx;
  156. }
  157. >view:nth-of-type(4) {
  158. width: 300rpx;
  159. }
  160. }
  161. }
  162. .table-tb {
  163. width: 750rpx;
  164. border-bottom: 1rpx dashed rgba(216, 216, 216, 0.2);
  165. background: #3E414F;
  166. padding: 0 30rpx;
  167. box-sizing: border-box;
  168. .table-tb-li {
  169. height: 80rpx;
  170. border-bottom: 1rpx dashed rgba(216, 216, 216, 0.2);
  171. display: flex;
  172. justify-content: flex-start;
  173. >view {
  174. font-weight: 400;
  175. font-size: 28rpx;
  176. color: #FFFFFF;
  177. line-height: 80rpx;
  178. text-align: center;
  179. margin-right: 38rpx;
  180. width: 120rpx;
  181. overflow: hidden;
  182. text-overflow: ellipsis;
  183. white-space: nowrap;
  184. }
  185. >view:nth-of-type(1) {
  186. width: 90rpx;
  187. text-align: left;
  188. }
  189. >view:nth-of-type(2) {
  190. width: 168rpx;
  191. }
  192. >view:nth-of-type(3) {
  193. width: 190rpx;
  194. }
  195. >view:nth-of-type(4) {
  196. width: 300rpx;
  197. }
  198. }
  199. }
  200. }
  201. }
  202. .table-tow {
  203. width: 750rpx;
  204. margin-top: 20rpx;
  205. .table-border {
  206. overflow: auto;
  207. .table-th {
  208. width: 860rpx;
  209. height: 80rpx;
  210. background: rgba(162, 162, 162, 0.2);
  211. padding: 0 30rpx;
  212. box-sizing: border-box;
  213. .table-th-li {
  214. height: 80rpx;
  215. display: flex;
  216. justify-content: flex-start;
  217. >view {
  218. font-weight: 400;
  219. font-size: 30rpx;
  220. color: #FFFFFF;
  221. line-height: 80rpx;
  222. text-align: center;
  223. margin-right: 18rpx;
  224. width: 140rpx;
  225. overflow: hidden;
  226. text-overflow: ellipsis;
  227. white-space: nowrap;
  228. }
  229. >view:nth-of-type(1) {
  230. width: 168rpx;
  231. text-align: left;
  232. }
  233. }
  234. }
  235. .table-tb {
  236. width: 860rpx;
  237. border-bottom: 1rpx dashed rgba(216, 216, 216, 0.2);
  238. background: #3E414F;
  239. padding: 0 30rpx;
  240. box-sizing: border-box;
  241. .table-tb-li {
  242. height: 80rpx;
  243. border-bottom: 1rpx dashed rgba(216, 216, 216, 0.2);
  244. display: flex;
  245. justify-content: flex-start;
  246. >view {
  247. font-weight: 400;
  248. font-size: 28rpx;
  249. color: #FFFFFF;
  250. line-height: 80rpx;
  251. text-align: center;
  252. margin-right: 38rpx;
  253. width: 140rpx;
  254. overflow: hidden;
  255. text-overflow: ellipsis;
  256. white-space: nowrap;
  257. }
  258. >view:nth-of-type(1) {
  259. width: 168rpx;
  260. text-align: left;
  261. }
  262. }
  263. }
  264. }
  265. }
  266. }
  267. </style>
  268. <style>
  269. page {
  270. background-color: #363744 !important;
  271. }
  272. </style>