先看效果:
再上代码
<Table :columns="columns_shop" :data="data_shop" :loading="loading_shop" @on-row-click="row_click_shop" stripe disabled-hover highlight-row
ref="table_shop" class="etable" :height="550">
<template slot="syt" slot-scope="{ row, index }">
<Tag color="gold" v-if="row.sytList.length>0">有</Tag>
<Tag color="default" v-else>無</Tag>
</template>
<template slot="footer">
<Table :columns="columns_shop" :data="data_shop_total" :show-header="false" />
</template>
</Table>