|
@@ -25,11 +25,11 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="irrMode">
|
|
<view class="irrMode">
|
|
|
- <view class="irrMode__header">
|
|
|
|
|
|
|
+ <view class="irrMode__header" v-if="irrigatedAreaList.length">
|
|
|
<view @click="changeMode('1')" :class="workStatus == '1' ? 'active' : ''">施肥模式</view>
|
|
<view @click="changeMode('1')" :class="workStatus == '1' ? 'active' : ''">施肥模式</view>
|
|
|
<view @click="changeMode('0')" :class="workStatus == '0' ? 'active' : ''">灌溉模式</view>
|
|
<view @click="changeMode('0')" :class="workStatus == '0' ? 'active' : ''">灌溉模式</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="irrMode__content">
|
|
|
|
|
|
|
+ <view class="irrMode__content" v-if="irrigatedAreaList.length">
|
|
|
<view class="irrMode__content-header">
|
|
<view class="irrMode__content-header">
|
|
|
<view class="irrMode__content-header-list">
|
|
<view class="irrMode__content-header-list">
|
|
|
<view class="irrMode__content-header-title">
|
|
<view class="irrMode__content-header-title">
|
|
@@ -195,11 +195,6 @@ export default {
|
|
|
onUnload() {
|
|
onUnload() {
|
|
|
this.ws.close();
|
|
this.ws.close();
|
|
|
},
|
|
},
|
|
|
- onShow(){
|
|
|
|
|
- if (this.devBid) {
|
|
|
|
|
- this.init();
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
methods: {
|
|
methods: {
|
|
|
isHaveTime(childrenList) {
|
|
isHaveTime(childrenList) {
|
|
|
let time = 0;
|
|
let time = 0;
|
|
@@ -424,7 +419,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
async init() {
|
|
async init() {
|
|
|
this.getdeviceSfStatus();
|
|
this.getdeviceSfStatus();
|
|
|
- await this.getpeifangRefresh();
|
|
|
|
|
|
|
+ // await this.getpeifangRefresh();
|
|
|
this.getsfrhinfo();
|
|
this.getsfrhinfo();
|
|
|
this.initsfyunshangAutoConfigInfo();
|
|
this.initsfyunshangAutoConfigInfo();
|
|
|
await this.getRunStatus();
|
|
await this.getRunStatus();
|
|
@@ -671,7 +666,6 @@ uni-page-body {
|
|
|
font-weight: 500;
|
|
font-weight: 500;
|
|
|
margin-right: 8rpx;
|
|
margin-right: 8rpx;
|
|
|
top: -4rpx;
|
|
top: -4rpx;
|
|
|
- display:inline-block;
|
|
|
|
|
position: relative;
|
|
position: relative;
|
|
|
}
|
|
}
|
|
|
.manualControl{
|
|
.manualControl{
|
|
@@ -690,6 +684,7 @@ uni-page-body {
|
|
|
background: linear-gradient(152deg, #B9B9F6 11.22%, #8080F8 94.92%);
|
|
background: linear-gradient(152deg, #B9B9F6 11.22%, #8080F8 94.92%);
|
|
|
}
|
|
}
|
|
|
.facilitystate-top__title{
|
|
.facilitystate-top__title{
|
|
|
|
|
+ width: 80%;
|
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
|
white-space: nowrap;
|
|
white-space: nowrap;
|
|
|
text-overflow: ellipsis;
|
|
text-overflow: ellipsis;
|
|
@@ -706,7 +701,6 @@ uni-page-body {
|
|
|
font-weight: 500;
|
|
font-weight: 500;
|
|
|
margin-right: 8rpx;
|
|
margin-right: 8rpx;
|
|
|
top: -4rpx;
|
|
top: -4rpx;
|
|
|
- display:inline-block;
|
|
|
|
|
position: relative;
|
|
position: relative;
|
|
|
}
|
|
}
|
|
|
.facilitystate-page {
|
|
.facilitystate-page {
|
|
@@ -723,8 +717,8 @@ uni-page-body {
|
|
|
&__item {
|
|
&__item {
|
|
|
margin-bottom: 32rpx;
|
|
margin-bottom: 32rpx;
|
|
|
.item-icon-container{
|
|
.item-icon-container{
|
|
|
- width: 96rpx;
|
|
|
|
|
- height: 96rpx;
|
|
|
|
|
|
|
+ width: 80rpx;
|
|
|
|
|
+ height: 80rpx;
|
|
|
border-radius: 26rpx;
|
|
border-radius: 26rpx;
|
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
|
margin: 0 auto;
|
|
margin: 0 auto;
|