<view>
  <view class="allBox">
    <view class="performanceList">
      <view style="padding:.05rem 0 .15rem 0;font-size:.32rem;">{{ apDetails.name }}</view>
      <view class="intro" style="font-size:.26rem;">
        <view style="color:rgb(171, 171, 171);padding: 0.05rem 0;">考核标准:</view>
        <text class="line-feed">{{apDetails.per_remark}}</text>
        <view style="color:rgb(86, 153, 255);margin-top:0.1rem" catchTap="showDetil">查看详情</view>
      </view>
    </view>
    <view class="title flex-box-ce flex-d-center">
      <view class="flex-box-ce" style="font-size:.27rem;" catchTap="showText">{{ detailsTIt }}
        <text class="iconfont icon-wenhao" style="margin-left:0.1rem;color:#969799;font-size:0.28rem;"></text>
      </view>
      <button a:if="{{isShowAdd&&!has_finish}}" onTap="save" style="width: 1.45rem;
          height: .5rem;
          border-radius: 1.45rem;
          line-height:0.5rem;
          border: 1px solid #4c8df1;
          font-size: 0.28rem;
          color: #127cff;
          background-color: rgb(255, 255, 255);
          margin-top: .04rem;">保存
      </button>
    </view>
    <view class="margin-bottom" a:if="{{isShowAdd&&!has_finish}}">
      <view class="page-section-demo">
        <textarea onInput="bindTextAreaBlur" value="{{titValue}}" auto-height placeholder="请输入{{detailsTIt}}" maxlength="200" />
      </view>
      <view class="page-section-demo">
        <textarea onInput="bindTextAreaBlur2" value="{{messageVal}}" auto-height placeholder="选填，请输入备注" maxlength="500" />
      </view>
      <view class="page-section-demo">
        <button size="mini" type="primary" catchTap="openImg" style="margin-bottom:20rpx">+附件</button>
        <!--<view class="van-uploader__upload" catchTap="openImg"><text class="iconfont icon-xiangji" style="color:#dcdee0;font-size:0.46rem;"></text></view> -->
        <view class="images flex-box-ce" a:for="{{append}}" a:key="{{index}}">
          <view class="blue font-flex-word" catchTap="showImg" data-item="{{item}}">{{item.fileName}}</view>
          <view catchTap="deleteImg" data-index="{{index}}" style="padding:14rpx 20rpx">
            <icon type="clear" size="16" />
          </view>
        </view>
      </view>
    </view>
    <view style="margin-bottom:2rem;">
      <view a:for="{{apdList}}" class="apdList flex-box" onTap="openDetail" data-item="{{item}}">
        <view style="margin: .24rem 0 0 .2rem;position: relative;">
          <view class="apdDian"></view>
          <view class="apdHeadBoeder {{index ==  apdList.length - 1? 'apdborderNO':''}}"></view>
        </view>
        <view class="apdData {{apdList.length == index + 1? 'apdborderNO':''}}">
          <view>
            <text style="font-size:.3rem;color:block;font-weight: 600;margin-top:0.1rem">{{ item.title }}</text>
            <view style="font-size:.24rem;color:#b7b7b7;padding:0.15rem 0">{{ item.date }}更新 
                <text style="padding-left:10rpx" a:if="{{item.userName}}">  记录人:{{item.userName}}</text></view>
              <text style="font-size:.25rem;color:#505050;">
                {{item.remark}}
              </text>
          </view>
          
          <block a:if="{{item.append}}">
            <view class="images flex-box-ce" a:for="{{item.append}}" a:for-item="e" style="margin-top:16rpx">
              <view class="flex-1 font-flex-word blue" catchTap="showImg" data-item="{{e}}">{{e.fileName}}</view>
            </view>
            <!--<view class="flex-box-ce" style="margin: 10px 0;" a:if="{{item.images.length>0}}"><image a:for="{{item.images}}" a:for-item="e" onTap="showImg" data-img="{{e}}" style="border-radius: 3px;margin-right: 10px;width:200rpx;height:200rpx" 
                src="{{e.url}}" /></view> -->
          </block>
        </view>
      </view>
    </view>
  </view>
  <!-- 详情 -->
  <view class="windows" a:if="{{isShowDetil}}">
    <view class="vassheet {{isShowDetil?'showdown':''}}">
      <view class="vasHead" catchTap="showDetil">
        <icon type="clear" size="20" class="icon" />
        <text>所属指标</text>
      </view>
      <view class="pullUpdel">
        <view style="padding:.05rem 0 .15rem 0;font-size:.32rem;">{{ apDetails.name }}</view>
        <view class="intro" style="font-size:.26rem;">
          <text class="introcol">考核标准:</text>
          <text class="line-feed">{{apDetails.per_remark}}</text>
          <text class="introcol intropad">权重（%）：{{ apDetails.weight }}%</text>
          <text class="introcol intropad">目标值：{{ apDetails.target }}{{ apDetails.unit }}</text>
        </view>
      </view>
    </view>
  </view>
  <view class="windows" a:if="{{isShowText}}">
    <view class="windows-box">
      <view class="tsAll">
        <view a:if="{{knowFrom == 'action'}}">
          <view class="flex-box-ce">
            <text class="iconfont icon-dengpao yellow"></text>
            <text style="font-size:.32rem;padding-left:.1rem;color:black;">执行计划用来做什么</text>
          </view>
          <text>1、可以填写如何达成指标的计划，并记录进展行动</text>
          <text>2、填写的内容将给评分人作为参考</text>
        </view>
        <view a:else>
          <view class="flex-box-ce">
            <text class="iconfont icon-dengpao yellow"></text>
            <text style="font-size:.32rem;padding-left:.1rem;color:black;">跟踪管理记录用来做什么</text>
          </view>
          <text>1、填写工作执行过程的实际情况、表现好坏及奖惩情况</text>
          <text>2、填写管理指导的过程记录</text>
          <text>3、填写的内容可以给评分人作为参考</text>
        </view>
      </view>
      <view class="footer2 flex-box-ce">
        <view class="flex-1" catchTap="showText">我知道了</view></view>
    </view>
  </view>
</view>