t-p-n-section-1.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446
  1. <!-- 宁煤集团-数据统计版本 -->
  2. <template>
  3. <view>
  4. <view class="content">
  5. <view class="section">
  6. <view class="title">
  7. <view class="line"></view>
  8. <view class="text">监测监控类</view>
  9. <view class="line"></view>
  10. </view>
  11. <view class="list">
  12. <view class="item" style="background-color: #FE882E;" @click="go_video()">
  13. <view class="icon">
  14. <image src="./icon/section_3_icon_1.png" mode=""></image>
  15. </view>
  16. <view class="name">工业视频</view>
  17. </view>
  18. <view class="item" style="background-color: #4DA5FC;" @click="go_shangtang()">
  19. <view class="icon">
  20. <image src="./icon/section_3_icon_2.png" mode=""></image>
  21. </view>
  22. <view class="name">AI视频分析</view>
  23. </view>
  24. <view class="item" style="background-color: #4DA5FC;" @click="go_safety_monitoring()">
  25. <view class="icon">
  26. <image src="./icon/section_3_icon_3.png" mode=""></image>
  27. </view>
  28. <view class="name">安全监测</view>
  29. </view>
  30. <view class="item" style="background-color: #CB50F9;" @click="go_personnel_orientation()">
  31. <view class="icon">
  32. <image src="./icon/section_3_icon_4.png" mode=""></image>
  33. </view>
  34. <view class="name">人员定位</view>
  35. </view>
  36. <view class="item" style="background-color: #00D679;" @click="go_zdhxt('kyjc')">
  37. <view class="icon">
  38. <image src="./icon/section_3_icon_5.png" mode=""></image>
  39. </view>
  40. <view class="name">矿压监测</view>
  41. </view>
  42. <view class="item" style="background-color: #8BC8DA;" @click="go_zdhxt('glyq')">
  43. <view class="icon">
  44. <image src="./icon/section_3_icon_6.png" mode=""></image>
  45. </view>
  46. <view class="name">锅炉烟气</view>
  47. </view>
  48. </view>
  49. </view>
  50. <view class="section">
  51. <view class="title">
  52. <view class="line"></view>
  53. <view class="text">生产类</view>
  54. <view class="line"></view>
  55. </view>
  56. <view class="list">
  57. <view class="item" @click="go_record('ba8e5fa1c63d4f14a0f4cabb3ec585fc')">
  58. <view class="icon">
  59. <image src="./icon/section_1_icon_1.png" mode=""></image>
  60. </view>
  61. <view class="name">采煤</view>
  62. </view>
  63. <view class="item" style="background-color: #CB50F9;"
  64. @click="go_record('a1547d077a7e46b0a8197b8c034e2dee')">
  65. <view class="icon">
  66. <image src="./icon/section_1_icon_2.png" mode=""></image>
  67. </view>
  68. <view class="name">掘进</view>
  69. </view>
  70. <view class="item" style="background-color: #8BC8DA;" @click="go_zdhxt('zys')">
  71. <view class="icon">
  72. <image src="./icon/section_1_icon_3.png" mode=""></image>
  73. </view>
  74. <view class="name">主运输</view>
  75. </view>
  76. <view class="item" style="background-color: #00D679;" @click="go_production_statistics()">
  77. <view class="icon">
  78. <image src="./icon/section_1_icon_4.png" mode=""></image>
  79. </view>
  80. <view class="name">生产报表</view>
  81. </view>
  82. <view class="item" style="background-color: #F95877;" @click="go_zdhxt('xdt')">
  83. <view class="icon">
  84. <image src="./icon/section_1_icon_5.png" mode=""></image>
  85. </view>
  86. <view class="name">巷道图</view>
  87. </view>
  88. <view class="item" style="background-color: #FE882E;" @click="show_toast()">
  89. <view class="icon">
  90. <image src="./icon/section_1_icon_6.png" mode=""></image>
  91. </view>
  92. <view class="name">化工</view>
  93. </view>
  94. </view>
  95. </view>
  96. <view class="section">
  97. <view class="title">
  98. <view class="line"></view>
  99. <view class="text">辅助类</view>
  100. <view class="line"></view>
  101. </view>
  102. <view class="list">
  103. <view class="item" style="background-color: #FE882E;" @click="go_zdhxt('tfgl')">
  104. <view class="icon">
  105. <image src="./icon/section_2_icon_1.png" mode=""></image>
  106. </view>
  107. <view class="name">主扇通风</view>
  108. </view>
  109. <view class="item" style="background-color: #4DA5FC;" @click="show_toast()">
  110. <view class="icon">
  111. <image src="./icon/section_2_icon_2.png" mode=""></image>
  112. </view>
  113. <view class="name">电力监控</view>
  114. </view>
  115. <view class="item" style="background-color: #4DA5FC;" @click="go_water_affairs()">
  116. <view class="icon">
  117. <image src="./icon/section_2_icon_3.png" mode=""></image>
  118. </view>
  119. <view class="name">智慧水务</view>
  120. </view>
  121. <view class="item" style="background-color: #CB50F9;" @click="go_zdhxt('psxt')">
  122. <view class="icon">
  123. <image src="./icon/section_2_icon_4.png" mode=""></image>
  124. </view>
  125. <view class="name">排水系统</view>
  126. </view>
  127. <view class="item" style="background-color: #8BC8DA;" @click="go_zdhxt('yfzd')">
  128. <view class="icon">
  129. <image src="./icon/section_2_icon_6.png" mode=""></image>
  130. </view>
  131. <view class="name">压风制氮</view>
  132. </view>
  133. <view class="item" style="background-color: #FE882E;"
  134. @click="go_record('b89076dac2cd45a8831ee8d3e85b4ed6')">
  135. <view class="icon">
  136. <image src="./icon/section_2_icon_7.png" mode=""></image>
  137. </view>
  138. <view class="name">设备健康诊断</view>
  139. </view>
  140. <view class="item" style="background-color: #F95877;" @click="show_toast()">
  141. <view class="icon">
  142. <image src="./icon/section_2_icon_8.png" mode=""></image>
  143. </view>
  144. <view class="name">胶轮车监控</view>
  145. </view>
  146. <view class="item" style="background-color: #CB50F9;" @click="go_zdhxt('jkrc')">
  147. <view class="icon">
  148. <image src="./icon/section_2_icon_9.png" mode=""></image>
  149. </view>
  150. <view class="name">架空乘人器</view>
  151. </view>
  152. <view class="item" style="background-color: #00D679;" @click="go_zdhxt('tsj')">
  153. <view class="icon">
  154. <image src="./icon/section_2_icon_10.png" mode=""></image>
  155. </view>
  156. <view class="name">副井提升</view>
  157. </view>
  158. </view>
  159. </view>
  160. <view class="section">
  161. <view class="title">
  162. <view class="line"></view>
  163. <view class="text">重点场所</view>
  164. <view class="line"></view>
  165. </view>
  166. <view class="list">
  167. <view class="item" style="background-color: #FE882E;"
  168. @click="go_record('58915240cbff480d87ce20cbdfa66a87')">
  169. <view class="icon">
  170. <image src="./icon/section_4_icon_1.png" mode=""></image>
  171. </view>
  172. <view class="name">南湖</view>
  173. </view>
  174. <view class="item" style="background-color: #4DA5FC;" @click="show_toast()">
  175. <view class="icon">
  176. <image src="./icon/section_4_icon_2.png" mode=""></image>
  177. </view>
  178. <view class="name">班前会</view>
  179. </view>
  180. <view class="item" style="background-color:#F95877;"
  181. @click="go_record('4c1dbe725d8d485e9c58ab81c9f1fd5d')">
  182. <view class="icon">
  183. <image src="./icon/section_4_icon_3.png" mode=""></image>
  184. </view>
  185. <view class="name">培训课堂</view>
  186. </view>
  187. </view>
  188. </view>
  189. <view class="section">
  190. <view class="title">
  191. <view class="line"></view>
  192. <view class="text">实时预警</view>
  193. <view class="line"></view>
  194. </view>
  195. <view class="table" v-if="list">
  196. <uni-table emptyText="暂无更多数据" stripe>
  197. <!-- 表头行 -->
  198. <uni-tr>
  199. <uni-th align="center">时间</uni-th>
  200. <uni-th align="center" width="90">单位</uni-th>
  201. <uni-th align="center">地点</uni-th>
  202. <!-- <uni-th align="center">系统名称</uni-th> -->
  203. <uni-th align="center">报警内容</uni-th>
  204. <!-- <uni-th align="center">处理措施</uni-th> -->
  205. </uni-tr>
  206. <!-- 表格数据行 -->
  207. <uni-tr v-for="(item,index) in list" :key="index" v-if="index < 5">
  208. <uni-td style="vertical-align: middle;" align="center">
  209. <view>{{item.enter_time}}</view>
  210. </uni-td>
  211. <uni-td style="vertical-align: middle;" align="center">
  212. <view>{{item.coal_name}}</view>
  213. </uni-td>
  214. <uni-td style="vertical-align: middle;" align="center">
  215. <view>{{item.survey_name}}</view>
  216. </uni-td>
  217. <uni-td style="vertical-align: middle;" align="center">
  218. <view>{{item.abnormal_reason}}</view>
  219. </uni-td>
  220. <!-- <uni-td style="vertical-align: middle;" align="center">
  221. <view>{{item.do_measure}}</view>
  222. </uni-td> -->
  223. </uni-tr>
  224. </uni-table>
  225. <view class="btn">
  226. <view class="icon">
  227. <image src="./icon/btn.png" mode=""></image>
  228. </view>
  229. <view class="btn_text" @click="go_real_time_alarm()">点击查看全部信息</view>
  230. </view>
  231. </view>
  232. </view>
  233. </view>
  234. </view>
  235. </template>
  236. <script>
  237. export default {
  238. name: "t-p-n-section-1",
  239. data() {
  240. return {
  241. list: []
  242. };
  243. },
  244. mounted() {
  245. this.get_ycbj_list()
  246. },
  247. methods: {
  248. get_ycbj_list() {
  249. this.$p_api.get_ycbj_list({
  250. }).then((res) => {
  251. this.list = res.data.content
  252. })
  253. },
  254. show_toast() {
  255. uni.showToast({
  256. icon: "none",
  257. title: "正在建设中..."
  258. })
  259. },
  260. go_real_time_alarm() {
  261. uni.navigateTo({
  262. url: "../../ningdongyunying/real_time_alarm/real_time_alarm"
  263. })
  264. },
  265. go_record(pageId) {
  266. uni.navigateTo({
  267. url: "../../index/record/record?mine_code=ningmeijituan&pageId=" + pageId
  268. })
  269. },
  270. // 自动化统计列表
  271. go_zdhxt(zdhxt) {
  272. uni.navigateTo({
  273. url: "../../production/zidonghua/zidonghua?zdhxt=" + zdhxt
  274. })
  275. },
  276. // 视频监控
  277. go_video() {
  278. uni.navigateTo({
  279. url: "../../production/video_monitor_app/video_monitor_app?mine_code=ningmeijituan"
  280. })
  281. },
  282. // 生产统计
  283. go_production_statistics() {
  284. uni.navigateTo({
  285. url: "../../ningdongyunying/production_statistics/production_statistics"
  286. })
  287. },
  288. // 人员定位
  289. go_personnel_orientation() {
  290. uni.navigateTo({
  291. url: "../../ningdongyunying/personnel_orientation/personnel_orientation"
  292. })
  293. },
  294. // 安全监测
  295. go_safety_monitoring() {
  296. uni.navigateTo({
  297. url: "../../ningdongyunying/safety_monitoring/safety_monitoring"
  298. })
  299. },
  300. // 商汤
  301. go_shangtang() {
  302. uni.navigateTo({
  303. url: "../../production/shangtang/shangtang"
  304. })
  305. },
  306. go_water_affairs() {
  307. uni.navigateTo({
  308. url: "../../production/water_affairs/water_affairs"
  309. })
  310. }
  311. }
  312. }
  313. </script>
  314. <style lang="scss">
  315. .content {
  316. box-sizing: border-box;
  317. padding: 20rpx 25rpx 0;
  318. margin-bottom: 150rpx;
  319. .section {
  320. .title {
  321. line-height: 90rpx;
  322. font-size: 34rpx;
  323. color: #424242;
  324. font-weight: 700;
  325. display: flex;
  326. align-items: center;
  327. justify-content: center;
  328. .text {
  329. margin: 0 20rpx;
  330. }
  331. .line {
  332. width: 100rpx;
  333. height: 2rpx;
  334. background-color: #BFBFBF;
  335. }
  336. }
  337. .list {
  338. overflow: hidden;
  339. .item {
  340. float: left;
  341. width: 200rpx;
  342. height: 166rpx;
  343. background-color: #4DA5FC;
  344. text-align: center;
  345. box-sizing: border-box;
  346. padding-top: 25rpx;
  347. padding-bottom: 34rpx;
  348. margin-right: 50rpx;
  349. margin-bottom: 40rpx;
  350. border-radius: 16rpx;
  351. .icon {
  352. image {
  353. width: 64rpx;
  354. height: 64rpx;
  355. }
  356. }
  357. .name {
  358. margin-top: 4rpx;
  359. font-size: 28rpx;
  360. font-weight: 700;
  361. color: #FFFFFF;
  362. }
  363. }
  364. .item:nth-child(3n) {
  365. margin-right: 0;
  366. }
  367. }
  368. .table {
  369. .uni-table-th {
  370. color: #FFFFFF;
  371. background-color: #00A0E8;
  372. }
  373. .uni-table-th.table--border {
  374. border: none;
  375. }
  376. .uni-table-td.table--border {
  377. color: #666666;
  378. border: none;
  379. }
  380. position: relative;
  381. margin:0 -25rpx 20rpx;
  382. width: 750rpx;
  383. .btn {
  384. margin: 40rpx auto 0;
  385. width: 400rpx;
  386. height: 50rpx;
  387. background-color: #69BBFA;
  388. border-radius: 50rpx;
  389. display: flex;
  390. align-items: center;
  391. justify-content: center;
  392. .icon {
  393. image {
  394. width: 23rpx;
  395. height: 24rpx;
  396. display: block;
  397. }
  398. }
  399. .btn_text {
  400. margin-left: 10rpx;
  401. font-size: 28rpx;
  402. color: #FFFFFF;
  403. }
  404. }
  405. }
  406. }
  407. }
  408. </style>