61 lines
2.3 KiB
Plaintext
61 lines
2.3 KiB
Plaintext
<!--pages/t-task/t-task.wxml-->
|
|
<view class="container">
|
|
<t-tabs defaultValue="{{0}}"
|
|
bind:change="onTabsChange"
|
|
bind:click="onTabsClick"
|
|
t-class="custom-tabs"
|
|
sticky>
|
|
<t-tab-panel label="未处理" value="0" customStyle="{{tabPanelCustomStyle}}">
|
|
<view class="task-base">
|
|
<view class="task-list">
|
|
<view class="task-item" wx:for="{{taskData}}" bindtap="tsakDetail" data-id="{{item.id}}">
|
|
<view class="task-head">
|
|
<text>{{item.deviceName}}</text>
|
|
<text>{{item.completeTime}}</text>
|
|
</view>
|
|
<view class="t-task-content">
|
|
<text>任务内容:{{item.taskContent}}</text>
|
|
<text>处理人:{{item.handlerName}} 丨 {{item.contact}}</text>
|
|
</view>
|
|
<view class="t-task-time">
|
|
<view class="l-task-time">
|
|
<t-count-down content="default" time="{{item.completeTime}}" theme="square"> </t-count-down>
|
|
<text>完成时间</text>
|
|
</view>
|
|
<t-icon name="chevron-right" size="40rpx" data-name="chevron-right" bind:click="onIconTap" />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</t-tab-panel>
|
|
<t-tab-panel label="已处理" value="1" customStyle="{{tabPanelCustomStyle}}">
|
|
<view class="task-base">
|
|
<view class="task-list">
|
|
<view
|
|
class="task-item"
|
|
wx:for="{{taskData}}"
|
|
bindtap="tsakDetail"
|
|
data-id="{{item.id}}"
|
|
data-name="{{item.deviceName}}"
|
|
data-time="{{item.createTime}}"
|
|
data-content="{{item.taskContent}}"
|
|
data-handname="{{item.handlerName}}"
|
|
>
|
|
<view class="task-head">
|
|
<text>{{item.deviceName}}</text>
|
|
<text>{{item.completeTime}}</text>
|
|
</view>
|
|
<view class="t-task-content">
|
|
<text>任务内容:{{item.taskContent}}</text>
|
|
<text>处理人:{{item.handlerName}} 丨 {{item.contact}}</text>
|
|
</view>
|
|
<view class="t-task-time">
|
|
<text>已完成</text>
|
|
<t-icon name="chevron-right" size="40rpx" data-name="chevron-right" bind:click="onIconTap" />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</t-tab-panel>
|
|
</t-tabs>
|
|
</view> |