rollPrinter.vue 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463
  1. <template>
  2. <!-- 滚印机 -->
  3. <view class="rollPrinter">
  4. <commons-header title="滚印机"></commons-header>
  5. <view class="equ-img">
  6. <image src="../../static/images/img_jq@2x (2).png" mode=""></image>
  7. <view class="err-modal">
  8. <image src="../../static/images/icon_jb@2x.png" mode=""></image>
  9. </view>
  10. </view>
  11. <view class="state">
  12. <view class="state-box">
  13. <view class="text">
  14. <image src="../../static/icon_sbzt1.png" mode=""></image>
  15. <view class="label">
  16. 设备状态
  17. </view>
  18. </view>
  19. <view class="state-text">
  20. 正常
  21. </view>
  22. </view>
  23. <view class="state-box">
  24. <view class="text">
  25. <image src="../../static/icon_gzms1.png" mode=""></image>
  26. <view class="label">
  27. 工作模式
  28. </view>
  29. </view>
  30. <view class="state-text">
  31. 自动
  32. </view>
  33. </view>
  34. <view class="state-box">
  35. <view class="text">
  36. <image src="../../static/icon_zdjpl1.png" mode=""></image>
  37. <view class="label">
  38. 主电机频率
  39. </view>
  40. </view>
  41. <view class="state-text">
  42. 300Hz
  43. </view>
  44. </view>
  45. </view>
  46. <view class="echarts">
  47. <view class="title">
  48. <image src="../../static/icon_clsj@2x.png" mode=""></image>
  49. <span>产量数据</span>
  50. </view>
  51. <view class="content">
  52. <view class="text">
  53. 12小时产量
  54. </view>
  55. <qiun-data-charts type="line" :opts="opts" :chartData="chartData" />
  56. </view>
  57. </view>
  58. <view class="parts-list">
  59. <ul>
  60. <li>
  61. <image src="../../static/icon_pyf.png" mode=""></image>
  62. <view>
  63. 1#喷油阀
  64. </view>
  65. <view class="before succes">
  66. </view>
  67. </li>
  68. <li>
  69. <image src="../../static/icon_pyf.png" mode=""></image>
  70. <view>
  71. 2#喷油阀
  72. </view>
  73. <view class="before">
  74. </view>
  75. </li>
  76. <li>
  77. <image src="../../static/icon_pyf.png" mode=""></image>
  78. <view>
  79. 3#喷油阀
  80. </view>
  81. <view class="before">
  82. </view>
  83. </li>
  84. </ul>
  85. </view>
  86. <view class="parts-list-2" style="margin-bottom: 0rpx;">
  87. <view class="parts-list-2-box" style="margin-bottom: 0;">
  88. <image src="../../static/icon_bpdj.png" mode=""></image>
  89. <view class="">
  90. 变频点击
  91. </view>
  92. <view class="before">
  93. </view>
  94. </view>
  95. <view class="parts-list-2-box" style="margin-bottom: 0;">
  96. <image src="../../static/icon_pl.png" mode=""></image>
  97. <view class="text" style="line-height: 40rpx;">
  98. <p style="font-size: 32rpx;color: #333;font-weight: bold;margin-top: 10rpx;">300Hz</p>
  99. <p style="color: #666;font-size: 28rpx;">频率</p>
  100. </view>
  101. <view class="before">
  102. </view>
  103. </view>
  104. </view>
  105. <view class="parts-list" style="margin-top: 0;">
  106. <ul>
  107. <li>
  108. <image src="../../static/icon_jrdj.png" mode=""></image>
  109. <view>
  110. 加热电机
  111. </view>
  112. <view class="before succes">
  113. </view>
  114. </li>
  115. <li>
  116. <view class="" style="line-height: 80rpx;font-size: 40rpx;font-weight: bold;">
  117. 80℃
  118. </view>
  119. <view>
  120. 第一当前温度
  121. </view>
  122. <view class="before">
  123. </view>
  124. </li>
  125. <li>
  126. <view class="" style="line-height: 80rpx;font-size: 40rpx;font-weight: bold;">
  127. 80℃
  128. </view>
  129. <view>
  130. 第二当前温度
  131. </view>
  132. <view class="before">
  133. </view>
  134. </li>
  135. </ul>
  136. </view>
  137. <view class="parts-list-2">
  138. <view class="parts-list-2-box">
  139. <image src="../../static/icon_pydj.png" mode=""></image>
  140. <view class="">
  141. 喷油电机
  142. </view>
  143. <view class="before">
  144. </view>
  145. </view>
  146. <view class="parts-list-2-box">
  147. <image src="../../static/icon_ybdj.png" mode=""></image>
  148. <view class="text">
  149. 油泵电机
  150. </view>
  151. <view class="before">
  152. </view>
  153. </view>
  154. <view class="parts-list-2-box">
  155. <image src="../../static/icon_xldj.png" mode=""></image>
  156. <view class="">
  157. 蓄料电机
  158. </view>
  159. <view class="before">
  160. </view>
  161. </view>
  162. <view class="parts-list-2-box">
  163. <image src="../../static/icon_lxdj.png" mode=""></image>
  164. <view class="text">
  165. 离心电机
  166. </view>
  167. <view class="before">
  168. </view>
  169. </view>
  170. </view>
  171. </view>
  172. </template>
  173. <script>
  174. import {
  175. getInfo
  176. } from "@/util/api.js";
  177. import Vue from 'vue'
  178. import commonsHeader from '../../components/commons-header/index.vue'
  179. export default {
  180. components: {
  181. commonsHeader
  182. },
  183. data() {
  184. return {
  185. userInfoData: [],
  186. notificationData: [],
  187. opts: {
  188. color: ["#1890FF", "#91CB74", "#FAC858", "#EE6666", "#73C0DE", "#3CA272", "#FC8452", "#9A60B4",
  189. "#ea7ccc"
  190. ],
  191. padding: [15, 10, 0, 15],
  192. legend: {},
  193. xAxis: {
  194. disableGrid: true
  195. },
  196. yAxis: {
  197. gridType: "dash",
  198. dashLength: 2
  199. },
  200. extra: {
  201. line: {
  202. type: "straight",
  203. width: 2
  204. }
  205. }
  206. },
  207. chartData: {
  208. categories: ["2016", "2017", "2018", "2019", "2020", "2021"],
  209. series: [{
  210. name: "产量A",
  211. data: [35, 8, 25, 37, 4, 20]
  212. },
  213. {
  214. name: "产量B",
  215. data: [70, 40, 65, 100, 44, 68]
  216. }
  217. ]
  218. }
  219. }
  220. },
  221. onLoad() {
  222. const v = this
  223. // v.$post('/wx/login/getUserInfo').then(res => {
  224. // v.userInfoData = res.data
  225. // Vue.prototype.$userInfo = res.data
  226. // uni.setStorage({
  227. // key: "userInfo",
  228. // data: res.data,
  229. // success(res) {
  230. // },
  231. // fail(res) {}
  232. // })
  233. // })
  234. // v.$post('/wx/message/notification',{}).then(res=>{
  235. // v.notificationData = res.data
  236. // })
  237. },
  238. methods: {
  239. toRouter(j) {
  240. console.log(j)
  241. uni.navigateTo({
  242. url: '/pages/' + j.menuKey + '/' + j.menuKey
  243. })
  244. },
  245. },
  246. }
  247. </script>
  248. <style lang="less">
  249. .rollPrinter {
  250. background-color: #f0f0f0;
  251. min-height: 100vh;
  252. margin-top: 128rpx;
  253. .parts-list-2{
  254. padding: 20rpx 24rpx;
  255. display: flex;
  256. justify-content: space-between;
  257. flex-flow: row wrap;
  258. .parts-list-2-box{
  259. width: 49%;
  260. height: 140rpx;
  261. background-color: #fff;
  262. border-radius: 10rpx;
  263. display: flex;
  264. padding: 20rpx 24rpx;
  265. line-height: 90rpx;
  266. box-sizing: border-box;
  267. position: relative;
  268. margin-bottom: 20rpx;
  269. font-size: 28rpx;
  270. image{
  271. width: 100rpx;
  272. height: 100rpx;
  273. margin-right: 20rpx;
  274. }
  275. }
  276. .before{
  277. width: 30rpx;
  278. height: 30rpx;
  279. border-radius: 50%;
  280. background-color: rgba(204,204,204,0.2);
  281. display: block;
  282. position: absolute;
  283. right: 16rpx;
  284. top: 16rpx;
  285. }
  286. .before::before{
  287. position: absolute;
  288. display: block;
  289. top: 7rpx;
  290. left: 7rpx;
  291. width: 19rpx;
  292. height: 19rpx;
  293. border-radius: 50%;
  294. content:" ";
  295. background: #cccccc;
  296. }
  297. .before.succes{
  298. background-color: rgba(63,191,49,0.2);
  299. }
  300. .before.succes::before{
  301. background: #3FBF31;
  302. }
  303. }
  304. .parts-list{
  305. padding: 0 24rpx;
  306. margin-top: 24rpx;
  307. ul{
  308. display: flex;
  309. justify-content: space-between;
  310. }
  311. li{
  312. width: 32%;
  313. padding: 30rpx 0;
  314. text-align: center;
  315. position: relative;
  316. background-color: #fff;
  317. image{
  318. width: 60rpx;
  319. height: 60rpx;
  320. display: block;
  321. margin: 0 auto 20rpx;
  322. }
  323. }
  324. .before{
  325. width: 30rpx;
  326. height: 30rpx;
  327. border-radius: 50%;
  328. background-color: rgba(204,204,204,0.2);
  329. display: block;
  330. position: absolute;
  331. right: 16rpx;
  332. top: 16rpx;
  333. }
  334. .before::before{
  335. position: absolute;
  336. display: block;
  337. top: 7rpx;
  338. left: 7rpx;
  339. width: 19rpx;
  340. height: 19rpx;
  341. border-radius: 50%;
  342. content:" ";
  343. background: #cccccc;
  344. }
  345. .before.succes{
  346. background-color: rgba(63,191,49,0.2);
  347. }
  348. .before.succes::before{
  349. background: #3FBF31;
  350. }
  351. }
  352. .echarts {
  353. background: #fff;
  354. margin: 24rpx 24rpx 0;
  355. .content{
  356. .text{
  357. font-size: 28rpx;
  358. font-weight: 700;
  359. color: #333;
  360. text-align: center;
  361. margin-bottom: 40rpx;
  362. }
  363. }
  364. .title{
  365. font-size: 28rpx;
  366. height: 90rpx;
  367. line-height: 90rpx;
  368. display: flex;
  369. padding: 0 24rpx;
  370. font-weight: 500;
  371. image{
  372. width: 40rpx;
  373. height: 40rpx;
  374. margin-top: 25rpx;
  375. margin-right: 16rpx;
  376. }
  377. }
  378. }
  379. .parts-list {}
  380. .equ-img {
  381. padding: 24rpx;
  382. background-color: #ffffff;
  383. position: relative;
  384. image {
  385. width: 100%;
  386. height: 395rpx;
  387. }
  388. .err-modal{
  389. position: absolute;
  390. left: 0;
  391. right: 0;
  392. bottom: 0;
  393. top: 0;
  394. background: rgba(0,0,0,0.60);
  395. text-align: center;
  396. display: flex;
  397. align-items: center;
  398. image{
  399. width: 160rpx;
  400. height: 160rpx;
  401. margin: 0 auto;
  402. }
  403. }
  404. }
  405. .state {
  406. display: flex;
  407. justify-content: space-between;
  408. margin: 24rpx 24rpx 0;
  409. .state-box {
  410. padding: 20rpx;
  411. width: 32%;
  412. background-color: #fff;
  413. box-sizing: border-box;
  414. border-radius: 10rpx;
  415. .text{
  416. padding: 12rpx 0;
  417. display: flex;
  418. font-size: 22rpx;
  419. }
  420. .state-text{
  421. font-size: 32rpx;
  422. font-weight: bold;
  423. margin-top: 10rpx;
  424. text-align: center;
  425. }
  426. .label{
  427. font-size: 24rpx;
  428. }
  429. image {
  430. width: 40rpx;
  431. height: 40rpx;
  432. margin-right: 16rpx;
  433. }
  434. }
  435. }
  436. }
  437. </style>