增加标准控制器
parent
e9c7d030cf
commit
57cae4997b
|
@ -65,7 +65,7 @@
|
||||||
<view class="title-left">
|
<view class="title-left">
|
||||||
{{ fanStatus.name }}
|
{{ fanStatus.name }}
|
||||||
</view>
|
</view>
|
||||||
<view class="title-right" @click="fanmodelShow=true">
|
<view class="title-right" @click="fanmodelHander">
|
||||||
设置
|
设置
|
||||||
<image src="../../static/set-arrow.png" mode=""></image>
|
<image src="../../static/set-arrow.png" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
|
@ -118,6 +118,7 @@
|
||||||
<span>当前设备无效</span>
|
<span>当前设备无效</span>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<template v-for="item, index in statusList">
|
<template v-for="item, index in statusList">
|
||||||
<view class="lishui-item" v-if="item.open != 0" :key="index">
|
<view class="lishui-item" v-if="item.open != 0" :key="index">
|
||||||
<view class="lishui-title">
|
<view class="lishui-title">
|
||||||
|
@ -201,7 +202,7 @@
|
||||||
<view class="title-left">
|
<view class="title-left">
|
||||||
补光灯
|
补光灯
|
||||||
</view>
|
</view>
|
||||||
<view class="title-right" @click="supplementLightShow=true">
|
<view class="title-right" @click="supplementLightHander">
|
||||||
设置
|
设置
|
||||||
<image src="../../static/set-arrow.png" mode=""></image>
|
<image src="../../static/set-arrow.png" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
|
@ -321,6 +322,68 @@
|
||||||
</template>
|
</template>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
<!-- 标准风机 -->
|
||||||
|
<view class="content" v-if="purviewList.indexOf('26')!=-1">
|
||||||
|
<view class="lishui-item" v-if="standardFanStatus.open != 0">
|
||||||
|
<view class="lishui-title">
|
||||||
|
<view class="title-left">
|
||||||
|
{{ standardFanStatus.name }}
|
||||||
|
</view>
|
||||||
|
<view class="title-right" @click="standardFanmodelHander">
|
||||||
|
设置
|
||||||
|
<image src="../../static/set-arrow.png" mode=""></image>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="lishui-content" v-if="standardFanStatus.open != 0">
|
||||||
|
<view class="lishui-set">
|
||||||
|
<view class="set-1">
|
||||||
|
<image v-if="standardFanStatus.open == 1" class="sel" src="../../static/sel.png" mode=""></image>
|
||||||
|
<view v-else class="sel-no"></view>
|
||||||
|
<span>自动控制</span>
|
||||||
|
</view>
|
||||||
|
<view class="set-2">
|
||||||
|
<image v-if="standardFanStatus.open != 1" class="sel" src="../../static/sel.png" mode=""></image>
|
||||||
|
<view v-else class="sel-no"></view>
|
||||||
|
<span>手机控制</span>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="lishui-grid">
|
||||||
|
<view class="btn " :class="standardFanStatus.status[0] == 1 ? 'btn-on' : 'btn-off'">
|
||||||
|
<image class="fan-img" v-if="standardFanStatus.status[0] == 1" src="../../static/fan-on.png" alt="">
|
||||||
|
</image>
|
||||||
|
<image v-else src="../../static/fan-off.png" alt=""></image>
|
||||||
|
<span>1#风机</span>
|
||||||
|
</view>
|
||||||
|
<view class="btn" :class="standardFanStatus.status[1] == 1 ? 'btn-on' : 'btn-off'">
|
||||||
|
<image class="fan-img" v-if="standardFanStatus.status[1] == 1" src="../../static/fan-on.png" alt="">
|
||||||
|
</image>
|
||||||
|
<image v-else src="../../static/fan-off.png" alt=""></image> <span>2#风机</span>
|
||||||
|
</view>
|
||||||
|
<view class="btn" :class="standardFanStatus.status[2] == 1 ? 'btn-on' : 'btn-off'">
|
||||||
|
<image class="fan-img" v-if="standardFanStatus.status[2] == 1" src="../../static/fan-on.png" alt="">
|
||||||
|
</image>
|
||||||
|
<image v-else src="../../static/fan-off.png" alt=""></image> <span>3#风机</span>
|
||||||
|
</view>
|
||||||
|
<view class="btn" :class="standardFanStatus.status[3] == 1 ? 'btn-on' : 'btn-off'">
|
||||||
|
<image class="fan-img" v-if="standardFanStatus.status[3] == 1" src="../../static/fan-on.png" alt="">
|
||||||
|
</image>
|
||||||
|
<image v-else src="../../static/fan-off.png" alt=""></image> <span>4#风机</span>
|
||||||
|
</view>
|
||||||
|
<view class="btn" :class="standardFanStatus.status[4] == 1 ? 'btn-on' : 'btn-off'">
|
||||||
|
<image class="fan-img" v-if="standardFanStatus.status[4] == 1" src="../../static/fan-on.png" alt="">
|
||||||
|
</image>
|
||||||
|
<image v-else src="../../static/fan-off.png" alt=""></image> <span>5#风机</span>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<view v-else class="status-noTrue">
|
||||||
|
<image src="../../static/noTrue.png" mode=""></image>
|
||||||
|
<span>当前设备无效</span>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
<!-- 湿帘泵 -->
|
<!-- 湿帘泵 -->
|
||||||
<view class="content" v-if="purviewList.indexOf('26')!=-1">
|
<view class="content" v-if="purviewList.indexOf('26')!=-1">
|
||||||
<template v-for="(item,index) in fanwetcurtainList">
|
<template v-for="(item,index) in fanwetcurtainList">
|
||||||
|
@ -708,6 +771,62 @@
|
||||||
<image src="../../static/closed.png" mode="" @click="fanmodelShow=false"></image>
|
<image src="../../static/closed.png" mode="" @click="fanmodelShow=false"></image>
|
||||||
</view>
|
</view>
|
||||||
</u-popup>
|
</u-popup>
|
||||||
|
|
||||||
|
<!-- 标准风机弹框 -->
|
||||||
|
<u-popup v-model="standardFanmodelShow" mode="center" :mask-close-able='true' width="640rpx" height="654rpx"
|
||||||
|
:closeable='false'>
|
||||||
|
<view class="contentPop lishui-item">
|
||||||
|
<view class="contentPop_box padding-none">
|
||||||
|
<view class="title">
|
||||||
|
{{standardFanStatus.name}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="lishui-content padding-none">
|
||||||
|
<view class="lishui-set">
|
||||||
|
<view class="set-1" @click="changeStandardFanOpen(1)">
|
||||||
|
<image v-if="standardFanOpenIndex == 1" class="sel" src="../../static/sel.png" mode=""></image>
|
||||||
|
<view v-else class="sel-no"></view>
|
||||||
|
<span>自动运行</span>
|
||||||
|
</view>
|
||||||
|
<view class="set-2" @click="changeStandardFanOpen(2)">
|
||||||
|
<image v-if="standardFanOpenIndex == 2" class="sel" src="../../static/sel.png" mode=""></image>
|
||||||
|
<view v-else class="sel-no"></view>
|
||||||
|
<span>手动打开</span>
|
||||||
|
</view>
|
||||||
|
<view class="set-3" @click="changeStandardFanOpen(3)">
|
||||||
|
<image v-if="standardFanOpenIndex == 3" class="sel" src="../../static/sel.png" mode=""></image>
|
||||||
|
<view v-else class="sel-no"></view>
|
||||||
|
<span>手动关闭</span>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="model-title" style="padding:30rpx 0 0 30rpx;">
|
||||||
|
手动打开时,开几号风机:
|
||||||
|
</view>
|
||||||
|
<view class="lishui-grid">
|
||||||
|
<view class="btn" @click="changeStandardFanIndexOpen(0)" :class="standardFanActList1[0]=='1'?'btn-on':'btn-off'">
|
||||||
|
<span>一号风机</span>
|
||||||
|
</view>
|
||||||
|
<view class="btn" @click="changeStandardFanIndexOpen(1)" :class="standardFanActList1[1]=='1'?'btn-on':'btn-off'">
|
||||||
|
<span>二号风机</span>
|
||||||
|
</view>
|
||||||
|
<view class="btn" @click="changeStandardFanIndexOpen(2)" :class="standardFanActList1[2]=='1'?'btn-on':'btn-off'">
|
||||||
|
<span>三号风机</span>
|
||||||
|
</view>
|
||||||
|
<view class="btn" @click="changeStandardFanIndexOpen(3)" :class="standardFanActList1[3]=='1'?'btn-on':'btn-off'">
|
||||||
|
<span>四号风机</span>
|
||||||
|
</view>
|
||||||
|
<view class="btn" @click="changeStandardFanIndexOpen(4)" :class="standardFanActList1[4]=='1'?'btn-on':'btn-off'">
|
||||||
|
<span>五号风机</span>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="changeMoreBtn" @click="toWebView('wetFan')">
|
||||||
|
<image src="../../static/changeMore.png" mode=""></image>
|
||||||
|
<text>修改更多参数</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<image src="../../static/closed.png" mode="" @click="standardFanmodelShow=false"></image>
|
||||||
|
</view>
|
||||||
|
</u-popup>
|
||||||
|
|
||||||
<!-- *#电磁阀弹框 -->
|
<!-- *#电磁阀弹框 -->
|
||||||
<u-popup v-model="valveControlShow" mode="center" :mask-close-able='true' width="640rpx" height="610rpx"
|
<u-popup v-model="valveControlShow" mode="center" :mask-close-able='true' width="640rpx" height="610rpx"
|
||||||
|
@ -1339,6 +1458,17 @@
|
||||||
openIndex: 0, //风机有效性
|
openIndex: 0, //风机有效性
|
||||||
inputData2: [],
|
inputData2: [],
|
||||||
actList1: [],
|
actList1: [],
|
||||||
|
|
||||||
|
//标准风机
|
||||||
|
standardFanmodelShow: false,
|
||||||
|
standardFanStatus: {
|
||||||
|
name: '标准风机',
|
||||||
|
open: 0,
|
||||||
|
status: []
|
||||||
|
},
|
||||||
|
standardFanOpenIndex: 0,
|
||||||
|
standardFanInputData2: [],
|
||||||
|
standardFanActList1: [],
|
||||||
|
|
||||||
fiveControl: {}, //读取(五防项目)控制器
|
fiveControl: {}, //读取(五防项目)控制器
|
||||||
fiveControlShow: false, //五防项目show
|
fiveControlShow: false, //五防项目show
|
||||||
|
@ -1560,6 +1690,35 @@
|
||||||
};
|
};
|
||||||
this.changeBtn('21600', dataNum);
|
this.changeBtn('21600', dataNum);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// 标准风机
|
||||||
|
changeStandardFanOpen(index) {
|
||||||
|
this.standardFanOpenIndex = index
|
||||||
|
var dataNum = {
|
||||||
|
target: {
|
||||||
|
value: this.standardFanOpenIndex,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
this.changeBtn('21950', dataNum);
|
||||||
|
},
|
||||||
|
|
||||||
|
//标准风机 开启几号风机
|
||||||
|
changeStandardFanIndexOpen(active) {
|
||||||
|
if (this.standardFanActList1[active] == '1') {
|
||||||
|
this.standardFanActList1[active] = '0'
|
||||||
|
} else {
|
||||||
|
this.standardFanActList1[active] = '1'
|
||||||
|
}
|
||||||
|
var revList = this.standardFanActList1.slice().reverse()
|
||||||
|
var num = revList.join("");
|
||||||
|
var dataNum = {
|
||||||
|
target: {
|
||||||
|
value: parseInt(num, 2),
|
||||||
|
},
|
||||||
|
};
|
||||||
|
this.changeBtn('21951', dataNum);
|
||||||
|
},
|
||||||
|
|
||||||
//顶卷膜修改
|
//顶卷膜修改
|
||||||
changeOpen1(index) {
|
changeOpen1(index) {
|
||||||
this.openIndex1 = index
|
this.openIndex1 = index
|
||||||
|
@ -1787,12 +1946,25 @@
|
||||||
}
|
}
|
||||||
}, 100);
|
}, 100);
|
||||||
},
|
},
|
||||||
//打开顶卷膜的弹窗
|
// 丽水 打开顶卷膜的弹窗
|
||||||
openModelShow(index) {
|
openModelShow(index) {
|
||||||
this.indexs = index + 1
|
this.indexs = index + 1
|
||||||
this.modelShow = true
|
this.modelShow = true
|
||||||
|
|
||||||
this.openIndex1 = this.inputData2[21613 + ((this.indexs - 1) * 11)]
|
var data = {
|
||||||
|
deviceId: this.deviceId
|
||||||
|
};
|
||||||
|
this.$http({
|
||||||
|
url: this.api.getReadControlliShuiControl,
|
||||||
|
data: data,
|
||||||
|
method: 'GET',
|
||||||
|
}).then((res => {
|
||||||
|
this.inputData2 = res.data;
|
||||||
|
this.openIndex1 = this.inputData2[21613 + ((this.indexs - 1) * 11)]
|
||||||
|
|
||||||
|
// this.openIndex = this.inputData2[21600]
|
||||||
|
// this.getAct21601()
|
||||||
|
}))
|
||||||
},
|
},
|
||||||
// 根据type参数返回对应的txt_act21680
|
// 根据type参数返回对应的txt_act21680
|
||||||
getTypeRoll(i) {
|
getTypeRoll(i) {
|
||||||
|
@ -1808,9 +1980,13 @@
|
||||||
url: this.api.getcontrol_cpermission + '?deviceId=' + deviceId,
|
url: this.api.getcontrol_cpermission + '?deviceId=' + deviceId,
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
}).then((res => {
|
}).then((res => {
|
||||||
res.data.forEach((el, index) => {
|
if(res.code == 200){
|
||||||
this.purviewList.push(el.id.toString())
|
uni.hideLoading()
|
||||||
})
|
uni.stopPullDownRefresh();
|
||||||
|
res.data.forEach((el, index) => {
|
||||||
|
this.purviewList.push(el.id.toString())
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
// 控制器状态获取
|
// 控制器状态获取
|
||||||
this.getControl_getState();
|
this.getControl_getState();
|
||||||
|
@ -1858,50 +2034,24 @@
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
//查看丽水权限
|
//查看丽水权限
|
||||||
if (this.purviewList.indexOf('9') != -1) {
|
// if (this.purviewList.indexOf('9') != -1) {
|
||||||
// this.getControl_getState()
|
// // this.getControl_getState()
|
||||||
this.getReadControlliShuiControl()
|
// // this.getReadControlliShuiControl()
|
||||||
// clearInterval(this.statusInterval) && this.statusInterval
|
// // clearInterval(this.statusInterval) && this.statusInterval
|
||||||
// this.statusInterval = setInterval(() => {
|
// // this.statusInterval = setInterval(() => {
|
||||||
// this.getControl_getState()
|
// // this.getControl_getState()
|
||||||
// }, 3000);
|
// // }, 3000);
|
||||||
}
|
// }
|
||||||
|
|
||||||
// 查看五防项目权限
|
// 查看五防项目权限
|
||||||
if (this.purviewList.indexOf('8') != -1) {
|
// if (this.purviewList.indexOf('8') != -1) {
|
||||||
this.$http({
|
|
||||||
url: this.api.readControl_fiveControl + '?deviceId=' + deviceId,
|
// }
|
||||||
method: 'GET'
|
|
||||||
}).then(res => {
|
|
||||||
if (res.code == 200) {
|
|
||||||
uni.hideLoading();
|
|
||||||
uni.stopPullDownRefresh();
|
|
||||||
this.fiveControl = res.data
|
|
||||||
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// 读取(补光灯)控制器
|
// 读取(补光灯)控制器
|
||||||
if(this.purviewList.indexOf('20') != -1){
|
// if(this.purviewList.indexOf('20') != -1){
|
||||||
this.$http({
|
|
||||||
url:this.api.readControl_readfilllight + '?deviceId=' + deviceId,
|
// };
|
||||||
method: 'GET'
|
|
||||||
}).then(res => {
|
|
||||||
if (res.code == 200) {
|
|
||||||
// console.log(res,'补光灯');
|
|
||||||
uni.hideLoading();
|
|
||||||
uni.stopPullDownRefresh();
|
|
||||||
this.lightControlIndex = res.data[21400];
|
|
||||||
this.actListLight = []
|
|
||||||
let numLight = res.data[21401];
|
|
||||||
let numLight1 = this.padString(numLight.toString(2),8);
|
|
||||||
let openListNew = [];
|
|
||||||
openListNew = numLight1.split('')
|
|
||||||
this.actListLight = openListNew.reverse()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
};
|
|
||||||
|
|
||||||
// 环流风扇
|
// 环流风扇
|
||||||
// if(this.purviewList.indexOf('21') != -1){};
|
// if(this.purviewList.indexOf('21') != -1){};
|
||||||
|
@ -1909,20 +2059,20 @@
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
getReadControlliShuiControl() {
|
// getReadControlliShuiControl() {
|
||||||
var data = {
|
// var data = {
|
||||||
deviceId: this.deviceId
|
// deviceId: this.deviceId
|
||||||
};
|
// };
|
||||||
this.$http({
|
// this.$http({
|
||||||
url: this.api.getReadControlliShuiControl,
|
// url: this.api.getReadControlliShuiControl,
|
||||||
data: data,
|
// data: data,
|
||||||
method: 'GET',
|
// method: 'GET',
|
||||||
}).then((res => {
|
// }).then((res => {
|
||||||
this.inputData2 = res.data;
|
// this.inputData2 = res.data;
|
||||||
this.openIndex = this.inputData2[21600]
|
// this.openIndex = this.inputData2[21600]
|
||||||
this.getAct21601()
|
// this.getAct21601()
|
||||||
}))
|
// }))
|
||||||
},
|
// },
|
||||||
getAct21601() {
|
getAct21601() {
|
||||||
this.actList1 = []
|
this.actList1 = []
|
||||||
var num = this.inputData2['21601']
|
var num = this.inputData2['21601']
|
||||||
|
@ -1943,22 +2093,25 @@
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.fanStatus.open = res.data['1023']
|
// 丽水
|
||||||
this.fanStatus.status = []
|
if (this.purviewList.indexOf('9') != -1){
|
||||||
var num = res.data['1024']
|
this.fanStatus.open = res.data['1023']
|
||||||
var num1 = this.padString(num.toString(2), 5)
|
this.fanStatus.status = []
|
||||||
var openListNew = []
|
var num = res.data['1024']
|
||||||
openListNew = num1.split("")
|
var num1 = this.padString(num.toString(2), 5)
|
||||||
this.fanStatus.status = openListNew.reverse()
|
var openListNew = []
|
||||||
this.statusList = []
|
openListNew = num1.split("")
|
||||||
for (var i = 0; i < 4; i++) {
|
this.fanStatus.status = openListNew.reverse()
|
||||||
var statusData = {
|
this.statusList = []
|
||||||
name: `顶卷膜${i + 1}`,
|
for (var i = 0; i < 4; i++) {
|
||||||
open: res.data[(1025 + (i * 3))],
|
var statusData = {
|
||||||
progress: res.data[(1027 + (i * 3))],
|
name: `顶卷膜${i + 1}`,
|
||||||
index: res.data[(1026 + (i * 3))]
|
open: res.data[(1025 + (i * 3))],
|
||||||
|
progress: res.data[(1027 + (i * 3))],
|
||||||
|
index: res.data[(1026 + (i * 3))]
|
||||||
|
}
|
||||||
|
this.statusList.push(statusData)
|
||||||
}
|
}
|
||||||
this.statusList.push(statusData)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 五防项目状态
|
// 五防项目状态
|
||||||
|
@ -1990,6 +2143,17 @@
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// 标准风机
|
||||||
|
if(this.purviewList.indexOf('26') != -1){
|
||||||
|
this.standardFanStatus.open = res.data['1078']
|
||||||
|
this.standardFanStatus.status = []
|
||||||
|
var standardnum = res.data['1079']
|
||||||
|
var standardnum1 = this.padString(standardnum.toString(2), 5)
|
||||||
|
var openListNew = []
|
||||||
|
openListNew = standardnum1.split("")
|
||||||
|
this.standardFanStatus.status = openListNew.reverse()
|
||||||
|
};
|
||||||
|
|
||||||
// 湿帘泵
|
// 湿帘泵
|
||||||
if(this.purviewList.indexOf('26') != -1){
|
if(this.purviewList.indexOf('26') != -1){
|
||||||
this.fanwetcurtainList.forEach((el,index)=>{
|
this.fanwetcurtainList.forEach((el,index)=>{
|
||||||
|
@ -2042,33 +2206,87 @@
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// 丽水 风机
|
||||||
|
fanmodelHander(){
|
||||||
|
this.fanmodelShow = true;
|
||||||
|
|
||||||
|
var data = {
|
||||||
|
deviceId: this.deviceId
|
||||||
|
};
|
||||||
|
this.$http({
|
||||||
|
url: this.api.getReadControlliShuiControl,
|
||||||
|
data: data,
|
||||||
|
method: 'GET',
|
||||||
|
}).then((res => {
|
||||||
|
this.inputData2 = res.data;
|
||||||
|
// this.openIndex1 = this.inputData2[21613 + ((this.indexs - 1) * 11)]
|
||||||
|
|
||||||
|
this.openIndex = this.inputData2[21600]
|
||||||
|
this.getAct21601()
|
||||||
|
}))
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
// 标准风机
|
||||||
|
standardFanmodelHander(){
|
||||||
|
this.standardFanmodelShow = true;
|
||||||
|
var deviceId = this.deviceId
|
||||||
|
this.$http({
|
||||||
|
url:this.api.readControl_fanwetcurtain + '?deviceId=' + deviceId,
|
||||||
|
method: 'GET'
|
||||||
|
}).then(res => {
|
||||||
|
if (res.code == 200) {
|
||||||
|
this.standardFanInputData2 = res.data;
|
||||||
|
this.standardFanOpenIndex = this.standardFanInputData2[21950]
|
||||||
|
|
||||||
|
this.standardFanActList1 = []
|
||||||
|
let num = this.standardFanInputData2['21951']
|
||||||
|
let num1 = this.padString(num.toString(2), 5)
|
||||||
|
let openListNew = []
|
||||||
|
openListNew = num1.split("")
|
||||||
|
openListNew.forEach((el, index) => {
|
||||||
|
this.standardFanActList1.push(openListNew[openListNew.length - index - 1])
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
// 东北五防弹框
|
// 东北五防弹框
|
||||||
openFiveControlShow(index) {
|
openFiveControlShow(index) {
|
||||||
this.fiveControlShow = true;
|
this.fiveControlShow = true;
|
||||||
this.pop_title = this.fiveControlList[index].title;
|
this.pop_title = this.fiveControlList[index].title;
|
||||||
this.close_btn_all = this.fiveControlList[index].close_btn;
|
this.close_btn_all = this.fiveControlList[index].close_btn;
|
||||||
|
var deviceId = this.deviceId
|
||||||
if (index == 0) {
|
this.$http({
|
||||||
this.fiveControlIndex = this.fiveControl[21520];
|
url: this.api.readControl_fiveControl + '?deviceId=' + deviceId,
|
||||||
this.fiveControlUrl = 'waterPump';
|
method: 'GET'
|
||||||
|
}).then(res => {
|
||||||
} else if (index == 1) {
|
if (res.code == 200) {
|
||||||
this.fiveControlIndex = this.fiveControl[21526];
|
uni.hideLoading();
|
||||||
this.fiveControlUrl = 'geothermalFan'
|
uni.stopPullDownRefresh();
|
||||||
} else if (index == 2) {
|
this.fiveControl = res.data
|
||||||
this.fiveControlIndex = this.fiveControl[21530];
|
if (index == 0) {
|
||||||
this.fiveControlUrl = 'uptake'
|
this.fiveControlIndex = this.fiveControl[21520];
|
||||||
} else if (index == 3) {
|
this.fiveControlUrl = 'waterPump';
|
||||||
this.fiveControlIndex = this.fiveControl[21541];
|
|
||||||
this.fiveControlUrl = 'downtake'
|
} else if (index == 1) {
|
||||||
} else if (index == 4) {
|
this.fiveControlIndex = this.fiveControl[21526];
|
||||||
this.fiveControlIndex = this.fiveControl[21548];
|
this.fiveControlUrl = 'geothermalFan'
|
||||||
this.fiveControlUrl = 'rollByRoll'
|
} else if (index == 2) {
|
||||||
} else if (index == 5) {
|
this.fiveControlIndex = this.fiveControl[21530];
|
||||||
this.fiveControlIndex = this.fiveControl[21558];
|
this.fiveControlUrl = 'uptake'
|
||||||
this.fiveControlUrl = 'snowRemoval'
|
} else if (index == 3) {
|
||||||
}
|
this.fiveControlIndex = this.fiveControl[21541];
|
||||||
|
this.fiveControlUrl = 'downtake'
|
||||||
|
} else if (index == 4) {
|
||||||
|
this.fiveControlIndex = this.fiveControl[21548];
|
||||||
|
this.fiveControlUrl = 'rollByRoll'
|
||||||
|
} else if (index == 5) {
|
||||||
|
this.fiveControlIndex = this.fiveControl[21558];
|
||||||
|
this.fiveControlUrl = 'snowRemoval'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
// 电磁阀
|
// 电磁阀
|
||||||
|
@ -2090,6 +2308,29 @@
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// 补光灯
|
||||||
|
supplementLightHander(){
|
||||||
|
var deviceId = this.deviceId;
|
||||||
|
this.supplementLightShow = true;
|
||||||
|
this.$http({
|
||||||
|
url:this.api.readControl_readfilllight + '?deviceId=' + deviceId,
|
||||||
|
method: 'GET'
|
||||||
|
}).then(res => {
|
||||||
|
if (res.code == 200) {
|
||||||
|
// console.log(res,'补光灯');
|
||||||
|
uni.hideLoading();
|
||||||
|
uni.stopPullDownRefresh();
|
||||||
|
this.lightControlIndex = res.data[21400];
|
||||||
|
this.actListLight = []
|
||||||
|
let numLight = res.data[21401];
|
||||||
|
let numLight1 = this.padString(numLight.toString(2),8);
|
||||||
|
let openListNew = [];
|
||||||
|
openListNew = numLight1.split('')
|
||||||
|
this.actListLight = openListNew.reverse()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
// 环流风扇弹框
|
// 环流风扇弹框
|
||||||
circulationFengshanHander(index){
|
circulationFengshanHander(index){
|
||||||
this.circulationControlIndex = 0;
|
this.circulationControlIndex = 0;
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
<view class="">
|
<view class="">
|
||||||
{{ getStatus(item2.equipmentNumber,item2.targetValue) + item2.environmentDataId }}
|
{{ getStatus(item2.equipmentNumber,item2.targetValue) + item2.environmentDataId }}
|
||||||
</view>
|
</view>
|
||||||
<view class="">{{ item2.environmentData + getTypeList(item2.formula) }}</view>
|
<view class="" :style="item2.equipmentStart == 0 ? 'color:red':''">{{ item2.equipmentStart == 0 ? '故障' : (item2.environmentData + getTypeList(item2.formula)) }}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="line" v-if="item1.childList_mubiao.length > 0"></view>
|
<view class="line" v-if="item1.childList_mubiao.length > 0"></view>
|
||||||
|
@ -49,7 +49,7 @@
|
||||||
<view class="">
|
<view class="">
|
||||||
{{ getStatus(item2.equipmentNumber,item2.targetValue) + item2.environmentDataId }}
|
{{ getStatus(item2.equipmentNumber,item2.targetValue) + item2.environmentDataId }}
|
||||||
</view>
|
</view>
|
||||||
<view class="">{{ item2.environmentData + getTypeList(item2.formula) }}</view>
|
<view class="" :style="item2.equipmentStart == 0 ? 'color:red':''">{{ item2.equipmentStart == 0 ? '故障' : item2.environmentData + getTypeList(item2.formula) }}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="line" v-if="item1.childList_one.length > 0"></view>
|
<view class="line" v-if="item1.childList_one.length > 0"></view>
|
||||||
|
@ -61,7 +61,7 @@
|
||||||
<view class="">
|
<view class="">
|
||||||
{{ getStatus(item2.equipmentNumber,item2.targetValue) + item2.environmentDataId }}
|
{{ getStatus(item2.equipmentNumber,item2.targetValue) + item2.environmentDataId }}
|
||||||
</view>
|
</view>
|
||||||
<view class="">{{ item2.environmentData + getTypeList(item2.formula) }}</view>
|
<view class="" :style="item2.equipmentStart == 0 ? 'color:red':''">{{ item2.equipmentStart == 0 ? '故障' : item2.environmentData + getTypeList(item2.formula) }}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="line" v-if="item1.childList_two.length > 0"></view>
|
<view class="line" v-if="item1.childList_two.length > 0"></view>
|
||||||
|
@ -73,7 +73,7 @@
|
||||||
<view class="">
|
<view class="">
|
||||||
{{ getStatus(item2.equipmentNumber,item2.targetValue) + item2.environmentDataId }}
|
{{ getStatus(item2.equipmentNumber,item2.targetValue) + item2.environmentDataId }}
|
||||||
</view>
|
</view>
|
||||||
<view class="">{{ item2.environmentData + getTypeList(item2.formula) }}</view>
|
<view class="" :style="item2.equipmentStart == 0 ? 'color:red':''">{{ item2.equipmentStart == 0 ? '故障' : item2.environmentData + getTypeList(item2.formula) }}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="line" v-if="item1.childList_three.length > 0"></view>
|
<view class="line" v-if="item1.childList_three.length > 0"></view>
|
||||||
|
@ -85,7 +85,7 @@
|
||||||
<view class="">
|
<view class="">
|
||||||
{{ getStatus(item2.equipmentNumber,item2.targetValue) + item2.environmentDataId }}
|
{{ getStatus(item2.equipmentNumber,item2.targetValue) + item2.environmentDataId }}
|
||||||
</view>
|
</view>
|
||||||
<view class="">{{ item2.environmentData + getTypeList(item2.formula) }}</view>
|
<view class="" :style="item2.equipmentStart == 0 ? 'color:red':''">{{ item2.equipmentStart == 0 ? '故障' : item2.environmentData + getTypeList(item2.formula) }}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="line" v-if="item1.childList_four.length > 0"></view>
|
<view class="line" v-if="item1.childList_four.length > 0"></view>
|
||||||
|
@ -97,7 +97,7 @@
|
||||||
<view class="">
|
<view class="">
|
||||||
{{ getStatus(item2.equipmentNumber,item2.targetValue) + item2.environmentDataId }}
|
{{ getStatus(item2.equipmentNumber,item2.targetValue) + item2.environmentDataId }}
|
||||||
</view>
|
</view>
|
||||||
<view class="">{{ item2.environmentData + getTypeList(item2.formula) }}</view>
|
<view class="" :style="item2.equipmentStart == 0 ? 'color:red':''">{{ item2.equipmentStart == 0 ? '故障' : item2.environmentData + getTypeList(item2.formula) }}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="line" v-if="item1.childList_five.length > 0"></view>
|
<view class="line" v-if="item1.childList_five.length > 0"></view>
|
||||||
|
@ -109,7 +109,7 @@
|
||||||
<view class="">
|
<view class="">
|
||||||
{{ getStatus(item2.equipmentNumber,item2.targetValue) + item2.environmentDataId }}
|
{{ getStatus(item2.equipmentNumber,item2.targetValue) + item2.environmentDataId }}
|
||||||
</view>
|
</view>
|
||||||
<view class="">{{ item2.environmentData + getTypeList(item2.formula) }}</view>
|
<view class="" :style="item2.equipmentStart == 0 ? 'color:red':''">{{ item2.equipmentStart == 0 ? '故障' : item2.environmentData + getTypeList(item2.formula) }}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="line" v-if="item1.childList_six.length > 0"></view>
|
<view class="line" v-if="item1.childList_six.length > 0"></view>
|
||||||
|
@ -121,7 +121,7 @@
|
||||||
<view class="">
|
<view class="">
|
||||||
{{ getStatus(item2.equipmentNumber,item2.targetValue) + item2.environmentDataId }}
|
{{ getStatus(item2.equipmentNumber,item2.targetValue) + item2.environmentDataId }}
|
||||||
</view>
|
</view>
|
||||||
<view class="">{{ item2.environmentData + getTypeList(item2.formula) }}</view>
|
<view class="" :style="item2.equipmentStart == 0 ? 'color:red':''">{{ item2.equipmentStart == 0 ? '故障' : item2.environmentData + getTypeList(item2.formula) }}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="line" v-if="item1.childList_seven.length > 0"></view>
|
<view class="line" v-if="item1.childList_seven.length > 0"></view>
|
||||||
|
@ -133,7 +133,7 @@
|
||||||
<view class="">
|
<view class="">
|
||||||
{{ getStatus(item2.equipmentNumber,item2.targetValue) + item2.environmentDataId }}
|
{{ getStatus(item2.equipmentNumber,item2.targetValue) + item2.environmentDataId }}
|
||||||
</view>
|
</view>
|
||||||
<view class="">{{ item2.environmentData + getTypeList(item2.formula) }}</view>
|
<view class="" :style="item2.equipmentStart == 0 ? 'color:red':''">{{ item2.equipmentStart == 0 ? '故障' : item2.environmentData + getTypeList(item2.formula) }}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="line" v-if="item1.childList_eight.length > 0"></view>
|
<view class="line" v-if="item1.childList_eight.length > 0"></view>
|
||||||
|
@ -145,7 +145,7 @@
|
||||||
<view class="">
|
<view class="">
|
||||||
{{ getStatus(item2.equipmentNumber,item2.targetValue) + item2.environmentDataId }}
|
{{ getStatus(item2.equipmentNumber,item2.targetValue) + item2.environmentDataId }}
|
||||||
</view>
|
</view>
|
||||||
<view class="">{{ item2.environmentData + getTypeList(item2.formula) }}</view>
|
<view class="" :style="item2.equipmentStart == 0 ? 'color:red':''">{{ item2.equipmentStart == 0 ? '故障' : item2.environmentData + getTypeList(item2.formula) }}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="line" v-if="item1.childList_nine.length > 0"></view>
|
<view class="line" v-if="item1.childList_nine.length > 0"></view>
|
||||||
|
@ -157,7 +157,7 @@
|
||||||
<view class="">
|
<view class="">
|
||||||
{{ getStatus(item2.equipmentNumber,item2.targetValue) + item2.environmentDataId }}
|
{{ getStatus(item2.equipmentNumber,item2.targetValue) + item2.environmentDataId }}
|
||||||
</view>
|
</view>
|
||||||
<view class="">{{ item2.environmentData + getTypeList(item2.formula) }}</view>
|
<view class="" :style="item2.equipmentStart == 0 ? 'color:red':''">{{ item2.equipmentStart == 0 ? '故障' : item2.environmentData + getTypeList(item2.formula) }}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="line" v-if="item1.childList_ten.length > 0"></view>
|
<view class="line" v-if="item1.childList_ten.length > 0"></view>
|
||||||
|
@ -169,7 +169,7 @@
|
||||||
<view class="">
|
<view class="">
|
||||||
{{ getStatus(item2.equipmentNumber,item2.targetValue) + item2.environmentDataId }}
|
{{ getStatus(item2.equipmentNumber,item2.targetValue) + item2.environmentDataId }}
|
||||||
</view>
|
</view>
|
||||||
<view class="">{{ item2.environmentData + getTypeList(item2.formula) }}</view>
|
<view class="" :style="item2.equipmentStart == 0 ? 'color:red':''">{{ item2.equipmentStart == 0 ? '故障' : item2.environmentData + getTypeList(item2.formula) }}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="line" v-if="item1.childList_eleven.length > 0"></view>
|
<view class="line" v-if="item1.childList_eleven.length > 0"></view>
|
||||||
|
@ -181,7 +181,7 @@
|
||||||
<view class="">
|
<view class="">
|
||||||
{{ getStatus(item2.equipmentNumber,item2.targetValue) + item2.environmentDataId }}
|
{{ getStatus(item2.equipmentNumber,item2.targetValue) + item2.environmentDataId }}
|
||||||
</view>
|
</view>
|
||||||
<view class="">{{ item2.environmentData + getTypeList(item2.formula) }}</view>
|
<view class="" :style="item2.equipmentStart == 0 ? 'color:red':''">{{ item2.equipmentStart == 0 ? '故障' : item2.environmentData + getTypeList(item2.formula) }}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="line" v-if="item1.childList_twelve.length > 0"></view>
|
<view class="line" v-if="item1.childList_twelve.length > 0"></view>
|
||||||
|
@ -193,7 +193,7 @@
|
||||||
<view class="">
|
<view class="">
|
||||||
{{ getStatus(item2.equipmentNumber,item2.targetValue) + item2.environmentDataId }}
|
{{ getStatus(item2.equipmentNumber,item2.targetValue) + item2.environmentDataId }}
|
||||||
</view>
|
</view>
|
||||||
<view class="">{{ item2.environmentData + getTypeList(item2.formula) }}</view>
|
<view class="" :style="item2.equipmentStart == 0 ? 'color:red':''">{{ item2.equipmentStart == 0 ? '故障' : item2.environmentData + getTypeList(item2.formula) }}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="line" v-if="item1.childList_thirteen.length > 0"></view>
|
<view class="line" v-if="item1.childList_thirteen.length > 0"></view>
|
||||||
|
@ -205,7 +205,7 @@
|
||||||
<view class="">
|
<view class="">
|
||||||
{{ getStatus(item2.equipmentNumber,item2.targetValue) + item2.environmentDataId }}
|
{{ getStatus(item2.equipmentNumber,item2.targetValue) + item2.environmentDataId }}
|
||||||
</view>
|
</view>
|
||||||
<view class="">{{ item2.environmentData + getTypeList(item2.formula) }}</view>
|
<view class="" :style="item2.equipmentStart == 0 ? 'color:red':''">{{ item2.equipmentStart == 0 ? '故障' : item2.environmentData + getTypeList(item2.formula) }}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="line" v-if="item1.childList_fourteen.length > 0"></view>
|
<view class="line" v-if="item1.childList_fourteen.length > 0"></view>
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -185,61 +185,59 @@ var render = function () {
|
||||||
var g3 = _vm.purviewList.indexOf("20")
|
var g3 = _vm.purviewList.indexOf("20")
|
||||||
var g4 = _vm.purviewList.indexOf("21")
|
var g4 = _vm.purviewList.indexOf("21")
|
||||||
var g5 = _vm.purviewList.indexOf("26")
|
var g5 = _vm.purviewList.indexOf("26")
|
||||||
var g6 = _vm.purviewList.indexOf("23")
|
var g6 = _vm.purviewList.indexOf("26")
|
||||||
var g7 = _vm.purviewList.indexOf("26")
|
var g7 = _vm.purviewList.indexOf("23")
|
||||||
var g8 = _vm.purviewList.indexOf("24")
|
var g8 = _vm.purviewList.indexOf("26")
|
||||||
var g9 = _vm.purviewList.indexOf("25")
|
var g9 = _vm.purviewList.indexOf("24")
|
||||||
var g10 = _vm.purviewList.indexOf("19")
|
var g10 = _vm.purviewList.indexOf("25")
|
||||||
|
var g11 = _vm.purviewList.indexOf("19")
|
||||||
var l3 = _vm.__map(8, function (item, index) {
|
var l3 = _vm.__map(8, function (item, index) {
|
||||||
var $orig = _vm.__get_orig(item)
|
var $orig = _vm.__get_orig(item)
|
||||||
var g11 = _vm.purviewList.indexOf((index + 11).toString())
|
var g12 = _vm.purviewList.indexOf((index + 11).toString())
|
||||||
return {
|
return {
|
||||||
$orig: $orig,
|
$orig: $orig,
|
||||||
g11: g11,
|
g12: g12,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
var g12 = _vm.purviewList.length
|
var g13 = _vm.purviewList.length
|
||||||
if (!_vm._isMounted) {
|
if (!_vm._isMounted) {
|
||||||
_vm.e0 = function ($event) {
|
_vm.e0 = function ($event) {
|
||||||
_vm.fanmodelShow = true
|
|
||||||
}
|
|
||||||
_vm.e1 = function ($event) {
|
|
||||||
_vm.supplementLightShow = true
|
|
||||||
}
|
|
||||||
_vm.e2 = function ($event) {
|
|
||||||
_vm.fiveControlShow = false
|
_vm.fiveControlShow = false
|
||||||
}
|
}
|
||||||
_vm.e3 = function ($event) {
|
_vm.e1 = function ($event) {
|
||||||
_vm.modelShow = false
|
_vm.modelShow = false
|
||||||
}
|
}
|
||||||
_vm.e4 = function ($event) {
|
_vm.e2 = function ($event) {
|
||||||
_vm.fanmodelShow = false
|
_vm.fanmodelShow = false
|
||||||
}
|
}
|
||||||
_vm.e5 = function ($event) {
|
_vm.e3 = function ($event) {
|
||||||
|
_vm.standardFanmodelShow = false
|
||||||
|
}
|
||||||
|
_vm.e4 = function ($event) {
|
||||||
_vm.valveControlShow = false
|
_vm.valveControlShow = false
|
||||||
}
|
}
|
||||||
_vm.e6 = function ($event) {
|
_vm.e5 = function ($event) {
|
||||||
_vm.supplementLightShow = false
|
_vm.supplementLightShow = false
|
||||||
}
|
}
|
||||||
_vm.e7 = function ($event) {
|
_vm.e6 = function ($event) {
|
||||||
_vm.circulationFengshanShow = false
|
_vm.circulationFengshanShow = false
|
||||||
}
|
}
|
||||||
_vm.e8 = function ($event) {
|
_vm.e7 = function ($event) {
|
||||||
_vm.fanwetcurtainShow = false
|
_vm.fanwetcurtainShow = false
|
||||||
}
|
}
|
||||||
_vm.e9 = function ($event) {
|
_vm.e8 = function ($event) {
|
||||||
_vm.highpressuremistShow = false
|
_vm.highpressuremistShow = false
|
||||||
}
|
}
|
||||||
_vm.e10 = function ($event) {
|
_vm.e9 = function ($event) {
|
||||||
_vm.outFlipWindowShow = false
|
_vm.outFlipWindowShow = false
|
||||||
}
|
}
|
||||||
_vm.e11 = function ($event) {
|
_vm.e10 = function ($event) {
|
||||||
_vm.innercurtainShow = false
|
_vm.innercurtainShow = false
|
||||||
}
|
}
|
||||||
_vm.e12 = function ($event) {
|
_vm.e11 = function ($event) {
|
||||||
_vm.externalsunshadeShow = false
|
_vm.externalsunshadeShow = false
|
||||||
}
|
}
|
||||||
_vm.e13 = function ($event) {
|
_vm.e12 = function ($event) {
|
||||||
_vm.airWindowShow = false
|
_vm.airWindowShow = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -261,8 +259,9 @@ var render = function () {
|
||||||
g8: g8,
|
g8: g8,
|
||||||
g9: g9,
|
g9: g9,
|
||||||
g10: g10,
|
g10: g10,
|
||||||
|
g11: g11,
|
||||||
l3: l3,
|
l3: l3,
|
||||||
g12: g12,
|
g13: g13,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
@ -1402,6 +1401,125 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
var _default = {
|
var _default = {
|
||||||
data: function data() {
|
data: function data() {
|
||||||
return {
|
return {
|
||||||
|
@ -1614,6 +1732,16 @@ var _default = {
|
||||||
//风机有效性
|
//风机有效性
|
||||||
inputData2: [],
|
inputData2: [],
|
||||||
actList1: [],
|
actList1: [],
|
||||||
|
//标准风机
|
||||||
|
standardFanmodelShow: false,
|
||||||
|
standardFanStatus: {
|
||||||
|
name: '标准风机',
|
||||||
|
open: 0,
|
||||||
|
status: []
|
||||||
|
},
|
||||||
|
standardFanOpenIndex: 0,
|
||||||
|
standardFanInputData2: [],
|
||||||
|
standardFanActList1: [],
|
||||||
fiveControl: {},
|
fiveControl: {},
|
||||||
//读取(五防项目)控制器
|
//读取(五防项目)控制器
|
||||||
fiveControlShow: false,
|
fiveControlShow: false,
|
||||||
|
@ -1870,6 +1998,32 @@ var _default = {
|
||||||
};
|
};
|
||||||
this.changeBtn('21600', dataNum);
|
this.changeBtn('21600', dataNum);
|
||||||
},
|
},
|
||||||
|
// 标准风机
|
||||||
|
changeStandardFanOpen: function changeStandardFanOpen(index) {
|
||||||
|
this.standardFanOpenIndex = index;
|
||||||
|
var dataNum = {
|
||||||
|
target: {
|
||||||
|
value: this.standardFanOpenIndex
|
||||||
|
}
|
||||||
|
};
|
||||||
|
this.changeBtn('21950', dataNum);
|
||||||
|
},
|
||||||
|
//标准风机 开启几号风机
|
||||||
|
changeStandardFanIndexOpen: function changeStandardFanIndexOpen(active) {
|
||||||
|
if (this.standardFanActList1[active] == '1') {
|
||||||
|
this.standardFanActList1[active] = '0';
|
||||||
|
} else {
|
||||||
|
this.standardFanActList1[active] = '1';
|
||||||
|
}
|
||||||
|
var revList = this.standardFanActList1.slice().reverse();
|
||||||
|
var num = revList.join("");
|
||||||
|
var dataNum = {
|
||||||
|
target: {
|
||||||
|
value: parseInt(num, 2)
|
||||||
|
}
|
||||||
|
};
|
||||||
|
this.changeBtn('21951', dataNum);
|
||||||
|
},
|
||||||
//顶卷膜修改
|
//顶卷膜修改
|
||||||
changeOpen1: function changeOpen1(index) {
|
changeOpen1: function changeOpen1(index) {
|
||||||
this.openIndex1 = index;
|
this.openIndex1 = index;
|
||||||
|
@ -2083,11 +2237,25 @@ var _default = {
|
||||||
}
|
}
|
||||||
}, 100);
|
}, 100);
|
||||||
},
|
},
|
||||||
//打开顶卷膜的弹窗
|
// 丽水 打开顶卷膜的弹窗
|
||||||
openModelShow: function openModelShow(index) {
|
openModelShow: function openModelShow(index) {
|
||||||
|
var _this4 = this;
|
||||||
this.indexs = index + 1;
|
this.indexs = index + 1;
|
||||||
this.modelShow = true;
|
this.modelShow = true;
|
||||||
this.openIndex1 = this.inputData2[21613 + (this.indexs - 1) * 11];
|
var data = {
|
||||||
|
deviceId: this.deviceId
|
||||||
|
};
|
||||||
|
this.$http({
|
||||||
|
url: this.api.getReadControlliShuiControl,
|
||||||
|
data: data,
|
||||||
|
method: 'GET'
|
||||||
|
}).then(function (res) {
|
||||||
|
_this4.inputData2 = res.data;
|
||||||
|
_this4.openIndex1 = _this4.inputData2[21613 + (_this4.indexs - 1) * 11];
|
||||||
|
|
||||||
|
// this.openIndex = this.inputData2[21600]
|
||||||
|
// this.getAct21601()
|
||||||
|
});
|
||||||
},
|
},
|
||||||
// 根据type参数返回对应的txt_act21680
|
// 根据type参数返回对应的txt_act21680
|
||||||
getTypeRoll: function getTypeRoll(i) {
|
getTypeRoll: function getTypeRoll(i) {
|
||||||
|
@ -2098,44 +2266,48 @@ var _default = {
|
||||||
},
|
},
|
||||||
// 读取所有寄存器的状态值
|
// 读取所有寄存器的状态值
|
||||||
dataInit: function dataInit() {
|
dataInit: function dataInit() {
|
||||||
var _this4 = this;
|
var _this5 = this;
|
||||||
var deviceId = this.deviceId;
|
var deviceId = this.deviceId;
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.api.getcontrol_cpermission + '?deviceId=' + deviceId,
|
url: this.api.getcontrol_cpermission + '?deviceId=' + deviceId,
|
||||||
method: 'POST'
|
method: 'POST'
|
||||||
}).then(function (res) {
|
}).then(function (res) {
|
||||||
res.data.forEach(function (el, index) {
|
if (res.code == 200) {
|
||||||
_this4.purviewList.push(el.id.toString());
|
uni.hideLoading();
|
||||||
});
|
uni.stopPullDownRefresh();
|
||||||
|
res.data.forEach(function (el, index) {
|
||||||
|
_this5.purviewList.push(el.id.toString());
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// 控制器状态获取
|
// 控制器状态获取
|
||||||
_this4.getControl_getState();
|
_this5.getControl_getState();
|
||||||
clearInterval(_this4.statusInterval) && _this4.statusInterval;
|
clearInterval(_this5.statusInterval) && _this5.statusInterval;
|
||||||
_this4.statusInterval = setInterval(function () {
|
_this5.statusInterval = setInterval(function () {
|
||||||
_this4.getControl_getState();
|
_this5.getControl_getState();
|
||||||
}, 3000);
|
}, 3000);
|
||||||
|
|
||||||
//查看金华权限
|
//查看金华权限
|
||||||
if (_this4.purviewList.indexOf('10') != -1) {
|
if (_this5.purviewList.indexOf('10') != -1) {
|
||||||
// 小程序手机控制权限数据
|
// 小程序手机控制权限数据
|
||||||
_this4.getcontrol_wxgetpermission();
|
_this5.getcontrol_wxgetpermission();
|
||||||
_this4.$http({
|
_this5.$http({
|
||||||
url: _this4.api.readJinHuaControl_reg + '?deviceId=' + deviceId,
|
url: _this5.api.readJinHuaControl_reg + '?deviceId=' + deviceId,
|
||||||
method: 'POST'
|
method: 'POST'
|
||||||
}).then(function (res) {
|
}).then(function (res) {
|
||||||
// console.log(res, 'deviceId读取所有寄存器的状态值');
|
// console.log(res, 'deviceId读取所有寄存器的状态值');
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
uni.stopPullDownRefresh();
|
uni.stopPullDownRefresh();
|
||||||
_this4.inputData = res.data;
|
_this5.inputData = res.data;
|
||||||
for (var i = 0; i < _this4.itemList.length; i++) {
|
for (var i = 0; i < _this5.itemList.length; i++) {
|
||||||
if (!_this4.itemList[i].type_2) {
|
if (!_this5.itemList[i].type_2) {
|
||||||
_this4.itemList[i].open_value = _this4.inputData[Number('21681') + i * 3];
|
_this5.itemList[i].open_value = _this5.inputData[Number('21681') + i * 3];
|
||||||
_this4.itemList[i].close_value = _this4.inputData[Number('21682') + i * 3];
|
_this5.itemList[i].close_value = _this5.inputData[Number('21682') + i * 3];
|
||||||
_this4.getType(21680 + i * 3, 1);
|
_this5.getType(21680 + i * 3, 1);
|
||||||
} else {
|
} else {
|
||||||
_this4.itemList[i].value = _this4.inputData[21711 + (i - 10) * 2];
|
_this5.itemList[i].value = _this5.inputData[21711 + (i - 10) * 2];
|
||||||
_this4.getType(21710 + (i - 10) * 2, 2);
|
_this5.getType(21710 + (i - 10) * 2, 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2148,70 +2320,43 @@ var _default = {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
//查看丽水权限
|
//查看丽水权限
|
||||||
if (_this4.purviewList.indexOf('9') != -1) {
|
// if (this.purviewList.indexOf('9') != -1) {
|
||||||
// this.getControl_getState()
|
// // this.getControl_getState()
|
||||||
_this4.getReadControlliShuiControl();
|
// // this.getReadControlliShuiControl()
|
||||||
// clearInterval(this.statusInterval) && this.statusInterval
|
// // clearInterval(this.statusInterval) && this.statusInterval
|
||||||
// this.statusInterval = setInterval(() => {
|
// // this.statusInterval = setInterval(() => {
|
||||||
// this.getControl_getState()
|
// // this.getControl_getState()
|
||||||
// }, 3000);
|
// // }, 3000);
|
||||||
}
|
// }
|
||||||
|
|
||||||
// 查看五防项目权限
|
// 查看五防项目权限
|
||||||
if (_this4.purviewList.indexOf('8') != -1) {
|
// if (this.purviewList.indexOf('8') != -1) {
|
||||||
_this4.$http({
|
|
||||||
url: _this4.api.readControl_fiveControl + '?deviceId=' + deviceId,
|
// }
|
||||||
method: 'GET'
|
|
||||||
}).then(function (res) {
|
|
||||||
if (res.code == 200) {
|
|
||||||
uni.hideLoading();
|
|
||||||
uni.stopPullDownRefresh();
|
|
||||||
_this4.fiveControl = res.data;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// 读取(补光灯)控制器
|
// 读取(补光灯)控制器
|
||||||
if (_this4.purviewList.indexOf('20') != -1) {
|
// if(this.purviewList.indexOf('20') != -1){
|
||||||
_this4.$http({
|
|
||||||
url: _this4.api.readControl_readfilllight + '?deviceId=' + deviceId,
|
// };
|
||||||
method: 'GET'
|
|
||||||
}).then(function (res) {
|
|
||||||
if (res.code == 200) {
|
|
||||||
// console.log(res,'补光灯');
|
|
||||||
uni.hideLoading();
|
|
||||||
uni.stopPullDownRefresh();
|
|
||||||
_this4.lightControlIndex = res.data[21400];
|
|
||||||
_this4.actListLight = [];
|
|
||||||
var numLight = res.data[21401];
|
|
||||||
var numLight1 = _this4.padString(numLight.toString(2), 8);
|
|
||||||
var openListNew = [];
|
|
||||||
openListNew = numLight1.split('');
|
|
||||||
_this4.actListLight = openListNew.reverse();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
;
|
|
||||||
|
|
||||||
// 环流风扇
|
// 环流风扇
|
||||||
// if(this.purviewList.indexOf('21') != -1){};
|
// if(this.purviewList.indexOf('21') != -1){};
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
getReadControlliShuiControl: function getReadControlliShuiControl() {
|
// getReadControlliShuiControl() {
|
||||||
var _this5 = this;
|
// var data = {
|
||||||
var data = {
|
// deviceId: this.deviceId
|
||||||
deviceId: this.deviceId
|
// };
|
||||||
};
|
// this.$http({
|
||||||
this.$http({
|
// url: this.api.getReadControlliShuiControl,
|
||||||
url: this.api.getReadControlliShuiControl,
|
// data: data,
|
||||||
data: data,
|
// method: 'GET',
|
||||||
method: 'GET'
|
// }).then((res => {
|
||||||
}).then(function (res) {
|
// this.inputData2 = res.data;
|
||||||
_this5.inputData2 = res.data;
|
// this.openIndex = this.inputData2[21600]
|
||||||
_this5.openIndex = _this5.inputData2[21600];
|
// this.getAct21601()
|
||||||
_this5.getAct21601();
|
// }))
|
||||||
});
|
// },
|
||||||
},
|
|
||||||
getAct21601: function getAct21601() {
|
getAct21601: function getAct21601() {
|
||||||
var _this6 = this;
|
var _this6 = this;
|
||||||
this.actList1 = [];
|
this.actList1 = [];
|
||||||
|
@ -2234,22 +2379,25 @@ var _default = {
|
||||||
method: 'GET'
|
method: 'GET'
|
||||||
}).then(function (res) {
|
}).then(function (res) {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
_this7.fanStatus.open = res.data['1023'];
|
// 丽水
|
||||||
_this7.fanStatus.status = [];
|
if (_this7.purviewList.indexOf('9') != -1) {
|
||||||
var num = res.data['1024'];
|
_this7.fanStatus.open = res.data['1023'];
|
||||||
var num1 = _this7.padString(num.toString(2), 5);
|
_this7.fanStatus.status = [];
|
||||||
var openListNew = [];
|
var num = res.data['1024'];
|
||||||
openListNew = num1.split("");
|
var num1 = _this7.padString(num.toString(2), 5);
|
||||||
_this7.fanStatus.status = openListNew.reverse();
|
var openListNew = [];
|
||||||
_this7.statusList = [];
|
openListNew = num1.split("");
|
||||||
for (var i = 0; i < 4; i++) {
|
_this7.fanStatus.status = openListNew.reverse();
|
||||||
var statusData = {
|
_this7.statusList = [];
|
||||||
name: "\u9876\u5377\u819C".concat(i + 1),
|
for (var i = 0; i < 4; i++) {
|
||||||
open: res.data[1025 + i * 3],
|
var statusData = {
|
||||||
progress: res.data[1027 + i * 3],
|
name: "\u9876\u5377\u819C".concat(i + 1),
|
||||||
index: res.data[1026 + i * 3]
|
open: res.data[1025 + i * 3],
|
||||||
};
|
progress: res.data[1027 + i * 3],
|
||||||
_this7.statusList.push(statusData);
|
index: res.data[1026 + i * 3]
|
||||||
|
};
|
||||||
|
_this7.statusList.push(statusData);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 五防项目状态
|
// 五防项目状态
|
||||||
|
@ -2283,6 +2431,18 @@ var _default = {
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
||||||
|
// 标准风机
|
||||||
|
if (_this7.purviewList.indexOf('26') != -1) {
|
||||||
|
_this7.standardFanStatus.open = res.data['1078'];
|
||||||
|
_this7.standardFanStatus.status = [];
|
||||||
|
var standardnum = res.data['1079'];
|
||||||
|
var standardnum1 = _this7.padString(standardnum.toString(2), 5);
|
||||||
|
var openListNew = [];
|
||||||
|
openListNew = standardnum1.split("");
|
||||||
|
_this7.standardFanStatus.status = openListNew.reverse();
|
||||||
|
}
|
||||||
|
;
|
||||||
|
|
||||||
// 湿帘泵
|
// 湿帘泵
|
||||||
if (_this7.purviewList.indexOf('26') != -1) {
|
if (_this7.purviewList.indexOf('26') != -1) {
|
||||||
_this7.fanwetcurtainList.forEach(function (el, index) {
|
_this7.fanwetcurtainList.forEach(function (el, index) {
|
||||||
|
@ -2339,34 +2499,88 @@ var _default = {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
// 丽水 风机
|
||||||
|
fanmodelHander: function fanmodelHander() {
|
||||||
|
var _this8 = this;
|
||||||
|
this.fanmodelShow = true;
|
||||||
|
var data = {
|
||||||
|
deviceId: this.deviceId
|
||||||
|
};
|
||||||
|
this.$http({
|
||||||
|
url: this.api.getReadControlliShuiControl,
|
||||||
|
data: data,
|
||||||
|
method: 'GET'
|
||||||
|
}).then(function (res) {
|
||||||
|
_this8.inputData2 = res.data;
|
||||||
|
// this.openIndex1 = this.inputData2[21613 + ((this.indexs - 1) * 11)]
|
||||||
|
|
||||||
|
_this8.openIndex = _this8.inputData2[21600];
|
||||||
|
_this8.getAct21601();
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 标准风机
|
||||||
|
standardFanmodelHander: function standardFanmodelHander() {
|
||||||
|
var _this9 = this;
|
||||||
|
this.standardFanmodelShow = true;
|
||||||
|
var deviceId = this.deviceId;
|
||||||
|
this.$http({
|
||||||
|
url: this.api.readControl_fanwetcurtain + '?deviceId=' + deviceId,
|
||||||
|
method: 'GET'
|
||||||
|
}).then(function (res) {
|
||||||
|
if (res.code == 200) {
|
||||||
|
_this9.standardFanInputData2 = res.data;
|
||||||
|
_this9.standardFanOpenIndex = _this9.standardFanInputData2[21950];
|
||||||
|
_this9.standardFanActList1 = [];
|
||||||
|
var num = _this9.standardFanInputData2['21951'];
|
||||||
|
var num1 = _this9.padString(num.toString(2), 5);
|
||||||
|
var openListNew = [];
|
||||||
|
openListNew = num1.split("");
|
||||||
|
openListNew.forEach(function (el, index) {
|
||||||
|
_this9.standardFanActList1.push(openListNew[openListNew.length - index - 1]);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
// 东北五防弹框
|
// 东北五防弹框
|
||||||
openFiveControlShow: function openFiveControlShow(index) {
|
openFiveControlShow: function openFiveControlShow(index) {
|
||||||
|
var _this10 = this;
|
||||||
this.fiveControlShow = true;
|
this.fiveControlShow = true;
|
||||||
this.pop_title = this.fiveControlList[index].title;
|
this.pop_title = this.fiveControlList[index].title;
|
||||||
this.close_btn_all = this.fiveControlList[index].close_btn;
|
this.close_btn_all = this.fiveControlList[index].close_btn;
|
||||||
if (index == 0) {
|
var deviceId = this.deviceId;
|
||||||
this.fiveControlIndex = this.fiveControl[21520];
|
this.$http({
|
||||||
this.fiveControlUrl = 'waterPump';
|
url: this.api.readControl_fiveControl + '?deviceId=' + deviceId,
|
||||||
} else if (index == 1) {
|
method: 'GET'
|
||||||
this.fiveControlIndex = this.fiveControl[21526];
|
}).then(function (res) {
|
||||||
this.fiveControlUrl = 'geothermalFan';
|
if (res.code == 200) {
|
||||||
} else if (index == 2) {
|
uni.hideLoading();
|
||||||
this.fiveControlIndex = this.fiveControl[21530];
|
uni.stopPullDownRefresh();
|
||||||
this.fiveControlUrl = 'uptake';
|
_this10.fiveControl = res.data;
|
||||||
} else if (index == 3) {
|
if (index == 0) {
|
||||||
this.fiveControlIndex = this.fiveControl[21541];
|
_this10.fiveControlIndex = _this10.fiveControl[21520];
|
||||||
this.fiveControlUrl = 'downtake';
|
_this10.fiveControlUrl = 'waterPump';
|
||||||
} else if (index == 4) {
|
} else if (index == 1) {
|
||||||
this.fiveControlIndex = this.fiveControl[21548];
|
_this10.fiveControlIndex = _this10.fiveControl[21526];
|
||||||
this.fiveControlUrl = 'rollByRoll';
|
_this10.fiveControlUrl = 'geothermalFan';
|
||||||
} else if (index == 5) {
|
} else if (index == 2) {
|
||||||
this.fiveControlIndex = this.fiveControl[21558];
|
_this10.fiveControlIndex = _this10.fiveControl[21530];
|
||||||
this.fiveControlUrl = 'snowRemoval';
|
_this10.fiveControlUrl = 'uptake';
|
||||||
}
|
} else if (index == 3) {
|
||||||
|
_this10.fiveControlIndex = _this10.fiveControl[21541];
|
||||||
|
_this10.fiveControlUrl = 'downtake';
|
||||||
|
} else if (index == 4) {
|
||||||
|
_this10.fiveControlIndex = _this10.fiveControl[21548];
|
||||||
|
_this10.fiveControlUrl = 'rollByRoll';
|
||||||
|
} else if (index == 5) {
|
||||||
|
_this10.fiveControlIndex = _this10.fiveControl[21558];
|
||||||
|
_this10.fiveControlUrl = 'snowRemoval';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
},
|
},
|
||||||
// 电磁阀
|
// 电磁阀
|
||||||
openValveControlShow: function openValveControlShow(index) {
|
openValveControlShow: function openValveControlShow(index) {
|
||||||
var _this8 = this;
|
var _this11 = this;
|
||||||
this.valveControlShow = true;
|
this.valveControlShow = true;
|
||||||
this.valvePopTitle = index + 1 + '#电磁阀';
|
this.valvePopTitle = index + 1 + '#电磁阀';
|
||||||
var data = {
|
var data = {
|
||||||
|
@ -2378,14 +2592,37 @@ var _default = {
|
||||||
method: 'GET'
|
method: 'GET'
|
||||||
}).then(function (res) {
|
}).then(function (res) {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
_this8.valveControlIndex = res.data[20201 + index * 50];
|
_this11.valveControlIndex = res.data[20201 + index * 50];
|
||||||
_this8.valve_input_value = res.data[20202 + index * 50];
|
_this11.valve_input_value = res.data[20202 + index * 50];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 补光灯
|
||||||
|
supplementLightHander: function supplementLightHander() {
|
||||||
|
var _this12 = this;
|
||||||
|
var deviceId = this.deviceId;
|
||||||
|
this.supplementLightShow = true;
|
||||||
|
this.$http({
|
||||||
|
url: this.api.readControl_readfilllight + '?deviceId=' + deviceId,
|
||||||
|
method: 'GET'
|
||||||
|
}).then(function (res) {
|
||||||
|
if (res.code == 200) {
|
||||||
|
// console.log(res,'补光灯');
|
||||||
|
uni.hideLoading();
|
||||||
|
uni.stopPullDownRefresh();
|
||||||
|
_this12.lightControlIndex = res.data[21400];
|
||||||
|
_this12.actListLight = [];
|
||||||
|
var numLight = res.data[21401];
|
||||||
|
var numLight1 = _this12.padString(numLight.toString(2), 8);
|
||||||
|
var openListNew = [];
|
||||||
|
openListNew = numLight1.split('');
|
||||||
|
_this12.actListLight = openListNew.reverse();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 环流风扇弹框
|
// 环流风扇弹框
|
||||||
circulationFengshanHander: function circulationFengshanHander(index) {
|
circulationFengshanHander: function circulationFengshanHander(index) {
|
||||||
var _this9 = this;
|
var _this13 = this;
|
||||||
this.circulationControlIndex = 0;
|
this.circulationControlIndex = 0;
|
||||||
this.popCirculationFengshanName = index;
|
this.popCirculationFengshanName = index;
|
||||||
var deviceId = this.deviceId;
|
var deviceId = this.deviceId;
|
||||||
|
@ -2397,13 +2634,13 @@ var _default = {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
uni.stopPullDownRefresh();
|
uni.stopPullDownRefresh();
|
||||||
_this9.circulationControlIndex = res.data[21450 + index * 20];
|
_this13.circulationControlIndex = res.data[21450 + index * 20];
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 湿帘泵弹框
|
// 湿帘泵弹框
|
||||||
fanwetcurtainHander: function fanwetcurtainHander(index) {
|
fanwetcurtainHander: function fanwetcurtainHander(index) {
|
||||||
var _this10 = this;
|
var _this14 = this;
|
||||||
this.fanwetcurtainControlIndex = 0;
|
this.fanwetcurtainControlIndex = 0;
|
||||||
this.popfanwetcurtainName = index;
|
this.popfanwetcurtainName = index;
|
||||||
var deviceId = this.deviceId;
|
var deviceId = this.deviceId;
|
||||||
|
@ -2415,13 +2652,13 @@ var _default = {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
uni.stopPullDownRefresh();
|
uni.stopPullDownRefresh();
|
||||||
_this10.fanwetcurtainControlIndex = res.data[21970 + index * 2];
|
_this14.fanwetcurtainControlIndex = res.data[21970 + index * 2];
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 高压微雾
|
// 高压微雾
|
||||||
highpressuremistHander: function highpressuremistHander(index) {
|
highpressuremistHander: function highpressuremistHander(index) {
|
||||||
var _this11 = this;
|
var _this15 = this;
|
||||||
this.highpressuremistControlIndex = 0;
|
this.highpressuremistControlIndex = 0;
|
||||||
this.pophighpressuremistName = index;
|
this.pophighpressuremistName = index;
|
||||||
var deviceId = this.deviceId;
|
var deviceId = this.deviceId;
|
||||||
|
@ -2433,13 +2670,13 @@ var _default = {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
uni.stopPullDownRefresh();
|
uni.stopPullDownRefresh();
|
||||||
_this11.highpressuremistControlIndex = res.data[21800 + index * 8];
|
_this15.highpressuremistControlIndex = res.data[21800 + index * 8];
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 湿帘外翻窗
|
// 湿帘外翻窗
|
||||||
outFlipWindowHander: function outFlipWindowHander(index) {
|
outFlipWindowHander: function outFlipWindowHander(index) {
|
||||||
var _this12 = this;
|
var _this16 = this;
|
||||||
this.outFlipWindowControlIndex = 0;
|
this.outFlipWindowControlIndex = 0;
|
||||||
this.popoutFlipWindowName = index;
|
this.popoutFlipWindowName = index;
|
||||||
var deviceId = this.deviceId;
|
var deviceId = this.deviceId;
|
||||||
|
@ -2451,13 +2688,13 @@ var _default = {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
uni.stopPullDownRefresh();
|
uni.stopPullDownRefresh();
|
||||||
_this12.outFlipWindowControlIndex = res.data[21974 + index * 5];
|
_this16.outFlipWindowControlIndex = res.data[21974 + index * 5];
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 内遮阳
|
// 内遮阳
|
||||||
innercurtainHander: function innercurtainHander(index) {
|
innercurtainHander: function innercurtainHander(index) {
|
||||||
var _this13 = this;
|
var _this17 = this;
|
||||||
this.innercurtainControlIndex = 0;
|
this.innercurtainControlIndex = 0;
|
||||||
this.popinnercurtainName = index;
|
this.popinnercurtainName = index;
|
||||||
var deviceId = this.deviceId;
|
var deviceId = this.deviceId;
|
||||||
|
@ -2469,13 +2706,13 @@ var _default = {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
uni.stopPullDownRefresh();
|
uni.stopPullDownRefresh();
|
||||||
_this13.innercurtainControlIndex = res.data[21840 + index * 18];
|
_this17.innercurtainControlIndex = res.data[21840 + index * 18];
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 外遮阳
|
// 外遮阳
|
||||||
externalsunshadeHander: function externalsunshadeHander(index) {
|
externalsunshadeHander: function externalsunshadeHander(index) {
|
||||||
var _this14 = this;
|
var _this18 = this;
|
||||||
this.externalsunshadeControlIndex = 0;
|
this.externalsunshadeControlIndex = 0;
|
||||||
this.popexternalsunshadeName = index;
|
this.popexternalsunshadeName = index;
|
||||||
var deviceId = this.deviceId;
|
var deviceId = this.deviceId;
|
||||||
|
@ -2487,13 +2724,13 @@ var _default = {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
uni.stopPullDownRefresh();
|
uni.stopPullDownRefresh();
|
||||||
_this14.externalsunshadeControlIndex = res.data[21900 + index * 15];
|
_this18.externalsunshadeControlIndex = res.data[21900 + index * 15];
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 通风窗
|
// 通风窗
|
||||||
airWindowHander: function airWindowHander(index) {
|
airWindowHander: function airWindowHander(index) {
|
||||||
var _this15 = this;
|
var _this19 = this;
|
||||||
this.airWindowControlIndex = 0;
|
this.airWindowControlIndex = 0;
|
||||||
this.popairWindowName = index;
|
this.popairWindowName = index;
|
||||||
var deviceId = this.deviceId;
|
var deviceId = this.deviceId;
|
||||||
|
@ -2505,7 +2742,7 @@ var _default = {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
uni.stopPullDownRefresh();
|
uni.stopPullDownRefresh();
|
||||||
_this15.airWindowControlIndex = res.data[21250 + index * 23];
|
_this19.airWindowControlIndex = res.data[21250 + index * 23];
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -2631,7 +2868,7 @@ var _default = {
|
||||||
this.delayTimer(0, data);
|
this.delayTimer(0, data);
|
||||||
},
|
},
|
||||||
delayTimer: function delayTimer(i, data) {
|
delayTimer: function delayTimer(i, data) {
|
||||||
var _this16 = this;
|
var _this20 = this;
|
||||||
var that = this;
|
var that = this;
|
||||||
//整体接口
|
//整体接口
|
||||||
var j = 5;
|
var j = 5;
|
||||||
|
@ -2641,12 +2878,12 @@ var _default = {
|
||||||
++i;
|
++i;
|
||||||
if (i == j) {
|
if (i == j) {
|
||||||
that.changeData(data);
|
that.changeData(data);
|
||||||
clearInterval(_this16.timer);
|
clearInterval(_this20.timer);
|
||||||
}
|
}
|
||||||
}, 100);
|
}, 100);
|
||||||
},
|
},
|
||||||
changeData: function changeData(data) {
|
changeData: function changeData(data) {
|
||||||
var _this17 = this;
|
var _this21 = this;
|
||||||
var that = this;
|
var that = this;
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.api.writeJinHuaControl_write,
|
url: this.api.writeJinHuaControl_write,
|
||||||
|
@ -2658,7 +2895,7 @@ var _default = {
|
||||||
title: res.msg,
|
title: res.msg,
|
||||||
icon: "success"
|
icon: "success"
|
||||||
});
|
});
|
||||||
_this17.dataInit();
|
_this21.dataInit();
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: "失败!",
|
title: "失败!",
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -133,7 +133,9 @@ var render = function () {
|
||||||
var $orig = _vm.__get_orig(item2)
|
var $orig = _vm.__get_orig(item2)
|
||||||
var m0 = _vm.getTypeList(item2.formula)
|
var m0 = _vm.getTypeList(item2.formula)
|
||||||
var m1 = _vm.getStatus(item2.equipmentNumber, item2.targetValue)
|
var m1 = _vm.getStatus(item2.equipmentNumber, item2.targetValue)
|
||||||
var m2 = _vm.getTypeList(item2.formula)
|
var m2 = !(item2.equipmentStart == 0)
|
||||||
|
? _vm.getTypeList(item2.formula)
|
||||||
|
: null
|
||||||
return {
|
return {
|
||||||
$orig: $orig,
|
$orig: $orig,
|
||||||
m0: m0,
|
m0: m0,
|
||||||
|
@ -146,7 +148,9 @@ var render = function () {
|
||||||
var $orig = _vm.__get_orig(item2)
|
var $orig = _vm.__get_orig(item2)
|
||||||
var m3 = _vm.getTypeList(item2.formula)
|
var m3 = _vm.getTypeList(item2.formula)
|
||||||
var m4 = _vm.getStatus(item2.equipmentNumber, item2.targetValue)
|
var m4 = _vm.getStatus(item2.equipmentNumber, item2.targetValue)
|
||||||
var m5 = _vm.getTypeList(item2.formula)
|
var m5 = !(item2.equipmentStart == 0)
|
||||||
|
? _vm.getTypeList(item2.formula)
|
||||||
|
: null
|
||||||
return {
|
return {
|
||||||
$orig: $orig,
|
$orig: $orig,
|
||||||
m3: m3,
|
m3: m3,
|
||||||
|
@ -159,7 +163,9 @@ var render = function () {
|
||||||
var $orig = _vm.__get_orig(item2)
|
var $orig = _vm.__get_orig(item2)
|
||||||
var m6 = _vm.getTypeList(item2.formula)
|
var m6 = _vm.getTypeList(item2.formula)
|
||||||
var m7 = _vm.getStatus(item2.equipmentNumber, item2.targetValue)
|
var m7 = _vm.getStatus(item2.equipmentNumber, item2.targetValue)
|
||||||
var m8 = _vm.getTypeList(item2.formula)
|
var m8 = !(item2.equipmentStart == 0)
|
||||||
|
? _vm.getTypeList(item2.formula)
|
||||||
|
: null
|
||||||
return {
|
return {
|
||||||
$orig: $orig,
|
$orig: $orig,
|
||||||
m6: m6,
|
m6: m6,
|
||||||
|
@ -172,7 +178,9 @@ var render = function () {
|
||||||
var $orig = _vm.__get_orig(item2)
|
var $orig = _vm.__get_orig(item2)
|
||||||
var m9 = _vm.getTypeList(item2.formula)
|
var m9 = _vm.getTypeList(item2.formula)
|
||||||
var m10 = _vm.getStatus(item2.equipmentNumber, item2.targetValue)
|
var m10 = _vm.getStatus(item2.equipmentNumber, item2.targetValue)
|
||||||
var m11 = _vm.getTypeList(item2.formula)
|
var m11 = !(item2.equipmentStart == 0)
|
||||||
|
? _vm.getTypeList(item2.formula)
|
||||||
|
: null
|
||||||
return {
|
return {
|
||||||
$orig: $orig,
|
$orig: $orig,
|
||||||
m9: m9,
|
m9: m9,
|
||||||
|
@ -185,7 +193,9 @@ var render = function () {
|
||||||
var $orig = _vm.__get_orig(item2)
|
var $orig = _vm.__get_orig(item2)
|
||||||
var m12 = _vm.getTypeList(item2.formula)
|
var m12 = _vm.getTypeList(item2.formula)
|
||||||
var m13 = _vm.getStatus(item2.equipmentNumber, item2.targetValue)
|
var m13 = _vm.getStatus(item2.equipmentNumber, item2.targetValue)
|
||||||
var m14 = _vm.getTypeList(item2.formula)
|
var m14 = !(item2.equipmentStart == 0)
|
||||||
|
? _vm.getTypeList(item2.formula)
|
||||||
|
: null
|
||||||
return {
|
return {
|
||||||
$orig: $orig,
|
$orig: $orig,
|
||||||
m12: m12,
|
m12: m12,
|
||||||
|
@ -198,7 +208,9 @@ var render = function () {
|
||||||
var $orig = _vm.__get_orig(item2)
|
var $orig = _vm.__get_orig(item2)
|
||||||
var m15 = _vm.getTypeList(item2.formula)
|
var m15 = _vm.getTypeList(item2.formula)
|
||||||
var m16 = _vm.getStatus(item2.equipmentNumber, item2.targetValue)
|
var m16 = _vm.getStatus(item2.equipmentNumber, item2.targetValue)
|
||||||
var m17 = _vm.getTypeList(item2.formula)
|
var m17 = !(item2.equipmentStart == 0)
|
||||||
|
? _vm.getTypeList(item2.formula)
|
||||||
|
: null
|
||||||
return {
|
return {
|
||||||
$orig: $orig,
|
$orig: $orig,
|
||||||
m15: m15,
|
m15: m15,
|
||||||
|
@ -211,7 +223,9 @@ var render = function () {
|
||||||
var $orig = _vm.__get_orig(item2)
|
var $orig = _vm.__get_orig(item2)
|
||||||
var m18 = _vm.getTypeList(item2.formula)
|
var m18 = _vm.getTypeList(item2.formula)
|
||||||
var m19 = _vm.getStatus(item2.equipmentNumber, item2.targetValue)
|
var m19 = _vm.getStatus(item2.equipmentNumber, item2.targetValue)
|
||||||
var m20 = _vm.getTypeList(item2.formula)
|
var m20 = !(item2.equipmentStart == 0)
|
||||||
|
? _vm.getTypeList(item2.formula)
|
||||||
|
: null
|
||||||
return {
|
return {
|
||||||
$orig: $orig,
|
$orig: $orig,
|
||||||
m18: m18,
|
m18: m18,
|
||||||
|
@ -224,7 +238,9 @@ var render = function () {
|
||||||
var $orig = _vm.__get_orig(item2)
|
var $orig = _vm.__get_orig(item2)
|
||||||
var m21 = _vm.getTypeList(item2.formula)
|
var m21 = _vm.getTypeList(item2.formula)
|
||||||
var m22 = _vm.getStatus(item2.equipmentNumber, item2.targetValue)
|
var m22 = _vm.getStatus(item2.equipmentNumber, item2.targetValue)
|
||||||
var m23 = _vm.getTypeList(item2.formula)
|
var m23 = !(item2.equipmentStart == 0)
|
||||||
|
? _vm.getTypeList(item2.formula)
|
||||||
|
: null
|
||||||
return {
|
return {
|
||||||
$orig: $orig,
|
$orig: $orig,
|
||||||
m21: m21,
|
m21: m21,
|
||||||
|
@ -237,7 +253,9 @@ var render = function () {
|
||||||
var $orig = _vm.__get_orig(item2)
|
var $orig = _vm.__get_orig(item2)
|
||||||
var m24 = _vm.getTypeList(item2.formula)
|
var m24 = _vm.getTypeList(item2.formula)
|
||||||
var m25 = _vm.getStatus(item2.equipmentNumber, item2.targetValue)
|
var m25 = _vm.getStatus(item2.equipmentNumber, item2.targetValue)
|
||||||
var m26 = _vm.getTypeList(item2.formula)
|
var m26 = !(item2.equipmentStart == 0)
|
||||||
|
? _vm.getTypeList(item2.formula)
|
||||||
|
: null
|
||||||
return {
|
return {
|
||||||
$orig: $orig,
|
$orig: $orig,
|
||||||
m24: m24,
|
m24: m24,
|
||||||
|
@ -250,7 +268,9 @@ var render = function () {
|
||||||
var $orig = _vm.__get_orig(item2)
|
var $orig = _vm.__get_orig(item2)
|
||||||
var m27 = _vm.getTypeList(item2.formula)
|
var m27 = _vm.getTypeList(item2.formula)
|
||||||
var m28 = _vm.getStatus(item2.equipmentNumber, item2.targetValue)
|
var m28 = _vm.getStatus(item2.equipmentNumber, item2.targetValue)
|
||||||
var m29 = _vm.getTypeList(item2.formula)
|
var m29 = !(item2.equipmentStart == 0)
|
||||||
|
? _vm.getTypeList(item2.formula)
|
||||||
|
: null
|
||||||
return {
|
return {
|
||||||
$orig: $orig,
|
$orig: $orig,
|
||||||
m27: m27,
|
m27: m27,
|
||||||
|
@ -263,7 +283,9 @@ var render = function () {
|
||||||
var $orig = _vm.__get_orig(item2)
|
var $orig = _vm.__get_orig(item2)
|
||||||
var m30 = _vm.getTypeList(item2.formula)
|
var m30 = _vm.getTypeList(item2.formula)
|
||||||
var m31 = _vm.getStatus(item2.equipmentNumber, item2.targetValue)
|
var m31 = _vm.getStatus(item2.equipmentNumber, item2.targetValue)
|
||||||
var m32 = _vm.getTypeList(item2.formula)
|
var m32 = !(item2.equipmentStart == 0)
|
||||||
|
? _vm.getTypeList(item2.formula)
|
||||||
|
: null
|
||||||
return {
|
return {
|
||||||
$orig: $orig,
|
$orig: $orig,
|
||||||
m30: m30,
|
m30: m30,
|
||||||
|
@ -276,7 +298,9 @@ var render = function () {
|
||||||
var $orig = _vm.__get_orig(item2)
|
var $orig = _vm.__get_orig(item2)
|
||||||
var m33 = _vm.getTypeList(item2.formula)
|
var m33 = _vm.getTypeList(item2.formula)
|
||||||
var m34 = _vm.getStatus(item2.equipmentNumber, item2.targetValue)
|
var m34 = _vm.getStatus(item2.equipmentNumber, item2.targetValue)
|
||||||
var m35 = _vm.getTypeList(item2.formula)
|
var m35 = !(item2.equipmentStart == 0)
|
||||||
|
? _vm.getTypeList(item2.formula)
|
||||||
|
: null
|
||||||
return {
|
return {
|
||||||
$orig: $orig,
|
$orig: $orig,
|
||||||
m33: m33,
|
m33: m33,
|
||||||
|
@ -289,7 +313,9 @@ var render = function () {
|
||||||
var $orig = _vm.__get_orig(item2)
|
var $orig = _vm.__get_orig(item2)
|
||||||
var m36 = _vm.getTypeList(item2.formula)
|
var m36 = _vm.getTypeList(item2.formula)
|
||||||
var m37 = _vm.getStatus(item2.equipmentNumber, item2.targetValue)
|
var m37 = _vm.getStatus(item2.equipmentNumber, item2.targetValue)
|
||||||
var m38 = _vm.getTypeList(item2.formula)
|
var m38 = !(item2.equipmentStart == 0)
|
||||||
|
? _vm.getTypeList(item2.formula)
|
||||||
|
: null
|
||||||
return {
|
return {
|
||||||
$orig: $orig,
|
$orig: $orig,
|
||||||
m36: m36,
|
m36: m36,
|
||||||
|
@ -302,7 +328,9 @@ var render = function () {
|
||||||
var $orig = _vm.__get_orig(item2)
|
var $orig = _vm.__get_orig(item2)
|
||||||
var m39 = _vm.getTypeList(item2.formula)
|
var m39 = _vm.getTypeList(item2.formula)
|
||||||
var m40 = _vm.getStatus(item2.equipmentNumber, item2.targetValue)
|
var m40 = _vm.getStatus(item2.equipmentNumber, item2.targetValue)
|
||||||
var m41 = _vm.getTypeList(item2.formula)
|
var m41 = !(item2.equipmentStart == 0)
|
||||||
|
? _vm.getTypeList(item2.formula)
|
||||||
|
: null
|
||||||
return {
|
return {
|
||||||
$orig: $orig,
|
$orig: $orig,
|
||||||
m39: m39,
|
m39: m39,
|
||||||
|
@ -315,7 +343,9 @@ var render = function () {
|
||||||
var $orig = _vm.__get_orig(item2)
|
var $orig = _vm.__get_orig(item2)
|
||||||
var m42 = _vm.getTypeList(item2.formula)
|
var m42 = _vm.getTypeList(item2.formula)
|
||||||
var m43 = _vm.getStatus(item2.equipmentNumber, item2.targetValue)
|
var m43 = _vm.getStatus(item2.equipmentNumber, item2.targetValue)
|
||||||
var m44 = _vm.getTypeList(item2.formula)
|
var m44 = !(item2.equipmentStart == 0)
|
||||||
|
? _vm.getTypeList(item2.formula)
|
||||||
|
: null
|
||||||
return {
|
return {
|
||||||
$orig: $orig,
|
$orig: $orig,
|
||||||
m42: m42,
|
m42: m42,
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue