From da8077fa022381c7754da0c23b7d8590e8b66fe1 Mon Sep 17 00:00:00 2001
From: yangjun <1173114630@qq.com>
Date: Fri, 2 Aug 2024 19:11:38 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/zy/jiaoXueDanYuanNeiRong/index.vue | 67 ++++++++++++--------
src/views/zy/zyInfo/ZyInfoV2List.vue | 4 +-
2 files changed, 42 insertions(+), 29 deletions(-)
diff --git a/src/views/zy/jiaoXueDanYuanNeiRong/index.vue b/src/views/zy/jiaoXueDanYuanNeiRong/index.vue
index aa4a053..c312143 100644
--- a/src/views/zy/jiaoXueDanYuanNeiRong/index.vue
+++ b/src/views/zy/jiaoXueDanYuanNeiRong/index.vue
@@ -234,7 +234,7 @@
size="small"
title="查看"
v-if="three.type == 'document'"
- @click="viewImage(three.filePath)"
+ @click="handleView(three.filePath)"
class="addBtn"
> -->
@@ -341,33 +341,33 @@
-
+
+
@@ -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) {
- threePageOpen.value = true;
- threePageDisableSubmit.value = true;
- threePageData.value = { 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) {
diff --git a/src/views/zy/zyInfo/ZyInfoV2List.vue b/src/views/zy/zyInfo/ZyInfoV2List.vue
index 971fe84..b029c29 100644
--- a/src/views/zy/zyInfo/ZyInfoV2List.vue
+++ b/src/views/zy/zyInfo/ZyInfoV2List.vue
@@ -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;
}