<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}">
                        <app-column-link deKeyField='contact' :context="JSON.parse(JSON.stringify(context))" :viewparams="JSON.parse(JSON.stringify(viewparams))" :data="row" :linkview="{viewname: 'contact-info', height: 0,width: 0,title: $t('entities.contact.views.info.title'),placement: '', isRedirectView: false,deResParameters: [
            { pathName: 'accounts', parameterName: 'account' },
            ]
            ,parameters: [
            { pathName: 'contacts', parameterName: 'contact' },
            { pathName: 'info', parameterName: 'info' }
            ]}" valueitem="srfkey">
                            <span>{{row.fullname}}</span>
                        </app-column-link >
                    </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;">
                          <a v-show="scope.row.SetPrimary.visabled" :disabled="scope.row.SetPrimary.disabled" @click="uiAction(scope.row, 'SetPrimary', $event)" :title="$t('entities.contact.byaccount_grid.uiactions.contact_setprimary')">
                            <i class='fa fa-check'></i>
                            
                          </a>
                        </div>
                    </template>
                </el-table-column>
            </template>
            <template v-if="adaptiveState">
                <el-table-column></el-table-column>
            </template>
    </el-table>
  </i-form>
</div>