使用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>
使用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>