|
|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <div style="height: 100%;overflow-y: auto;">
|
|
|
+ <div style="height: 100%; overflow-y: auto">
|
|
|
<div v-if="!showPdf">渲染pdf失败</div>
|
|
|
<div class="mb-4" v-if="showPdf">
|
|
|
<a-button type="primary" @click="downPdf">下载讲义</a-button>
|
|
|
@@ -9,8 +9,8 @@
|
|
|
@error="errorHandler"
|
|
|
ref="scrollDiv"
|
|
|
@scroll="handleScroll"
|
|
|
- :options="{width:'100%'}"
|
|
|
- style="height:calc(100% - 50px);"
|
|
|
+ :options="{ width: '100%' }"
|
|
|
+ style="height: calc(100% - 50px)"
|
|
|
/>
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -65,18 +65,18 @@
|
|
|
.classPlanAdd({
|
|
|
hourId: props.hourId,
|
|
|
type: 2,
|
|
|
- funcType:2
|
|
|
+ funcType: 2
|
|
|
})
|
|
|
.then((data) => {})
|
|
|
}
|
|
|
const addScrollPlan = () => {
|
|
|
classCentre
|
|
|
.classPlanAdd({
|
|
|
- progress: maxStr.value,
|
|
|
+ progress: showPdf.value ? (maxStr.value == 0 ? 100 : maxStr.value) : 0,
|
|
|
hourId: props.hourId,
|
|
|
stayTime: outNowTimesStr.value - nowTimesStr,
|
|
|
type: 1,
|
|
|
- funcType:2
|
|
|
+ funcType: 2
|
|
|
})
|
|
|
.then((data) => {})
|
|
|
}
|