<div :class="{ 'grid': true, 'show-paging-bar': isEnablePagingBar, 'hidden-paging-bar': !isEnablePagingBar }">
    <i-form>
    <el-table v-if="isDisplay === true"
        :default-sort="{ prop: minorSortPSDEF, order: Object.is(minorSortDir, 'ASC') ? 'ascending' : Object.is(minorSortDir, 'DESC') ? 'descending' : '' }"  
        @sort-change="onSortChange($event)"  
        :border="isDragendCol"
        :highlight-current-row ="isSingleSelect"
        :row-class-name="getRowClassName.bind(_self)"
        :cell-class-name="getCellClassName.bind(_self)"
        size="mini"
        stripe
        @row-click="rowClick($event)"  
        @select-all="selectAll($event)"  
        @select="select($event)"  
        @row-class-name="onRowClassName($event)"  
        @row-dblclick="rowDBLClick($event)"  
        ref='multipleTable' :data="items" :show-header="!isHideHeader">
            <template slot="empty">
                无数据 
                <span class="quick-toolbar">
                </span>
            </template>
            <template v-if="!isSingleSelect">
                <el-table-column align="center" type='selection' :width="checkboxColWidth"></el-table-column>
            </template>
            <template v-if="getColumnState('borrowman')">
                <el-table-column show-overflow-tooltip :prop="'borrowman'" :label="$t('entities.hrarchivesborrow.main_grid.columns.borrowman')" :width="120"  :align="'left'" :sortable="'custom'">
                    <template v-slot:header="{column}">
                      <span class="column-header ">
                        {{$t('entities.hrarchivesborrow.main_grid.columns.borrowman')}}
                      </span>
                    </template>
                    <template v-slot="{row,column,$index}">
                        <span>{{row.borrowman}}</span>
                    </template>
                </el-table-column>
            </template>
            <template v-if="getColumnState('begintime')">
                <el-table-column show-overflow-tooltip :prop="'begintime'" :label="$t('entities.hrarchivesborrow.main_grid.columns.begintime')" :width="120"  :align="'left'" :sortable="'custom'">
                    <template v-slot:header="{column}">
                      <span class="column-header ">
                        {{$t('entities.hrarchivesborrow.main_grid.columns.begintime')}}
                      </span>
                    </template>
                    <template v-slot="{row,column,$index}">
                        <app-format-data format="YYYY-MM-DD" :data="row.begintime"></app-format-data>
                    </template>
                </el-table-column>
            </template>
            <template v-if="getColumnState('endtime')">
                <el-table-column show-overflow-tooltip :prop="'endtime'" :label="$t('entities.hrarchivesborrow.main_grid.columns.endtime')" :width="120"  :align="'left'" :sortable="'custom'">
                    <template v-slot:header="{column}">
                      <span class="column-header ">
                        {{$t('entities.hrarchivesborrow.main_grid.columns.endtime')}}
                      </span>
                    </template>
                    <template v-slot="{row,column,$index}">
                        <app-format-data format="YYYY-MM-DD" :data="row.endtime"></app-format-data>
                    </template>
                </el-table-column>
            </template>
            <template v-if="getColumnState('checkman')">
                <el-table-column show-overflow-tooltip :prop="'checkman'" :label="$t('entities.hrarchivesborrow.main_grid.columns.checkman')" :width="120"  :align="'left'" :sortable="'custom'">
                    <template v-slot:header="{column}">
                      <span class="column-header ">
                        {{$t('entities.hrarchivesborrow.main_grid.columns.checkman')}}
                      </span>
                    </template>
                    <template v-slot="{row,column,$index}">
                        <span>{{row.checkman}}</span>
                    </template>
                </el-table-column>
            </template>
            <template v-if="getColumnState('checktime')">
                <el-table-column show-overflow-tooltip :prop="'checktime'" :label="$t('entities.hrarchivesborrow.main_grid.columns.checktime')" :width="120"  :align="'left'" :sortable="'custom'">
                    <template v-slot:header="{column}">
                      <span class="column-header ">
                        {{$t('entities.hrarchivesborrow.main_grid.columns.checktime')}}
                      </span>
                    </template>
                    <template v-slot="{row,column,$index}">
                        <app-format-data format="YYYY-MM-DD" :data="row.checktime"></app-format-data>
                    </template>
                </el-table-column>
            </template>
            <template v-if="getColumnState('borrowreason')">
                <el-table-column show-overflow-tooltip :prop="'borrowreason'" :label="$t('entities.hrarchivesborrow.main_grid.columns.borrowreason')" :width="200"  :align="'left'" :sortable="'custom'">
                    <template v-slot:header="{column}">
                      <span class="column-header ">
                        {{$t('entities.hrarchivesborrow.main_grid.columns.borrowreason')}}
                      </span>
                    </template>
                    <template v-slot="{row,column,$index}">
                        <span>{{row.borrowreason}}</span>
                    </template>
                </el-table-column>
            </template>
            <template v-if="getColumnState('borrowstate')">
                <el-table-column show-overflow-tooltip :prop="'borrowstate'" :label="$t('entities.hrarchivesborrow.main_grid.columns.borrowstate')" :width="120"  :align="'left'" :sortable="'custom'">
                    <template v-slot:header="{column}">
                      <span class="column-header ">
                        {{$t('entities.hrarchivesborrow.main_grid.columns.borrowstate')}}
                      </span>
                    </template>
                    <template v-slot="{row,column,$index}">
                        <template >
            <codelist :value="row.borrowstate" tag='CL_HR_0024' codelistType='STATIC' ></codelist>
                        </template>
                    </template>
                </el-table-column>
            </template>
            <template v-if="adaptiveState">
                <el-table-column></el-table-column>
            </template>
    </el-table>
  </i-form>
</div>