|
|
@@ -53,7 +53,7 @@
|
|
|
<div class="pec_h_r_btnArea">
|
|
|
<!-- openObserveDialog -->
|
|
|
<!-- toggleRecording -->
|
|
|
- <div class="pec_h_r_btn_refresh" :class="{ 'recording': recordedForm.status == 1 }" @click="toggleRecording" v-show="(jArray.includes(oid) || jArray.includes(org)) && courseDetail.userid == userid && classId">
|
|
|
+ <div class="pec_h_r_btn_refresh" :class="{ 'recording': recordedForm.status == 1 }" @click="toggleRecording" v-show="(jArray.includes(oid) || jArray.includes(org)) && courseDetail.userid == userid && tcid">
|
|
|
<span>{{ recordedForm.status == 1 ? '结束录音' : '开始录音' }}</span>
|
|
|
</div>
|
|
|
<div class="pec_h_r_btn_afterClass" @click="afterClass" v-if="courseDetail.userid == userid">
|
|
|
@@ -165,8 +165,8 @@ export default {
|
|
|
toggleRecording() {
|
|
|
if (this.recordedForm.status == 1) {
|
|
|
// 检查录音时间是否至少为5秒
|
|
|
- const now = Date.now();
|
|
|
- const duration = (now - this.recordingStartTimestamp) / 1000;
|
|
|
+ const now = new Date();
|
|
|
+ const duration = (now - new Date(this.recordingStartTime)) / 1000;
|
|
|
if (duration < 5) {
|
|
|
this.$message.warning('录音时间至少需要5秒');
|
|
|
return;
|
|
|
@@ -311,7 +311,7 @@ export default {
|
|
|
addPPTClass() {
|
|
|
let params = {
|
|
|
pptid: this.id,
|
|
|
- cid: this.classId,
|
|
|
+ cid: this.tcid,
|
|
|
st: this.recordingStartTime,
|
|
|
et: this.recordingEndTime
|
|
|
};
|