diff --git a/README.md b/README.md
new file mode 100644
index 0000000..2ead768
--- /dev/null
+++ b/README.md
@@ -0,0 +1 @@
+# 职站后台前端
\ No newline at end of file
diff --git a/src/pages/course/contentSettings/index.vue b/src/pages/course/contentSettings/index.vue
index bc9b962..ffc143a 100644
--- a/src/pages/course/contentSettings/index.vue
+++ b/src/pages/course/contentSettings/index.vue
@@ -12,8 +12,8 @@
内容设置
- 添加章节
- 编辑顺序
+ 添加章节
+ 编辑顺序
批量移动
@@ -29,9 +29,9 @@
{{ chapter.name }}
- 修改章节名称
- 添加小节
- 删除
+ 修改章节名称
+ 添加小节
+ 删除
@@ -57,10 +57,10 @@
- 查看
- 删除
- 修改小节名称
- 更换文件
+ 查看
+ 删除
+ 修改小节名称
+ 更换文件
diff --git a/src/pages/project/list/index.vue b/src/pages/project/list/index.vue
index 8776260..e95d52a 100644
--- a/src/pages/project/list/index.vue
+++ b/src/pages/project/list/index.vue
@@ -9,7 +9,7 @@
-
-
+
{
- if (res.status == 200){
- this.systemListAll = res.data;
- // 如果systemId有历史记录,就取历史记录里的systemId,否则就取默认的systemId
- this.getschoolCourse()
- }
- });
- },
getData() {
this.setSystemId(this.systemId);
if (this.isFirst) this.page = +this.$route.query.page || 1
@@ -283,9 +274,17 @@ export default {
}).catch(err => {
});
},
- getschoolCourse() { // 获取课程下拉框数据
- this.$get(this.api.schoolCourseByAchievement).then(res => {
- const { data } = res
+ // 获取系统
+ getSystemData() {
+ this.$get(this.api.getSystemIdBySchool).then(({ data }) => {
+ this.systemListAll = data
+ // 如果systemId有历史记录,就取历史记录里的systemId,否则就取默认的systemId
+ this.getschoolCourse()
+ });
+ },
+ // 获取课程
+ getschoolCourse() {
+ this.$get(this.api.schoolCourse).then(({ data }) => {
this.curriculumList = data
const { cid } = this.queryData
if (data.length) {
@@ -298,7 +297,7 @@ export default {
courseChange(val) {
const systemIds = this.curriculumList.find(e => e.cid == this.queryData.cid).systemId.split(',') // 获取选取的课程的systemId
this.systemList = this.systemListAll.filter(e => systemIds.includes(e.id + '')) // 筛选出该课程下的系统
- if (this.systemList.length) this.systemId = this.systemList[0].id
+ this.systemId = this.systemList.length ? this.systemList[0].id : ''
this.initData()
},
// 创建人选择回调
@@ -310,6 +309,7 @@ export default {
founder: val
}
})
+ this.initData()
},
initData() {
this.page = 1;
diff --git a/src/pages/station/preview/index.vue b/src/pages/station/preview/index.vue
index 7547c01..c0df017 100644
--- a/src/pages/station/preview/index.vue
+++ b/src/pages/station/preview/index.vue
@@ -313,7 +313,7 @@ export default {
util.cookies.set("curriculumName", escape(this.curriculumName));
util.cookies.set("systemId", id);
location.href = process.env.NODE_ENV === 'development' ?
- `http://${location.hostname}:8080/#/` :
+ `http://${location.hostname}:8085/#/` :
`${location.origin}/pyTrials` // 8个python子系统都跳这个地址,子系统会通过cookie里的systemId识别展示哪套系统
}
}