From 25a3320a2f3ebf136a76d9e610471a3daf7ec6e4 Mon Sep 17 00:00:00 2001 From: fhysy <1149505133@qq.com> Date: Tue, 10 Dec 2024 14:07:21 +0800 Subject: [PATCH] =?UTF-8?q?=20fast(=E8=AE=BE=E5=A4=87=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E3=80=81=E8=AE=BE=E5=A4=87=E7=BB=84):=20=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD=EF=BC=88?= =?UTF-8?q?=E9=94=81=E5=8A=9F=E8=83=BD=EF=BC=89=EF=BC=8C=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E8=AE=BE=E5=A4=87=E7=BB=84=E6=9F=A5=E8=AF=A2=E5=92=8C=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/iot/cardNumber.js | 38 +++ src/api/tenant/project.js | 9 + src/views/iot/device/index.vue | 41 ++- src/views/iot/device/profile/details.vue | 10 +- src/views/iot/device/profile/functionWrap.vue | 323 ++++++++++++++++++ src/views/iot/device/profile/info.vue | 7 +- src/views/profile/DeviceDetailsView/index.vue | 9 +- src/views/profile/DeviceDetailsView/info.vue | 7 +- src/views/tenant/device/index.vue | 39 ++- src/views/tenant/device/profile/details.vue | 9 +- src/views/tenant/device/profile/info.vue | 7 +- 11 files changed, 488 insertions(+), 11 deletions(-) create mode 100644 src/api/iot/cardNumber.js create mode 100644 src/views/iot/device/profile/functionWrap.vue diff --git a/src/api/iot/cardNumber.js b/src/api/iot/cardNumber.js new file mode 100644 index 00000000..36e3087c --- /dev/null +++ b/src/api/iot/cardNumber.js @@ -0,0 +1,38 @@ +import request from "@/utils/request"; + +// 获取卡号列表 +export function setCardQuery(data) { + return request({ + url: "/iot/dev/opt/setquery", + method: "post", + data: data + }); +} + + +// 获取卡号列表 +export function getCard(data) { + return request({ + url: "/iot/dev/opt/getcard", + method: "post", + data: data + }); +} + +// 添加卡号 +export function addCard(data) { + return request({ + url: "/iot/dev/opt/addcard", + method: "post", + data: data + }); +} + +// 删除卡号 +export function delCard(data) { + return request({ + url: "/iot/dev/opt/delcard", + method: "post", + data: data + }); +} diff --git a/src/api/tenant/project.js b/src/api/tenant/project.js index f85fd3a5..5743791f 100644 --- a/src/api/tenant/project.js +++ b/src/api/tenant/project.js @@ -17,6 +17,15 @@ export function getProject(projectId) { }); } +// 查询项目详细 +export function getProjectGroupList(query) { + return request({ + url: "/iot/group/list", + method: "get", + params: query + }); +} + // 导出项目 export function exportProject(query) { return request({ diff --git a/src/views/iot/device/index.vue b/src/views/iot/device/index.vue index 81a4e8b2..dd0190c4 100644 --- a/src/views/iot/device/index.vue +++ b/src/views/iot/device/index.vue @@ -1,3 +1,4 @@ + +