You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

355 lines
7.5 KiB

  1. <template>
  2. <view class="eqLog">
  3. <view class="bg"></view>
  4. <view class="tophead" :style="{height: `${CustomBar}px`}">
  5. <view class="topheads" :style="{height: `${CustomBar}px`,paddingTop: `${StatusBar}px`}">
  6. <view class="eqno">
  7. <image @click="back" class="backs" src="@/static/images/back.png" mode=""></image>
  8. <view class="middle">
  9. 设备日志
  10. </view>
  11. </view>
  12. <!-- 背景色 -->
  13. <view class="eqNo-bg"></view>
  14. </view>
  15. </view>
  16. <view class="eqNo">
  17. <view class="noInfo">
  18. <view class="left">
  19. <text style="font-weight: 500;">设备编号:{{ info.imei || '' }}</text>
  20. <text>录音说明:{{ info.recordExplain || '' }}</text>
  21. </view>
  22. <view class="right">
  23. <text>{{state(info.recording)}}</text>
  24. </view>
  25. </view>
  26. </view>
  27. <view class="eqMain">
  28. <view class="recordingStart">
  29. <view class="items">
  30. <text>录音开启用时</text>
  31. <text class="font"
  32. :style="{color: info.recording==1?'red':'#333'}">{{info.startActionTime || ''}}min</text>
  33. </view>
  34. <view class="line"></view>
  35. <view class="items">
  36. <text>待上传文件</text>
  37. <text class="font" :style="{color: info.fileCount==0?'#333':'red'}">{{info.fileCount}}个</text>
  38. </view>
  39. </view>
  40. <view class="recording">
  41. <view class="left-box">
  42. <view class="cycle"></view>
  43. <view class="point"></view>
  44. <view class="cycle"></view>
  45. </view>
  46. <view class="recordingBox">
  47. <text class="recordingBoxItem-title" >录音开启</text>
  48. <view class="recordingBoxItem">
  49. <text class="left">指派人:</text>
  50. <text class="right">{{info.owenrName}}</text>
  51. </view>
  52. <view class="recordingBoxItem">
  53. <text class="left">指派时间:</text>
  54. <text class="right">{{info.assignTime}}</text>
  55. </view>
  56. <view class="recordingBoxItem">
  57. <text class="left">录音开始时间:</text>
  58. <view class="right" style="font-weight: bold;font-size: 28rpx;">
  59. <text :style="{color: info.recording==1?'red':'#333'}">
  60. {{info.recordStartTime}}
  61. </text>
  62. </view>
  63. </view>
  64. </view>
  65. <view class="recordingBox" style="margin-top: 40rpx;">
  66. <text class="recordingBoxItem-title">录音关闭</text>
  67. <view class="recordingBoxItem">
  68. <text class="left">结束人:</text>
  69. <text class="right">{{info.userName}}</text>
  70. </view>
  71. <view class="recordingBoxItem">
  72. <text class="left">结束时间:</text>
  73. <text class="right">{{info.assignEndTime}}</text>
  74. </view>
  75. <view class="recordingBoxItem">
  76. <text class="left">录音结束时间:</text>
  77. <view class="right" style="font-weight: bold;font-size: 28rpx;">
  78. <text :style="{color: info.recording==1?'red':'#333'}">
  79. {{info.recordEndTime}}
  80. </text>
  81. </view>
  82. </view>
  83. </view>
  84. </view>
  85. <view class="offlineRec">
  86. <text style="font-size:36rpx">离线记录</text>
  87. <view class="recMain">
  88. <block v-for="(item,index) in info.offLineList" :key="index">
  89. <text>{{index+1}}、 {{item}}</text>
  90. </block>
  91. </view>
  92. </view>
  93. </view>
  94. </view>
  95. </template>
  96. <script>
  97. export default {
  98. data() {
  99. return {
  100. info: {},
  101. }
  102. },
  103. computed: {
  104. state() {
  105. return (e => {
  106. switch (e) {
  107. case 0:
  108. return "接待中";
  109. case 1:
  110. return "部分录音";
  111. default:
  112. return "完整录音";
  113. }
  114. })
  115. },
  116. },
  117. onLoad(options) {
  118. console.log(this.cusTHeight)
  119. console.log(options.id)
  120. this.$u.get("/equipment/equipmentLog", {
  121. id: options.id
  122. }).then(res => {
  123. // console.log(res)
  124. this.info = res
  125. })
  126. },
  127. methods: {
  128. back() {
  129. uni.navigateBack()
  130. }
  131. }
  132. }
  133. </script>
  134. <style lang="scss">
  135. .eqLog {
  136. position: relative;
  137. width: 100vw;
  138. min-height: 100vh;
  139. background: #F8F8F8;
  140. .bg {
  141. position: absolute;
  142. top: 0;
  143. left: 0;
  144. right: 0;
  145. z-index: 0;
  146. width: 100%;
  147. height: 420rpx;
  148. background: linear-gradient(180deg, #2671E2 0%, #3B9CF4 54%, #93C8F7 100%);
  149. }
  150. .tophead {
  151. position: sticky;
  152. top: 0;
  153. z-index: 999;
  154. width: 100%;
  155. .topheads {
  156. position: relative;
  157. z-index: 1;
  158. overflow: hidden;
  159. .eqno {
  160. position: relative;
  161. z-index: 1;
  162. width: 100%;
  163. height: 100%;
  164. display: flex;
  165. align-items: center;
  166. .backs {
  167. margin-left: 24rpx;
  168. width: 32rpx;
  169. height: 32rpx;
  170. }
  171. .middle {
  172. position: absolute;
  173. left: 50%;
  174. top: 50%;
  175. transform: translate(-50%, -50%);
  176. font-size: 32rpx;
  177. color: #fff;
  178. }
  179. }
  180. .eqNo-bg {
  181. position: absolute;
  182. top: 0;
  183. left: 0;
  184. right: 0;
  185. z-index: 0;
  186. width: 100%;
  187. height: 420rpx;
  188. background: linear-gradient(180deg, #2671E2 0%, #3B9CF4 54%, #93C8F7 100%);
  189. }
  190. }
  191. }
  192. .eqNo {
  193. position: relative;
  194. z-index: 1;
  195. width: 100%;
  196. .noInfo {
  197. margin: 24rpx auto 0;
  198. padding: 24rpx;
  199. width: 690rpx;
  200. height: 152rpx;
  201. background: #FFFFFF;
  202. border-radius: 8rpx;
  203. display: flex;
  204. justify-content: space-between;
  205. .left {
  206. display: flex;
  207. flex-direction: column;
  208. justify-content: space-between;
  209. font-size: 32rpx;
  210. font-weight: 400;
  211. }
  212. .right {
  213. font-size: 32rpx;
  214. font-weight: 400;
  215. }
  216. }
  217. }
  218. .eqMain {
  219. position: relative;
  220. z-index: 1;
  221. padding: 0 20rpx;
  222. .recordingStart {
  223. margin-top: 20rpx;
  224. width: 100%;
  225. height: 164rpx;
  226. display: flex;
  227. align-items: center;
  228. border-radius: 8rpx;
  229. background: #FFFFFF;
  230. .items {
  231. flex-grow: 1;
  232. display: flex;
  233. flex-direction: column;
  234. align-items: center;
  235. justify-content: center;
  236. color: #1C1010;
  237. font-size: 30rpx;
  238. .font {
  239. margin-top: 20rpx;
  240. font-weight: 500;
  241. }
  242. }
  243. .line {
  244. width: 1rpx;
  245. height: 88rpx;
  246. background: #E0E0E0;
  247. }
  248. }
  249. .recording {
  250. position: relative;
  251. z-index: 1;
  252. margin-top: 20rpx;
  253. padding: 30rpx 30rpx 30rpx 68rpx;
  254. display: flex;
  255. flex-direction: column;
  256. background: #FFFFFF;
  257. border-radius: 8rpx;
  258. .left-box {
  259. position: absolute;
  260. left: 30rpx;
  261. top: 40rpx;
  262. width: 24rpx;
  263. height: 300rpx;
  264. display: flex;
  265. flex-direction: column;
  266. align-items: center;
  267. .cycle {
  268. width: 24rpx;
  269. height: 24rpx;
  270. flex-shrink: 0;
  271. border-radius: 50%;
  272. border: 4rpx solid #2671E2;
  273. }
  274. .point {
  275. flex-grow: 1;
  276. border-left: 1rpx dotted #2671E2;
  277. }
  278. }
  279. .recordingBox {
  280. width: 100%;
  281. display: flex;
  282. flex-direction: column;
  283. .recordingBoxItem-title {
  284. font-size: 32rpx;
  285. font-weight: 500;
  286. }
  287. .recordingBoxItem {
  288. margin-top: 24rpx;
  289. display: flex;
  290. .left {
  291. width: 210rpx;
  292. color: #505050;
  293. font-size: 30rpx;
  294. }
  295. .right {
  296. flex-grow: 1;
  297. font-size: 30rpx !important;
  298. }
  299. }
  300. }
  301. }
  302. .offlineRec {
  303. margin-top: 20rpx;
  304. padding: 28rpx 24rpx;
  305. border-radius: 8rpx;
  306. background: #FFFFFF;
  307. .recMain {
  308. display: flex;
  309. flex-direction: column;
  310. text {
  311. margin: 24rpx 0;
  312. font-size: 30rpx;
  313. }
  314. }
  315. }
  316. }
  317. }
  318. </style>