<view class="header_title">
  <view class="header_title_row">
    <van-row>
      <van-col span="4">
        <view class="header_img" bindtap="returnToPage"><image src="/images/left.png"></image></view>
      </van-col>
      <van-col span="16">
        <view class="header_name">我发起的审批</view>
      </van-col>
    </van-row>
  </view>
</view>
<scroll-view class="max_content_scroll" type="list" scroll-y bindscrolltolower="onScrollToLower">       
<project-select wx:if="{{false}}" init="{{initData}}" bindchange="onProjectSelect"></project-select>
<view class="modify_video_nav" style="margin-top: 5rpx;">
      <view class="{{activeState=='all'?'active':''}}" bindtap="typeJump" data-index="1"><text>全部({{allCount}})</text></view>
      <view class="{{activeState=='await'?'active':''}}" bindtap="typeJump" data-index="2"><text>进行中({{awaitCount}})</text></view>
      <view class="{{activeState=='finished'?'active':''}}" bindtap="typeJump" data-index="3"><text>已完成({{finishedCount}})</text></view>
</view>
<view class="inspect_max_scroll">
    <view class="inspect_for_scroll" wx:for="{{listData}}" wx:key="index" data-index="{{index}}" data-set="{{item}}" bindtap="infoTap">
        <view class="inspect_for_bgd">
            <view class="inspect_list_title">
                <view class="inspect_list_title_label inspect_list_title_width">
                    <view class="inspect_list_title_number">{{index < 10 ?'0'+(index+1):(index+1)}}</view>
                    <view class="module_title module_title_flex inspect_list_title_text"><text>{{item.createTime}}</text>
                      <text wx:if="{{item.finishTime==null}}" class="timeline_for_state_1 color_green" style="font-weight: 800;">进行中</text>
                    <text wx:if="{{item.finishTime != null && item.taskComType=='1'}}" class="timeline_for_state_1">已完成</text>
                    <text wx:if="{{item.finishTime != null && item.taskComType=='2'}}" class="timeline_for_state_2">已退回</text>
                    <text wx:if="{{item.finishTime != null && item.taskComType=='6'}}" class="timeline_for_state_2">已终止</text>
                    <text wx:if="{{item.finishTime != null && item.taskComType=='3'}}" class="timeline_for_state_2">已驳回</text>
                    <text wx:if="{{item.finishTime != null && item.taskComType=='7'}}" class="timeline_for_state_2">已撤回</text>
                    </view>
                </view>
            </view>
            <view class="inspect_list_info">
              <view class="inspect_list_info_data_prop color_orange">临时项目:{{item.businessKeyName}}</view>
              <view class="inspect_list_info_data_prop color_blue">申请类型:<text>{{item.procDefName}}</text>
                <text class="code_label_2 code_label_green ml10">{{' 流程版本v'+item.procDefVersion}}</text></view>
              <view class="inspect_list_info_data_prop">当前节点:<text wx:if="{{item.finishTime == null}}">{{item.taskName}}</text>
              <text wx:if="{{item.finishTime != null}}">流程结束</text>
              </view>
              <view class="inspect_list_info_data_prop">处理耗时:{{item.duration}}</view>
              <view class="inspect_list_info_data_prop" wx:if="{{item.finishTime!=null}}">办结时间:{{item.finishTime}}</view>
            </view>
        </view>
    </view>
   <view wx:if="{{listData.length==0}}">
            <view style="padding-top: 70px;text-align: -webkit-center;">
                <image src="../../../images/nodata.png" style="width: 130px;height: 105px;"></image>
                <view style="color: #a5abbb;">暂无数据</view>
            </view>
       </view>
</view>
</scroll-view>