wx-program
parent
b3f3feceba
commit
0c814956b3
|
@ -120,7 +120,7 @@
|
|||
</view>
|
||||
|
||||
<template v-for="item, index in statusList">
|
||||
<view class="lishui-item" v-if="item.open != 0" :key="index">
|
||||
<view class="lishui-item" v-show="item.open != 0" :key="index">
|
||||
<view class="lishui-title">
|
||||
<view class="title-left">
|
||||
{{ item.name }}
|
||||
|
@ -159,7 +159,7 @@
|
|||
<!-- 东北五防 -->
|
||||
<view class="content" v-if="purviewList.indexOf('8')!=-1">
|
||||
<template v-for="(item,index) in fiveControlList">
|
||||
<view class="lishui-item" v-if="item.controlState != 0" :key="index">
|
||||
<view class="lishui-item" v-show="item.controlState != 0" :key="index">
|
||||
<view class="lishui-title">
|
||||
<view class="title-left">
|
||||
{{ item.title }}
|
||||
|
@ -282,7 +282,7 @@
|
|||
<!-- 环流风扇 -->
|
||||
<view class="content" v-if="purviewList.indexOf('21')!=-1">
|
||||
<template v-for="(item,index) in circulationFengshanList">
|
||||
<view class="lishui-item" v-if="item.circulationFengshanState != 0" :key="index">
|
||||
<view class="lishui-item" v-show="item.circulationFengshanState != 0" :key="index">
|
||||
<view class="lishui-title">
|
||||
<view class="title-left">
|
||||
{{ item.name }}
|
||||
|
@ -387,7 +387,7 @@
|
|||
<!-- 湿帘泵 -->
|
||||
<view class="content" v-if="purviewList.indexOf('26')!=-1">
|
||||
<template v-for="(item,index) in fanwetcurtainList">
|
||||
<view class="lishui-item" v-if="item.fanwetcurtainState != 0" :key="index">
|
||||
<view class="lishui-item" v-show="item.fanwetcurtainState != 0" :key="index">
|
||||
<view class="lishui-title">
|
||||
<view class="title-left">
|
||||
{{ item.name }}
|
||||
|
@ -430,7 +430,7 @@
|
|||
<!-- 高压微雾 -->
|
||||
<view class="content" v-if="purviewList.indexOf('23')!=-1">
|
||||
<template v-for="(item,index) in highpressuremistList">
|
||||
<view class="lishui-item" v-if="item.highpressuremistState != 0" :key="index">
|
||||
<view class="lishui-item" v-show="item.highpressuremistState != 0" :key="index">
|
||||
<view class="lishui-title">
|
||||
<view class="title-left">
|
||||
{{ item.name }}
|
||||
|
@ -473,7 +473,7 @@
|
|||
<!-- #湿窗外翻窗 -->
|
||||
<view class="content" v-if="purviewList.indexOf('26')!=-1">
|
||||
<template v-for="(item,index) in outFlipWindowList">
|
||||
<view class="lishui-item" v-if="item.outFlipWindowState != 0" :key="index">
|
||||
<view class="lishui-item" v-show="item.outFlipWindowState != 0" :key="index">
|
||||
<view class="lishui-title">
|
||||
<view class="title-left">
|
||||
{{ item.name }}
|
||||
|
@ -512,7 +512,7 @@
|
|||
<!-- 内遮阳 -->
|
||||
<view class="content" v-if="purviewList.indexOf('24')!=-1">
|
||||
<template v-for="(item,index) in innercurtainList">
|
||||
<view class="lishui-item" v-if="item.innercurtainState != 0" :key="index">
|
||||
<view class="lishui-item" v-show="item.innercurtainState != 0" :key="index">
|
||||
<view class="lishui-title">
|
||||
<view class="title-left">
|
||||
{{ item.name }}
|
||||
|
@ -551,7 +551,7 @@
|
|||
<!-- 外遮阳 -->
|
||||
<view class="content" v-if="purviewList.indexOf('25')!=-1">
|
||||
<template v-for="(item,index) in externalsunshadeList">
|
||||
<view class="lishui-item" v-if="item.externalsunshadeState != 0" :key="index">
|
||||
<view class="lishui-item" v-show="item.externalsunshadeState != 0" :key="index">
|
||||
<view class="lishui-title">
|
||||
<view class="title-left">
|
||||
{{ item.name }}
|
||||
|
@ -590,7 +590,7 @@
|
|||
<!-- 通风窗 -->
|
||||
<view class="content" v-if="purviewList.indexOf('19')!=-1">
|
||||
<template v-for="(item,index) in airWindowList">
|
||||
<view class="lishui-item" v-if="item.airWindowState != 0" :key="index">
|
||||
<view class="lishui-item" v-show="item.airWindowState != 0" :key="index">
|
||||
<view class="lishui-title">
|
||||
<view class="title-left">
|
||||
{{ item.name }}
|
||||
|
@ -628,16 +628,18 @@
|
|||
|
||||
<!-- *#电磁阀 -->
|
||||
<view class="content">
|
||||
<view v-for="(item,index) in 8" :key="index">
|
||||
<view class="valve" v-if="purviewList.indexOf((index + 11).toString())!=-1">
|
||||
<image src="../../static/valve.png" mode=""></image>
|
||||
<span>{{index+1}}#电磁阀</span>
|
||||
<view @click="openValveControlShow(index)">
|
||||
设置
|
||||
<image src="../../static/right-arrow.png" mode=""></image>
|
||||
<template v-for="(item,index) in electronMagneticStatus">
|
||||
<view :key="index" v-show="item.status != 0">
|
||||
<view class="valve" v-if="purviewList.indexOf((index + 11).toString())!=-1">
|
||||
<image src="../../static/valve.png" mode=""></image>
|
||||
<span>{{index+1}}#电磁阀</span>
|
||||
<view @click="openValveControlShow(index)">
|
||||
设置
|
||||
<image src="../../static/right-arrow.png" mode=""></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
</view>
|
||||
|
||||
<!-- 东北五防弹框 -->
|
||||
|
@ -1523,6 +1525,16 @@
|
|||
valvePopTitle:'',
|
||||
valve_input_value:'',
|
||||
valveControlIndex: 0,
|
||||
electronMagneticStatus:[
|
||||
{name:'1#电磁阀',code:1166,status:0},
|
||||
{name:'2#电磁阀',code:1167,status:0},
|
||||
{name:'3#电磁阀',code:1168,status:0},
|
||||
{name:'4#电磁阀',code:1169,status:0},
|
||||
{name:'5#电磁阀',code:1170,status:0},
|
||||
{name:'6#电磁阀',code:1171,status:0},
|
||||
{name:'7#电磁阀',code:1172,status:0},
|
||||
{name:'8#电磁阀',code:1173,status:0},
|
||||
],
|
||||
|
||||
supplementLightShow:false,//补光灯
|
||||
lightControlIndex:0,
|
||||
|
@ -2205,6 +2217,11 @@
|
|||
})
|
||||
};
|
||||
|
||||
// 电磁阀
|
||||
for(let t=0;t<this.electronMagneticStatus.length;t++){
|
||||
this.electronMagneticStatus[t].status = res.data[1166 + t]
|
||||
}
|
||||
// console.log(this.electronMagneticStatus,'this.electronMagneticStatus');
|
||||
}
|
||||
})
|
||||
},
|
||||
|
|
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
|
@ -157,10 +157,7 @@ var render = function () {
|
|||
g1 != -1
|
||||
? _vm.__map(_vm.statusList, function (item, index) {
|
||||
var $orig = _vm.__get_orig(item)
|
||||
var m4 =
|
||||
item.open != 0 && item.open != 0
|
||||
? _vm.getNumberStatus(item.index)
|
||||
: null
|
||||
var m4 = item.open != 0 ? _vm.getNumberStatus(item.index) : null
|
||||
return {
|
||||
$orig: $orig,
|
||||
m4: m4,
|
||||
|
@ -172,10 +169,7 @@ var render = function () {
|
|||
g2 != -1
|
||||
? _vm.__map(_vm.fiveControlList, function (item, index) {
|
||||
var $orig = _vm.__get_orig(item)
|
||||
var m5 =
|
||||
item.controlState != 0 && item.controlState != 0
|
||||
? Number(item.progress)
|
||||
: null
|
||||
var m5 = item.controlState != 0 ? Number(item.progress) : null
|
||||
return {
|
||||
$orig: $orig,
|
||||
m5: m5,
|
||||
|
@ -191,7 +185,7 @@ var render = function () {
|
|||
var g9 = _vm.purviewList.indexOf("24")
|
||||
var g10 = _vm.purviewList.indexOf("25")
|
||||
var g11 = _vm.purviewList.indexOf("19")
|
||||
var l3 = _vm.__map(8, function (item, index) {
|
||||
var l3 = _vm.__map(_vm.electronMagneticStatus, function (item, index) {
|
||||
var $orig = _vm.__get_orig(item)
|
||||
var g12 = _vm.purviewList.indexOf((index + 11).toString())
|
||||
return {
|
||||
|
@ -1520,6 +1514,8 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
var _default = {
|
||||
data: function data() {
|
||||
return {
|
||||
|
@ -1791,6 +1787,39 @@ var _default = {
|
|||
valvePopTitle: '',
|
||||
valve_input_value: '',
|
||||
valveControlIndex: 0,
|
||||
electronMagneticStatus: [{
|
||||
name: '1#电磁阀',
|
||||
code: 1166,
|
||||
status: 0
|
||||
}, {
|
||||
name: '2#电磁阀',
|
||||
code: 1167,
|
||||
status: 0
|
||||
}, {
|
||||
name: '3#电磁阀',
|
||||
code: 1168,
|
||||
status: 0
|
||||
}, {
|
||||
name: '4#电磁阀',
|
||||
code: 1169,
|
||||
status: 0
|
||||
}, {
|
||||
name: '5#电磁阀',
|
||||
code: 1170,
|
||||
status: 0
|
||||
}, {
|
||||
name: '6#电磁阀',
|
||||
code: 1171,
|
||||
status: 0
|
||||
}, {
|
||||
name: '7#电磁阀',
|
||||
code: 1172,
|
||||
status: 0
|
||||
}, {
|
||||
name: '8#电磁阀',
|
||||
code: 1173,
|
||||
status: 0
|
||||
}],
|
||||
supplementLightShow: false,
|
||||
//补光灯
|
||||
lightControlIndex: 0,
|
||||
|
@ -2498,6 +2527,12 @@ var _default = {
|
|||
});
|
||||
}
|
||||
;
|
||||
|
||||
// 电磁阀
|
||||
for (var t = 0; t < _this7.electronMagneticStatus.length; t++) {
|
||||
_this7.electronMagneticStatus[t].status = res.data[1166 + t];
|
||||
}
|
||||
// console.log(this.electronMagneticStatus,'this.electronMagneticStatus');
|
||||
}
|
||||
});
|
||||
},
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue