From 65d25678dbba8ee60d810a2ba94a0284f7e5f607 Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Fri, 31 Jul 2020 10:37:50 +0800 Subject: [PATCH 1/6] =?UTF-8?q?plc=E7=BD=91=E5=85=B3=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E8=B0=83=E6=95=B4&=E8=80=83=E8=AF=95=E8=AF=95=E5=8D=B7?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/project.js | 8 +++++ src/views/exam/detail/courseDetail.vue | 9 ++++- .../system/deviceManage/editConfigScreen.vue | 36 +++++++++++++++++-- src/views/system/deviceManage/index.vue | 2 +- 4 files changed, 50 insertions(+), 5 deletions(-) diff --git a/src/api/project.js b/src/api/project.js index 5fe727903..d872bb7bc 100644 --- a/src/api/project.js +++ b/src/api/project.js @@ -167,3 +167,11 @@ export function setVrPsdConfig(id, data) { }); } +/** 添加/修改PLC配置 */ +export function setPlcConfig(id, data) { + return request({ + url: `/api/device/${id}/config/plcgateway`, + method: 'put', + data: data + }); +} diff --git a/src/views/exam/detail/courseDetail.vue b/src/views/exam/detail/courseDetail.vue index 5af132ec0..bf2216077 100644 --- a/src/views/exam/detail/courseDetail.vue +++ b/src/views/exam/detail/courseDetail.vue @@ -148,7 +148,14 @@ export default { } this.getExpandList(this.courseModel.id); }).catch(()=>{ - this.$messageBox('获取考试信息失败!'); + this.$alert('获取考试信息失败!', '提示', { + confirmButtonText: '确定', + type: 'error', + center: true, + callback: action => { + this.backLessonList(); + } + }); }); }, buy() { diff --git a/src/views/system/deviceManage/editConfigScreen.vue b/src/views/system/deviceManage/editConfigScreen.vue index b825066d4..e5be944f8 100644 --- a/src/views/system/deviceManage/editConfigScreen.vue +++ b/src/views/system/deviceManage/editConfigScreen.vue @@ -1,7 +1,13 @@