<!--pages/dataRecords/dataRecords.wxml-->
<view class="dataRecords-page">
  <navBar bg="#ffffff" type="black">
    <view class="dataName">{{formName === '职业经历' ? (records[0].dataName === '内容' ? '岗位描述' : records[0].dataName) : (records[0].dataName === '内容' ? '事件描述' : records[0].dataName)}}</view>
  </navBar>
  <view class="dataRecords">
    <view class="dataRecord {{index===0?'current':''}}" wx:for="{{records}}" wx:key="index">
      <view class="row1">{{item.dataSourceName}}{{item.dataSourceType==='CONSUMER'?'自填':'添加'}}于
        <filter type="parseTime" value="{{item.lastUpdateDate}}" params="{{['{y}-{m}-{d}']}}" />
      </view>
      <view class="row2">采集时间：
        <filter type="parseTime" value="{{item.collectionDate}}" params="{{['{y}-{m}-{d}']}}" />
      </view>
      <view class="row2">收录时间：
        <filter type="parseTime" value="{{item.createDate}}" params="{{['{y}-{m}-{d}']}}" />
      </view>
      <view class="row2">数据内容：</view>
      <view class="row2">{{item.dataValue}}</view>
    </view>
  </view>
  <view class="submitLayout" wx:if="{{records[0].dataName!=='附件'&&current.dataName!=='姓名'&&current.dataName!=='性别'&&current.dataName!=='身份证号'&&current.dataName!=='出生日期'&&current.dataName!=='身份证注册地'}}">
    <block wx:if="{{records[0].dataSourceType==='CONSUMER'}}">
      <!-- <btn width="227rpx" height="82rpx" fontSize="28rpx" plain bindtap="handleDelete">删除</btn> -->
      <btn width="240rpx" height="82rpx" fontSize="28rpx" bindtap="handleEdit">修改</btn>
    </block>
    <block wx:else>
      <btn width="240rpx" height="82rpx" fontSize="28rpx" bindtap="handleCorrigendum">我要勘误</btn>
    </block>
  </view>
</view>