develop #1
@ -5,13 +5,13 @@
|
||||
<uni-row>
|
||||
<uni-col :span="10" :offset='1'>
|
||||
<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>
|
||||
</uni-section>
|
||||
</uni-col>
|
||||
<uni-col :span="10" :offset='2'>
|
||||
<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>
|
||||
</uni-section>
|
||||
</uni-col>
|
||||
@ -397,6 +397,19 @@
|
||||
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 {
|
||||
flex: 1;
|
||||
/* #ifndef APP-NVUE */
|
||||
|
||||
@ -42,7 +42,7 @@
|
||||
<view class="grid-item-box">
|
||||
<view class="title">设备状态</view>
|
||||
<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>
|
||||
</uni-grid-item>
|
||||
<uni-grid-item>
|
||||
|
||||
@ -6,10 +6,13 @@ const ems = {
|
||||
'2': '停止'
|
||||
}, //工作状态
|
||||
deviceStatusOptions: {
|
||||
'0': '在线',
|
||||
'1': '离线',
|
||||
'2': '维修中'
|
||||
'0': '离线',
|
||||
'1': '待机',
|
||||
'2': '运行',
|
||||
'3': '故障',
|
||||
'4': '停机'
|
||||
}, //设备状态
|
||||
|
||||
gridStatusOptions: {
|
||||
'0': '并网',
|
||||
'1': '未并网'
|
||||
|
||||
Reference in New Issue
Block a user