equipmentControl.vue 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351
  1. <!-- 数据看板-设备管控 -->
  2. <template>
  3. <view class="equipmentControl">
  4. <view class="statistics">
  5. <view class="statistics-b">
  6. <view class="statistics-b-li">
  7. <view class="statistics-b-li-t color-A">99</view>
  8. <view class="statistics-b-li-b">设备总数</view>
  9. </view>
  10. <view class="line"></view>
  11. <view class="statistics-b-li">
  12. <view class="statistics-b-li-t color-B">16</view>
  13. <view class="statistics-b-li-b">今日新增设备</view>
  14. </view>
  15. <view class="line"></view>
  16. <view class="statistics-b-li">
  17. <view class="statistics-b-li-t color-C">33</view>
  18. <view class="statistics-b-li-b">超期服役设备</view>
  19. </view>
  20. </view>
  21. </view>
  22. <view class="small-title">
  23. <view class="small-title-l">超期服役排行TOP5</view>
  24. <img class="small-title-r" @click="goPage('overdue')" src="@/pages/images/icon_wdwg_gd.png">
  25. </view>
  26. <view class="chart">
  27. <view class="chart-b">
  28. </view>
  29. </view>
  30. <view class="small-title">
  31. <view class="small-title-l">设备使用寿命</view>
  32. <img class="small-title-r" @click="goPage('life')" src="@/pages/images/icon_wdwg_gd.png">
  33. </view>
  34. <view class="chart-tow">
  35. <view class="chart-tow-b">
  36. </view>
  37. </view>
  38. <view class="small-title">
  39. <view class="small-title-l">特种设备与常规冷热设备安全隐患统计</view>
  40. </view>
  41. <view class="small-title-tow">
  42. <view class="small-title-tow-l">安全检查校级巡查计划标题标题标题标题标题</view>
  43. <img class="small-title-tow-r" src="@/pages/images/dataBoard/icon_06.png">
  44. </view>
  45. <view class="chart-three">
  46. <view class="chart-three-b">
  47. </view>
  48. </view>
  49. <view class="chart-title">
  50. <view class="chart-title-l">安全指标</view>
  51. <view class="chart-title-r">占比</view>
  52. </view>
  53. <view class="list" v-for="(item,index) in dataList" :key="index">
  54. <view class="list-title">
  55. <view class="list-title-l">{{item.data1}}</view>
  56. <view class="list-title-r">{{item.data2}}</view>
  57. </view>
  58. <view class="list-li" v-for="(item2,index2) in item.child" :key="index2">{{item2.name}}</view>
  59. </view>
  60. </view>
  61. </template>
  62. <script>
  63. import {
  64. config
  65. } from '@/api/request/config.js'
  66. import {
  67. } from '@/pages_basics/api/index.js'
  68. export default {
  69. name: "equipmentControl",
  70. components: {
  71. },
  72. data() {
  73. return {
  74. // 查询参数
  75. queryParams: {
  76. page: 1,
  77. pageSize: 10,
  78. },
  79. dataList: [{
  80. data1: '13.4加热及制冷装置管理',
  81. data2: '40%',
  82. child:[
  83. {
  84. name:'13.4.1 冰箱、烘箱、马弗炉等周围堆放杂物',
  85. },
  86. {
  87. name:'13.4.3 烘箱叠放',
  88. },
  89. ]
  90. },
  91. {
  92. data1: '13.4加热及制冷装置管理',
  93. data2: '40%',
  94. child:[
  95. {
  96. name:'13.4.1 冰箱、烘箱、马弗炉等周围堆放杂物',
  97. },
  98. {
  99. name:'13.4.3 烘箱叠放',
  100. },
  101. ]
  102. },
  103. ],
  104. total: 0,
  105. }
  106. },
  107. created() {
  108. },
  109. beforeMount() {
  110. },
  111. mounted() {},
  112. methods: {
  113. dateClick(index) {
  114. this.dateIndex = index;
  115. },
  116. goPage(type){
  117. if(type=='overdue'){
  118. uni.navigateTo({
  119. url: '/pages/views/dataBoard/equipmentControlOverdue?pageType=1'
  120. });
  121. }else if(type=='life'){
  122. uni.navigateTo({
  123. url: '/pages/views/dataBoard/equipmentControlOverdue?pageType=2'
  124. });
  125. }
  126. },
  127. },
  128. }
  129. </script>
  130. <style lang="stylus" scoped>
  131. .equipmentControl {
  132. height: 100%;
  133. width: 100%;
  134. background: #363744;
  135. padding: 2rpx 0rpx 0;
  136. box-sizing: border-box;
  137. .statistics {
  138. width: 750rpx;
  139. height: 120rpx;
  140. background: #3E414F;
  141. .statistics-b {
  142. display: flex;
  143. justify-content: space-between;
  144. align-items: center;
  145. .statistics-b-li {
  146. flex: 1;
  147. text-align: center;
  148. .statistics-b-li-t {
  149. font-weight: 400;
  150. font-size: 36rpx;
  151. line-height: 50rpx;
  152. margin-top: 10rpx;
  153. }
  154. .statistics-b-li-b {
  155. font-weight: 400;
  156. font-size: 24rpx;
  157. color: #FFFFFF;
  158. line-height: 34rpx;
  159. margin-top: 9rpx;
  160. }
  161. }
  162. .line {
  163. width: 2rpx;
  164. height: 30rpx;
  165. background: #D8D8D8;
  166. }
  167. .color-A {
  168. color: #0183FA;
  169. }
  170. .color-B {
  171. color: #FF0000;
  172. }
  173. .color-C {
  174. color: #FFAA00;
  175. }
  176. }
  177. }
  178. .small-title {
  179. display: flex;
  180. justify-content: space-between;
  181. align-items: center;
  182. margin: 0 30rpx;
  183. .small-title-l {
  184. font-weight: 400;
  185. font-size: 32rpx;
  186. color: #FFFFFF;
  187. line-height: 45rpx;
  188. text-align: left;
  189. margin: 28rpx 0;
  190. }
  191. .small-title-r {
  192. width: 15rpx;
  193. height: 18rpx;
  194. }
  195. }
  196. .chart {
  197. width: 690rpx;
  198. height: 476rpx;
  199. background: #3E414F;
  200. border-radius: 20rpx 20rpx 20rpx 20rpx;
  201. margin: 0 30rpx;
  202. .chart-b {
  203. width: 690rpx;
  204. height: 476rpx;
  205. }
  206. }
  207. .chart-tow{
  208. width: 690rpx;
  209. height: 436rpx;
  210. background: #3E414F;
  211. border-radius: 20rpx 20rpx 20rpx 20rpx;
  212. margin: 0 30rpx;
  213. .chart-tow-b{
  214. width: 690rpx;
  215. height: 436rpx;
  216. }
  217. }
  218. .small-title-tow {
  219. width: 750rpx;
  220. height: 80rpx;
  221. background: #3E414F;
  222. display: flex;
  223. justify-content: space-between;
  224. align-items: center;
  225. padding: 0 20rpx 0 30rpx;
  226. box-sizing: border-box;
  227. margin-top: 2rpx;
  228. .small-title-tow-l {
  229. flex: 1;
  230. font-weight: 400;
  231. font-size: 30rpx;
  232. color: #FFFFFF;
  233. line-height: 42rpx;
  234. overflow: hidden;
  235. text-overflow: ellipsis;
  236. white-space: nowrap;
  237. }
  238. .small-title-tow-r {
  239. width: 14rpx;
  240. height: 8rpx;
  241. }
  242. }
  243. .chart-three{
  244. width: 690rpx;
  245. height: 394rpx;
  246. background: #3E414F;
  247. border-radius: 20rpx 20rpx 0rpx 0rpx;
  248. margin: 34rpx 30rpx 0;
  249. .chart-three-b{
  250. width: 690rpx;
  251. height: 394rpx;
  252. }
  253. }
  254. .chart-title{
  255. width: 689rpx;
  256. height: 80rpx;
  257. background: rgba(162,162,162,0.2);
  258. border-radius: 0rpx 0rpx 0rpx 0rpx;
  259. padding: 0 70rpx 0 38rpx;
  260. box-sizing: border-box;
  261. margin: 0 30rpx;
  262. display: flex;
  263. justify-content: space-between;
  264. .chart-title-l{
  265. font-weight: 400;
  266. font-size: 30rpx;
  267. color: #FFFFFF;
  268. line-height: 80rpx;
  269. }
  270. .chart-title-r{
  271. font-weight: 400;
  272. font-size: 30rpx;
  273. color: #FFFFFF;
  274. line-height: 80rpx;
  275. }
  276. }
  277. .list{
  278. margin: 0 30rpx;
  279. padding:0 30rpx;
  280. box-sizing: border-box;
  281. .list-title{
  282. height: 80rpx;
  283. display: flex;
  284. justify-content: space-between;
  285. border-bottom: 1rpx dashed rgba(216,216,216,0.2);
  286. padding: 0 38rpx 0 10rpx;
  287. box-sizing: border-box;
  288. .list-title-l{
  289. font-weight: 400;
  290. font-size: 28rpx;
  291. color: #FFFFFF;
  292. line-height: 80rpx;
  293. }
  294. .list-title-r{
  295. font-weight: 400;
  296. font-size: 28rpx;
  297. color: #0183FA;
  298. line-height: 80rpx;
  299. }
  300. }
  301. .list-li{
  302. height: 80rpx;
  303. display: flex;
  304. justify-content: space-between;
  305. padding: 0 38rpx 0 10rpx;
  306. box-sizing: border-box;
  307. font-weight: 400;
  308. font-size: 28rpx;
  309. color: #999999;
  310. line-height: 80rpx;
  311. text-align: left;
  312. }
  313. }
  314. }
  315. </style>
  316. <style>
  317. page{
  318. background-color: #363744 !important;
  319. }
  320. </style>