|
|
@@ -18,6 +18,8 @@
|
|
|
<view class="facilitystate-list__left">
|
|
|
<view
|
|
|
class="facilitystate-item"
|
|
|
+ :style="{width:100/(alreadyfertilizerBucketList.length)+'%'}"
|
|
|
+ :class="index == alreadyfertilizerBucketList.length - 1?'facilitystate-item--last':''"
|
|
|
v-for="(item, index) in alreadyfertilizerBucketList"
|
|
|
:key="index"
|
|
|
>
|
|
|
@@ -27,8 +29,14 @@
|
|
|
</view>
|
|
|
<view class="facilitystate-item__image">
|
|
|
<image :src="getJSCurrentValue(item.childrenList)?bucketOpen:bucketClose" class="bucketClose"/>
|
|
|
- <image :src="fertTopBottom" v-if="index == alreadyfertilizerBucketList.length - 1? false:true" class="facilitystate-item__bg"/>
|
|
|
- <image :src="fertTopBottomRadius" v-else class="facilitystate-item__bg2"/>
|
|
|
+ <view v-if="index == alreadyfertilizerBucketList.length - 1? false:true">
|
|
|
+ <image :src="lineTopBottom" class="facilitystate-item__bg"/>
|
|
|
+ <image :src="lineTopAndBottom" class="facilitystate-item__line"/>
|
|
|
+ </view>
|
|
|
+ <view v-else>
|
|
|
+ <image :src="lineTopBottom" class="facilitystate-item__bg2"/>
|
|
|
+ <image :src="lastBorder" class="facilitystate-item__line2"/>
|
|
|
+ </view>
|
|
|
<view class="facilitystate-item-fan">
|
|
|
<view class="fertTopBottom">
|
|
|
<text class="fertTopBottom-text">{{item.sfDisplayname || item.sfName}}</text>
|
|
|
@@ -46,7 +54,10 @@
|
|
|
</template>
|
|
|
<script>
|
|
|
import fertTopBottom from '../assets/fertTopBottom.png';
|
|
|
+import lineTopAndBottom from '../assets/lineTopAndBottom.png';
|
|
|
+import lineTopBottom from '../assets/lineTopBottom.png';
|
|
|
import fertTopBottomRadius from '../assets/fertTopBottomRadius.png';
|
|
|
+import lastBorder from '../assets/lastBorder.png';
|
|
|
import irrigatedArea from './irrigatedArea.vue';
|
|
|
import fan from '../assets/fan.png';
|
|
|
import fanRun from '../assets/fanRun.png';
|
|
|
@@ -81,7 +92,10 @@ export default {
|
|
|
return {
|
|
|
fan,
|
|
|
fanRun,
|
|
|
+ lastBorder,
|
|
|
+ lineTopBottom,
|
|
|
fertTopBottom,
|
|
|
+ lineTopAndBottom,
|
|
|
bucketOpenTop,
|
|
|
bucketOpenTopStatus:false,
|
|
|
bucketOpenTopStatus2:false,
|
|
|
@@ -243,18 +257,24 @@ export default {
|
|
|
&__left{
|
|
|
height: 100%;
|
|
|
display: flex;
|
|
|
- margin-left: 144rpx;
|
|
|
+ margin-left: 160rpx;
|
|
|
+ justify-content: space-between;
|
|
|
+ width: 100%;
|
|
|
}
|
|
|
.facilitystate-item {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
height: 230rpx;
|
|
|
- margin-top: 122rpx;
|
|
|
- margin-left: -4rpx;
|
|
|
+ margin-top: 112rpx;
|
|
|
&__label{
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
justify-content: center;
|
|
|
align-items: center;
|
|
|
- width: 100rpx;
|
|
|
+ width: 100%;
|
|
|
+ text-align: center;
|
|
|
margin-bottom: 5rpx;
|
|
|
}
|
|
|
&__label-text,&__label-value {
|
|
|
@@ -263,9 +283,15 @@ export default {
|
|
|
font-size: 24rpx;
|
|
|
font-weight: 400;
|
|
|
height: 36rpx;
|
|
|
+ width:90%;
|
|
|
+ margin: 0 auto;
|
|
|
+ // 超出隐藏
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ white-space: nowrap;
|
|
|
}
|
|
|
&__image {
|
|
|
- width: 100rpx;
|
|
|
+ width: 100%;
|
|
|
height: 138rpx;
|
|
|
position: relative;
|
|
|
.facilitystate-item-fan{
|
|
|
@@ -281,7 +307,8 @@ export default {
|
|
|
position: absolute;
|
|
|
width: 20rpx;
|
|
|
height: 20rpx;
|
|
|
- left: 46rpx;
|
|
|
+ left: 50%;
|
|
|
+ transform: translateX(-25%);
|
|
|
top: 6rpx;
|
|
|
z-index:100;
|
|
|
}
|
|
|
@@ -289,20 +316,37 @@ export default {
|
|
|
position: absolute;
|
|
|
width: 20rpx;
|
|
|
height: 20rpx;
|
|
|
- left: 46rpx;
|
|
|
- bottom: -4rpx;
|
|
|
+ left: 50%;
|
|
|
+ transform: translateX(-25%);
|
|
|
+ bottom: -6rpx;
|
|
|
z-index:100;
|
|
|
}
|
|
|
}
|
|
|
&__bg{
|
|
|
- width: 100rpx;
|
|
|
- height: 155rpx;
|
|
|
+ width: 100%;
|
|
|
+ height: 153rpx;
|
|
|
+ top: 0rpx;
|
|
|
+ }
|
|
|
+ &__line{
|
|
|
+ position: absolute;
|
|
|
+ width: 8rpx;
|
|
|
+ height: 152rpx;
|
|
|
+ left: 50%;
|
|
|
+ top: 0;
|
|
|
+ transform: translateX(-50%);
|
|
|
}
|
|
|
&__bg2{
|
|
|
- width: 56rpx;
|
|
|
- height: 157rpx;
|
|
|
- margin-top:-3rpx;
|
|
|
- margin-left: -2rpx;
|
|
|
+ width: 50%;
|
|
|
+ height: 153rpx;
|
|
|
+ left: -4rpx;
|
|
|
+ }
|
|
|
+ &__line2{
|
|
|
+ position: absolute;
|
|
|
+ width: 16rpx;
|
|
|
+ height: 153rpx;
|
|
|
+ top: -1rpx;
|
|
|
+ margin-left: -6rpx;
|
|
|
+ transform: translateX(-50%);
|
|
|
}
|
|
|
.fertTopBottom{
|
|
|
width: 70rpx;
|
|
|
@@ -343,6 +387,10 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ .facilitystate-item--last{
|
|
|
+ width: 100rpx;
|
|
|
+ display: flex;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</style>
|