修改bug
This commit is contained in:
parent
87b52c0f76
commit
7ef42e9f2c
@ -33,12 +33,12 @@
|
||||
<i class="el-icon-video-camera"></i>
|
||||
</div>
|
||||
<div class="f16 mr-8 cursor-pointer"
|
||||
v-if="item.status.code === 0"
|
||||
v-if="item.status.code === 0 && timeComparison(item.bookingTime)"
|
||||
@click="VideoEditDialog={id:item.id, bookingTime:item.bookingTime}">
|
||||
<i class="el-icon-edit-outline"></i>
|
||||
</div>
|
||||
<div class="f16 mr-8 cursor-pointer"
|
||||
v-if="item.status.code === 0"
|
||||
v-if="item.status.code === 0 && timeComparison(item.bookingTime)"
|
||||
@click="handleBackCase(item)">
|
||||
<i class="el-icon-delete"></i>
|
||||
</div>
|
||||
@ -165,6 +165,15 @@ export default {
|
||||
this.$message.warning("请先关闭当前视频通话,才能再次点击视频通话!");
|
||||
}
|
||||
},
|
||||
timeComparison(time) {
|
||||
let nowTime = new Date().getTime();
|
||||
let bookingTime = new Date(time).getTime();
|
||||
if (nowTime > bookingTime) {
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user