diff --git a/src/api/index.js b/src/api/index.js index f8d421d..7916ead 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -433,6 +433,10 @@ fanwetcurtain(data) { readfilllight(data) { return sendGetRequest(`/readControl/readfilllight`, data) }, +//CO2补气 +co2replenishment(data) { + return sendGetRequest(`/readControl/co2replenishment`, data) +}, //内保温 interiorthermalinsulation(data) { return sendGetRequest(`/readControl/interiorthermalinsulation`, data) diff --git a/src/components/setParamsControl.vue b/src/components/setParamsControl.vue index ad2ff3c..f05bf9c 100644 --- a/src/components/setParamsControl.vue +++ b/src/components/setParamsControl.vue @@ -9,25 +9,49 @@ @@ -52,9 +76,8 @@ export default { }, "$store.state.equipmentIndex"(newName, oldName) { var store = this.$store.state; - var item = store.equipmentList[store.equipmentIndex - 1] + var item = store.equipmentList[store.equipmentIndex - 1]; if (item.deviceName == 10 || item.deviceName == 30) { - this.dataInit(); } }, @@ -67,246 +90,450 @@ export default { methods: { countData(data) { if (data) { - return (data - 400) / 10 + return (data - 400) / 10; } else { - return 0 + return 0; } }, // 计算展示值 计算公式 x/10 countData10(data) { if (data) { - return data / 10 + return data / 10; } else { - return 0 + return 0; } }, toNewList(list, list2) { let newList = list.map((item, index) => { // 从第二个数组中获取对应的 nickName 并赋值给 name const match = list2[index]; - return match ? { ...item, name: match.nickName ? match.nickName : item.name } : item; + return match + ? { ...item, name: match.nickName ? match.nickName : item.name } + : item; }); - return newList + return newList; }, dataInit() { - const that = this + const that = this; this.loading = this.$loading({ lock: true, - text: '加载中', - spinner: 'el-icon-loading', - background: 'rgba(0, 0, 0, 0.7)' + text: "加载中", + spinner: "el-icon-loading", + background: "rgba(0, 0, 0, 0.7)", }); var store = this.$store.state; var data = store.equipmentList[store.equipmentIndex - 1].deviceId; this.api.getcontrol_cpermission(data).then((res) => { - this.routerList = []; this.purview = res.data.data; this.purview.forEach((el, index) => { - if(el.state==1){ - return + if (el.state == 1) { + return; } if (el.id == 1) { var list = [ - { name: "目标温度", list: [], router: "targetTemperature", isRouter: true, index: 1 }, - { name: "目标湿度", list: [], router: "targetHumidity", isRouter: true, index: 2 }, - { name: "目标CO2", list: [], router: "targetCo2", isRouter: true, index: 3 } - ] - let newList - if (el.child.length) { - newList = that.toNewList(list, el.child) - } else { - newList = list - } - this.routerList.push( { - id: el.id, sort: el.sort, - name: el.nickName, - router: "targetTemperature", - list: newList, - }, - ); - } else if (el.id == 3) { - this.routerList.push( - { - id: el.id, sort: el.sort, - name: el.nickName, - router: "alarmSettings", + name: "目标温度", list: [], - isRouter: true + router: "targetTemperature", + isRouter: true, + index: 1, }, - ); - } else if (el.id == 19) { - var list = [ - { name: '通风窗1', status: -1, router: 'sunroofControl', index: 1 }, - { name: '通风窗2', status: -1, router: 'sunroofControl', index: 2 }, - { name: '通风窗3', status: -1, router: 'sunroofControl', index: 3 }, - { name: '通风窗4', status: -1, router: 'sunroofControl', index: 4 }, - { name: '通风窗5', status: -1, router: 'sunroofControl', index: 5 }, - { name: '通风窗6', status: -1, router: 'sunroofControl', index: 6 }, - ] - let newList + { + name: "目标湿度", + list: [], + router: "targetHumidity", + isRouter: true, + index: 2, + }, + { + name: "目标CO2", + list: [], + router: "targetCo2", + isRouter: true, + index: 3, + }, + ]; + let newList; if (el.child.length) { - newList = that.toNewList(list, el.child) + newList = that.toNewList(list, el.child); } else { - newList = list + newList = list; } this.routerList.push({ - id: el.id, sort: el.sort, - name: el.nickName, list: newList, router: "sunroofControl", + id: el.id, + sort: el.sort, + name: el.nickName, + router: "targetTemperature", + list: newList, + }); + } else if (el.id == 3) { + this.routerList.push({ + id: el.id, + sort: el.sort, + name: el.nickName, + router: "alarmSettings", + list: [], + isRouter: true, + }); + } else if (el.id == 19) { + var list = [ + { + name: "通风窗1", + status: -1, + router: "sunroofControl", + index: 1, + }, + { + name: "通风窗2", + status: -1, + router: "sunroofControl", + index: 2, + }, + { + name: "通风窗3", + status: -1, + router: "sunroofControl", + index: 3, + }, + { + name: "通风窗4", + status: -1, + router: "sunroofControl", + index: 4, + }, + { + name: "通风窗5", + status: -1, + router: "sunroofControl", + index: 5, + }, + { + name: "通风窗6", + status: -1, + router: "sunroofControl", + index: 6, + }, + ]; + let newList; + if (el.child.length) { + newList = that.toNewList(list, el.child); + } else { + newList = list; + } + this.routerList.push({ + id: el.id, + sort: el.sort, + name: el.nickName, + list: newList, + router: "sunroofControl", }); } else if (el.id == 25) { var list = [ - { name: '外遮阳1', status: -1, router: 'outsizeSunshade', index: 1 }, - { name: '外遮阳2', status: -1, router: 'outsizeSunshade', index: 2 }, - ] - let newList + { + name: "外遮阳1", + status: -1, + router: "outsizeSunshade", + index: 1, + }, + { + name: "外遮阳2", + status: -1, + router: "outsizeSunshade", + index: 2, + }, + ]; + let newList; if (el.child.length) { - newList = that.toNewList(list, el.child) + newList = that.toNewList(list, el.child); } else { - newList = list + newList = list; } this.routerList.push({ - id: el.id, sort: el.sort, - name: el.nickName, list: newList, router: "outsizeSunshade", + id: el.id, + sort: el.sort, + name: el.nickName, + list: newList, + router: "outsizeSunshade", }); } else if (el.id == 24) { var list = [ - { name: '内遮阳1', status: -1, router: 'insizeSunshade', index: 1 }, - { name: '内遮阳2', status: -1, router: 'insizeSunshade', index: 2 }, - ] - let newList + { + name: "内遮阳1", + status: -1, + router: "insizeSunshade", + index: 1, + }, + { + name: "内遮阳2", + status: -1, + router: "insizeSunshade", + index: 2, + }, + ]; + let newList; if (el.child.length) { - newList = that.toNewList(list, el.child) + newList = that.toNewList(list, el.child); } else { - newList = list + newList = list; } this.routerList.push({ - id: el.id, sort: el.sort, - name: el.nickName, list: newList, router: "insizeSunshade", + id: el.id, + sort: el.sort, + name: el.nickName, + list: newList, + router: "insizeSunshade", }); } else if (el.id == 27) { var list = [ - { name: '内保温1', status: -1, router: 'internalInsulation', index: 1 }, - { name: '内保温2', status: -1, router: 'internalInsulation', index: 2 }, - ] - let newList + { + name: "内保温1", + status: -1, + router: "internalInsulation", + index: 1, + }, + { + name: "内保温2", + status: -1, + router: "internalInsulation", + index: 2, + }, + ]; + let newList; if (el.child.length) { - newList = that.toNewList(list, el.child) + newList = that.toNewList(list, el.child); } else { - newList = list + newList = list; } this.routerList.push({ - id: el.id, sort: el.sort, - name: el.nickName, list: newList, router: "internalInsulation", + id: el.id, + sort: el.sort, + name: el.nickName, + list: newList, + router: "internalInsulation", }); } else if (el.id == 29) { var list = [ - { name: '立面保温1', status: -1, router: 'facadeInsulation', index: 1 }, - { name: '立面保温2', status: -1, router: 'facadeInsulation', index: 2 }, - { name: '立面保温3', status: -1, router: 'facadeInsulation', index: 3 }, - { name: '立面保温4', status: -1, router: 'facadeInsulation', index: 4 }, - ] - let newList + { + name: "立面保温1", + status: -1, + router: "facadeInsulation", + index: 1, + }, + { + name: "立面保温2", + status: -1, + router: "facadeInsulation", + index: 2, + }, + { + name: "立面保温3", + status: -1, + router: "facadeInsulation", + index: 3, + }, + { + name: "立面保温4", + status: -1, + router: "facadeInsulation", + index: 4, + }, + ]; + let newList; if (el.child.length) { - newList = that.toNewList(list, el.child) + newList = that.toNewList(list, el.child); } else { - newList = list + newList = list; } this.routerList.push({ - id: el.id, sort: el.sort, - name: el.nickName, list: newList, router: "facadeInsulation", + id: el.id, + sort: el.sort, + name: el.nickName, + list: newList, + router: "facadeInsulation", }); } else if (el.id == 26) { var list = [ - { name: '风机', status: -1, router: 'wetFan', index: 1 }, - { name: '湿帘泵', status: -1, router: 'wetFan', index: 2 }, - { name: '湿帘外翻窗', status: -1, router: 'wetFan', index: 3 }, - ] -let newList -if (el.child.length) { - newList=that.toNewList(list,el.child) -} else { - newList = list -} + { name: "风机", status: -1, router: "wetFan", index: 1 }, + { name: "湿帘泵", status: -1, router: "wetFan", index: 2 }, + { name: "湿帘外翻窗", status: -1, router: "wetFan", index: 3 }, + ]; + let newList; + if (el.child.length) { + newList = that.toNewList(list, el.child); + } else { + newList = list; + } this.routerList.push({ - id: el.id, sort: el.sort, name: el.nickName, list: newList, router: "wetFan" + id: el.id, + sort: el.sort, + name: el.nickName, + list: newList, + router: "wetFan", }); } else if (el.id == 21) { var list = [ - { name: '环流风扇1', status: -1, router: 'circulationCan', index: 1 }, - { name: '环流风扇2', status: -1, router: 'circulationCan', index: 2 }, - ] -let newList -if (el.child.length) { - newList=that.toNewList(list,el.child) -} else { - newList = list -} + { + name: "环流风扇1", + status: -1, + router: "circulationCan", + index: 1, + }, + { + name: "环流风扇2", + status: -1, + router: "circulationCan", + index: 2, + }, + ]; + let newList; + if (el.child.length) { + newList = that.toNewList(list, el.child); + } else { + newList = list; + } this.routerList.push({ - id: el.id, sort: el.sort, - name: el.nickName, list: newList, router: "circulationCan", + id: el.id, + sort: el.sort, + name: el.nickName, + list: newList, + router: "circulationCan", }); } else if (el.id == 28) { this.routerList.push({ - id: el.id, sort: el.sort, - name: el.nickName, list: [], router: "air-conditioning", + id: el.id, + sort: el.sort, + name: el.nickName, + list: [], + router: "air-conditioning", isRouter: true, }); - }else if (el.id == 20) { - + } else if (el.id == 20) { this.routerList.push({ - id: el.id, sort: el.sort, - name: el.nickName, list: [], router: "LED", + id: el.id, + sort: el.sort, + name: el.nickName, + list: [], + router: "LED", isRouter: true, }); } else if (el.id == 23) { var list = [ - { name: '高压微雾1', status: -1, router: 'coercionMist', index: 1 }, - { name: '高压微雾2', status: -1, router: 'coercionMist', index: 2 }, - ] -let newList -if (el.child.length) { - newList=that.toNewList(list,el.child) -} else { - newList = list -} + { + name: "高压微雾1", + status: -1, + router: "coercionMist", + index: 1, + }, + { + name: "高压微雾2", + status: -1, + router: "coercionMist", + index: 2, + }, + ]; + let newList; + if (el.child.length) { + newList = that.toNewList(list, el.child); + } else { + newList = list; + } this.routerList.push({ - id: el.id, sort: el.sort, - name: el.nickName, list: newList, router: "coercionMist" + id: el.id, + sort: el.sort, + name: el.nickName, + list: newList, + router: "coercionMist", }); - } else if (el.id == 11 || el.id == 12 || el.id == 13 || el.id == 14 || el.id == 15 || el.id == 16 || el.id == 17 || el.id == 18) { - if (!this.routerList.some(item => item.router === "electromagneticControl")) { + } else if ( + el.id == 11 || + el.id == 12 || + el.id == 13 || + el.id == 14 || + el.id == 15 || + el.id == 16 || + el.id == 17 || + el.id == 18 + ) { + if ( + !this.routerList.some( + (item) => item.router === "electromagneticControl" + ) + ) { this.routerList.push({ - id: el.id, sort: el.sort, - name: '电磁阀', + id: el.id, + sort: el.sort, + name: "电磁阀", list: [], - router: "electromagneticControl" + router: "electromagneticControl", }); } - let targetObject = this.routerList.find(item => item.router === 'electromagneticControl'); + let targetObject = this.routerList.find( + (item) => item.router === "electromagneticControl" + ); if (el.id == 11) { - targetObject.list.push({ name: el.nickName, status: -1, router: 'electromagneticControl', index: 1 }); + targetObject.list.push({ + name: el.nickName, + status: -1, + router: "electromagneticControl", + index: 1, + }); } else if (el.id == 12) { - targetObject.list.push({ name: el.nickName, status: -1, router: 'electromagneticControl', index: 2 }); + targetObject.list.push({ + name: el.nickName, + status: -1, + router: "electromagneticControl", + index: 2, + }); } else if (el.id == 13) { - targetObject.list.push({ name: el.nickName, status: -1, router: 'electromagneticControl', index: 3 }); + targetObject.list.push({ + name: el.nickName, + status: -1, + router: "electromagneticControl", + index: 3, + }); } else if (el.id == 14) { - targetObject.list.push({ name: el.nickName, status: -1, router: 'electromagneticControl', index: 4 }); + targetObject.list.push({ + name: el.nickName, + status: -1, + router: "electromagneticControl", + index: 4, + }); } else if (el.id == 15) { - targetObject.list.push({ name: el.nickName, status: -1, router: 'electromagneticControl', index: 5 }); + targetObject.list.push({ + name: el.nickName, + status: -1, + router: "electromagneticControl", + index: 5, + }); } else if (el.id == 16) { - targetObject.list.push({ name: el.nickName, status: -1, router: 'electromagneticControl', index: 6 }); + targetObject.list.push({ + name: el.nickName, + status: -1, + router: "electromagneticControl", + index: 6, + }); } else if (el.id == 17) { - targetObject.list.push({ name: el.nickName, status: -1, router: 'electromagneticControl', index: 7 }); + targetObject.list.push({ + name: el.nickName, + status: -1, + router: "electromagneticControl", + index: 7, + }); } else if (el.id == 18) { - targetObject.list.push({ name: el.nickName, status: -1, router: 'electromagneticControl', index: 8 }); + targetObject.list.push({ + name: el.nickName, + status: -1, + router: "electromagneticControl", + index: 8, + }); } } else if (el.id == 5) { this.routerList.push({ - id: el.id, sort: el.sort, + id: el.id, + sort: el.sort, name: el.nickName, list: [], router: "sensorSet-con", @@ -314,7 +541,8 @@ if (el.child.length) { }); } else if (el.id == 6) { this.routerList.push({ - id: el.id, sort: el.sort, + id: el.id, + sort: el.sort, name: el.nickName, list: [], router: "synthesis-con", @@ -322,33 +550,88 @@ if (el.child.length) { }); } else if (el.id == 7) { this.routerList.push({ - id: el.id, sort: el.sort, + id: el.id, + sort: el.sort, name: el.nickName, list: [], router: "upload-con", isRouter: true, }); } else if (el.id == 2) { - this.routerList.push({ id: el.id, sort: el.sort, name: el.nickName, list: [], router: "forceOutput", isRouter: true }); + this.routerList.push({ + id: el.id, + sort: el.sort, + name: el.nickName, + list: [], + router: "forceOutput", + isRouter: true, + }); } else if (el.id == 4) { - this.routerList.push({ id: el.id, sort: el.sort, name: el.nickName, list: [], router: "intrinsicParameter", isRouter: true }); + this.routerList.push({ + id: el.id, + sort: el.sort, + name: el.nickName, + list: [], + router: "intrinsicParameter", + isRouter: true, + }); } else if (el.id == 22) { - this.routerList.push({ name: el.nickName, list: [], router: "parameterSet", isRouter: true }); + this.routerList.push({ + name: el.nickName, + list: [], + router: "parameterSet", + isRouter: true, + }); } else if (el.id == 8) { - this.routerList.push( - { id: el.id, sort: el.sort, name: "加热水泵", list: [], router: "waterPump", isRouter: true }, { - id: el.id, sort: el.sort, + id: el.id, + sort: el.sort, + name: "加热水泵", + list: [], + router: "waterPump", + isRouter: true, + }, + { + id: el.id, + sort: el.sort, name: "地热风机", list: [], router: "geothermalFan", isRouter: true, }, - { id: el.id, sort: el.sort, name: "上风口", list: [], router: "uptake", isRouter: true }, - { id: el.id, sort: el.sort, name: "下风口", list: [], router: "downtake", isRouter: true }, - { id: el.id, sort: el.sort, name: "卷被", list: [], router: "rollByRoll", isRouter: true }, - { id: el.id, sort: el.sort, name: "除雪", list: [], router: "snowRemoval", isRouter: true } + { + id: el.id, + sort: el.sort, + name: "上风口", + list: [], + router: "uptake", + isRouter: true, + }, + { + id: el.id, + sort: el.sort, + name: "下风口", + list: [], + router: "downtake", + isRouter: true, + }, + { + id: el.id, + sort: el.sort, + name: "卷被", + list: [], + router: "rollByRoll", + isRouter: true, + }, + { + id: el.id, + sort: el.sort, + name: "除雪", + list: [], + router: "snowRemoval", + isRouter: true, + } ); if ( this.routerNow != "/waterPump" && @@ -360,50 +643,76 @@ if (el.child.length) { ) { this.loading = this.$loading({ lock: true, - text: '加载中', - spinner: 'el-icon-loading', - background: 'rgba(0, 0, 0, 0.7)' + text: "加载中", + spinner: "el-icon-loading", + background: "rgba(0, 0, 0, 0.7)", }); //调取数据 var store = this.$store.state; var data = { - deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId, + deviceId: + store.equipmentList[store.equipmentIndex - 1].deviceId, }; this.api.readControl_fiveControl(data).then((res) => { - this.loading.close() - store.ControlData = res.data.data + this.loading.close(); + store.ControlData = res.data.data; //加热水泵数据处理waterPump - store.ControlData['21521'] = this.countData(store.ControlData['21521']) - store.ControlData['21522'] = this.countData10(store.ControlData['21522']) - store.ControlData['21523'] = this.countData(store.ControlData['21523']) - store.ControlData['21524'] = this.countData(store.ControlData['21524']) + store.ControlData["21521"] = this.countData( + store.ControlData["21521"] + ); + store.ControlData["21522"] = this.countData10( + store.ControlData["21522"] + ); + store.ControlData["21523"] = this.countData( + store.ControlData["21523"] + ); + store.ControlData["21524"] = this.countData( + store.ControlData["21524"] + ); //下风口downtake - store.ControlData["21544"] = this.countData(store.ControlData["21544"]); + store.ControlData["21544"] = this.countData( + store.ControlData["21544"] + ); //地热风机geothermalFan - store.ControlData['21527'] = this.countData(store.ControlData['21527']) - store.ControlData['21528'] = this.countData10(store.ControlData['21528']) + store.ControlData["21527"] = this.countData( + store.ControlData["21527"] + ); + store.ControlData["21528"] = this.countData10( + store.ControlData["21528"] + ); //卷被rollByRoll - store.ControlData['21552'] = this.countData(store.ControlData['21552']) - store.ControlData['21550'] = this.countData10(store.ControlData['21550']) + store.ControlData["21552"] = this.countData( + store.ControlData["21552"] + ); + store.ControlData["21550"] = this.countData10( + store.ControlData["21550"] + ); //除雪snowRemoval - store.ControlData['21544'] = this.countData(store.ControlData['21544']) + store.ControlData["21544"] = this.countData( + store.ControlData["21544"] + ); //上风口 - store.ControlData['21532'] = this.countData(store.ControlData['21532']) - store.ControlData['21533'] = this.countData10(store.ControlData['21533']) - store.ControlData['21562'] = this.countData10(store.ControlData['21562']) - - + store.ControlData["21532"] = this.countData( + store.ControlData["21532"] + ); + store.ControlData["21533"] = this.countData10( + store.ControlData["21533"] + ); + store.ControlData["21562"] = this.countData10( + store.ControlData["21562"] + ); }); } } else if (el.id == 9) { this.routerList.push( { - id: el.id, sort: el.sort, + id: el.id, + sort: el.sort, name: "日光温室特殊参数(山地型温室)", router: "skylight", list: [ @@ -414,7 +723,8 @@ if (el.child.length) { ], }, { - id: el.id, sort: el.sort, + id: el.id, + sort: el.sort, name: "风机(山地型温室)", router: "fan", list: [ @@ -426,25 +736,45 @@ if (el.child.length) { ], } ); + } else if (el.id == 30) { + var list = [ + { name: "CO2补气", status: -1, router: "CO2", index: 1 }, + { name: "CO2补气", status: -1, router: "CO2", index: 2 }, + ]; + let newList; + if (el.child.length) { + newList = that.toNewList(list, el.child); + } else { + newList = list; + } + + this.routerList.push({ + id: el.id, + sort: el.sort, + name: el.nickName, + list: newList, + router: "CO2", + }); } - }) + }); // this.routerList.sort((a, b) => a.sort - b.sort); - this.routerList.push({ name: '系统参数配置', list: [], router: 'systemSet-con', isRouter: true, },); + this.routerList.push({ + name: "系统参数配置", + list: [], + router: "systemSet-con", + isRouter: true, + }); - var router = this.$route.query + var router = this.$route.query; if (router.token && router.userid) { - return + return; } if (this.$route.name == this.routerList[0].router) { - return + return; } this.$router.push({ path: `/${this.routerList[0].router}` }); - - }); - - }, //去首页 toHome(index) { @@ -479,18 +809,24 @@ if (el.child.length) { // } else { if (item.index) { - if (item.router == this.routerNow && item.index == this.$route.query.id) { - return + if ( + item.router == this.routerNow && + item.index == this.$route.query.id + ) { + return; } - this.$router.push({ path: `/${item.router}`,query:{id:item.index,name:item.name} }) + this.$router.push({ + path: `/${item.router}`, + query: { id: item.index, name: item.name }, + }); - return + return; } if (item.router == this.routerNow) { - return + return; } - this.$router.push({ name: item.router,query:{name:item.name} }); + this.$router.push({ name: item.router, query: { name: item.name } }); } } }, @@ -524,7 +860,8 @@ if (el.child.length) { } .el-collapse-item { - &.active {} + &.active { + } } .no-list { @@ -545,7 +882,7 @@ if (el.child.length) { padding-left: 10px; cursor: pointer; - >div { + > div { width: 260px; height: 40px; // background: rgba(255, 255, 255, 0.1); diff --git a/src/router/index.js b/src/router/index.js index 9305eca..0ba6ec9 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -147,6 +147,10 @@ const routes = [ path: '/fan', name: 'fan', component: () => import('../views/page/fan.vue') + },{ + path: '/CO2', + name: 'CO2', + component: () => import('../views/page/CO2.vue') },{ path: '/skylight', name: 'skylight', diff --git a/src/views/page/CO2.vue b/src/views/page/CO2.vue new file mode 100644 index 0000000..a16ebf1 --- /dev/null +++ b/src/views/page/CO2.vue @@ -0,0 +1,535 @@ + + + \ No newline at end of file diff --git a/src/views/page/parameterSet.vue b/src/views/page/parameterSet.vue index 4091dcf..7e936df 100644 --- a/src/views/page/parameterSet.vue +++ b/src/views/page/parameterSet.vue @@ -1,987 +1,1839 @@ \ No newline at end of file diff --git a/src/views/page/realTime.vue b/src/views/page/realTime.vue index bed7bda..ce7d298 100644 --- a/src/views/page/realTime.vue +++ b/src/views/page/realTime.vue @@ -236,6 +236,66 @@
当前设备无效
+ +
+
+
+
+ + + 自动控制 +
+
+ + + 手机控制 +
+
+
+
+ + + 加热模式 +
+
+ + + 制冷模式 +
+
+
+
+ + + 1#通道 +
+
+ + + 2#通道 +
+
+ + + 3#通道 +
+
+ + + 4#通道 +
+
+
+
+
+ +
当前设备无效
+
+
@@ -274,7 +334,7 @@ {{ item.index == 1 ? '开启' : '关闭' }}
-
+
计算结果
{{ item.count }}
@@ -810,7 +870,7 @@ export default { } else { return '' } - } else if (item.type == 4) { + } else if (item.type == 4||item.type == 17) { //地热风机 if (index == 0) { return require('../../assets/img/fan-off.png') @@ -1636,7 +1696,15 @@ export default { statusList.push(statusData) } else if (el.id ==38) { //空调 - var statusData = { name: el.nickName, type:11, id: el.id, open: res.data.data['1160'], progress: 0, index: res.data.data['1161'], count: res.data.data['1162'] } + var statusData = { name: el.nickName, type:17, id: el.id, open: res.data.data['1160'], progress: 0, index: res.data.data['1161'], count: res.data.data['1162'] } + statusList.push(statusData) + } else if (el.id ==40||el.id ==41) { + //CO2补气 + var statusData = { name: el.nickName, type:11, id: el.id, open: res.data.data[(1178 + ((el.id - 40) * 2))], progress: 0, index: res.data.data[(1179 + ((el.id - 40) * 2))], count: 0 } + statusList.push(statusData) + }else if (el.id ==39) { + //CO2补气 + var statusData = { name: el.nickName, type:18, id: el.id, open: res.data.data['1175'], progress: 0, index: res.data.data['1177'], count: res.data.data['1176'] } statusList.push(statusData) } diff --git a/src/views/page/wetFan.vue b/src/views/page/wetFan.vue index c01a926..192ba50 100644 --- a/src/views/page/wetFan.vue +++ b/src/views/page/wetFan.vue @@ -118,16 +118,16 @@ 时,跳过通风窗直接启动风机。
- +