diff --git a/.env.development b/.env.development index e529cf2..0abc872 100644 --- a/.env.development +++ b/.env.development @@ -1,5 +1,13 @@ # 变量必须以 VITE_ 为前缀才能暴露给外部读取 NODE_ENV = 'development' VITE_APP_TITLE = '无糖运营平台' +<<<<<<< HEAD # VITE_APP_BASE_API = 'http://39.106.16.162:8080' VITE_APP_BASE_API = 'http://127.0.0.1:8080' +======= +<<<<<<< HEAD +VITE_APP_BASE_API = 'http://127.0.0.1:8008' +======= +VITE_APP_BASE_API = 'http://39.106.16.162:8080' +>>>>>>> 991fa5ab08c56c84c5a276226f8fbc2ec78f859a +>>>>>>> 894c303b9a3a43c874f982d2f3256440b2296d26 diff --git a/.env_1.development b/.env_1.development deleted file mode 100644 index 57ed20d..0000000 --- a/.env_1.development +++ /dev/null @@ -1,4 +0,0 @@ -# 变量必须以 VITE_ 为前缀才能暴露给外部读取 -NODE_ENV = 'development' -VITE_APP_TITLE = '无糖运营平台' -VITE_APP_BASE_API = '/api' \ No newline at end of file diff --git a/.env_1.production b/.env_1.production deleted file mode 100644 index 6d6d61c..0000000 --- a/.env_1.production +++ /dev/null @@ -1,2 +0,0 @@ -NODE_ENV = 'production' -VITE_APP_TITLE = '无糖运营平台' \ No newline at end of file diff --git a/.env_1.test b/.env_1.test deleted file mode 100644 index 536fa85..0000000 --- a/.env_1.test +++ /dev/null @@ -1,4 +0,0 @@ - # 变量必须以 VITE_ 为前缀才能暴露给外部读取 -NODE_ENV = 'test' -VITE_APP_TITLE = '无糖运营平台' -VITE_APP_BASE_API = '/test-api' \ No newline at end of file diff --git a/.eslintrc_1.cjs b/.eslintrc_1.cjs deleted file mode 100644 index af8e1fb..0000000 --- a/.eslintrc_1.cjs +++ /dev/null @@ -1,65 +0,0 @@ -// @see https://eslint.bootcss.com/docs/rules/ - -module.exports = { - env: { - browser: true, - es2021: true, - node: true, - jest: true, - }, - globals: { - VANTA: 'readonly', //VANTA 已经cdn引入 这里拒绝eslint报错 全局声明一下 - ElMessage: 'readonly', - ElMessageBox: 'readonly', - ElLoading: 'readonly', - }, - /* 指定如何解析语法 */ - parser: 'vue-eslint-parser', - /** 优先级低于 parse 的语法解析配置 */ - parserOptions: { - ecmaVersion: 'latest', - sourceType: 'module', - parser: '@typescript-eslint/parser', - jsxPragma: 'React', - ecmaFeatures: { - jsx: true, - }, - }, - /* 继承已有的规则 */ - extends: [ - 'eslint:recommended', - 'plugin:vue/vue3-essential', - 'plugin:@typescript-eslint/recommended', - 'plugin:prettier/recommended', - ], - plugins: ['vue', '@typescript-eslint'], - /* - * "off" 或 0 ==> 关闭规则 - * "warn" 或 1 ==> 打开的规则作为警告(不影响代码执行) - * "error" 或 2 ==> 规则作为一个错误(代码不能执行,界面报错) - */ - rules: { - // eslint(https://eslint.bootcss.com/docs/rules/) - 'no-var': 'off', // 要求使用 let 或 const 而不是 var - 'no-multiple-empty-lines': ['off', { max: 1 }], // 不允许多个空行 - 'no-console': process.env.NODE_ENV === 'production' ? 'off' : 'off', - 'no-debugger': process.env.NODE_ENV === 'production' ? 'off' : 'off', - 'no-unexpected-multiline': 'off', // 禁止空余的多行 - 'no-useless-escape': 'off', // 禁止不必要的转义字符 - - // typeScript (https://typescript-eslint.io/rules) - '@typescript-eslint/no-unused-vars': 'off', // 禁止定义未使用的变量 - '@typescript-eslint/prefer-ts-expect-off': 'off', // 禁止使用 @ts-ignore - '@typescript-eslint/ban-ts-ignore': 'off', - '@typescript-eslint/no-explicit-any': 'off', // 禁止使用 any 类型 - '@typescript-eslint/no-non-null-assertion': 'off', - '@typescript-eslint/no-namespace': 'off', // 禁止使用自定义 TypeScript 模块和命名空间。 - '@typescript-eslint/semi': 'off', - - // eslint-plugin-vue (https://eslint.vuejs.org/rules/) - 'vue/multi-word-component-names': 'off', // 要求组件名称始终为 “-” 链接的单词 - 'vue/script-setup-uses-vars': 'off', // 防止 - - - - diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 517f898..0fa7399 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,8 +1,17 @@ lockfileVersion: '6.0' +<<<<<<< HEAD +======= +<<<<<<< HEAD +>>>>>>> 991fa5ab08c56c84c5a276226f8fbc2ec78f859a settings: autoInstallPeers: true excludeLinksFromLockfile: false +<<<<<<< HEAD +======= +======= +>>>>>>> 1a620e19de970965f426e07348b1dbc4be900eaf +>>>>>>> 991fa5ab08c56c84c5a276226f8fbc2ec78f859a dependencies: 3d-force-graph: diff --git a/src/api/courseChaptersApi.ts b/src/api/courseChaptersApi.ts index feaa1f9..45525c2 100644 --- a/src/api/courseChaptersApi.ts +++ b/src/api/courseChaptersApi.ts @@ -65,14 +65,14 @@ export function getOrogramObjectiveApi() { // 获取课程列表 export const getCourseList = (params: any) => { return request({ - url: '/course_objectives/list/' + params.id, + url: '/api/course_objectives/list/' + params.id, params, }) } // 添加分目标 export const addCourse = (data: any) => { return request({ - url: '/objective_contents/addcontent', + url: '/api/objective_contents/addcontent', method: 'POST', data, }) @@ -80,7 +80,7 @@ export const addCourse = (data: any) => { // 编辑目标 export const editCourse = (data: any) => { return request({ - url: '/objective_contents/update', + url: '/api/objective_contents/update', method: 'PUT', data, }) @@ -88,7 +88,7 @@ export const editCourse = (data: any) => { //删除课程目标 export const deleteCourse = (params: any) => { return request({ - url: '/objective_contents/' + params.id, + url: '/api/objective_contents/' + params.id, method: 'DELETE', }) } @@ -96,8 +96,8 @@ export const deleteCourse = (params: any) => { // 获取详情 export const getCourseInfo = (params: any) => { return request({ - url: '/objective_contents/' + params.id, - method: 'get', + url: 'api/objective_contents/' + params.id, + method: "get", // params }) } diff --git a/src/assets/images/100.png b/src/assets/images/100.png new file mode 100644 index 0000000..7228b29 Binary files /dev/null and b/src/assets/images/100.png differ diff --git a/src/assets/images/101.jpg b/src/assets/images/101.jpg new file mode 100644 index 0000000..607f4e9 Binary files /dev/null and b/src/assets/images/101.jpg differ diff --git a/src/assets/images/102.jpg b/src/assets/images/102.jpg new file mode 100644 index 0000000..2f884ad Binary files /dev/null and b/src/assets/images/102.jpg differ diff --git a/src/assets/images/103.jpg b/src/assets/images/103.jpg new file mode 100644 index 0000000..4d57b1b Binary files /dev/null and b/src/assets/images/103.jpg differ diff --git a/src/assets/images/104.jpg b/src/assets/images/104.jpg new file mode 100644 index 0000000..a4fad67 Binary files /dev/null and b/src/assets/images/104.jpg differ diff --git a/src/assets/images/105.jpg b/src/assets/images/105.jpg new file mode 100644 index 0000000..2d5b294 Binary files /dev/null and b/src/assets/images/105.jpg differ diff --git a/src/assets/images/106.jpg b/src/assets/images/106.jpg new file mode 100644 index 0000000..5fc9337 Binary files /dev/null and b/src/assets/images/106.jpg differ diff --git a/src/assets/images/107.jpg b/src/assets/images/107.jpg new file mode 100644 index 0000000..c05e1be Binary files /dev/null and b/src/assets/images/107.jpg differ diff --git a/src/assets/images/108.jpg b/src/assets/images/108.jpg new file mode 100644 index 0000000..2981ff0 Binary files /dev/null and b/src/assets/images/108.jpg differ diff --git a/src/assets/images/109.jpg b/src/assets/images/109.jpg new file mode 100644 index 0000000..f2318ca Binary files /dev/null and b/src/assets/images/109.jpg differ diff --git a/src/assets/images/110.jpg b/src/assets/images/110.jpg new file mode 100644 index 0000000..0d5499c Binary files /dev/null and b/src/assets/images/110.jpg differ diff --git a/src/assets/images/141.png b/src/assets/images/141.png new file mode 100644 index 0000000..4132030 Binary files /dev/null and b/src/assets/images/141.png differ diff --git a/src/assets/images/142.png b/src/assets/images/142.png new file mode 100644 index 0000000..0f43095 Binary files /dev/null and b/src/assets/images/142.png differ diff --git a/src/assets/images/4c.jpeg b/src/assets/images/4c.jpeg new file mode 100644 index 0000000..3dc8b48 Binary files /dev/null and b/src/assets/images/4c.jpeg differ diff --git a/src/assets/images/R-C.png b/src/assets/images/R-C.png new file mode 100644 index 0000000..9b2a69b Binary files /dev/null and b/src/assets/images/R-C.png differ diff --git a/src/assets/images/a.png b/src/assets/images/a.png new file mode 100644 index 0000000..3375a9d Binary files /dev/null and b/src/assets/images/a.png differ diff --git a/src/assets/images/o.jpg b/src/assets/images/o.jpg new file mode 100644 index 0000000..78d00bc Binary files /dev/null and b/src/assets/images/o.jpg differ diff --git a/src/assets/images/screen (1).png b/src/assets/images/screen (1).png new file mode 100644 index 0000000..89ad605 Binary files /dev/null and b/src/assets/images/screen (1).png differ diff --git a/src/assets/images/screen.png b/src/assets/images/screen.png new file mode 100644 index 0000000..609ac94 Binary files /dev/null and b/src/assets/images/screen.png differ diff --git a/src/assets/images/yt.png b/src/assets/images/yt.png new file mode 100644 index 0000000..f46b966 Binary files /dev/null and b/src/assets/images/yt.png differ diff --git a/src/assets/images/zstp.jpg b/src/assets/images/zstp.jpg new file mode 100644 index 0000000..bb0b6eb Binary files /dev/null and b/src/assets/images/zstp.jpg differ diff --git a/src/router/routers.ts b/src/router/routers.ts index bd49659..6724cb7 100644 --- a/src/router/routers.ts +++ b/src/router/routers.ts @@ -299,4 +299,14 @@ export const constantRoute: any = [ }, ], }, + { + path: '/curriculumCenter/largeScreen', + component: () => import('@/views/course/largeScreen.vue'), + name: 'LargeScreen', // name 要与权限一致 + meta: { + title: '课程图谱', + hidden: true, + icon: 'Notebook', + }, + } ] diff --git a/src/views/course/CourseObjectives.vue b/src/views/course/CourseObjectives.vue index 7ec2965..428eac1 100644 --- a/src/views/course/CourseObjectives.vue +++ b/src/views/course/CourseObjectives.vue @@ -3,7 +3,9 @@ import { ref, onMounted } from 'vue' import { ElMessage, ElMessageBox } from 'element-plus' import { id } from 'element-plus/es/locales.mjs' import * as echarts from 'echarts' + // import { useRoute } from 'vue-router' + import { getCourseList, addCourse, @@ -58,7 +60,7 @@ const handleClose = () => { const submit = async () => { if (flog.value) { await editCourse({ - id: activeIndex.value, + ...editdata.value, content: formData.value.description, }) } else { @@ -112,11 +114,13 @@ const filterTarger = (target) => { return res.label } +const editdata = ref({ id: '', objectiveId:'' }) // 编辑事件 const flog = ref(false) const editBook = async (obj) => { const res = await getCourseInfo({ id: obj.id }) - + editdata.value.id = res.data.id + editdata.value.objectiveId = res.data.objectiveId flog.value = true console.log(obj) activeIndex.value = res.data.id diff --git a/src/views/course/largeScreen.vue b/src/views/course/largeScreen.vue new file mode 100644 index 0000000..67b66e0 --- /dev/null +++ b/src/views/course/largeScreen.vue @@ -0,0 +1,430 @@ + + + + + + \ No newline at end of file diff --git a/src/views/portal/LearningPathRecommendations.vue b/src/views/portal/LearningPathRecommendations.vue index 1226daf..696d9de 100644 --- a/src/views/portal/LearningPathRecommendations.vue +++ b/src/views/portal/LearningPathRecommendations.vue @@ -1,586 +1,682 @@ - + + \ No newline at end of file