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