index.vue 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  1. <template>
  2. <view class="content">
  3. <page-header :name="'自动化监控系统'" :bg="'#009fe8'" :showLeft="false"></page-header>
  4. <view class="scroll-wrap">
  5. <image class="img-wrap" src="@/static/index.jpg" />
  6. <view class="classify-wrap">
  7. <view class="left">
  8. <view @click="tabChange(index)"
  9. :class="active === index ? 'item-wrap active' : 'item-wrap deactive'"
  10. v-for="(item, index) in list" :key="index">
  11. {{ item.name }}
  12. </view>
  13. </view>
  14. <view class="right">
  15. <view @click="goPage(item)" v-for="(item, index) in list[active].children" class="item-wrap">
  16. <image src="@/static/gxsx.png" />
  17. <view class="title">
  18. {{ item.name }}
  19. </view>
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. </template>
  26. <script>
  27. export default {
  28. data() {
  29. return {
  30. active: 0, // 当前激活的tab
  31. list: [{ // 列表数据
  32. name: '智能监测',
  33. children: [{
  34. name: '人员定位',
  35. path: `/pages/data/znjc/page`,
  36. src: 'http://anstatic.nxmy.com:8011/assets/html/zhks-quankuang/ningmeijituan/h5/#/pages/production/personnel_orientation/personnel_orientation?mine=640181B0011010026856'
  37. }, {
  38. name: '安全监测',
  39. path: `/pages/data/znjc/page`,
  40. src: 'http://anstatic.nxmy.com:8011/assets/html/zhks-quankuang/ningmeijituan/h5/#/pages/production/safety_monitoring/safety_monitoring?mine=640181B0011010026856'
  41. }, {
  42. name: '工业视频',
  43. path: `/pages/data/znjc/page`,
  44. src: 'http://anstatic.nxmy.com:8011/assets/html/zhks-quankuang/ningmeijituan/video_ws/video_XXX/?mine_code=qingshuiying_jituan#/'
  45. }]
  46. },{
  47. name: '排水系统',
  48. children: [{
  49. name: '+786m水泵房',
  50. path: `/pages/data/supply-water/supply-room/supply-room`
  51. }, {
  52. name: '+1065m水泵房',
  53. path: `/pages/data/supply-water/supply-room/supply-room`
  54. }]
  55. }, {
  56. name: '提升系统',
  57. children: [{
  58. name: '副立井提升',
  59. path: '/pages/data/ts-system/flj'
  60. }, {
  61. name: '副斜井绞车',
  62. path: '/pages/data/ts-system/fxj_jc'
  63. }, {
  64. name: '副斜井轨道运输',
  65. path: '/pages/data/ts-system/fxj_gd'
  66. }]
  67. }, {
  68. name: '采掘系统',
  69. children: [{
  70. name: '矿井矿压',
  71. path: '/pages/data/cj-system/kjky'
  72. }, {
  73. name: '矿井视频智能调速',
  74. path: '/pages/data/cj-system/kjsp'
  75. }, {
  76. name: '智能掘进工作面',
  77. path: '/pages/data/cj-system/gzm'
  78. }]
  79. }, {
  80. name: '通风系统',
  81. children: [{
  82. name: '主通风机监控系统',
  83. path: '/pages/data/ventilation/air-system/air-system',
  84. children: [{
  85. name: '1#风机',
  86. status: 1
  87. }, {
  88. name: '2#风机',
  89. status: 0
  90. }]
  91. }, {
  92. name: '制氮监控系统',
  93. path: '/pages/data/nitrogen/compress-system/compress-system'
  94. }, {
  95. name: '压风监控系统',
  96. path: '/pages/data/nitrogen/nitrogen-system/nitrogen-system'
  97. }, {
  98. name: '副立井压风监控系统',
  99. path: '/pages/data/nitrogen/flj_yf'
  100. }]
  101. }, {
  102. name: '运输系统',
  103. children: [{
  104. name: '架空人车监控系统',
  105. path: '/pages/data/transport/passenger/passenger'
  106. },
  107. {
  108. name: '甲带给料机监控',
  109. path: '/pages/data/transport/jdgl'
  110. }, {
  111. name: '主运输06机巷皮带',
  112. path: '/pages/data/transport/belt/belt'
  113. }, {
  114. name: '主运输07风巷皮带',
  115. path: '/pages/data/transport/belt/belt'
  116. }, {
  117. name: '井下皮带监控',
  118. path: '/pages/data/transport/belt/belt'
  119. }, {
  120. name: '二煤上山皮带监控',
  121. path: '/pages/data/transport/belt/belt'
  122. }
  123. ]
  124. }, {
  125. name: '供水系统',
  126. children: [{
  127. name: '生活水供水监控',
  128. path: '/pages/data/gs-system/shzs'
  129. }, {
  130. name: '消防供水监控',
  131. path: '/pages/data/gs-system/shgs'
  132. }, {
  133. name: '生产水供水监控',
  134. path: '/pages/data/gs-system/shgs'
  135. }]
  136. }, {
  137. name: '热力系统',
  138. children: [{
  139. name: '燃气锅炉房监控',
  140. path: '/pages/data/rl-system/rqgl'
  141. }, {
  142. name: '新锅炉房监控',
  143. path: '/pages/data/rl-system/rqgl'
  144. }, {
  145. name: '换热站监控',
  146. path: '/pages/data/rl-system/hrz'
  147. }]
  148. }, {
  149. name: '供电系统',
  150. children: [{
  151. name: '井下高压监控',
  152. path: '/pages/data/electron/line-picture/line-picture'
  153. }, {
  154. name: '井下低压监控',
  155. path: '/pages/data/electron/line-picture/line-picture'
  156. }, {
  157. name: '地面10KV监控',
  158. path: '/pages/data/electron/line-picture/line-picture'
  159. }, {
  160. name: '地面低压监控',
  161. path: '/pages/data/electron/line-picture/line-picture'
  162. }]
  163. }]
  164. }
  165. },
  166. onLoad() {
  167. },
  168. methods: {
  169. tabChange(index) {
  170. this.active = index
  171. },
  172. goPage(item) {
  173. uni.navigateTo({
  174. url: item.path + `?data=${JSON.stringify(item)}`
  175. })
  176. }
  177. }
  178. }
  179. </script>
  180. <style scoped lang="scss">
  181. .content {
  182. height: 100vh;
  183. background-color: #fff;
  184. .scroll-wrap {
  185. height: calc(100vh - 85rpx);
  186. overflow-y: scroll;
  187. .img-wrap {
  188. width: 100%;
  189. height: 500rpx;
  190. margin-bottom: 10rpx;
  191. vertical-align: bottom; // 解决image背景图片下方有10rpx 的白边
  192. }
  193. .classify-wrap {
  194. display: flex;
  195. flex-direction: row;
  196. background-color: #f4f5f9;
  197. padding-bottom: 100rpx;
  198. .left {
  199. border-radius: 0 20rpx 20rpx 0;
  200. overflow: hidden;
  201. width: 30vw;
  202. margin-right: 10rpx;
  203. .item-wrap {
  204. text-align: center;
  205. padding: 30rpx 20rpx;
  206. }
  207. .active {
  208. font-weight: 700;
  209. }
  210. .deactive {
  211. color: #c0c0c0;
  212. background-color: #fff;
  213. }
  214. }
  215. .right {
  216. padding-top: 40rpx;
  217. display: flex;
  218. align-content: flex-start;
  219. flex-direction: row;
  220. flex-wrap: wrap;
  221. overflow: hidden;
  222. border-radius: 20rpx 0 0 20rpx;
  223. width: calc(70vw - 10rpx);
  224. background-color: #fff;
  225. .item-wrap {
  226. width: 50%;
  227. margin-bottom: 40rpx;
  228. display: flex;
  229. justify-content: start;
  230. align-items: center;
  231. flex-direction: column;
  232. image {
  233. width: 90rpx;
  234. height: 90rpx;
  235. margin-bottom: 20rpx;
  236. }
  237. .title {
  238. font-weight: 700;
  239. text-align: center;
  240. }
  241. }
  242. .item-wrap:nth-child(2n) {
  243. .title {
  244. padding: 0 10px 0 5px;
  245. }
  246. }
  247. .item-wrap:nth-child(2n-1) {
  248. .title {
  249. padding: 0 5px 0 10px;
  250. }
  251. }
  252. }
  253. }
  254. }
  255. }
  256. </style>