<el-table-column show-overflow-tooltip label="操作">
  <template slot-scope="scope">
	<span class="span-text" v-if="scope.row.linkUrl!== undefined && scope.row.linkUrl.length >=1"><a link :href="scope.row.linkUrl" target="_blank">办理</a></span>
	<span class="span-text" v-if="scope.row.guideLink!== undefined && scope.row.guideLink.length >=1"><a link :href="scope.row.guideLink" target="_blank">指南</a></span>
  </template>
</el-table-column>

注意: < template slot-scope=“scope”>的scope是自定义的变量,scope.row.一定根据自定义变量+.row是固定的。

Logo

前往低代码交流专区

更多推荐