elementUI中 el-table如何显示两个后台返回的字段内容

使用el-table标签时,其中el-table-column要展示的数据来自后台返回的两个字段,用法如下:

<el-table-column prop="projectNo,projectName" label="名称" min-width="25%">
	<template slot-scope="scope"> 
		{
    
    {
    
    scope.row.projectNo}}_{
    
    {
    
    scope.row.projectName}} 
	</template>
</el-table-column>

猜你喜欢

转载自blog.csdn.net/qq_45565693/article/details/130010930