1.slot-scope="scope" 在这里相当于插槽的作用,可以通过scope.row.id 来获取:data="comdata"中的每一行的id
<el-table :data="comdata" style="width: 100%;">
<el-table-column label="行业" show-overflow-tooltip>
<template slot-scope="scope">
<p @click="godata(scope.row.id,scope.row.keyno)">
<img :src="scope.row.logo" alt style="width: 40px;height: 40px;cursor: pointer" v-if="scope.row.logo">
<img src="/static/img/index/enterprise.png" alt v-else>
<span v-html="scope.row.name" style="cursor: pointer"></span>
</p>
</template>
</el-table-column></el-table-column>
</el-table>
2.
网友评论