| @@ -13,7 +13,8 @@ | |||||
| </view> | </view> | ||||
| <view class="eqMain"> | <view class="eqMain"> | ||||
| <view class="recordingStart"> | <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>待上传文件:<text :style="{color: info.fileCount==0?'#333':'red'}">{{info.fileCount}}</text>个</view> | ||||
| </view> | </view> | ||||
| <view class="recording"> | <view class="recording"> | ||||
| @@ -24,7 +25,11 @@ | |||||
| <text>指派时间:</text> | <text>指派时间:</text> | ||||
| <text>{{info.assignTime}}</text> | <text>{{info.assignTime}}</text> | ||||
| <text>录音开始时间:</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> | ||||
| <view class="recordingBox"> | <view class="recordingBox"> | ||||
| <text style="font-size:36rpx">录音关闭</text> | <text style="font-size:36rpx">录音关闭</text> | ||||
| @@ -33,14 +38,18 @@ | |||||
| <text>结束时间:</text> | <text>结束时间:</text> | ||||
| <text>{{info.assignEndTime}}</text> | <text>{{info.assignEndTime}}</text> | ||||
| <text>录音结束时间:</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> | </view> | ||||
| <view class="offlineRec"> | <view class="offlineRec"> | ||||
| <text style="font-size:36rpx">离线记录</text> | <text style="font-size:36rpx">离线记录</text> | ||||
| <view class="recMain"> | |||||
| <view class="recMain"> | |||||
| <block v-for="(item,index) in info.offLineList" :key="index"> | <block v-for="(item,index) in info.offLineList" :key="index"> | ||||
| <text>{{index+1}}. {{item}}</text> | |||||
| <text>{{index+1}}. {{item}}</text> | |||||
| </block> | </block> | ||||
| </view> | </view> | ||||
| </view> | </view> | ||||
| @@ -52,31 +61,31 @@ | |||||
| export default { | export default { | ||||
| data() { | data() { | ||||
| return { | 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: { | methods: { | ||||
| @@ -122,10 +131,11 @@ | |||||
| padding: 20rpx 12rpx; | padding: 20rpx 12rpx; | ||||
| margin-top: 20rpx; | margin-top: 20rpx; | ||||
| border-radius: 8rpx; | border-radius: 8rpx; | ||||
| align-items: center; | |||||
| view{ | |||||
| width: 50%; | |||||
| font-size: 30rpx; | |||||
| align-items: center; | |||||
| view { | |||||
| width: 50%; | |||||
| font-size: 30rpx; | |||||
| } | } | ||||
| } | } | ||||