From e66c6f116deb262be148badcaf6a593b2d1c013a Mon Sep 17 00:00:00 2001 From: wangqiujuan0808 <578331299@qq.com> Date: Thu, 9 May 2024 11:21:57 +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 | 10 +- src/components/AddPoint copy.vue | 251 ------------------------------- src/components/AddPoint.vue | 43 ++++-- src/components/AddSet.vue | 13 +- src/components/ViewPoint.vue | 102 +++++++++++-- src/components/ViewSet.vue | 85 ++++++++++- src/css/index.scss | 1 - src/views/Model.vue | 33 ++-- src/views/Page.vue | 125 ++++----------- 9 files changed, 256 insertions(+), 407 deletions(-) delete mode 100644 src/components/AddPoint copy.vue diff --git a/src/api/infoApi.js b/src/api/infoApi.js index 3826d00..db7d858 100644 --- a/src/api/infoApi.js +++ b/src/api/infoApi.js @@ -57,7 +57,7 @@ const infoApi = { }, // 更新模板 editMb(params) { - return postPBRequest('/template', params, 55200) + return postPBRequest('/template', params, 53200) }, // 删除模板 delMb(params) { @@ -67,6 +67,10 @@ const infoApi = { addP(params) { return postPBRequest('/template', params, 53110, params.template_name) }, + // 编辑点位 + editP(params) { + return postPBRequest('/template', params, 53210, params.template_name) + }, // 获取模板支持类型 getTemplateType(params) { return postPBRequest('/template', params, 53001) @@ -110,6 +114,10 @@ const infoApi = { addSet(params) { return postPBRequest('/driver', params, 54110, params.driver_name) }, + // 更新设备 + editSet(params) { + return postPBRequest('/driver', params, 54210, params.driver_name) + }, // 获取设备列表 getSet(params) { diff --git a/src/components/AddPoint copy.vue b/src/components/AddPoint copy.vue deleted file mode 100644 index 65f707a..0000000 --- a/src/components/AddPoint copy.vue +++ /dev/null @@ -1,251 +0,0 @@ - - - diff --git a/src/components/AddPoint.vue b/src/components/AddPoint.vue index 57519d1..bf68c88 100644 --- a/src/components/AddPoint.vue +++ b/src/components/AddPoint.vue @@ -2,10 +2,10 @@ - + - + @@ -20,6 +20,17 @@ + + + + + + + + + + +