t-p-zaoquan.vue 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336
  1. <template>
  2. <view>
  3. <view class="top">
  4. <image src="./icon/top.gif" mode="widthFix"></image>
  5. </view>
  6. <view class="content">
  7. <view class="nav" v-for="(item,index) in nav" :key="index">
  8. <view class="title" v-if="item.title">{{item.title}}</view>
  9. <view class="list">
  10. <view class="item" v-for="(item_2,index_2) in item.list" :key="index_2" @click="navigator(item_2)">
  11. <view class="icon">
  12. <image :src="item_2.icon" mode="heightFix"></image>
  13. </view>
  14. <view class="name" v-html="item_2.name"></view>
  15. </view>
  16. </view>
  17. </view>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. export default {
  23. name: "t-p-zaoquan",
  24. data() {
  25. return {
  26. mine: "640181B0011010037723",
  27. org_num: "1014",
  28. mine_code: "zaoquan",
  29. nav: [{
  30. title: "智能监测",
  31. list: [{
  32. icon: require("./icon/icon_1.png"),
  33. module: "gkpt",
  34. name: "管控平台",
  35. url: "../../production/zaoquan/h5/h5?url=" + "http://zdh.zaoquan.nxjiewei.com:8011/home/dashboard"
  36. },
  37. {
  38. icon: require("./icon/icon_2.png"),
  39. module: "rydw",
  40. name: "人员定位",
  41. url: "../../production/personnel_orientation/personnel_orientation?mine=640181B0011010037723"
  42. },
  43. {
  44. icon: require("./icon/icon_3.png"),
  45. module: "aqjc",
  46. name: "安全监测",
  47. url: "../../production/safety_monitoring/safety_monitoring?mine=640181B0011010037723"
  48. },
  49. {
  50. icon: require("./icon/icon_4.png"),
  51. module: "spjk",
  52. name: "视频监控",
  53. url: "../../production/video_monitor/video_monitor?mine_code=zaoquan"
  54. },
  55. {
  56. icon: require("./icon/icon_6.png"),
  57. module: "scbb",
  58. name: "生产报表",
  59. url: "../../production/production_report/production_report?mine=640181B0011010037723&org_num=1014"
  60. }, {
  61. icon: require("./icon/icon_7.png"),
  62. module: "kjscl",
  63. name: "矿井水处理",
  64. url: "../../production/zaoquan/mine_water_treatment/mine_water_treatment?mine_code=zaoquan"
  65. },
  66. // {
  67. // icon: require("./icon/icon_5.png"),
  68. // module: "zncs",
  69. // name: "智能测速",
  70. // url: "../../production/zaoquan/intelligent_speed_measurement/intelligent_speed_measurement"
  71. // }
  72. ]
  73. },
  74. {
  75. title: "智能生产",
  76. list: [{
  77. icon: require("./icon/sc_sj.png"),
  78. module: "zncm",
  79. name: "智能采煤",
  80. url: "../../production/zaoquan/control_platform/coal_mining/coal_mining"
  81. },
  82. // {
  83. // icon: require("./icon/sc_tongfeng.png"),
  84. // module: "zntf",
  85. // name: "智能通风",
  86. // url: "../../production/zaoquan/control_platform/ventilate/ventilate"
  87. // },
  88. // {
  89. // icon: require("./icon/sc_paishui.png"),
  90. // module: "znps",
  91. // name: "智能排水",
  92. // url: "../../production/zaoquan/control_platform/drainage/drainage",
  93. // },
  94. // {
  95. // icon: require("./icon/sc_zhidan.png"),
  96. // module: "yfzd",
  97. // name: "压风制氮",
  98. // },
  99. // {
  100. // icon: require("./icon/sc_yunshu.png"),
  101. // module: "znzy",
  102. // name: "智能主运",
  103. // },
  104. // {
  105. // icon: require("./icon/chart.png"),
  106. // module: "zngd",
  107. // name: "智能供电",
  108. // }
  109. ]
  110. },
  111. {
  112. title: "智能辅助",
  113. list: [{
  114. icon: require("./icon/chart.png"),
  115. module: "zngd",
  116. name: "智能供电",
  117. url: "../../production/zaoquan/control_platform/substation/substation",
  118. },{
  119. icon: require("./icon/sc_paishui.png"),
  120. module: "znps",
  121. name: "智能排水",
  122. url: "../../production/zaoquan/control_platform/drainage/drainage",
  123. },
  124. {
  125. icon: require("./icon/sc_zhidan.png"),
  126. module: "yfzd",
  127. name: "1314<br/>压风制氮",
  128. url: "../../production/zaoquan/control_platform/air_nitrogen/air_nitrogen?title=1314压风制氮&sys_code=1314",
  129. },
  130. {
  131. icon: require("./icon/sc_zhidan.png"),
  132. module: "yfzd",
  133. name: "12采区<br/>压风制氮",
  134. url: "../../production/zaoquan/control_platform/air_nitrogen/air_nitrogen?title=12采区压风制氮&sys_code=12",
  135. }
  136. ]
  137. },
  138. {
  139. title: "智能保障",
  140. list: [
  141. {
  142. icon: require("./icon/sc_tongfeng.png"),
  143. module: "zntf",
  144. name: "智能通风",
  145. url: "../../production/zaoquan/control_platform/ventilate/ventilate"
  146. },
  147. ]
  148. },
  149. {
  150. title: "智慧园区",
  151. list: [
  152. {
  153. icon: require("./icon/icon_5.png"),
  154. module: "zncs",
  155. name: "智能测速",
  156. url: "../../production/zaoquan/intelligent_speed_measurement/intelligent_speed_measurement"
  157. }
  158. ]
  159. },
  160. {
  161. title: "智能主运",
  162. list: [
  163. {
  164. icon: require("./icon/sc_yunshu.png"),
  165. module: "zys",
  166. name: "主运输",
  167. url: "../../production/zaoquan/control_platform/transport/transport"
  168. }
  169. ]
  170. }
  171. ]
  172. };
  173. },
  174. methods: {
  175. navigator(item) {
  176. if (!item.url) {
  177. uni.showToast({
  178. icon: "none",
  179. title: "暂未开通!"
  180. })
  181. } else {
  182. uni.showLoading({
  183. mask: true,
  184. title: "载入中..."
  185. })
  186. this.$p_api.product_data_query_power({
  187. staff_num: uni.getStorageSync('user').staff_num,
  188. data_module: item.module
  189. }).then((res) => {
  190. uni.hideLoading()
  191. if (res.data.content.status) {
  192. uni.navigateTo({
  193. url: item.url
  194. })
  195. } else {
  196. uni.showToast({
  197. icon: "none",
  198. title: "没有查看权限!"
  199. })
  200. }
  201. })
  202. }
  203. },
  204. // 自动化统计列表
  205. go_zdhxt(zdhxt) {
  206. uni.navigateTo({
  207. url: "../../production/zaoquan/zidonghua_list/zidonghua_list?zdhxt=" + zdhxt
  208. })
  209. },
  210. // 生产报表
  211. go_production_report() {
  212. uni.navigateTo({
  213. url: "../../production/production_report/production_report?mine=" + this.mine + "&org_num=" +
  214. this.org_num,
  215. })
  216. },
  217. // 安全监测
  218. go_safety_monitoring() {
  219. uni.navigateTo({
  220. url: "../../production/safety_monitoring/safety_monitoring?mine=" + this.mine
  221. })
  222. },
  223. //人员定位
  224. go_personnel_orientation() {
  225. uni.navigateTo({
  226. url: "../../production/personnel_orientation/personnel_orientation?mine=" + this.mine
  227. })
  228. },
  229. // 视频监控
  230. go_video_monitor() {
  231. uni.navigateTo({
  232. url: "../../production/video_monitor/video_monitor?mine_code=" + this.mine_code
  233. })
  234. },
  235. // 电力监控
  236. go_power_monitoring() {
  237. uni.navigateTo({
  238. url: "../../production/zaoquan/power_monitoring/power_monitoring"
  239. })
  240. },
  241. // 矿井水处理
  242. go_mine_water_treatment() {
  243. uni.navigateTo({
  244. url: "../../production/zaoquan/mine_water_treatment/mine_water_treatment?mine_code=" + this
  245. .mine_code
  246. })
  247. },
  248. // 数据分析
  249. go_table() {
  250. uni.navigateTo({
  251. url: "../../production/statistical_analysis_table/statistical_analysis_table"
  252. })
  253. },
  254. go_zaoquan_h5() {
  255. uni.navigateTo({
  256. url: "../../production/zaoquan/h5/h5?url=" +
  257. "http://zdh.zaoquan.nxjiewei.com:8011/home/dashboard"
  258. })
  259. },
  260. go_vehicle() {
  261. uni.navigateTo({
  262. url: "../../production/zaoquan/intelligent_speed_measurement/intelligent_speed_measurement"
  263. })
  264. }
  265. }
  266. }
  267. </script>
  268. <style lang="scss">
  269. .top {
  270. image {
  271. width: 750rpx;
  272. }
  273. }
  274. .content {
  275. background-color: #fff;
  276. border-radius: 60rpx;
  277. position: relative;
  278. top: -40rpx;
  279. .nav {
  280. padding-top: 60rpx;
  281. .title {
  282. position: relative;
  283. text-align: center;
  284. font-size: 36rpx;
  285. color: #383838;
  286. font-weight: 700;
  287. margin-bottom: 20rpx;
  288. }
  289. .title::after {
  290. content: " ";
  291. position: absolute;
  292. left: 50%;
  293. bottom: -16rpx;
  294. width: 200rpx;
  295. height: 10rpx;
  296. background-image: linear-gradient(to right, transparent, #03A2E9);
  297. border-radius: 20rpx;
  298. transform: translateX(-50%);
  299. }
  300. .list {
  301. padding: 50rpx 20rpx 0;
  302. display: grid;
  303. grid-template-columns: repeat(4, 1fr);
  304. gap: 60rpx 20rpx;
  305. .item {
  306. text-align: center;
  307. .icon {
  308. margin-bottom: 20rpx;
  309. image {
  310. height: 54rpx;
  311. }
  312. }
  313. .name {
  314. font-size: 30rpx;
  315. }
  316. }
  317. }
  318. }
  319. }
  320. </style>