43 lines
1.7 KiB
Plaintext
43 lines
1.7 KiB
Plaintext
|
<!--pages/t-query/t-query.wxml-->
|
||
|
<view class="container">
|
||
|
<t-search disabled='true' prefixIcon="filter" model:value="{{deviceName}}" bindtap="search" placeholder="选择站点" />
|
||
|
<!-- <t-dropdown-menu>
|
||
|
<t-dropdown-item
|
||
|
label="{{label}}"
|
||
|
options="{{singleSelect.options}}"
|
||
|
value="{{singleSelect.value}}"
|
||
|
keys="{{keys}}"
|
||
|
bindchange="handleSingleSelect"
|
||
|
/>
|
||
|
</t-dropdown-menu> -->
|
||
|
|
||
|
<view class="query-list">
|
||
|
<view class="query-item" wx:if="{{alarmData != ''}}" wx:for="{{alarmData}}">
|
||
|
<view class="query-head">
|
||
|
<text>#{{item.deviceName}}</text>
|
||
|
<t-tag variant="light" theme="danger">{{item.alarmLevel}}</t-tag>
|
||
|
</view>
|
||
|
<view class="query-time">{{item.alarmTime}}</view>
|
||
|
<view class="t-query-content">
|
||
|
<text>告警内容:{{item.alarmContent}}</text>
|
||
|
</view>
|
||
|
<view class="t-query-base" style="margin-bottom: 10rpx;">
|
||
|
<text>处理人:</text>
|
||
|
<text>{{item.handlerName}}</text>
|
||
|
</view>
|
||
|
<view class="t-query-base t-query-base-list">
|
||
|
<view>
|
||
|
<text>处理状态:</text>
|
||
|
<t-tag wx:if="{{item.status == '已派工'}}" variant="light-outline" theme="success">已派工</t-tag>
|
||
|
<t-tag wx:else="" variant="light-outline" theme="warning">未派工</t-tag>
|
||
|
</view>
|
||
|
<view>
|
||
|
<t-button wx:if="{{item.status == '未派工'}}" data-id="{{item.id}}" data-code="{{item.deviceCode}}" data-name="{{item.deviceName}}" bindtap="toTask" theme="primary" size="small">转任务</t-button>
|
||
|
</view>
|
||
|
</view>
|
||
|
</view>
|
||
|
<view class="null" wx:if="{{alarmData == ''}}">
|
||
|
<text>暂无记录</text>
|
||
|
</view>
|
||
|
</view>
|
||
|
</view>
|