From 3a9402395da7bb2abecfed7fbb86e2f2b98ac777 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?home=E5=AD=99?= <1162067978@qq.com> Date: Sat, 16 Nov 2024 11:10:01 +0800 Subject: [PATCH] 1 --- src/api/index.js | 5 + src/components/setParamsControl.vue | 8 +- src/router/index.js | 4 + src/views/page/air-conditioning.vue | 530 ++++++++++++++++++++++++++++ 4 files changed, 546 insertions(+), 1 deletion(-) create mode 100644 src/views/page/air-conditioning.vue diff --git a/src/api/index.js b/src/api/index.js index 4f71700..bdc144c 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -400,6 +400,11 @@ geteqetdata(data) { readskylight(data) { return sendGetRequest(`/readControl/readskylight`, data) }, + //空调 + airconditioner(data) { + return sendGetRequest(`/readControl/airconditioner`, data) + }, + //固有参数 intrinsicParameter(data) { return sendGetRequest(`/readControl/intrinsicParameter`, data) diff --git a/src/components/setParamsControl.vue b/src/components/setParamsControl.vue index 1a1cce4..04be4b2 100644 --- a/src/components/setParamsControl.vue +++ b/src/components/setParamsControl.vue @@ -245,7 +245,13 @@ if (el.child.length) { id: el.id, sort: el.sort, name: el.nickName, list: newList, router: "circulationCan", }); - } else if (el.id == 20) { + } else if (el.id == 28) { + this.routerList.push({ + id: el.id, sort: el.sort, + name: el.nickName, list: [], router: "air-conditioning", + isRouter: true, + }); + }else if (el.id == 20) { this.routerList.push({ id: el.id, sort: el.sort, diff --git a/src/router/index.js b/src/router/index.js index d3999a3..9305eca 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -215,6 +215,10 @@ const routes = [ path: '/wetFan', name: 'wetFan', component: () => import('../views/page/wetFan.vue') + },{ + path: '/air-conditioning', + name: 'air-conditioning', + component: () => import('../views/page/air-conditioning.vue') },{ path: '/LED', name: 'LED', diff --git a/src/views/page/air-conditioning.vue b/src/views/page/air-conditioning.vue new file mode 100644 index 0000000..b724f38 --- /dev/null +++ b/src/views/page/air-conditioning.vue @@ -0,0 +1,530 @@ + + + + \ No newline at end of file -- 2.40.1