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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439
  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. <uni-tr>
  198. <uni-th align="center">时间</uni-th>
  199. <uni-th align="center" width="90">单位</uni-th>
  200. <uni-th align="center">地点</uni-th>
  201. <uni-th align="center">报警内容</uni-th>
  202. </uni-tr>
  203. <uni-tr v-for="(item,index) in list" :key="index" v-if="index < 5">
  204. <uni-td style="vertical-align: middle;" align="center">
  205. <view>{{item.enter_time}}</view>
  206. </uni-td>
  207. <uni-td style="vertical-align: middle;" align="center">
  208. <view>{{item.coal_name}}</view>
  209. </uni-td>
  210. <uni-td style="vertical-align: middle;" align="center">
  211. <view>{{item.survey_name}}</view>
  212. </uni-td>
  213. <uni-td style="vertical-align: middle;" align="center">
  214. <view>{{item.abnormal_reason}}</view>
  215. </uni-td>
  216. </uni-tr>
  217. </uni-table>
  218. <view class="btn">
  219. <view class="icon">
  220. <image src="./icon/btn.png" mode=""></image>
  221. </view>
  222. <view class="btn_text" @click="go_real_time_alarm()">点击查看全部信息</view>
  223. </view>
  224. </view>
  225. </view> -->
  226. </view>
  227. </view>
  228. </template>
  229. <script>
  230. export default {
  231. name: "t-p-n-section-1",
  232. data() {
  233. return {
  234. list: []
  235. };
  236. },
  237. mounted() {
  238. // this.get_ycbj_list()
  239. },
  240. methods: {
  241. get_ycbj_list() {
  242. this.$p_api.get_ycbj_list({
  243. }).then((res) => {
  244. this.list = res.data.content
  245. })
  246. },
  247. show_toast() {
  248. uni.showToast({
  249. icon: "none",
  250. title: "正在建设中..."
  251. })
  252. },
  253. go_real_time_alarm() {
  254. uni.navigateTo({
  255. url: "../../ningdongyunying/real_time_alarm/real_time_alarm"
  256. })
  257. },
  258. go_record(pageId) {
  259. uni.navigateTo({
  260. url: "../../index/record/record?mine_code=ningmeijituan&pageId=" + pageId
  261. })
  262. },
  263. // 自动化统计列表
  264. go_zdhxt(zdhxt) {
  265. uni.navigateTo({
  266. url: "../../production/zidonghua/zidonghua?zdhxt=" + zdhxt
  267. })
  268. },
  269. // 视频监控
  270. go_video() {
  271. uni.navigateTo({
  272. url: "../../production/video_monitor/video_monitor?mine_code=ningmeijituan"
  273. })
  274. },
  275. // 生产统计
  276. go_production_statistics() {
  277. uni.navigateTo({
  278. url: "../../ningdongyunying/production_statistics/production_statistics"
  279. })
  280. },
  281. // 人员定位
  282. go_personnel_orientation() {
  283. uni.navigateTo({
  284. url: "../../ningdongyunying/personnel_orientation/personnel_orientation"
  285. })
  286. },
  287. // 安全监测
  288. go_safety_monitoring() {
  289. uni.navigateTo({
  290. url: "../../ningdongyunying/safety_monitoring/safety_monitoring"
  291. })
  292. },
  293. // 商汤
  294. go_shangtang() {
  295. uni.navigateTo({
  296. url: "../../production/shangtang/shangtang"
  297. })
  298. },
  299. go_water_affairs() {
  300. uni.navigateTo({
  301. url: "../../production/water_affairs/water_affairs"
  302. })
  303. }
  304. }
  305. }
  306. </script>
  307. <style lang="scss">
  308. .content {
  309. box-sizing: border-box;
  310. padding: 20rpx 25rpx 0;
  311. margin-bottom: 150rpx;
  312. .section {
  313. .title {
  314. line-height: 90rpx;
  315. font-size: 34rpx;
  316. color: #424242;
  317. font-weight: 700;
  318. display: flex;
  319. align-items: center;
  320. justify-content: center;
  321. .text {
  322. margin: 0 20rpx;
  323. }
  324. .line {
  325. width: 100rpx;
  326. height: 2rpx;
  327. background-color: #BFBFBF;
  328. }
  329. }
  330. .list {
  331. display: grid;
  332. grid-template-columns: 200rpx 200rpx 200rpx;
  333. grid-column-gap: 50rpx;
  334. grid-row-gap: 40rpx;
  335. .item {
  336. width: 200rpx;
  337. height: 166rpx;
  338. background-color: #4DA5FC;
  339. text-align: center;
  340. box-sizing: border-box;
  341. padding-top: 25rpx;
  342. padding-bottom: 34rpx;
  343. margin-right: 50rpx;
  344. border-radius: 16rpx;
  345. .icon {
  346. image {
  347. width: 64rpx;
  348. height: 64rpx;
  349. }
  350. }
  351. .name {
  352. margin-top: 4rpx;
  353. font-size: 28rpx;
  354. font-weight: 700;
  355. color: #FFFFFF;
  356. }
  357. }
  358. .item:nth-child(3n) {
  359. margin-right: 0;
  360. }
  361. }
  362. .table {
  363. .uni-table-th {
  364. color: #FFFFFF;
  365. background-color: #00A0E8;
  366. }
  367. .uni-table-th.table--border {
  368. border: none;
  369. }
  370. .uni-table-td.table--border {
  371. color: #666666;
  372. border: none;
  373. }
  374. position: relative;
  375. margin:0 -25rpx 20rpx;
  376. width: 750rpx;
  377. .btn {
  378. margin: 40rpx auto 0;
  379. width: 400rpx;
  380. height: 50rpx;
  381. background-color: #69BBFA;
  382. border-radius: 50rpx;
  383. display: flex;
  384. align-items: center;
  385. justify-content: center;
  386. .icon {
  387. image {
  388. width: 23rpx;
  389. height: 24rpx;
  390. display: block;
  391. }
  392. }
  393. .btn_text {
  394. margin-left: 10rpx;
  395. font-size: 28rpx;
  396. color: #FFFFFF;
  397. }
  398. }
  399. }
  400. }
  401. }
  402. </style>