From 3ebf81ed6c5a750e7e33fd6bf52f986cd31b1a87 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Tue, 4 Jul 2023 14:55:18 +0800 Subject: [PATCH] fix --- src/api/index.js | 1 + src/layouts/header/index.vue | 4 +- src/pages/achievement/list/index.vue | 724 ++++++++++++++------------ src/pages/achievement/teach/index.vue | 22 +- src/pages/assessment/list/index.vue | 2 +- src/pages/expSystem/list/index.vue | 9 +- src/pages/match/add/step3.vue | 504 ++++++++---------- src/pages/station/list/index.vue | 2 +- src/pages/station/preview/index.vue | 13 +- 9 files changed, 627 insertions(+), 654 deletions(-) diff --git a/src/api/index.js b/src/api/index.js index dd8fdfe..8948ede 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -411,6 +411,7 @@ export default { listMarketing: `nakadai/nakadai/mall/marketing/promotion/pagingQueryList`, // 实验系统管理 + getSystemByCustomers: `nakadai/nakadai/customer/getSystemByCustomers`, getAllService: `nakadai/nakadai/serviceConfiguration/getAllService`, schoolModelClassification: `nakadai/nakadai/model/reference/schoolModelClassification`, saveAcademyModelDemo: `nakadai/nakadai/model/reference/demo/saveAcademyModelDemo`, diff --git a/src/layouts/header/index.vue b/src/layouts/header/index.vue index 6b863d0..86c5017 100644 --- a/src/layouts/header/index.vue +++ b/src/layouts/header/index.vue @@ -153,8 +153,8 @@ export default { }, initSocket ({ id, account }) { // 实例化socket - // this.socket = new WebSocket(`ws://${Setting.isDev ? '192.168.31.51' : location.host}:9100/nakadai/websocket/${id}/${account}`) - this.socket = new WebSocket(`ws://121.37.12.51:9100/nakadai/websocket/${id}/${account}`) + this.socket = new WebSocket(`wss://${Setting.isDev ? '192.168.31.51' : location.host}/nakadai/websocket/${id}/${account}`) + // this.socket = new WebSocket(`ws://121.37.12.51:9100/nakadai/websocket/${id}/${account}`) // 监听socket连接 this.socket.onopen = this.open; // 监听socket错误信息 diff --git a/src/pages/achievement/list/index.vue b/src/pages/achievement/list/index.vue index a71d92e..d3cda3d 100644 --- a/src/pages/achievement/list/index.vue +++ b/src/pages/achievement/list/index.vue @@ -1,353 +1,409 @@ diff --git a/src/pages/achievement/teach/index.vue b/src/pages/achievement/teach/index.vue index 6243c38..94e2361 100644 --- a/src/pages/achievement/teach/index.vue +++ b/src/pages/achievement/teach/index.vue @@ -48,11 +48,11 @@
错误率最高:{{ max.judgmentName }} - 参加考试{{ max.peopleNum }}人 | 共{{ max.errorTotal }}人做错,错误率{{ max.errorRate }}% + 参加考试{{ permissions ? max.peopleNum : peopleNum }}人 | {{ permissions ? `共${max.errorTotal}人做错,` : '' }}错误率{{ max.errorRate }}%
错误率最低:{{ min.judgmentName }} - 参加考试{{ min.peopleNum }}人 | 共{{ min.errorTotal }}人做错,错误率{{ min.errorRate }}% + 参加考试{{ permissions ? min.peopleNum : peopleNum }}人 | {{ permissions ? `共${min.errorTotal}人做错,` : '' }}错误率{{ min.errorRate }}%
diff --git a/src/pages/expSystem/list/index.vue b/src/pages/expSystem/list/index.vue index 9f2e840..f7506fd 100644 --- a/src/pages/expSystem/list/index.vue +++ b/src/pages/expSystem/list/index.vue @@ -79,7 +79,6 @@ import Setting from "@/setting"; export default { data () { return { - systemAttribution: "", systemType: "", systemSearch: "", searchTimer: null, @@ -129,16 +128,14 @@ export default { }, getData () { let data = { - belong: this.systemAttribution, type: this.systemType, systemName: this.systemSearch, pageNum: this.pageNo, pageSize: this.pageSize, - supplierId: '' }; - this.$post(this.api.getAllService, data).then(res => { - this.systemData = res.serviceList.records; - this.totals = res.serviceList.total; + this.$post(this.api.getSystemByCustomers, data).then(({ data }) => { + this.systemData = data.records; + this.totals = data.total; }).catch(res => { }); }, diff --git a/src/pages/match/add/step3.vue b/src/pages/match/add/step3.vue index 7506d06..710566e 100644 --- a/src/pages/match/add/step3.vue +++ b/src/pages/match/add/step3.vue @@ -1,158 +1,146 @@ \ No newline at end of file diff --git a/src/pages/station/list/index.vue b/src/pages/station/list/index.vue index 0cc26a6..961f4ce 100644 --- a/src/pages/station/list/index.vue +++ b/src/pages/station/list/index.vue @@ -91,7 +91,7 @@ export default { }); }, goPreview (item) { - this.$router.push(`/station/preview?courseId=${item.cid}&curriculumName=${item.curriculumName}&mallId=${item.mallId || ''}&admin=1`); + this.$router.push(`/station/preview?courseId=${item.cid}&curriculumName=${item.goodsName}&mallId=${item.mallId || ''}&admin=1`); }, // tab切换 tabChange (item) { diff --git a/src/pages/station/preview/index.vue b/src/pages/station/preview/index.vue index 8399021..dd68c5f 100644 --- a/src/pages/station/preview/index.vue +++ b/src/pages/station/preview/index.vue @@ -250,7 +250,8 @@
- + @@ -292,7 +293,7 @@
{{reply.createUsername}}
-