首页去掉控制器
parent
e05b222326
commit
7b5e0f1cfd
|
@ -24,7 +24,7 @@
|
||||||
欢迎使用温室智慧云数据统计
|
欢迎使用温室智慧云数据统计
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="waterAndFertilizerParams" v-for="(item1,index1) in waterAndFertilizerParamsList" :key="index1">
|
<view class="waterAndFertilizerParams" v-for="(item1,index1) in waterAndFertilizerParamsList" :key="index1" v-if="item1.equipmentName==1">
|
||||||
<view class="nav">
|
<view class="nav">
|
||||||
<image src="../../static/PH.png" mode=""></image>
|
<image src="../../static/PH.png" mode=""></image>
|
||||||
<text>{{ item1.deviceTypeName }}</text>
|
<text>{{ item1.deviceTypeName }}</text>
|
||||||
|
@ -348,6 +348,8 @@
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.waterAndFertilizerParamsList.forEach((i,index)=>{
|
this.waterAndFertilizerParamsList.forEach((i,index)=>{
|
||||||
|
console.log(i.deviceId,'i.deviceId');
|
||||||
|
if(i.deviceId == 2023042214250018) return
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.api.getFs_rtdata + "?equipmentId=" + i.deviceId,
|
url: this.api.getFs_rtdata + "?equipmentId=" + i.deviceId,
|
||||||
method: 'post',
|
method: 'post',
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -129,7 +129,9 @@ var render = function () {
|
||||||
_vm.waterAndFertilizerParamsList,
|
_vm.waterAndFertilizerParamsList,
|
||||||
function (item1, index1) {
|
function (item1, index1) {
|
||||||
var $orig = _vm.__get_orig(item1)
|
var $orig = _vm.__get_orig(item1)
|
||||||
var l0 = _vm.__map(item1.childList, function (item2, index2) {
|
var l0 =
|
||||||
|
item1.equipmentName == 1
|
||||||
|
? _vm.__map(item1.childList, function (item2, index2) {
|
||||||
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)
|
||||||
|
@ -141,6 +143,7 @@ var render = function () {
|
||||||
m2: m2,
|
m2: m2,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
: null
|
||||||
return {
|
return {
|
||||||
$orig: $orig,
|
$orig: $orig,
|
||||||
l0: l0,
|
l0: l0,
|
||||||
|
@ -755,6 +758,8 @@ var _default = {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
_this.waterAndFertilizerParamsList.forEach(function (i, index) {
|
_this.waterAndFertilizerParamsList.forEach(function (i, index) {
|
||||||
|
console.log(i.deviceId, 'i.deviceId');
|
||||||
|
if (i.deviceId == 2023042214250018) return;
|
||||||
_this.$http({
|
_this.$http({
|
||||||
url: _this.api.getFs_rtdata + "?equipmentId=" + i.deviceId,
|
url: _this.api.getFs_rtdata + "?equipmentId=" + i.deviceId,
|
||||||
method: 'post'
|
method: 'post'
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
<view class="timeEnvironment data-v-34c343d8"><u-navbar vue-id="63a4351c-1" background="{{background}}" is-back="{{true}}" back-icon-color="#FFFFFF" border-bottom="{{false}}" title="实时环境" title-color="#FFFFFF" title-bold="{{true}}" title-size="32" class="data-v-34c343d8" bind:__l="__l"></u-navbar><view class="navbar data-v-34c343d8"><image src="../../static/timeEnvironment_bg.png" mode class="data-v-34c343d8"></image></view><view class="content data-v-34c343d8"><view class="title data-v-34c343d8"><image src="../../static/logo_1.png" mode class="data-v-34c343d8"></image><view class="right data-v-34c343d8"><view class="data-v-34c343d8">温室智慧云</view><view class="data-v-34c343d8">Greenhouse wisdom Cloud</view></view></view><view class="subtitle data-v-34c343d8">欢迎使用温室智慧云数据统计</view><block wx:for="{{$root.l1}}" wx:for-item="item1" wx:for-index="index1" wx:key="index1"><view class="waterAndFertilizerParams data-v-34c343d8"><view class="nav data-v-34c343d8"><image src="../../static/PH.png" mode class="data-v-34c343d8"></image><text class="data-v-34c343d8">{{item1.$orig.deviceTypeName}}</text></view><view class="detail data-v-34c343d8"><block wx:for="{{item1.l0}}" wx:for-item="item2" wx:for-index="index2" wx:key="index2"><view data-event-opts="{{[['tap',[['toTarget_water_fertilizer_PH',['$0','$1','$2','$3','$4',item2.m0],[[['waterAndFertilizerParamsList','',index1],['childList','',index2,'equipmentId']],[['waterAndFertilizerParamsList','',index1],['childList','',index2,'environmentData']],[['waterAndFertilizerParamsList','',index1],['childList','',index2,'environmentDataId']],[['waterAndFertilizerParamsList','',index1],['childList','',index2,'equipmentNumber']],[['waterAndFertilizerParamsList','',index1],['childList','',index2,'targetValue']]]]]]]}}" class="item data-v-34c343d8" bindtap="__e"><image src="{{'../../static/icon/icon'+(index2+1<9?index2+1:1)+'.png'}}" mode class="data-v-34c343d8"></image><view class="info data-v-34c343d8"><view class="data-v-34c343d8">{{item2.m1+item2.$orig.environmentDataId}}</view><view class="data-v-34c343d8">{{item2.$orig.environmentData+item2.m2}}</view></view></view></block></view><view class="updateTime data-v-34c343d8"><label class="_span data-v-34c343d8"></label><label class="_span data-v-34c343d8">{{"*更新数据时间 : "+updateTime}}</label></view></view></block></view></view>
|
<view class="timeEnvironment data-v-34c343d8"><u-navbar vue-id="63a4351c-1" background="{{background}}" is-back="{{true}}" back-icon-color="#FFFFFF" border-bottom="{{false}}" title="实时环境" title-color="#FFFFFF" title-bold="{{true}}" title-size="32" class="data-v-34c343d8" bind:__l="__l"></u-navbar><view class="navbar data-v-34c343d8"><image src="../../static/timeEnvironment_bg.png" mode class="data-v-34c343d8"></image></view><view class="content data-v-34c343d8"><view class="title data-v-34c343d8"><image src="../../static/logo_1.png" mode class="data-v-34c343d8"></image><view class="right data-v-34c343d8"><view class="data-v-34c343d8">温室智慧云</view><view class="data-v-34c343d8">Greenhouse wisdom Cloud</view></view></view><view class="subtitle data-v-34c343d8">欢迎使用温室智慧云数据统计</view><block wx:for="{{$root.l1}}" wx:for-item="item1" wx:for-index="index1" wx:key="index1"><block wx:if="{{item1.$orig.equipmentName==1}}"><view class="waterAndFertilizerParams data-v-34c343d8"><view class="nav data-v-34c343d8"><image src="../../static/PH.png" mode class="data-v-34c343d8"></image><text class="data-v-34c343d8">{{item1.$orig.deviceTypeName}}</text></view><view class="detail data-v-34c343d8"><block wx:for="{{item1.l0}}" wx:for-item="item2" wx:for-index="index2" wx:key="index2"><view data-event-opts="{{[['tap',[['toTarget_water_fertilizer_PH',['$0','$1','$2','$3','$4',item2.m0],[[['waterAndFertilizerParamsList','',index1],['childList','',index2,'equipmentId']],[['waterAndFertilizerParamsList','',index1],['childList','',index2,'environmentData']],[['waterAndFertilizerParamsList','',index1],['childList','',index2,'environmentDataId']],[['waterAndFertilizerParamsList','',index1],['childList','',index2,'equipmentNumber']],[['waterAndFertilizerParamsList','',index1],['childList','',index2,'targetValue']]]]]]]}}" class="item data-v-34c343d8" bindtap="__e"><image src="{{'../../static/icon/icon'+(index2+1<9?index2+1:1)+'.png'}}" mode class="data-v-34c343d8"></image><view class="info data-v-34c343d8"><view class="data-v-34c343d8">{{item2.m1+item2.$orig.environmentDataId}}</view><view class="data-v-34c343d8">{{item2.$orig.environmentData+item2.m2}}</view></view></view></block></view><view class="updateTime data-v-34c343d8"><label class="_span data-v-34c343d8"></label><label class="_span data-v-34c343d8">{{"*更新数据时间 : "+updateTime}}</label></view></view></block></block></view></view>
|
Loading…
Reference in New Issue