diff --git a/src/api/index.js b/src/api/index.js index 835cd00..c1717c1 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -2,6 +2,7 @@ import Setting from "@/setting"; const host = Setting.apiBaseURL const uploadURL = Setting.upload.apiURL; const host1 = "http://121.37.12.51:8080/" +const host2 = 'http://192.168.31.137:9000/' export default { queryToken: `liuwanr/userInfo/queryToken`, @@ -141,20 +142,20 @@ export default { saveAnnouncementAnnex: `occupationlab/occupationlab/contestAnnouncementAnnex/save`, // 栏目管理 - addColumn: `occupationlab/occupationlab/enterprise/information/column/addColumn`, - deleteColumn: `occupationlab/occupationlab/enterprise/information/column/deleteColumn`, - editColumn: `occupationlab/occupationlab/enterprise/information/column/editColumn`, - queryAllColumns: `occupationlab/occupationlab/enterprise/information/column/queryAllColumns`, - columnReorder: `occupationlab/occupationlab/enterprise/information/column/reorder`, + addColumn: `${host2}occupationlab/occupationlab/information/column/addColumn`, + deleteColumn: `${host2}occupationlab/occupationlab/information/column/deleteColumn`, + editColumn: `${host2}occupationlab/occupationlab/information/column/editColumn`, + queryAllColumns: `${host2}occupationlab/occupationlab/information/column/queryAllColumns`, + columnReorder: `${host2}occupationlab/occupationlab/information/column/reorder`, // 内容管理 - addArticle: `occupationlab/occupationlab/enterprise/information/article/addArticle`, - deleteArticles: `occupationlab/occupationlab/enterprise/information/article/deleteArticles`, - editArticle: `occupationlab/occupationlab/enterprise/information/article/editArticle`, - enableArticle: `occupationlab/occupationlab/enterprise/information/article/enableArticle`, - getArticle: `occupationlab/occupationlab/enterprise/information/article/getArticle`, - getArticles: `occupationlab/occupationlab/enterprise/information/article/getArticles`, - queryArticleByCondition: `occupationlab/occupationlab/enterprise/information/article/queryArticleByCondition`, - articleSort: `occupationlab/occupationlab/enterprise/information/article/articleSort`, + addArticle: `${host2}occupationlab/occupationlab/information/article/addArticle`, + deleteArticles: `${host2}occupationlab/occupationlab/information/article/deleteArticles`, + editArticle: `${host2}occupationlab/occupationlab/information/article/editArticle`, + enableArticle: `${host2}occupationlab/occupationlab/information/article/enableArticle`, + getArticle: `${host2}occupationlab/occupationlab/information/article/getArticle`, + getArticles: `${host2}occupationlab/occupationlab/information/article/getArticles`, + queryArticleByCondition: `${host2}occupationlab/occupationlab/information/article/queryArticleByCondition`, + articleSort: `${host2}occupationlab/occupationlab/information/article/articleSort`, // 课程管理 queryCourseByCondition: `occupationlab/occupationlab/management/edu/course/queryCourseByCondition`, // 课程列表分页条件查询 @@ -165,10 +166,12 @@ export default { enableCourse: `occupationlab/occupationlab/management/schoolCourse/enableGlCourse`, // 是否启用管理端课程 getCourse: `occupationlab/occupationlab/management/edu/course/getCourse`, // 根据id查询课程 // 分类管理 - queryGlClassification: `occupationlab/occupationlab/management/edu/courseClassification/queryGlClassification`, - deleteClassification: `occupationlab/occupationlab/management/edu/courseClassification/deleteClassification`, - addClassification: `occupationlab/occupationlab/management/edu/courseClassification/addClassification`, - editClassification: `occupationlab/occupationlab/management/edu/courseClassification/editClassification`, + checkRepeat: `occupationlab/theoreticalCourseClassification/checkRepeat`, + delClassification: `occupationlab/theoreticalCourseClassification/delete`, + findClassification: `occupationlab/theoreticalCourseClassification/findById`, + listClassification: `occupationlab/theoreticalCourseClassification/pagingQuery`, + saveClassification: `occupationlab/theoreticalCourseClassification/save`, + updateClassification: `occupationlab/theoreticalCourseClassification/update`, // 课程章节管理 addChapter: `occupationlab/occupationlab/management/edu/courseChapter/addChapter`, chapterReorder: `occupationlab/occupationlab/management/edu/courseChapter/chapterReorder`, diff --git a/src/pages/course/add/index.vue b/src/pages/course/add/index.vue index c2b0818..6eb88d9 100644 --- a/src/pages/course/add/index.vue +++ b/src/pages/course/add/index.vue @@ -7,12 +7,24 @@ - +
+ +
+ + + +
+
+ +
+ 本校 +
+
@@ -20,6 +32,13 @@
+ +
+ + + +
+
+ + @@ -39,8 +41,6 @@ {{ scope.row.chapterNum ? scope.row.chapterNum : 0 }}章({{ scope.row.subsectionNum ? scope.row.subsectionNum : 0 }}小节) - -