develop #1
@ -5,13 +5,13 @@
|
|||||||
<uni-row>
|
<uni-row>
|
||||||
<uni-col :span="10" :offset='1'>
|
<uni-col :span="10" :offset='1'>
|
||||||
<uni-section title="业态列表" titleFontSize="14px">
|
<uni-section title="业态列表" titleFontSize="14px">
|
||||||
<uni-data-select :clear="false" :value="siteType" :localdata="siteTypeOptions"
|
<uni-data-select :clear="false" :value="siteType" wrap :localdata="siteTypeOptions"
|
||||||
@change="selectedSiteType"></uni-data-select>
|
@change="selectedSiteType"></uni-data-select>
|
||||||
</uni-section>
|
</uni-section>
|
||||||
</uni-col>
|
</uni-col>
|
||||||
<uni-col :span="10" :offset='2'>
|
<uni-col :span="10" :offset='2'>
|
||||||
<uni-section title="可选清单" titleFontSize="14px">
|
<uni-section title="可选清单" titleFontSize="14px">
|
||||||
<uni-data-select ref="siteListSelect" :clear="false" :value="siteId"
|
<uni-data-select ref="siteListSelect" :clear="false" :value="siteId" wrap
|
||||||
:localdata="siteType ===1 ? siteList : []" @change="selectedSite"></uni-data-select>
|
:localdata="siteType ===1 ? siteList : []" @change="selectedSite"></uni-data-select>
|
||||||
</uni-section>
|
</uni-section>
|
||||||
</uni-col>
|
</uni-col>
|
||||||
@ -397,6 +397,19 @@
|
|||||||
margin-top: 40rpx;
|
margin-top: 40rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
::v-deep {
|
||||||
|
.uni-select__input-box {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.uni-select__selector-empty,
|
||||||
|
.uni-select__selector-item {
|
||||||
|
line-height: 18px;
|
||||||
|
padding-top: 5px;
|
||||||
|
padding-bottom: 5px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.grid-item-box {
|
.grid-item-box {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
/* #ifndef APP-NVUE */
|
/* #ifndef APP-NVUE */
|
||||||
|
|||||||
@ -42,7 +42,7 @@
|
|||||||
<view class="grid-item-box">
|
<view class="grid-item-box">
|
||||||
<view class="title">设备状态</view>
|
<view class="title">设备状态</view>
|
||||||
<text class="text"
|
<text class="text"
|
||||||
:class="item.deviceStatus === '0' ? 'status-running' : 'status-danger'">{{deviceStatusOptions[item.deviceStatus]}}</text>
|
:class="item.deviceStatus === '2' ? 'status-running' : 'status-danger'">{{deviceStatusOptions[item.deviceStatus]}}</text>
|
||||||
</view>
|
</view>
|
||||||
</uni-grid-item>
|
</uni-grid-item>
|
||||||
<uni-grid-item>
|
<uni-grid-item>
|
||||||
|
|||||||
@ -6,10 +6,13 @@ const ems = {
|
|||||||
'2': '停止'
|
'2': '停止'
|
||||||
}, //工作状态
|
}, //工作状态
|
||||||
deviceStatusOptions: {
|
deviceStatusOptions: {
|
||||||
'0': '在线',
|
'0': '离线',
|
||||||
'1': '离线',
|
'1': '待机',
|
||||||
'2': '维修中'
|
'2': '运行',
|
||||||
|
'3': '故障',
|
||||||
|
'4': '停机'
|
||||||
}, //设备状态
|
}, //设备状态
|
||||||
|
|
||||||
gridStatusOptions: {
|
gridStatusOptions: {
|
||||||
'0': '并网',
|
'0': '并网',
|
||||||
'1': '未并网'
|
'1': '未并网'
|
||||||
|
|||||||
Reference in New Issue
Block a user