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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440
  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" @click="go_record('ba8e5fa1c63d4f14a0f4cabb3ec585fc')">
  13. <view class="icon">
  14. <image src="./icon/section_1_icon_1.png" mode=""></image>
  15. </view>
  16. <view class="name">采煤</view>
  17. </view>
  18. <view class="item" style="background-color: #A3A2E4;"
  19. @click="go_record('a1547d077a7e46b0a8197b8c034e2dee')">
  20. <view class="icon">
  21. <image src="./icon/section_1_icon_2.png" mode=""></image>
  22. </view>
  23. <view class="name">掘进</view>
  24. </view>
  25. <view class="item" style="background-color: #8BC8DA;" @click="go_zdhxt('zys')">
  26. <view class="icon">
  27. <image src="./icon/section_1_icon_3.png" mode=""></image>
  28. </view>
  29. <view class="name">主运输</view>
  30. </view>
  31. <view class="item" style="background-color: #63D57B;" @click="go_production_statistics()">
  32. <view class="icon">
  33. <image src="./icon/section_1_icon_4.png" mode=""></image>
  34. </view>
  35. <view class="name">生产报表</view>
  36. </view>
  37. <view class="item" style="background-color: #E57A98;" @click="go_zdhxt('xdt')">
  38. <view class="icon">
  39. <image src="./icon/section_1_icon_5.png" mode=""></image>
  40. </view>
  41. <view class="name">巷道图</view>
  42. </view>
  43. <view class="item" style="background-color: #E9A037;" @click="show_toast()">
  44. <view class="icon">
  45. <image src="./icon/section_1_icon_6.png" mode=""></image>
  46. </view>
  47. <view class="name">化工</view>
  48. </view>
  49. </view>
  50. </view>
  51. <view class="section">
  52. <view class="title">
  53. <view class="line"></view>
  54. <view class="text">辅助类</view>
  55. <view class="line"></view>
  56. </view>
  57. <view class="list">
  58. <view class="item" style="background-color: #E9A037;" @click="go_zdhxt('tfgl')">
  59. <view class="icon">
  60. <image src="./icon/section_2_icon_1.png" mode=""></image>
  61. </view>
  62. <view class="name">主扇通风</view>
  63. </view>
  64. <view class="item" style="background-color: #638BD5;" @click="show_toast()">
  65. <view class="icon">
  66. <image src="./icon/section_2_icon_2.png" mode=""></image>
  67. </view>
  68. <view class="name">电力监控</view>
  69. </view>
  70. <view class="item" style="background-color: #638BD5;" @click="show_toast()">
  71. <view class="icon">
  72. <image src="./icon/section_2_icon_3.png" mode=""></image>
  73. </view>
  74. <view class="name">智慧水务</view>
  75. </view>
  76. <view class="item" style="background-color: #A3A2E4;" @click="go_zdhxt('psxt')">
  77. <view class="icon">
  78. <image src="./icon/section_2_icon_4.png" mode=""></image>
  79. </view>
  80. <view class="name">排水系统</view>
  81. </view>
  82. <view class="item" style="background-color: #8BC8DA;" @click="go_zdhxt('yfzd')">
  83. <view class="icon">
  84. <image src="./icon/section_2_icon_6.png" mode=""></image>
  85. </view>
  86. <view class="name">压风制氮</view>
  87. </view>
  88. <view class="item" style="background-color: #E9A037;"
  89. @click="go_record('b89076dac2cd45a8831ee8d3e85b4ed6')">
  90. <view class="icon">
  91. <image src="./icon/section_2_icon_7.png" mode=""></image>
  92. </view>
  93. <view class="name">设备健康诊断</view>
  94. </view>
  95. <view class="item" style="background-color: #E57A98;" @click="show_toast()">
  96. <view class="icon">
  97. <image src="./icon/section_2_icon_8.png" mode=""></image>
  98. </view>
  99. <view class="name">胶轮车监控</view>
  100. </view>
  101. <view class="item" style="background-color: #A3A2E4;" @click="go_zdhxt('jkrc')">
  102. <view class="icon">
  103. <image src="./icon/section_2_icon_9.png" mode=""></image>
  104. </view>
  105. <view class="name">架空乘人器</view>
  106. </view>
  107. <view class="item" style="background-color: #63D57B;" @click="go_zdhxt('tsj')">
  108. <view class="icon">
  109. <image src="./icon/section_2_icon_10.png" mode=""></image>
  110. </view>
  111. <view class="name">副井提升</view>
  112. </view>
  113. </view>
  114. </view>
  115. <view class="section">
  116. <view class="title">
  117. <view class="line"></view>
  118. <view class="text">监测监控类</view>
  119. <view class="line"></view>
  120. </view>
  121. <view class="list">
  122. <view class="item" style="background-color: #E9A037;" @click="go_video()">
  123. <view class="icon">
  124. <image src="./icon/section_3_icon_1.png" mode=""></image>
  125. </view>
  126. <view class="name">工业视频</view>
  127. </view>
  128. <view class="item" style="background-color: #638BD5;" @click="go_shangtang()">
  129. <view class="icon">
  130. <image src="./icon/section_3_icon_2.png" mode=""></image>
  131. </view>
  132. <view class="name">AI视频分析</view>
  133. </view>
  134. <view class="item" style="background-color: #638BD5;" @click="go_safety_monitoring()">
  135. <view class="icon">
  136. <image src="./icon/section_3_icon_3.png" mode=""></image>
  137. </view>
  138. <view class="name">安全监测</view>
  139. </view>
  140. <view class="item" style="background-color: #A3A2E4;" @click="go_personnel_orientation()">
  141. <view class="icon">
  142. <image src="./icon/section_3_icon_4.png" mode=""></image>
  143. </view>
  144. <view class="name">人员定位</view>
  145. </view>
  146. <view class="item" style="background-color: #63D57B;" @click="go_zdhxt('kyjc')">
  147. <view class="icon">
  148. <image src="./icon/section_3_icon_5.png" mode=""></image>
  149. </view>
  150. <view class="name">矿压监测</view>
  151. </view>
  152. <view class="item" style="background-color: #8BC8DA;" @click="go_zdhxt('glyq')">
  153. <view class="icon">
  154. <image src="./icon/section_3_icon_6.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: #E9A037;"
  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: #638BD5;" @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:#E57A98;"
  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. }
  307. }
  308. </script>
  309. <style lang="scss">
  310. .content {
  311. box-sizing: border-box;
  312. padding: 20rpx 25rpx 0;
  313. margin-bottom: 150rpx;
  314. .section {
  315. .title {
  316. line-height: 90rpx;
  317. font-size: 34rpx;
  318. color: #424242;
  319. font-weight: 700;
  320. display: flex;
  321. align-items: center;
  322. justify-content: center;
  323. .text {
  324. margin: 0 20rpx;
  325. }
  326. .line {
  327. width: 100rpx;
  328. height: 2rpx;
  329. background-color: #BFBFBF;
  330. }
  331. }
  332. .list {
  333. overflow: hidden;
  334. .item {
  335. float: left;
  336. width: 200rpx;
  337. height: 166rpx;
  338. background-color: #638BD5;
  339. text-align: center;
  340. box-sizing: border-box;
  341. padding-top: 25rpx;
  342. padding-bottom: 34rpx;
  343. margin-right: 50rpx;
  344. margin-bottom: 40rpx;
  345. border-radius: 16rpx;
  346. .icon {
  347. image {
  348. width: 64rpx;
  349. height: 64rpx;
  350. }
  351. }
  352. .name {
  353. margin-top: 4rpx;
  354. font-size: 28rpx;
  355. font-weight: 700;
  356. color: #FFFFFF;
  357. }
  358. }
  359. .item:nth-child(3n) {
  360. margin-right: 0;
  361. }
  362. }
  363. .table {
  364. .uni-table-th {
  365. color: #FFFFFF;
  366. background-color: #00A0E8;
  367. }
  368. .uni-table-th.table--border {
  369. border: none;
  370. }
  371. .uni-table-td.table--border {
  372. color: #666666;
  373. border: none;
  374. }
  375. position: relative;
  376. margin:0 -25rpx 20rpx;
  377. width: 750rpx;
  378. .btn {
  379. margin: 40rpx auto 0;
  380. width: 400rpx;
  381. height: 50rpx;
  382. background-color: #69BBFA;
  383. border-radius: 50rpx;
  384. display: flex;
  385. align-items: center;
  386. justify-content: center;
  387. .icon {
  388. image {
  389. width: 23rpx;
  390. height: 24rpx;
  391. display: block;
  392. }
  393. }
  394. .btn_text {
  395. margin-left: 10rpx;
  396. font-size: 28rpx;
  397. color: #FFFFFF;
  398. }
  399. }
  400. }
  401. }
  402. }
  403. </style>