70 lines
2.7 KiB
Plaintext
70 lines
2.7 KiB
Plaintext
|
<!--pages/t-dispatch/t-dispatch.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="t-list">
|
|||
|
<view class="t-item" wx:if="{{taskData != ''}}" wx:for="{{taskData}}">
|
|||
|
<view class="dispatch-head">
|
|||
|
<text>站点名称:{{item.device.name}}</text>
|
|||
|
</view>
|
|||
|
<view class="dispatch-deal1">
|
|||
|
<text>站点状态:</text>
|
|||
|
<t-tag variant="outline" wx:if="{{item.deviceStatus == '未连接'}}" theme="danger">未连接</t-tag>
|
|||
|
<t-tag variant="outline" wx:else theme="success">已连接</t-tag>
|
|||
|
</view>
|
|||
|
<view class="dispatch-deal">
|
|||
|
<text>坐标:{{item.deviceLongitude}},{{item.deviceLatitude}}</text>
|
|||
|
<t-button
|
|||
|
theme="primary"
|
|||
|
size="large"
|
|||
|
bindtap="navigation"
|
|||
|
data-longitude="{{item.deviceLongitude}}"
|
|||
|
data-latitude="{{item.deviceLatitude}}"
|
|||
|
data-name="{{item.device.name}}"
|
|||
|
custom-style="color: red"
|
|||
|
icon="location"
|
|||
|
content="导航"
|
|||
|
></t-button>
|
|||
|
</view>
|
|||
|
<text class="time">任务类型:{{item.type}}</text>
|
|||
|
<text class="content">任务内容:{{item.taskContent}}</text>
|
|||
|
<text class="time">处理人:{{item.handler.name}}</text>
|
|||
|
<view class="dispatch-deal1">
|
|||
|
<text>工单状态:</text>
|
|||
|
<t-tag variant="outline" wx:if="{{item.status == '未处理'}}" theme="danger">未处理</t-tag>
|
|||
|
<t-tag variant="outline" wx:else theme="success">已处理</t-tag>
|
|||
|
</view>
|
|||
|
<view class="dispatch-deal">
|
|||
|
<text>剩余时间:</text>
|
|||
|
<t-count-down content="default" time="{{item.completeDate}}" theme="square"> </t-count-down>
|
|||
|
<t-button
|
|||
|
theme="primary"
|
|||
|
size="large"
|
|||
|
bindtap="dispatch"
|
|||
|
data-id="{{item.id}}"
|
|||
|
data-code="{{item.device.code}}"
|
|||
|
data-name="{{item.device.name}}"
|
|||
|
data-time="{{item.createTime}}"
|
|||
|
data-content="{{item.taskContent}}"
|
|||
|
data-handname="{{item.handler.name}}"
|
|||
|
data-handid="{{item.handler.id}}"
|
|||
|
data-tasklevel="{{item.taskLevel.dataValue}}"
|
|||
|
>反馈</t-button>
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
<view class="t-item-null" wx:if="{{taskData == ''}}">
|
|||
|
<text>暂无数据!</text>
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
<view class="foot">
|
|||
|
<t-button theme="primary" size="large" bindtap="add">新建任务</t-button>
|
|||
|
</view>
|
|||
|
</view>
|