Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 

181 righe
3.8 KiB

  1. <template>
  2. <view class="eqLog">
  3. <view class="eqNo">
  4. <view class="noInfo">
  5. <view class="left">
  6. <text>设备编号:{{info.imei}}</text>
  7. <text>录音说明:{{info.recordExplain}}</text>
  8. </view>
  9. <view class="right">
  10. <text>{{state(info.recording)}}</text>
  11. </view>
  12. </view>
  13. </view>
  14. <view class="eqMain">
  15. <view class="recordingStart">
  16. <view>录音开启用时:<text :style="{color: info.recording==1?'red':'#333'}">{{info.startActionTime || ''}}</text>min
  17. </view>
  18. <view>待上传文件:<text :style="{color: info.fileCount==0?'#333':'red'}">{{info.fileCount}}</text>个</view>
  19. </view>
  20. <view class="recording">
  21. <view class="recordingBox">
  22. <text style="font-size:36rpx">录音开启</text>
  23. <text>指派人:</text>
  24. <text>{{info.owenrName}}</text>
  25. <text>指派时间:</text>
  26. <text>{{info.assignTime}}</text>
  27. <text>录音开始时间:</text>
  28. <text style="font-weight: bold;font-size: 28rpx;">
  29. <text :style="{color: info.recording==1?'red':'#333'}">
  30. {{info.recordStartTime}}
  31. </text>
  32. </text>
  33. </view>
  34. <view class="recordingBox">
  35. <text style="font-size:36rpx">录音关闭</text>
  36. <text>结束人:</text>
  37. <text>{{info.userName}}</text>
  38. <text>结束时间:</text>
  39. <text>{{info.assignEndTime}}</text>
  40. <text>录音结束时间:</text>
  41. <text style="font-weight: bold;font-size: 28rpx;">
  42. <text :style="{color: info.recording==1?'red':'#333'}">
  43. {{info.recordEndTime}}
  44. </text>
  45. </text>
  46. </view>
  47. </view>
  48. <view class="offlineRec">
  49. <text style="font-size:36rpx">离线记录</text>
  50. <view class="recMain">
  51. <block v-for="(item,index) in info.offLineList" :key="index">
  52. <text>{{index+1}}. {{item}}</text>
  53. </block>
  54. </view>
  55. </view>
  56. </view>
  57. </view>
  58. </template>
  59. <script>
  60. export default {
  61. data() {
  62. return {
  63. info: {}
  64. }
  65. },
  66. computed: {
  67. state() {
  68. return (e => {
  69. switch (e) {
  70. case 0:
  71. return "接待中";
  72. case 1:
  73. return "部分录音";
  74. default:
  75. return "完整录音";
  76. }
  77. })
  78. }
  79. },
  80. onLoad(options) {
  81. console.log(options.id)
  82. this.$u.get("/equipment/equipmentLog", {
  83. id: options.id
  84. }).then(res => {
  85. // console.log(res)
  86. this.info = res
  87. })
  88. },
  89. methods: {
  90. }
  91. }
  92. </script>
  93. <style lang="scss">
  94. .eqLog {
  95. width: 100%;
  96. height: 100%;
  97. position: fixed;
  98. background: #F5F5F5;
  99. .eqNo {
  100. background: #2671E2;
  101. padding: 20rpx;
  102. .noInfo {
  103. height: 110rpx;
  104. background: #FFFFFF;
  105. border-radius: 10rpx;
  106. padding: 10rpx;
  107. display: flex;
  108. justify-content: space-between;
  109. .left {
  110. display: flex;
  111. flex-direction: column;
  112. justify-content: space-between;
  113. }
  114. }
  115. }
  116. .eqMain {
  117. padding: 0 20rpx;
  118. .recordingStart {
  119. background: #FFFFFF;
  120. display: flex;
  121. width: 100%;
  122. border: 1rpx solid #000000;
  123. padding: 20rpx 12rpx;
  124. margin-top: 20rpx;
  125. border-radius: 8rpx;
  126. align-items: center;
  127. view {
  128. width: 50%;
  129. font-size: 30rpx;
  130. }
  131. }
  132. .recording {
  133. margin-top: 30rpx;
  134. display: flex;
  135. justify-content: space-between;
  136. .recordingBox {
  137. background: #FFFFFF;
  138. display: flex;
  139. flex-direction: column;
  140. width: 48%;
  141. border: 1rpx solid #000000;
  142. padding: 0 10rpx;
  143. border-radius: 8rpx;
  144. text {
  145. margin: 10rpx 0;
  146. }
  147. }
  148. }
  149. .offlineRec {
  150. background: #FFFFFF;
  151. padding: 20rpx;
  152. border: 1rpx solid #000000;
  153. border-radius: 8rpx;
  154. margin-top: 30rpx;
  155. .recMain {
  156. display: flex;
  157. flex-direction: column;
  158. text {
  159. margin: 14rpx 0;
  160. }
  161. }
  162. }
  163. }
  164. }
  165. </style>