<view class="page">
|
<view class="page-header">
|
<t-button
|
wx:if="{{!showNewStatus}}"
|
icon="add"
|
theme="primary"
|
size="small"
|
bind:tap="onAddStatus"
|
>添加设备状态</t-button
|
>
|
<t-form
|
wx:if="{{showNewStatus}}"
|
formArr="{{formArray}}"
|
bind:submit="saveNewStatus"
|
bind:cancel="cancelNewStatus"
|
>
|
<view>sssss</view>
|
</t-form>
|
</view>
|
<view class="page-container">
|
<block wx:for="{{deviceStatusList}}">
|
<device-location
|
index="{{index + 1}}"
|
read-only="{{true}}"
|
location="{{item}}"
|
></device-location>
|
</block>
|
</view>
|
<view class="page-footer"></view>
|
</view>
|