您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

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