修改bug

This commit is contained in:
yangjun 2024-08-02 19:11:38 +08:00
parent b023cb8fb9
commit da8077fa02
2 changed files with 42 additions and 29 deletions

View File

@ -234,7 +234,7 @@
size="small"
title="查看"
v-if="three.type == 'document'"
@click="viewImage(three.filePath)"
@click="handleView(three.filePath)"
class="addBtn"
><Icon icon="ant-design:file-pdf-outlined"
/></a-button> -->
@ -472,6 +472,11 @@ enum Api {
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
@ -797,9 +802,17 @@ function editThreePage(two, three, threeIndex) {
}
function viewThreePage(three) {
console.log('🙇‍♂️', 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) {

View File

@ -955,7 +955,7 @@ async function submitForm() {
var endTimestamp = Date.parse(endTime);
var startTimestamp = Date.parse(startTime);
if (endTimestamp < startTimestamp) {
createMessage.warning('作业发布时间不能于作业截止时间!');
createMessage.warning('作业发布时间不能于作业截止时间!');
confirmLoading.value = false;
return;
}
@ -965,7 +965,7 @@ async function submitForm() {
var endTimestamp = Date.parse(xshpkssj);
var startTimestamp = Date.parse(startTime);
if (endTimestamp < startTimestamp) {
createMessage.warning('互评开始间不能于作业发布时间!');
createMessage.warning('互评开始间不能于作业发布时间!');
confirmLoading.value = false;
return;
}