| | |
| | | <view class="page"> |
| | | <view class="page-header"> |
| | | <t-button |
| | | wx:if="{{!showNewStatus}}" |
| | | icon="add" |
| | | theme="primary" |
| | | size="small" |
| | | bind:tap="onAddStatus" |
| | | >添加设备状态</t-button |
| | | > |
| | | <view class="flex-center"> |
| | | <t-button |
| | | wx:if="{{!showNewStatus}}" |
| | | icon="add" |
| | | theme="primary" |
| | | size="small" |
| | | bind:tap="onAddStatus" |
| | | >添加设备状态</t-button |
| | | > |
| | | </view> |
| | | <t-form |
| | | wx:if="{{showNewStatus}}" |
| | | formArr="{{formArray}}" |
| | | bind:submit="saveNewStatus" |
| | | bind:cancel="cancelNewStatus" |
| | | > |
| | | <view>sssss</view> |
| | | <t-input |
| | | label="设备位置" |
| | | placeholder="请输入设备位置" |
| | | value="{{locations.address}}" |
| | | bind:change="handleLocation" |
| | | > |
| | | <t-button slot="suffix" theme="primary" size="extra-small" bindtap="chooseLocation"> |
| | | 地图定位 |
| | | </t-button> |
| | | </t-input> |
| | | <t-cell title="现场图片"> |
| | | <t-upload |
| | | slot="description" |
| | | media-type="{{['image']}}" |
| | | files="{{fileList}}" |
| | | gridConfig="{{gridConfig}}" |
| | | max="{{3}}" |
| | | files="{{fileList}}" |
| | | size-limit="{{sizeLimit}}" |
| | | bind:add="handleAddImg" |
| | | bind:remove="handleRemoveImg" |
| | | /> |
| | | </t-cell> |
| | | </t-form> |
| | | </view> |
| | | <t-divider /> |
| | | <view class="page-container"> |
| | | <block wx:for="{{deviceStatusList}}"> |
| | | <device-location |