From dbddfcb547d3992d3f882145631eb5ad1ea7d145 Mon Sep 17 00:00:00 2001
From: wangqiujuan0808 <578331299@qq.com>
Date: Wed, 23 Oct 2024 00:09:00 +0800
Subject: [PATCH] =?UTF-8?q?=E3=80=82=E3=80=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/infoApi.js | 32 +----------------
src/components/PzSet.vue | 44 ++++++++++++------------
src/views/Data.vue | 13 +++++--
src/views/Model.vue | 10 +++---
src/views/Page.vue | 74 +++++++++++++++++-----------------------
5 files changed, 68 insertions(+), 105 deletions(-)
diff --git a/src/api/infoApi.js b/src/api/infoApi.js
index 5d01ff2..31b926d 100644
--- a/src/api/infoApi.js
+++ b/src/api/infoApi.js
@@ -17,36 +17,6 @@ const infoApi = {
reboot() {
return postPBRequest("/system", null, 57202);
},
- // // 透传列表
- // getTc(params) {
- // return getRequest('/tc', params)
- // },
- // // 获取透传类型
- // getSupport(params) {
- // return getRequest('/tc/support', params)
- // },
- // // 获取可用串口列表
- // getFree(params) {
- // return getRequest('/com/free', params)
- // },
-
- // // 获取所有串口列表api/com
- // getCom(params) {
- // return getRequest('/com', params)
- // },
-
- // saveTx(params) {
- // return postJsonRequest("/tx", params);
- // },
-
- // // 透传服务启停
- // stopTc(params) {
- // return putRequest("/tc", params);
- // },
- // // 透传服务删除
- // delTc(params) {
- // return deleteRequest("/tc", params);
- // },
// 模板列表
getMb(params) {
return postPBRequest('/template', params, 53000)
@@ -170,7 +140,7 @@ const infoApi = {
},
// 获取com
getCom(params) {
- return postPBRequest("/info", null, 51001, params.name);
+ return postPBRequest("/system", null, 57002, params.name);
},
// 实时数据
// 获取驱动
diff --git a/src/components/PzSet.vue b/src/components/PzSet.vue
index 293b2b0..62551f2 100644
--- a/src/components/PzSet.vue
+++ b/src/components/PzSet.vue
@@ -44,7 +44,7 @@