<view>
  <view class="header margin-bottom">
    <view class="header-main">
      <view class="flex-box ">
        <view class="laber">发布时间</view>
        <view class="flex-1">{{dataDetail.create_time}}</view>
      </view>
      <view class="flex-box ">
        <view class="laber">截止时间</view>
        <view class="flex-1" a:if="{{dataDetail.task_cycle==1}}">{{dataDetail.task_cycle_mark}}{{dataDetail.task_cycle_value}}点</view>
        <view class="flex-1" a:if="{{dataDetail.task_cycle==2}}">周{{dataDetail.task_cycle_value}}</view>
        <view class="flex-1" a:if="{{dataDetail.task_cycle==3}}">{{dataDetail.task_cycle_mark}}{{dataDetail.task_cycle_value}}号</view>
      </view>
      <view class="flex-box ">
        <view class="laber">任务内容</view>
        <view class="flex-1">{{dataDetail.name}}</view>
      </view>
      <view class="flex-box flex-v-ce" a:if="{{dataDetail.remark}}">
        <view class="laber">任务描述</view>
        <view class="flex-1">{{dataDetail.remark}}</view>
      </view>
      <view class="flex-box flex-v-ce" a:if="{{dataDetail.point_config.base_point}}">
        <view class="laber">任务积分</view>
        <view class="flex-1">{{dataDetail.point_config.base_point}}{{dataDetail.pt_name}}</view>
      </view>
      <view class="flex-box flex-v-ce">
        <view class="laber">任务类型</view>
        <view class="flex-1">{{dataDetail.pt_name}}</view>
      </view>
      <view class="flex-box flex-v-ce">
        <view class="laber">发布人</view>
        <view class="flex-1">{{dataDetail.owner_name}}</view>
      </view>
      <view class="flex-box flex-v-ce" a:if="{{dataDetail.point_config.ahead_award_point}}">
        <view class="laber">提前奖分</view>
        <view class="flex-1">{{dataDetail.point_config.ahead_award_point}}B分/天</view>
      </view>
      <view class="flex-box flex-v-ce" a:if="{{dataDetail.point_config.ahead_award_point_limit}}">
        <view class="laber">奖分上限</view>
        <view class="flex-1">{{dataDetail.point_config.ahead_award_point_limit}}B分</view>
      </view>
      <view class="flex-box flex-v-ce" a:if="{{dataDetail.point_config.timeout_deduction_point}}">
        <view class="laber">逾期扣分</view>
        <view class="flex-1">{{dataDetail.point_config.timeout_deduction_point}}B分/天</view>
      </view>
      <view class="flex-box flex-v-ce" a:if="{{dataDetail.point_config.timeout_deduction_point_limit}}">
        <view class="laber">扣分上限</view>
        <view class="flex-1">{{dataDetail.point_config.timeout_deduction_point_limit}}B分</view>
      </view>
      <view class="flex-box flex-v-ce">
        <view class="laber">执行周期</view>
        <view class="flex-1">{{dataDetail.task_cycle_mark}}</view>
      </view>
      <view class="flex-box flex-v-ce" a:if="{{dataDetail.department_info.length>0}}">
        <view class="laber">可见范围</view>
        <view class="flex-1">
          <text a:for="{{dataDetail.department_info}}">{{item.name}},</text>
        </view>
      </view>
      <view class="flex-box" a:if="{{dataDetail.file_list.length>0}}">
        <view class="laber">任务附件</view>
        <view class="flex-1 flex-box flex-v-ce imgs">
          <image mode="scaleToFill" data-index="{{index}}" a:for="{{dataDetail.file_list}}" data-item="{{dataDetail.file_list}}" src="{{item}}" catchTap="showImg"/>
        </view>
      </view>
    </view>
    <view class="main margin-bottom">
      <block a:if="{{dataDetail.point_config}}">
        <view class="mian-title border-bottom" a:if="{{dataDetail.point_config&&dataDetail.point_config.item_info}}">规则依据1
          <text>此事件打分参考以下积分规则</text>
        </view>
        <view class="header-main" a:if="{{dataDetail.point_config&&dataDetail.point_config.item_info}}">
          <view class="flex-box flex-v-ce" a:if="{{dataDetail.point_config.rule_info.name}}">
            <view class="laber">规则分类</view>
            <view class="flex-1">{{dataDetail.point_config.rule_info.name }}</view>
          </view>
          <view class="flex-box" a:if="{{dataDetail.point_config.item_info&&dataDetail.point_config.item_info.remark}}">
            <view class="laber">积分规则</view>
            <view class="flex-1">{{dataDetail.point_config.item_info.remark}}</view>
          </view>
          <view class="flex-box flex-v-ce" a:if="{{dataDetail.point_config.item_info.min_point}}">
            <view class="laber">规则积分</view>
            <view class="flex-1">
              <text a:if="{{dataDetail.point_config.item_info.range_type == 1}}">{{ dataDetail.point_config.item_info.min_point }}</text>
              <text a:if="{{dataDetail.point_config.item_info.range_type == 2}}">{{ dataDetail.point_config.item_info.min_point }} ~ {{ dataDetail.point_config.item_info.max_point }}</text>
              <text>{{dataDetail.pt_name}}</text>
            </view>
          </view>
        </view>
      </block>
    </view>
    <view class="main">
      <view class="margin-top main-item">
        <view class="margin-bottom">审批者</view>
        <view class="flex-box">
          <view class="flex-box-v flex-center-center img-item">
            <img-box name="{{dataDetail.owner_name}}" imgUrl="{{dataDetail.img_url}}" height="90rpx" width="90rpx" fSize="28rpx"></img-box>
            <text>{{dataDetail.owner_name}}</text>
          </view>
        </view>
      </view>
      <view class="margin-top main-item" >
        <view class="margin-bottom">执行者</view>
        <view class="flex-box flex-d-wrap ">
          <view class="flex-box-v flex-center-center img-item" a:for="{{dataDetail.target_info}}">
            <img-box name="{{item.name}}" height="90rpx" width="90rpx" fSize="28rpx"></img-box>
            <text>{{item.name}}</text>
          </view>
        </view>
      </view>
    </view>
    <view class="btn-area">
      <button type="warn" loading="{{disabled}}" class="defBtn2" disabled="{{disabled}}" catchTap="formSubmit">删除重复任务</button>
    </view>
  </view>