threadedHead.vue 7.8 KB

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