插槽的使用 判断数据是否为1
<el-table-column align="center" label="类型" width="" prop="type">
<template slot-scope="scope">
{{
scope.row.type == 1
? "周报告"
: scope.row.type == 2
? "日报表"
: " "
}}
</template>
</el-table-column>
插槽的使用 判断数据是否为1
<el-table-column align="center" label="类型" width="" prop="type">
<template slot-scope="scope">
{{
scope.row.type == 1
? "周报告"
: scope.row.type == 2
? "日报表"
: " "
}}
</template>
</el-table-column>