| @@ -13,7 +13,8 @@ | |||
| </view> | |||
| <view class="eqMain"> | |||
| <view class="recordingStart"> | |||
| <view>录音开启用时:{{info.startActionTime || '' }}min</view> | |||
| <view>录音开启用时:<text :style="{color: info.recording==1?'red':'#333'}">{{info.startActionTime || ''}}</text>min | |||
| </view> | |||
| <view>待上传文件:<text :style="{color: info.fileCount==0?'#333':'red'}">{{info.fileCount}}</text>个</view> | |||
| </view> | |||
| <view class="recording"> | |||
| @@ -24,7 +25,11 @@ | |||
| <text>指派时间:</text> | |||
| <text>{{info.assignTime}}</text> | |||
| <text>录音开始时间:</text> | |||
| <text style="font-weight: bold;font-size: 28rpx;">{{info.recordStartTime}}</text> | |||
| <text style="font-weight: bold;font-size: 28rpx;"> | |||
| <text :style="{color: info.recording==1?'red':'#333'}"> | |||
| {{info.recordStartTime}} | |||
| </text> | |||
| </text> | |||
| </view> | |||
| <view class="recordingBox"> | |||
| <text style="font-size:36rpx">录音关闭</text> | |||
| @@ -33,14 +38,18 @@ | |||
| <text>结束时间:</text> | |||
| <text>{{info.assignEndTime}}</text> | |||
| <text>录音结束时间:</text> | |||
| <text style="font-weight: bold;font-size: 28rpx;">{{info.recordEndTime}}</text> | |||
| <text style="font-weight: bold;font-size: 28rpx;"> | |||
| <text :style="{color: info.recording==1?'red':'#333'}"> | |||
| {{info.recordEndTime}} | |||
| </text> | |||
| </text> | |||
| </view> | |||
| </view> | |||
| <view class="offlineRec"> | |||
| <text style="font-size:36rpx">离线记录</text> | |||
| <view class="recMain"> | |||
| <view class="recMain"> | |||
| <block v-for="(item,index) in info.offLineList" :key="index"> | |||
| <text>{{index+1}}. {{item}}</text> | |||
| <text>{{index+1}}. {{item}}</text> | |||
| </block> | |||
| </view> | |||
| </view> | |||
| @@ -52,31 +61,31 @@ | |||
| export default { | |||
| data() { | |||
| return { | |||
| info:{} | |||
| info: {} | |||
| } | |||
| }, | |||
| computed: { | |||
| state() { | |||
| return (e => { | |||
| switch (e) { | |||
| case 0: | |||
| return "接待中"; | |||
| case 1: | |||
| return "部分录音"; | |||
| default: | |||
| return "完整录音"; | |||
| } | |||
| }) | |||
| } | |||
| }, | |||
| computed:{ | |||
| state(){ | |||
| return (e=>{ | |||
| switch(e){ | |||
| case 0: | |||
| return "接待中"; | |||
| case 1: | |||
| return "部分录音"; | |||
| default: | |||
| return "完整录音"; | |||
| } | |||
| }) | |||
| } | |||
| }, | |||
| onLoad(options) { | |||
| console.log(options.id) | |||
| this.$u.get("/equipment/equipmentLog", { | |||
| id: options.id | |||
| }).then(res => { | |||
| // console.log(res) | |||
| this.info = res | |||
| }) | |||
| }, | |||
| onLoad(options) { | |||
| console.log(options.id) | |||
| this.$u.get("/equipment/equipmentLog", { | |||
| id: options.id | |||
| }).then(res => { | |||
| // console.log(res) | |||
| this.info = res | |||
| }) | |||
| }, | |||
| methods: { | |||
| @@ -122,10 +131,11 @@ | |||
| padding: 20rpx 12rpx; | |||
| margin-top: 20rpx; | |||
| border-radius: 8rpx; | |||
| align-items: center; | |||
| view{ | |||
| width: 50%; | |||
| font-size: 30rpx; | |||
| align-items: center; | |||
| view { | |||
| width: 50%; | |||
| font-size: 30rpx; | |||
| } | |||
| } | |||