From 5420b23e615e8ff00773606ba52799d512622ada Mon Sep 17 00:00:00 2001
From: yujialong <479214531@qq.com>
Date: Thu, 10 Aug 2023 10:33:36 +0800
Subject: [PATCH] fix
---
src/api/index.js | 9 +-
src/pages/achievement/info/course.vue | 29 +-
src/pages/achievement/info/project.vue | 19 +-
src/pages/achievement/list/project.vue | 4 +-
src/pages/match/add/set.vue | 1 +
src/pages/match/manage/matchReport.vue | 553 ++++++++++++++-----------
src/pages/product/list/index.vue | 76 +---
src/pages/project/add/index.vue | 4 +-
src/pages/project/list/index.vue | 6 +-
src/pages/screen/index.vue | 3 +
src/pages/station/preview/index.vue | 3 +-
src/setting.js | 2 +-
src/styles/page/station.scss | 3 +
13 files changed, 383 insertions(+), 329 deletions(-)
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] }}
-
@@ -225,7 +225,7 @@ export default {
platformId: 1, // 平台:职站:1 中台:3
founder: +this.$route.query.founder || 2, // 创建人角色(0:系统 1:老师 2:全部)
state: "", // 状态(0:草稿箱 1:已发布)
- permissions: "", // 项目权限(0:练习 1:考核 2:竞赛)
+ permissions: "", // 项目用途(0:练习 1:考核 2:竞赛)
cid: '',
mallId: ''
},
diff --git a/src/pages/screen/index.vue b/src/pages/screen/index.vue
index ed69c0a..f185bf0 100644
--- a/src/pages/screen/index.vue
+++ b/src/pages/screen/index.vue
@@ -475,6 +475,9 @@ export default {
// 活跃度排行榜
this.$post(this.api.activityRanking).then(({ list }) => {
+ list.sort((a, b) => {
+ return +b.activityIndex - +a.activityIndex
+ })
this.actives = list
}).catch(res => { })
this.scrollTable()
diff --git a/src/pages/station/preview/index.vue b/src/pages/station/preview/index.vue
index 0e2bdb4..8f445d4 100644
--- a/src/pages/station/preview/index.vue
+++ b/src/pages/station/preview/index.vue
@@ -1300,7 +1300,8 @@ $height: 700px;
background-color: #fff;
.title {
margin-bottom: 10px;
- font-size: 16px;
+ font-size: 15px;
+ font-weight: 400;
}
.arches {
margin-top: 20px;
diff --git a/src/setting.js b/src/setting.js
index 92e95aa..1f5cb2c 100644
--- a/src/setting.js
+++ b/src/setting.js
@@ -26,7 +26,7 @@ if (isPro) {
uploadURL = `http://121.37.12.51/`
host = "http://121.37.12.51/"; // 中台测试服
// host = 'https://www.occupationlab.com/' // 正式服
- host = "http://192.168.31.217:9000/"; // 榕
+ // host = "http://192.168.31.217:9000/"; // 榕
// host = 'http://192.168.31.51:9000/'; // 赓
}
diff --git a/src/styles/page/station.scss b/src/styles/page/station.scss
index 3af4a59..508a6ee 100644
--- a/src/styles/page/station.scss
+++ b/src/styles/page/station.scss
@@ -26,6 +26,9 @@
color: rgba(0, 0, 0, 0.45);
font-size: 14px;
}
+ /deep/img {
+ max-width: 95%;
+ }
}
.reply-name {
color: #9076ff;