diff --git a/src/views/platform_resource_library/courseware/data.vue b/src/views/platform_resource_library/courseware/data.vue
index 375f041..1d364e5 100644
--- a/src/views/platform_resource_library/courseware/data.vue
+++ b/src/views/platform_resource_library/courseware/data.vue
@@ -135,10 +135,6 @@
:src="data.pdfDialog.src"
v-model:visible="data.pdfDialog.visible"
/>
-
@@ -158,7 +154,6 @@ import { debounce } from "throttle-debounce";
import { ElMessage, ElMessageBox } from "element-plus";
import { useRouter } from "vue-router";
import LayoutPdf from "@/components/pdf/index.vue";
-import LayoutTxt from "@/components/txt/index.vue";
const router = useRouter();
const { list, pagination, searchForm, fnGetData, fnResetPagination } =
@@ -173,10 +168,6 @@ const data = reactive({
src: "",
visible: false,
},
- txtDialog: {
- src: "",
- visible: false,
- },
});
// const buttonJurisdiction = await useButtonJurisdiction("courseware"); 原项目没找到在哪用
diff --git a/src/views/platform_resource_library/courseware/video.vue b/src/views/platform_resource_library/courseware/video.vue
index 3c43eba..a910a12 100644
--- a/src/views/platform_resource_library/courseware/video.vue
+++ b/src/views/platform_resource_library/courseware/video.vue
@@ -197,6 +197,9 @@ const fnAdd = debounce(1000, async (VIDEOCOURSEWARE_ID) => {
});
const fnPreviewVideo = async (row) => {
+ data.videoDialog.src = "";
+ data.videoDialog.vid = "";
+ data.videoDialog.playAuth = "";
if (
row.VIDEOCOURSEWARE_ID_REMOTE &&
row.VIDEOCOURSEWARE_ID_REMOTE.length > 0
@@ -205,16 +208,19 @@ const fnPreviewVideo = async (row) => {
VIDEOCOURSEWARE_ID: row.VIDEOCOURSEWARE_ID_REMOTE,
CURRICULUM_ID: row.CURRICULUM_ID_REMOTE,
});
- if (respData && respData.result === "success") {
- data.videoDialog.playAuth = respData.playAuth;
- data.videoDialog.vid = row.VIDEOFILES;
+ if (respData && respData.type === "success") {
+ const video = {};
+ respData.videoList.forEach((item) => {
+ video[item.definition] = item.playURL;
+ });
+ data.videoDialog.src = JSON.stringify(video);
data.videoDialog.visible = true;
}
} else if (row.VIDEOFILES && row.VIDEOFILES.length > 0) {
const respData = await getVideoAuth({
videoId: row.VIDEOFILES,
});
- if (respData && respData.result === "success") {
+ if (respData && respData.type === "success") {
data.videoDialog.playAuth = respData.playAuth;
data.videoDialog.vid = row.VIDEOFILES;
data.videoDialog.visible = true;
diff --git a/src/views/platform_resource_library/curriculum/view.vue b/src/views/platform_resource_library/curriculum/view.vue
index 790dc10..9b97ffe 100644
--- a/src/views/platform_resource_library/curriculum/view.vue
+++ b/src/views/platform_resource_library/curriculum/view.vue
@@ -1,93 +1,141 @@
-
- 课程信息
-
-
- {{ data.curriculumInfo.CURRICULUMNAME }}
-
-
- {{
- data.curriculumInfo.CURRENCY === "1"
- ? "通用"
- : data.curriculumInfo.train_type_name
- }}
-
-
- {{ data.curriculumInfo.post_type_name }}
-
-
-
-
-
- {{ data.curriculumInfo.CURRICULUMINTRODUCE }}
-
-
-
- {{ data.NAME }}
- 视频课件
-
-
-
-
-
-
-
-
- 资料课件
-
-
-
-
-
-
-
-
-
-
+
+
+ 课程信息
+
+
+ {{ data.curriculumInfo.CURRICULUMNAME }}
+
+
+ {{
+ data.curriculumInfo.CURRENCY === "1"
+ ? "通用"
+ : data.curriculumInfo.train_type_name
+ }}
+
+
+ {{ data.curriculumInfo.post_type_name }}
+
+
+
+
+
+ {{ data.curriculumInfo.CURRICULUMINTRODUCE }}
+
+
+
+ {{ data.NAME }}
+ 视频课件
+
+
+
+
+
+ {{ row.COURSEWARENAME }}
+
+
+
+ {{ row.COURSEWARENAME }}
+
+
+
+
+
+
+
+
+
+ 资料课件
+
+
+
+
+
+ {{ row.COURSEWARENAME }}
+
+
+
+ {{ row.COURSEWARENAME }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+