<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('fullname')">
                <el-table-column show-overflow-tooltip :prop="'fullname'" :label="$t('entities.contact.byaccount_grid.columns.fullname')" :width="150"  :align="'left'" :sortable="'custom'">
                    <template v-slot:header="{column}">
                      <span class="column-header ">
                        {{$t('entities.contact.byaccount_grid.columns.fullname')}}
                      </span>
                    </template>
                    <template v-slot="{row,column,$index}">
                        <span>{{row.fullname}}</span>
                    </template>
                </el-table-column>
            </template>
            <template v-if="getColumnState('emailaddress1')">
                <el-table-column show-overflow-tooltip :prop="'emailaddress1'" :label="$t('entities.contact.byaccount_grid.columns.emailaddress1')" :width="150"  :align="'left'" :sortable="'custom'">
                    <template v-slot:header="{column}">
                      <span class="column-header ">
                        {{$t('entities.contact.byaccount_grid.columns.emailaddress1')}}
                      </span>
                    </template>
                    <template v-slot="{row,column,$index}">
                        <span>{{row.emailaddress1}}</span>
                    </template>
                </el-table-column>
            </template>
            <template v-if="getColumnState('parentcustomerid')">
                <el-table-column show-overflow-tooltip :prop="'parentcustomerid'" :label="$t('entities.contact.byaccount_grid.columns.parentcustomerid')" :width="200"  :align="'left'" :sortable="'custom'">
                    <template v-slot:header="{column}">
                      <span class="column-header ">
                        {{$t('entities.contact.byaccount_grid.columns.parentcustomerid')}}
                      </span>
                    </template>
                    <template v-slot="{row,column,$index}">
                        <span>{{row.parentcustomerid}}</span>
                    </template>
                </el-table-column>
            </template>
            <template v-if="getColumnState('telephone1')">
                <el-table-column show-overflow-tooltip :prop="'telephone1'" :label="$t('entities.contact.byaccount_grid.columns.telephone1')" :width="120"  :align="'left'" :sortable="'custom'">
                    <template v-slot:header="{column}">
                      <span class="column-header ">
                        {{$t('entities.contact.byaccount_grid.columns.telephone1')}}
                      </span>
                    </template>
                    <template v-slot="{row,column,$index}">
                        <span>{{row.telephone1}}</span>
                    </template>
                </el-table-column>
            </template>
            <template v-if="getColumnState('uagridcolumn1')">
                <el-table-column :column-key="'uagridcolumn1'" :label="$t('entities.contact.byaccount_grid.columns.uagridcolumn1')" :width="100"  :align="'right'">
                    <template v-slot:header="{column}">
                      <span class="column-header ">
                        {{$t('entities.contact.byaccount_grid.columns.uagridcolumn1')}}
                      </span>
                    </template>
                    <template slot-scope="scope">
                        <div style="text-align: center;">
                            <tooltip :transfer="true" :max-width="600">
                            <a @click="uiAction(scope.row, 'SetPrimary', $event)">
                              <i class='fa fa-check'></i>
                              
                            </a>
                            <div slot='content'>{{$t('entities.contact.byaccount_grid.uiactions.contact_setprimary')}}</div>
                            </tooltip>
                        </div>
                    </template>
                </el-table-column>
            </template>
            <template v-if="adaptiveState">
                <el-table-column></el-table-column>
            </template>
    </el-table>
  </i-form>
</div>