修改bug
This commit is contained in:
parent
b023cb8fb9
commit
da8077fa02
|
@ -234,7 +234,7 @@
|
||||||
size="small"
|
size="small"
|
||||||
title="查看"
|
title="查看"
|
||||||
v-if="three.type == 'document'"
|
v-if="three.type == 'document'"
|
||||||
@click="viewImage(three.filePath)"
|
@click="handleView(three.filePath)"
|
||||||
class="addBtn"
|
class="addBtn"
|
||||||
><Icon icon="ant-design:file-pdf-outlined"
|
><Icon icon="ant-design:file-pdf-outlined"
|
||||||
/></a-button> -->
|
/></a-button> -->
|
||||||
|
@ -341,33 +341,33 @@
|
||||||
</a-modal>
|
</a-modal>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a-modal
|
<a-modal
|
||||||
title="视频播放"
|
title="视频播放"
|
||||||
:width="800"
|
:width="800"
|
||||||
:visible="videoOpen"
|
:visible="videoOpen"
|
||||||
:maskClosable="false"
|
:maskClosable="false"
|
||||||
:okButtonProps="{ class: { 'jee-hidden': true } }"
|
:okButtonProps="{ class: { 'jee-hidden': true } }"
|
||||||
@cancel="videoHandleCancel"
|
@cancel="videoHandleCancel"
|
||||||
cancelText="关闭"
|
cancelText="关闭"
|
||||||
|
>
|
||||||
|
<div style="text-align: center; width: 100%">
|
||||||
|
<video
|
||||||
|
style="text-align: center"
|
||||||
|
ref="videoPlayer"
|
||||||
|
:controls="controls"
|
||||||
|
:autoplay="autoplay"
|
||||||
|
:loop="loop"
|
||||||
|
@loadedmetadata="playVideoInFullscreen"
|
||||||
|
:src="videoUrl"
|
||||||
>
|
>
|
||||||
<div style="text-align: center; width: 100%">
|
<!-- <source :src="videoUrl" type="video/mp4" />
|
||||||
<video
|
|
||||||
style="text-align: center"
|
|
||||||
ref="videoPlayer"
|
|
||||||
:controls="controls"
|
|
||||||
:autoplay="autoplay"
|
|
||||||
:loop="loop"
|
|
||||||
@loadedmetadata="playVideoInFullscreen"
|
|
||||||
:src="videoUrl"
|
|
||||||
>
|
|
||||||
<!-- <source :src="videoUrl" type="video/mp4" />
|
|
||||||
Your browser does not support the video tag. -->
|
Your browser does not support the video tag. -->
|
||||||
</video>
|
</video>
|
||||||
|
|
||||||
<!-- <button @click="playVideo">开始播放</button>
|
<!-- <button @click="playVideo">开始播放</button>
|
||||||
<button @click="pauseVideo">停止播放</button> -->
|
<button @click="pauseVideo">停止播放</button> -->
|
||||||
</div>
|
</div>
|
||||||
</a-modal>
|
</a-modal>
|
||||||
<zykYylistPage ref="zykYylistPageRef" @success="handleYyOk" />
|
<zykYylistPage ref="zykYylistPageRef" @success="handleYyOk" />
|
||||||
<div class="example">
|
<div class="example">
|
||||||
<a-spin :spinning="spinning" size="large" tip="下载中..." />
|
<a-spin :spinning="spinning" size="large" tip="下载中..." />
|
||||||
|
@ -472,6 +472,11 @@ enum Api {
|
||||||
delThree = '/teachingunitcontent/kcTeachingUnitContentThree/delete',
|
delThree = '/teachingunitcontent/kcTeachingUnitContentThree/delete',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function handleView(urlPath){
|
||||||
|
// var url = 'http://127.0.0.1:8080/file/test.txt'; //要预览文件的访问地址
|
||||||
|
// window.open('http://127.0.0.1:8012/onlinePreview?url='+encodeURIComponent(base64Encode(url)));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 列表接口
|
* 列表接口
|
||||||
* @param params
|
* @param params
|
||||||
|
@ -797,9 +802,17 @@ function editThreePage(two, three, threeIndex) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function viewThreePage(three) {
|
function viewThreePage(three) {
|
||||||
threePageOpen.value = true;
|
console.log('🙇♂️', three);
|
||||||
threePageDisableSubmit.value = true;
|
|
||||||
threePageData.value = { three };
|
if (three.value.type == 'video') {
|
||||||
|
handleVideo(three);
|
||||||
|
} else if (three.value.type == 'document') {
|
||||||
|
|
||||||
|
} else if (three.value.type == 'richText') {
|
||||||
|
threePageOpen.value = true;
|
||||||
|
threePageDisableSubmit.value = true;
|
||||||
|
threePageData.value = { three };
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function delThree(e, two, three) {
|
function delThree(e, two, three) {
|
||||||
|
|
|
@ -955,7 +955,7 @@ async function submitForm() {
|
||||||
var endTimestamp = Date.parse(endTime);
|
var endTimestamp = Date.parse(endTime);
|
||||||
var startTimestamp = Date.parse(startTime);
|
var startTimestamp = Date.parse(startTime);
|
||||||
if (endTimestamp < startTimestamp) {
|
if (endTimestamp < startTimestamp) {
|
||||||
createMessage.warning('作业发布时间不能小于作业截止时间!');
|
createMessage.warning('作业发布时间不能大于作业截止时间!');
|
||||||
confirmLoading.value = false;
|
confirmLoading.value = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -965,7 +965,7 @@ async function submitForm() {
|
||||||
var endTimestamp = Date.parse(xshpkssj);
|
var endTimestamp = Date.parse(xshpkssj);
|
||||||
var startTimestamp = Date.parse(startTime);
|
var startTimestamp = Date.parse(startTime);
|
||||||
if (endTimestamp < startTimestamp) {
|
if (endTimestamp < startTimestamp) {
|
||||||
createMessage.warning('互评开始间不能小于作业发布时间!');
|
createMessage.warning('互评开始间不能大于作业发布时间!');
|
||||||
confirmLoading.value = false;
|
confirmLoading.value = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue