coal-machine.vue 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388
  1. <template>
  2. <view class="page-body">
  3. <page-header :name="'采煤机'" :bg="'#1560e0'" :showLeft="true" @goBack="goBack()"></page-header>
  4. <view class="scroll-wrap">
  5. <view class="basic-info-wrap">
  6. <view class="status-tip-wrap" style="margin-bottom: 40rpx;">
  7. <status-tip class="item" v-for="(item, index) in basicList" :key="index" :name="item.name"
  8. :status="item.status" :tip="item.status ? '正常' : '停止'"></status-tip>
  9. </view>
  10. <view>
  11. <cmj-animation></cmj-animation>
  12. </view>
  13. <view class="radius-wrap"></view>
  14. </view>
  15. <view class="detail-info-wrap">
  16. <page-card :name="'设备信息'" :notShow="true" style="margin-bottom: 30rpx;">
  17. <template v-slot:content>
  18. <view>
  19. <simple-table :tableHead="tableHead" :list="deviceList"></simple-table>
  20. </view>
  21. </template>
  22. </page-card>
  23. <page-card :name="'采煤机基础信息'" :notShow="true" style="margin-bottom: 30rpx;">
  24. <template v-slot:content>
  25. <view>
  26. <simple-table :tableHead="tableHead" :list="cmjList"></simple-table>
  27. </view>
  28. </template>
  29. </page-card>
  30. <page-card :name="'工作面人员环境信息'" :notShow="true" style="margin-bottom: 30rpx;">
  31. <template v-slot:content>
  32. <view>
  33. <simple-table :tableHead="tableHead" :list="peopleList"></simple-table>
  34. </view>
  35. </template>
  36. </page-card>
  37. <page-card :name="'产量信息图'" :notShow="true" style="margin-bottom: 30rpx;">
  38. <template v-slot:content>
  39. <view class="product-info-wrap">
  40. <bar-chart :barType="'column'" :optSet="optColumn" :data="columnChartData"
  41. :barHeight="'274rpx'"></bar-chart>
  42. </view>
  43. </template>
  44. </page-card>
  45. <page-card :name="'综采循环作业图'" :notShow="true" style="margin-bottom: 30rpx;">
  46. <template v-slot:content>
  47. <view class="product-info-wrap">
  48. <bar-chart :barType="'line'" :optSet="optLine" :data="lineChartData"
  49. :barHeight="'242rpx'"></bar-chart>
  50. </view>
  51. </template>
  52. </page-card>
  53. <page-card :name="'采煤机牵引速度变化图'" :notShow="true">
  54. <template v-slot:content>
  55. <view class="product-info-wrap">
  56. <bar-chart :barType="'column'" :optSet="optColumn1" :data="columnChartData1"
  57. :barHeight="'287rpx'"></bar-chart>
  58. </view>
  59. </template>
  60. </page-card>
  61. </view>
  62. </view>
  63. </view>
  64. </template>
  65. <script>
  66. export default {
  67. data() {
  68. return {
  69. tableHead: ['参数名称', '数值'], // 表头
  70. basicList: [{ // 基础信息
  71. name: '采煤机回路',
  72. status: 0
  73. }, {
  74. name: '1#液泵',
  75. status: 0
  76. }, {
  77. name: '转载机',
  78. status: 40
  79. }, {
  80. name: '2#液泵',
  81. status: 23
  82. }, {
  83. name: '破碎机',
  84. status: 22
  85. }, {
  86. name: '3#液泵',
  87. status: 21
  88. }, {
  89. name: '纵撕',
  90. status: 23
  91. }, {
  92. name: '1#水泵',
  93. status: 30
  94. }, {
  95. name: '烟雾',
  96. status: 0
  97. }, {
  98. name: '2#水泵',
  99. status: 0
  100. }, {
  101. name: '堆煤',
  102. status: 1
  103. }, {
  104. name: '通讯状态',
  105. status: 1
  106. }, ],
  107. deviceList: [{ // 设备信息
  108. name: '牵引速度(m/min)',
  109. params: [0]
  110. }, {
  111. name: '采煤机位置(架)',
  112. params: [0]
  113. }, {
  114. name: '俯仰角(°)',
  115. params: [0]
  116. }, {
  117. name: '倾角(°)',
  118. params: [0]
  119. }, {
  120. name: '瓦斯浓度(%)',
  121. params: [0]
  122. }, {
  123. name: '左牵引电流(A)',
  124. params: [0]
  125. }, {
  126. name: '左牵引温度(℃)',
  127. params: [0]
  128. }, {
  129. name: '左截割电流(A)',
  130. params: [0]
  131. }, {
  132. name: '左截割温度(℃)',
  133. params: [0]
  134. }, {
  135. name: '左滚筒温度(℃)',
  136. params: [0]
  137. }, {
  138. name: '右牵引电流(A)',
  139. params: [0]
  140. }, {
  141. name: '右牵引温度(℃)',
  142. params: [0]
  143. }, {
  144. name: '右截割电流(A)',
  145. params: [0]
  146. }, {
  147. name: '右截割温度(℃)',
  148. params: [0]
  149. }, {
  150. name: '右滚筒温度(℃)',
  151. params: [0]
  152. }, ],
  153. cmjList: [{ // 采煤机基础信息
  154. name: '机身高度(mm)',
  155. params: [0]
  156. },
  157. {
  158. name: '总装机功率(KW)',
  159. params: [0]
  160. },
  161. {
  162. name: '滚筒转速(r/min)',
  163. params: [0]
  164. },
  165. {
  166. name: '摇臂长度(mm)',
  167. params: [0]
  168. },
  169. {
  170. name: '采高范围(m)',
  171. params: [0]
  172. }
  173. ],
  174. peopleList: [{ // 工作面人员环境信息
  175. name: '220707皮带机头CO',
  176. params: ['未知']
  177. },
  178. {
  179. name: '220707皮带机尾CO',
  180. params: ['未知']
  181. },
  182. {
  183. name: '220707工作面粉尘',
  184. params: ['未知']
  185. },
  186. {
  187. name: '220707工作面环境温度',
  188. params: ['未知']
  189. },
  190. {
  191. name: '220707回风巷15m',
  192. params: ['3人']
  193. },
  194. {
  195. name: '220707回风巷80m',
  196. params: ['7人']
  197. },
  198. {
  199. name: '220707回风巷110m',
  200. params: ['6人']
  201. },
  202. {
  203. name: '220707回风巷1250m',
  204. params: ['0人']
  205. },
  206. ],
  207. columnChartData: {}, // 柱状图数据
  208. optColumn: { // 柱状图配置
  209. dataLabel: false, // 不显示数据标签
  210. color: ['#5C79D1'], // 柱状图颜色
  211. legend: {
  212. show: false, // 不显示底部标签
  213. },
  214. xAxis: {
  215. axisLineColor: '#E5E5E5', // x轴线的颜色
  216. fontColor: '#A9A9A9' // x轴字体的颜色
  217. },
  218. yAxis: {
  219. gridColor: '#E5E5E5', // 横向数据标线的颜色
  220. showTitle: true, // 是否显示标题
  221. data: [{
  222. title: '单位:万吨', // 标题内容
  223. titleFontColor: '#A9A9A9', // 标题字体颜色
  224. titleOffsetY: -5, // 标题纵向偏移量
  225. axisLineColor: '#E5E5E5', // y轴线的颜色
  226. fontColor: '#A9A9A9' // y轴字体的颜色
  227. }]
  228. },
  229. extra: {
  230. column: {
  231. width: 18 // 设置柱子的宽度
  232. }
  233. }
  234. },
  235. lineChartData: {}, // 折线图数据
  236. optLine: { // 折线图配置
  237. dataLabel: false, // 不显示数据标签
  238. color: ['#5C79D1'], // 折线图颜色
  239. dataPointShape: false,
  240. legend: {
  241. show: false, // 不显示底部标签
  242. },
  243. xAxis: {
  244. boundaryGap: 'justify', // 折线两端是否连接坐标轴
  245. axisLineColor: '#E5E5E5', // x轴线的颜色
  246. fontColor: '#A9A9A9' // x轴字体的颜色
  247. },
  248. yAxis: {
  249. gridColor: '#E5E5E5', // 横向数据标线的颜色
  250. data: [{
  251. axisLineColor: '#E5E5E5', // y轴线的颜色
  252. fontColor: '#A9A9A9' // y轴字体的颜色
  253. }]
  254. }
  255. },
  256. columnChartData1: {}, // 柱状图数据2
  257. optColumn1: {
  258. dataLabel: false, // 不显示数据标签
  259. color: ['#5C79D1'], // 柱状图颜色
  260. legend: {
  261. show: false, // 不显示底部标签
  262. },
  263. xAxis: {
  264. axisLineColor: '#E5E5E5', // x轴线的颜色
  265. fontColor: '#A9A9A9' // x轴字体的颜色
  266. },
  267. yAxis: {
  268. gridColor: '#E5E5E5', // 横向数据标线的颜色
  269. showTitle: true, // 是否显示标题
  270. data: [{
  271. title: '单位:m/min', // 标题内容
  272. titleFontColor: '#A9A9A9', // 标题字体颜色
  273. titleOffsetY: -5, // 标题纵向偏移量
  274. axisLineColor: '#E5E5E5', // y轴线的颜色
  275. fontColor: '#A9A9A9' // y轴字体的颜色
  276. }]
  277. },
  278. extra: {
  279. column: {
  280. width: 18 // 设置柱子的宽度
  281. }
  282. }
  283. }
  284. }
  285. },
  286. onLoad() {
  287. this.getColumnData()
  288. this.getColumnData1()
  289. this.getLineData()
  290. },
  291. methods: {
  292. getColumnData() { // 获取柱状图数据
  293. let res = {
  294. categories: ["09/08", "09/09", "09/10", "09/11", "09/12", "09/13"],
  295. series: [{
  296. name: '产量:',
  297. data: [0.8, 0.7, 0.8, 0.9, 1.3, 1.4]
  298. }]
  299. };
  300. this.columnChartData = JSON.parse(JSON.stringify(res));
  301. },
  302. getLineData() { // 获取折线图数据
  303. let res = {
  304. categories: ["23:32", "23:32", "23:32", "23:32", "23:32", "23:32"],
  305. series: [{
  306. name: '综采循环作业:',
  307. data: [45, 0, 100, 0, 90, 0, 85]
  308. }]
  309. };
  310. this.lineChartData = JSON.parse(JSON.stringify(res));
  311. },
  312. getColumnData1() { // 获取柱状图数据
  313. let res = {
  314. categories: ["23:32", "23:32", "23:32", "23:32", "23:32", "23:32"],
  315. series: [{
  316. name: '产量:',
  317. data: [0.8, 0.7, 0.8, 0.9, 1.3, 1.4]
  318. }]
  319. };
  320. this.columnChartData1 = JSON.parse(JSON.stringify(res));
  321. },
  322. goBack() { // 返回上一頁面
  323. uni.navigateBack()
  324. }
  325. }
  326. }
  327. </script>
  328. <style scoped lang="scss">
  329. .page-body {
  330. .scroll-wrap {
  331. height: calc(100vh - 85rpx);
  332. overflow: scroll;
  333. .basic-info-wrap {
  334. position: relative;
  335. height: 700rpx;
  336. padding: 25rpx 95rpx 60rpx;
  337. background: url(../../../../static/page_bg.png);
  338. background-size: 100%;
  339. .status-tip-wrap {
  340. display: flex;
  341. flex-wrap: wrap;
  342. .item {
  343. width: calc(50% - 44rpx);
  344. margin-top: 23rpx;
  345. margin-left: 88rpx;
  346. /deep/ .tip-wrap {
  347. justify-content: space-between;
  348. color: #fff;
  349. font-size: 26rpx
  350. }
  351. }
  352. .item:nth-child(2n - 1) {
  353. margin-left: 0;
  354. }
  355. .item:nth-child(-n+2) {
  356. margin-top: 0;
  357. }
  358. }
  359. .radius-wrap {
  360. position: absolute;
  361. left: 0;
  362. bottom: 0;
  363. width: 100vw;
  364. height: 30rpx;
  365. background-color: #fff;
  366. border-radius: 35rpx 35rpx 0 0;
  367. }
  368. }
  369. .detail-info-wrap {
  370. padding: 40rpx 35rpx;
  371. .product-info-wrap {
  372. padding: 39rpx 22rpx 37rpx;
  373. }
  374. }
  375. }
  376. }
  377. </style>