diff --git a/src/api/index.js b/src/api/index.js index ddf2c7a..a12652d 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -1,7 +1,7 @@ import Setting from "@/setting"; const host = Setting.apiBaseURL const uploadURL = Setting.upload.apiURL; -const host2 = 'http://192.168.31.52:9000/' +const host2 = 'http://121.37.12.51/' export default { queryToken: `liuwanr/userInfo/queryToken`, @@ -411,9 +411,10 @@ export default { detailsOfGoods: `nakadai/mall/detailsOfGoods`, addLearningRecord: `nakadai/mallCourseLearningRecord/addLearningRecord`, // 课程管理三级联查 - courseDiscipline: `nakadai/nakadai/subject/courseDiscipline`, //课程学科类别 - courseProfessionalClass: `nakadai/nakadai/subject/courseProfessionalClass`, //课程专业类 - courseProfessional: `nakadai/nakadai/subject/courseProfessional`, //课程专业 + courseDiscipline: `nakadai/nakadai/subject/courseDiscipline`, + courseProfessionalClass: `nakadai/nakadai/subject/courseProfessionalClass`, + courseProfessional: `nakadai/nakadai/subject/courseProfessional`, + subjectCategoryCited: `nakadai/nakadai/subject/subjectCategoryCited`, // 营销推广 listMarketing: `nakadai/nakadai/mall/marketing/promotion/pagingQueryList`, diff --git a/src/pages/achievement/info/course.vue b/src/pages/achievement/info/course.vue index 5496c1b..e6d28d0 100644 --- a/src/pages/achievement/info/course.vue +++ b/src/pages/achievement/info/course.vue @@ -48,11 +48,11 @@
错误率最高:{{ max.projectName }} - 参加考试{{ max.numberOfParticipants }}人 | {{ curTab == 1 ? `共${max.itemErrorCount}人做错,` : '' }}错误率{{ max.errorRate }}% + 参加考试{{ max.numberOfParticipants }}人 | {{ curTab == 1 ? `共${max.itemErrorCount || ''}人做错,` : '' }}错误率{{ max.errorRate }}%
错误率最低:{{ min.projectName }} - 参加考试{{ min.numberOfParticipants }}人 | {{ curTab == 1 ? `共${min.itemErrorCount}人做错,` : '' }}错误率{{ min.errorRate }}% + 参加考试{{ min.numberOfParticipants }}人 | {{ curTab == 1 ? `共${min.itemErrorCount || ''}人做错,` : '' }}错误率{{ min.errorRate }}%
@@ -242,24 +306,26 @@ export default { padding: 12px 300px 20px; } .text-right { - text-align: right; + text-align: right; } -code, kbd, samp{ - font-family: 'PingFang SC', "Helvetica Neue", Helvetica, "microsoft yahei", arial, STHeiTi, sans-serif; +code, +kbd, +samp { + font-family: 'PingFang SC', 'Helvetica Neue', Helvetica, 'microsoft yahei', arial, STHeiTi, sans-serif; word-wrap: break-word; white-space: pre-wrap; } -/deep/ pre{ - white-space: pre-wrap; /* css-3 */ - white-space: -moz-pre-wrap; /* Mozilla, since 1999 */ - white-space: pre-wrap; /* Opera 4-6 */ - white-space: -o-pre-wrap; /* Opera 7 */ - word-wrap: break-word; /* Internet Explorer 5.5+ */ - word-break:break-all; - overflow:hidden; +/deep/ pre { + white-space: pre-wrap; /* css-3 */ + white-space: -moz-pre-wrap; /* Mozilla, since 1999 */ + white-space: pre-wrap; /* Opera 4-6 */ + white-space: -o-pre-wrap; /* Opera 7 */ + word-wrap: break-word; /* Internet Explorer 5.5+ */ + word-break: break-all; + overflow: hidden; font-size: 12px; - font-weight:400; - font-family:'PingFang SC', "Helvetica Neue", Helvetica, "microsoft yahei", arial, STHeiTi, sans-serif + font-weight: 400; + font-family: 'PingFang SC', 'Helvetica Neue', Helvetica, 'microsoft yahei', arial, STHeiTi, sans-serif; } .content { padding: 16px 40px; @@ -275,7 +341,7 @@ code, kbd, samp{ } .info { padding: 20px 16px; - border: 1px solid #E1E6F2; + border: 1px solid #e1e6f2; } .l-title { display: flex; @@ -309,7 +375,7 @@ code, kbd, samp{ span { min-width: 150px; padding: 0 10px 3px; - border-bottom: 1px solid #E1E6F2; + border-bottom: 1px solid #e1e6f2; } /deep/.el-input { width: 174px; @@ -318,7 +384,7 @@ code, kbd, samp{ .score-wrap { position: relative; min-width: 150px; - border-bottom: 1px solid #E1E6F2; + border-bottom: 1px solid #e1e6f2; em { position: absolute; top: -12px; @@ -326,7 +392,7 @@ code, kbd, samp{ font-family: din; font-size: 30px; font-weight: 600; - color: #0B1D30; + color: #0b1d30; } img { position: absolute; @@ -334,16 +400,17 @@ code, kbd, samp{ left: 0; } } - /deep/.el-textarea .el-textarea__inner, .pre-wrap { + /deep/.el-textarea .el-textarea__inner, + .pre-wrap { min-height: 72px; padding: 10px 16px; font-size: 14px; color: #333; &.edit { - color: #ABB3C6; - border: 1px solid #CACFDB; + color: #abb3c6; + border: 1px solid #cacfdb; border-radius: 4px; - background-color: #F6F7F9; + background-color: #f6f7f9; } } /deep/ .table th { @@ -355,7 +422,7 @@ code, kbd, samp{ } } .result-pic { - margin: 10px 0; + margin: 10px 0; } @media (max-width: 1650px) { .wrap { diff --git a/src/pages/product/list/index.vue b/src/pages/product/list/index.vue index 5a27f38..3c05ec7 100644 --- a/src/pages/product/list/index.vue +++ b/src/pages/product/list/index.vue @@ -379,46 +379,32 @@ export default { // 获取学科类别 async getSubject () { // 学科类别 - this.$get(this.api.courseDiscipline).then(({ list }) => { - list = list.filter(e => e.level > 1).slice(1) // 被引用了的才需要展示(level>1) + this.$get(this.api.subjectCategoryCited).then(({ list }) => { const result = [] const promises = [] + list = list.filter(e => e.disciplineId != 1) list.map((e, i) => { - promises.push(new Promise((resolve, reject) => { - // 专业类 - this.$get(this.api.courseProfessionalClass, { - disciplineId: e.disciplineId - }).then(({ list }) => { - list = list.filter(e => e.level > 1) - list.map(e => { - e.value = e.professionalClassId - e.label = e.professionalClassName + // 专业类 + e.professionalClasses.map(e => { + e.value = e.professionalClassId + e.label = e.professionalClassName - // 专业 - this.$get(this.api.courseProfessional, { - professionalClassId: e.value - }).then(({ list }) => { - list = list.filter(e => e.level > 1) - list.map(e => { - e.value = e.professionalId - e.label = e.professionalName - }) - if (list.length) e.children = list - resolve() - }).catch(err => { }) - }) - result.push({ - val: [], - disciplineId: e.disciplineId, - name: e.disciplineName, - categoryName: e.disciplineName, - list - }) - }).catch(err => { }) - })) + // 专业 + e.professionals.map(e => { + e.value = e.professionalId + e.label = e.professionalName + }) + e.children = e.professionals + }) + result.push({ + val: [], + disciplineId: e.disciplineId, + name: e.disciplineName, + categoryName: e.disciplineName, + list: e.professionalClasses + }) }) - Promise.all(promises).then(_ => { console.log("🚀 ~ file: index.vue:378 ~ this.$get ~ result:", result) this.category = result @@ -451,28 +437,6 @@ export default { this.professionalId = val[1] || '' this.initData() }, - getProfessionalClassData (id) { - const i = id === 1 ? 1 : 0 - this.$get(this.api.courseProfessionalClass, { - disciplineId: id || this.categoryId - }).then(({ list }) => { - this.professionalClassList = list.slice(i) - if (id) this.professionalCategoryId = list[i].professionalClassId - this.getProfessionalData(list[i].professionalClassId) - }).catch(err => { }) - }, - // 获取专业 - getProfessionalData (id) { - const i = id === 1 ? 1 : 0 - this.$get(this.api.courseProfessional, { - professionalClassId: id || this.professionalCategoryId - }).then(({ list }) => { - this.professionalList = list.slice(i) - if (id) this.professionalId = list[i].professionalId - this.handleCategoryName() - this.initData() - }).catch(err => { }) - }, // 返回学科name handleCategoryName () { if (this.subjectList.length) { diff --git a/src/pages/project/add/index.vue b/src/pages/project/add/index.vue index 60e8ca7..0aac8e1 100644 --- a/src/pages/project/add/index.vue +++ b/src/pages/project/add/index.vue @@ -47,7 +47,7 @@ placeholder="20个字符以内" @blur="projectNameExistis"> - + @@ -302,7 +302,7 @@ export default { projectManage: { founder: 1, // 创建人角色(0、系统 1、老师) projectName: "", // 项目名称 - permissions: 0, // 项目权限(0、练习 1、考核 2、竞赛) + permissions: 0, // 项目用途(0、练习 1、考核 2、竞赛) systemId: this.$store.state.project.lastSystemId, // 系统id mallId: '', hintOpen: 0, // 实验提示是否开启(0开启 1不开启 默认0) diff --git a/src/pages/project/list/index.vue b/src/pages/project/list/index.vue index 6545176..cc40af4 100644 --- a/src/pages/project/list/index.vue +++ b/src/pages/project/list/index.vue @@ -34,7 +34,7 @@
  • - + @@ -99,7 +99,7 @@ {{ founderKeys[scope.row.founder] }} -