+
-
-
+
+
-
-
-
-
-
+
+
+
+ -
+
+
+
{{ item.name }}
+
+
+ 新增
+
+
+
+
+
+ -
+
+
+
+
+ 课程目标{{ i + 1 }}
+
+
+
+
+ 编辑
+
+
+ 删除
+
+
+
+
+ {{ obj.content }}
+
+
+
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
diff --git a/src/views/course/CourseObjectives111.vue b/src/views/course/CourseObjectives111.vue
new file mode 100644
index 0000000..8d3b391
--- /dev/null
+++ b/src/views/course/CourseObjectives111.vue
@@ -0,0 +1,476 @@
+
+
+
+
+
+
+
+
+
+
+ -
+
+
+
{{ item.specific }}
+
+
+ 新增
+
+
+
+
+
+ -
+
+
+
+ 课程目标{{ i+1 }}
+
+
+
+
+ 编辑
+
+
+ 删除
+
+
+
+
+ {{ obj.introduce }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/course/basicCourseInformation.vue b/src/views/course/basicCourseInformation.vue
index e374323..03aacbf 100644
--- a/src/views/course/basicCourseInformation.vue
+++ b/src/views/course/basicCourseInformation.vue
@@ -2,20 +2,22 @@
import { ref, onMounted } from 'vue'
// import axios from 'axios'
import courseEdit from './components/courseEdit.vue'
-import { Plus, Search } from '@element-plus/icons-vue'
+import { Plus } from '@element-plus/icons-vue'
import {
getCourseListApi,
deleteCourseApi,
- getCourseObjectApi,
getTeacherListApi,
} from '../../api/user/crouse'
import { ElMessageBox, ElMessage } from 'element-plus'
// import router from '@/router'
-import { useRouter, useRoute } from 'vue-router'
+import { useRouter } from 'vue-router'
+import useUserStore from '@/store/modules/user'
+// import { useRoute } from 'vue-router'
+const userStore = useUserStore()
+// const userInfo = userStore.userInfo
const router = useRouter()
// const route = useRoute()
// console.log(route)
-
// import { client } from '@/utils/alioss.js'
// 课程列表
const courseList = ref([])
@@ -31,7 +33,7 @@ const total = ref(0)
const params = ref({
pageNo: 1,
pageSize: 7,
- username: 'qiu',
+ username: userStore.userName,
assessmenttype: '',
category: '',
nature: '',
@@ -41,12 +43,14 @@ const loading = ref(false)
// 获取课程列表
const getCourseList = async () => {
loading.value = true
+ console.log(params.value, '11')
+
const res = await getCourseListApi(params.value)
- // console.log(res)
courseList.value = res.data.list
total.value = res.data.total
console.log(res.data.list)
loading.value = false
+ // console.log(userStore.userName, '1111')
}
// 渲染
onMounted(() => {
@@ -163,12 +167,15 @@ const CloseCouresNameChangeEvent = () => {
-
-
+
-
+
@@ -190,22 +197,23 @@ const CloseCouresNameChangeEvent = () => {
-
搜索
重置
-
- -
+
-
-
{{ course_name }}
+
+
+
+
+
+
+
+
+
+
+
+ 点击上传资源
+
+
+ jpg/png files with a size less than 500kb
+
+
+
+
+
+
+
+
+
+
+ 取消
+ 确定
+
+
+
+
+
diff --git a/src/views/courseResources/courseInfo.vue b/src/views/courseResources/courseInfo.vue
deleted file mode 100644
index 33680e5..0000000
--- a/src/views/courseResources/courseInfo.vue
+++ /dev/null
@@ -1,133 +0,0 @@
-
-
-
-
-
开课时间:2018年11月14日~2023年11月14日
-
课程类型:公共开放课程
-
学习人数:120人
-
-
-
-
-
-
-
-
- 请选择院系专业:
-
-
-
- 请选择年级:
-
-
- 上传学科文件:
-
-
-
-
-
-
-
-
diff --git a/src/views/courseResources/index.vue b/src/views/courseResources/index.vue
index 1a379fc..486cb83 100644
--- a/src/views/courseResources/index.vue
+++ b/src/views/courseResources/index.vue
@@ -1,569 +1,303 @@
+
-
-
-
简介
-
-
-
-
ppt
-
-
-
-
视频
-
-
-
-
文本
-
-
-
-
音频
-
-
-
+
+
+
+
+
+
+
+
+
ppt
+
+
+
+
+
+
+
+
图片
+
+
-
-
-
- -
-
-
- 软件工程的奥秘
-
- 构建无暇的应用程序关键技巧
-
-
- 课程类型:公共任选课
-
- 授课老师:王易系
-
- 报名人数:130人
-
-
- -
-
-
- 如何成为顶级工程师
-
- 成功之路解析
-
-
- 课程类型:公共任选课
-
- 授课老师:刘苏杭
-
- 报名人数:126人
-
-
- -
-
-
- 软件工程的黑科技
-
- 提高开发效率的秘密技巧大揭秘
-
-
- 课程类型:公共任选课
-
- 授课老师:安书名
-
- 报名人数:117人
-
-
- -
-
-
- 软件工程界的未来趋势
-
- AI、大数据和区块的巨大影响
-
-
- 课程类型:公共任选课
-
- 授课老师:萨基姆
-
- 报名人数:140人
-
-
- -
-
-
- 软件工程中常见的陷阱级如何避免
-
- 优化你的开发过程
-
-
- 课程类型:公共任选课
-
- 授课老师:何舒心
-
- 报名人数:125人
-
-
- -
-
-
- 精通软件工程的必备工具
-
- 代码管理、测试和持续集成
-
-
- 课程类型:公共任选课
-
- 授课老师:朱佳娜
-
- 报名人数:121人
-
-
- -
-
-
- 软件工程师面试攻略
-
- 如何在技术中脱颖而出
-
-
- 课程类型:公共任选课
-
- 授课老师:胡树立
-
- 报名人数:117人
-
-
- -
-
-
- 软件工程实战经验分析
-
- 高效团队合作的秘密武器
-
-
- 课程类型:公共任选课
-
- 授课老师:张海山
-
- 报名人数:125人
-
-
-
-
-
-
- -
-
-
-
+
+
+
+
+
+ -
- 上传
-
-
-
-
-
-
-
-
-
- -
-
+
+
+
+
+
+
+
+
+
+
{{ resource.name }}
+
{{ resource.description }}
+
+
+
+
+
+
-
-
-
+
+
+
+
+
-
-
-
-
diff --git a/src/views/home/components/Info.vue b/src/views/home/components/Info.vue
index e021807..cfdfc7d 100644
--- a/src/views/home/components/Info.vue
+++ b/src/views/home/components/Info.vue
@@ -46,80 +46,80 @@ const cancelEdit = () => {
}
const identInfo = ref()
//获取身份信息
-const getInfo = async (id) => {
- const res = await userIdenService(id)
- identInfo.value = res
- return res
-}
+// const getInfo = async (id) => {
+// const res = await userIdenService(id)
+// identInfo.value = res
+// return res
+// }
console.log()
onMounted(() => {
// getInfo(id)
- getInfo(id)
- .then((res) => {
- // 在这里可以访问在 getData 函数中返回的结果
- console.log(res.data, '000000')
- identInfo.value = res.data
- // 假数据
- if (res.data.roleId === 1) {
- formModel.value = [
- { par: 'name', name: '姓名', content: res.data.name },
- { par: 'sex', name: '性别', content: res.data.sex },
- { par: 'nationality', name: '民族', content: res.data.nationality },
- { par: 'profession', name: '专业', content: res.data.profession },
- { par: 'education', name: '学历', content: res.data.education },
- { par: 'degree', name: '学位', content: res.data.degree },
- {
- par: 'professionalTitle',
- name: '职称',
- content: res.data.professionalTitle,
- },
- {
- par: 'emergencyContact',
- name: '手机号',
- content: res.data.emergencyContact,
- },
- {
- par: 'joinWorkTime',
- name: '参加工作时间',
- content: res.data.joinWorkTime,
- },
- {
- par: 'politicalStatus',
- name: '政治面貌',
- content: res.data.politicalStatus,
- },
- ]
- } else if (res.data.roleId === 2) {
- formModel.value = [
- { par: 'name', name: '姓名', content: res.data.name },
- { par: 'sex', name: '性别', content: res.data.sex },
- { par: 'nationality', name: '民族', content: res.data.nationality },
- { par: 'number', name: '学号', content: res.data.number },
- { par: 'birthday', name: '生日', content: res.data.birthday },
- { par: 'phone', name: '手机号', content: res.data.phone },
- { par: 'faculty', name: '院系', content: res.data.faculty },
- { par: 'major', name: '专业', content: res.data.major },
- { par: 'year_age', name: '入学年份', content: res.data.year_age },
- { par: 'class_name', name: '班级', content: res.data.class_name },
- ]
- }
- // else {
- // formModel.value = [
- // { name: '姓名', content: res.data.name },
- // { name: '性别', content: res.data.id },
- // { name: '学号', content: 9.9 },
- // { name: '小米电脑', content: 9.9 },
- // { name: '小米电脑', content: 9.9 },
- // { name: '小米电脑', content: 9.9 },
- // { name: '小米电脑', content: 9.9 },
- // { name: '小米电脑', content: 9.9 },
- // { name: '小米电脑', content: 9.9 },
- // ]
- // }
- })
- .catch((error) => {
- console.error(error)
- })
+ // getInfo(id)
+ // .then((res) => {
+ // // 在这里可以访问在 getData 函数中返回的结果
+ // console.log(res.data, '000000')
+ // identInfo.value = res.data
+ // // 假数据
+ // if (res.data.roleId === 1) {
+ // formModel.value = [
+ // { par: 'name', name: '姓名', content: res.data.name },
+ // { par: 'sex', name: '性别', content: res.data.sex },
+ // { par: 'nationality', name: '民族', content: res.data.nationality },
+ // { par: 'profession', name: '专业', content: res.data.profession },
+ // { par: 'education', name: '学历', content: res.data.education },
+ // { par: 'degree', name: '学位', content: res.data.degree },
+ // {
+ // par: 'professionalTitle',
+ // name: '职称',
+ // content: res.data.professionalTitle,
+ // },
+ // {
+ // par: 'emergencyContact',
+ // name: '手机号',
+ // content: res.data.emergencyContact,
+ // },
+ // {
+ // par: 'joinWorkTime',
+ // name: '参加工作时间',
+ // content: res.data.joinWorkTime,
+ // },
+ // {
+ // par: 'politicalStatus',
+ // name: '政治面貌',
+ // content: res.data.politicalStatus,
+ // },
+ // ]
+ // } else if (res.data.roleId === 2) {
+ // formModel.value = [
+ // { par: 'name', name: '姓名', content: res.data.name },
+ // { par: 'sex', name: '性别', content: res.data.sex },
+ // { par: 'nationality', name: '民族', content: res.data.nationality },
+ // { par: 'number', name: '学号', content: res.data.number },
+ // { par: 'birthday', name: '生日', content: res.data.birthday },
+ // { par: 'phone', name: '手机号', content: res.data.phone },
+ // { par: 'faculty', name: '院系', content: res.data.faculty },
+ // { par: 'major', name: '专业', content: res.data.major },
+ // { par: 'year_age', name: '入学年份', content: res.data.year_age },
+ // { par: 'class_name', name: '班级', content: res.data.class_name },
+ // ]
+ // }
+ // // else {
+ // // formModel.value = [
+ // // { name: '姓名', content: res.data.name },
+ // // { name: '性别', content: res.data.id },
+ // // { name: '学号', content: 9.9 },
+ // // { name: '小米电脑', content: 9.9 },
+ // // { name: '小米电脑', content: 9.9 },
+ // // { name: '小米电脑', content: 9.9 },
+ // // { name: '小米电脑', content: 9.9 },
+ // // { name: '小米电脑', content: 9.9 },
+ // // { name: '小米电脑', content: 9.9 },
+ // // ]
+ // // }
+ // })
+ // .catch((error) => {
+ // console.error(error)
+ // })
})
// 编辑1
const drawer2 = ref(false)
diff --git a/src/views/home/index.vue b/src/views/home/index.vue
index 8f53111..4315091 100644
--- a/src/views/home/index.vue
+++ b/src/views/home/index.vue
@@ -32,7 +32,7 @@ const getData = async () => {
} else {
rightVisible.value = false
}
- // console.log(data.value.roles[0], 333333)
+ console.log(data.value, 333333)
})
.catch((error) => {
console.log(error)
diff --git a/vite.config.ts.timestamp-1718268044772-4deaaf3aeef01.mjs b/vite.config.ts.timestamp-1718268044772-4deaaf3aeef01.mjs
new file mode 100644
index 0000000..91a14a7
--- /dev/null
+++ b/vite.config.ts.timestamp-1718268044772-4deaaf3aeef01.mjs
@@ -0,0 +1,40 @@
+// vite.config.ts
+import vue from "file:///D:/aaa/teaching/Teaching_integration_platform_admin_template/node_modules/.pnpm/@vitejs+plugin-vue@5.0.4_vite@5.1.4_vue@3.4.19/node_modules/@vitejs/plugin-vue/dist/index.mjs";
+import path from "path";
+import { viteMockServe } from "file:///D:/aaa/teaching/Teaching_integration_platform_admin_template/node_modules/.pnpm/vite-plugin-mock@3.0.1_esbuild@0.19.12_mockjs@1.1.0_vite@5.1.4/node_modules/vite-plugin-mock/dist/index.mjs";
+import { createSvgIconsPlugin } from "file:///D:/aaa/teaching/Teaching_integration_platform_admin_template/node_modules/.pnpm/vite-plugin-svg-icons@2.0.1_vite@5.1.4/node_modules/vite-plugin-svg-icons/dist/index.mjs";
+var vite_config_default = ({ command }) => {
+ return {
+ plugins: [
+ vue(),
+ viteMockServe({
+ enable: command === "serve"
+ }),
+ createSvgIconsPlugin({
+ // Specify the icon folder to be cached
+ iconDirs: [path.resolve(process.cwd(), "src/assets/icons")],
+ // Specify symbolId format
+ symbolId: "icon-[dir]-[name]"
+ })
+ ],
+ resolve: {
+ alias: {
+ "@": path.resolve("./src")
+ // 相对路径别名配置,使用 @ 代替 src
+ }
+ },
+ // 配置scss
+ css: {
+ preprocessorOptions: {
+ scss: {
+ javascriptEnabled: true,
+ additionalData: '@import "./src/styles/variable.scss";'
+ }
+ }
+ }
+ };
+};
+export {
+ vite_config_default as default
+};
+//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291c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