diff --git a/src/assets/js/asyncRouter.js b/src/assets/js/asyncRouter.js
index cf947fb..8cf23af 100644
--- a/src/assets/js/asyncRouter.js
+++ b/src/assets/js/asyncRouter.js
@@ -868,6 +868,22 @@ export default [
path: "",
component: "online_learn_exam/courseware/video/index",
},
+ {
+ path: "/online_learn_exam/courseware/video/add",
+ meta: {
+ title: "添加",
+ activeMenu: "/online_learn_exam/courseware/video",
+ },
+ component: "online_learn_exam/courseware/video/add",
+ },
+ {
+ path: "/online_learn_exam/courseware/video/edit",
+ meta: {
+ title: "修改",
+ activeMenu: "/online_learn_exam/courseware/video",
+ },
+ component: "online_learn_exam/courseware/video/add",
+ },
{
path: "/online_learn_exam/courseware/video/exercises",
meta: {
@@ -887,6 +903,22 @@ export default [
path: "",
component: "online_learn_exam/courseware/data/index",
},
+ {
+ path: "/online_learn_exam/courseware/data/add",
+ meta: {
+ title: "新增",
+ activeMenu: "/online_learn_exam/courseware/data",
+ },
+ component: "online_learn_exam/courseware/data/add",
+ },
+ {
+ path: "/online_learn_exam/courseware/data/edit",
+ meta: {
+ title: "修改",
+ activeMenu: "/online_learn_exam/courseware/data",
+ },
+ component: "online_learn_exam/courseware/data/add",
+ },
{
path: "/online_learn_exam/courseware/data/exercises",
meta: {
@@ -916,6 +948,14 @@ export default [
},
component: "online_learn_exam/curriculum/view",
},
+ {
+ path: "/online_learn_exam/curriculum/add",
+ meta: {
+ title: "新增",
+ activeMenu: "/online_learn_exam/curriculum",
+ },
+ component: "online_learn_exam/curriculum/add",
+ },
],
},
],
diff --git a/src/views/online_learn_exam/courseware/data/add.vue b/src/views/online_learn_exam/courseware/data/add.vue
new file mode 100644
index 0000000..646fd99
--- /dev/null
+++ b/src/views/online_learn_exam/courseware/data/add.vue
@@ -0,0 +1,225 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 只能上传pdf文件
+
+
+
+
+
+
+ 建议上传尺寸224*160
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 提交
+
+
+
+
+
+
+
+
diff --git a/src/views/online_learn_exam/courseware/data/components/add.vue b/src/views/online_learn_exam/courseware/data/components/add.vue
deleted file mode 100644
index 3c33d62..0000000
--- a/src/views/online_learn_exam/courseware/data/components/add.vue
+++ /dev/null
@@ -1,179 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 只能上传pdf文件
-
-
-
-
- 建议上传尺寸224*160
-
-
-
-
-
-
-
-
-
-
-
-
- 关闭
- 提交
-
-
-
-
-
-
-
-
diff --git a/src/views/online_learn_exam/courseware/data/index.vue b/src/views/online_learn_exam/courseware/data/index.vue
index bc1e44d..5ec985b 100644
--- a/src/views/online_learn_exam/courseware/data/index.vue
+++ b/src/views/online_learn_exam/courseware/data/index.vue
@@ -140,7 +140,14 @@
row.STAGECOUNT === 0 &&
row.ISPLATFORM === '0'
"
- @click="fnAddOrEdit(row.DATACOURSEWARE_ID, 'edit')"
+ @click="
+ router.push({
+ path: '/online_learn_exam/courseware/data/edit',
+ query: {
+ DATACOURSEWARE_ID: row.DATACOURSEWARE_ID,
+ },
+ })
+ "
>
修改
@@ -180,7 +187,11 @@
新增
@@ -191,44 +202,29 @@
:src="data.pdfDialog.src"
v-model:visible="data.pdfDialog.visible"
/>
-
diff --git a/src/views/online_learn_exam/courseware/video/add.vue b/src/views/online_learn_exam/courseware/video/add.vue
new file mode 100644
index 0000000..568c7c2
--- /dev/null
+++ b/src/views/online_learn_exam/courseware/video/add.vue
@@ -0,0 +1,253 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 只能上传mp4文件,最大上传500M
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 提交
+
+
+
+
+
+
+
+
diff --git a/src/views/online_learn_exam/courseware/video/components/add.vue b/src/views/online_learn_exam/courseware/video/components/add.vue
deleted file mode 100644
index ea3a87c..0000000
--- a/src/views/online_learn_exam/courseware/video/components/add.vue
+++ /dev/null
@@ -1,209 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 只能上传mp4文件,最大上传500M
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 关闭
- 提交
-
-
-
-
-
-
-
-
diff --git a/src/views/online_learn_exam/courseware/video/index.vue b/src/views/online_learn_exam/courseware/video/index.vue
index db5f5da..7fc001f 100644
--- a/src/views/online_learn_exam/courseware/video/index.vue
+++ b/src/views/online_learn_exam/courseware/video/index.vue
@@ -142,7 +142,12 @@
row.STAGECOUNT === 0 &&
row.ISPLATFORM === 0
"
- @click="fnAddOrEdit(row.VIDEOCOURSEWARE_ID, 'edit')"
+ @click="
+ router.push({
+ path: '/online_learn_exam/courseware/video/edit',
+ query: { VIDEOCOURSEWARE_ID: row.VIDEOCOURSEWARE_ID },
+ })
+ "
>
修改
@@ -182,7 +187,9 @@
新增
@@ -195,12 +202,6 @@
:play-auth="data.videoDialog.playAuth"
v-model:visible="data.videoDialog.visible"
/>
-