第一种写法
<el-table-column prop="versionStatus" label="标准状态">
<template slot-scope="scope">
<p v-if="scope.row.versionStatus=='1'">
在用
</p>
<p v-else-if="scope.row.versionStatus=='2'">
过期
</p>
<p v-else-if="scope.row.versionStatus=='3'">
作废
</p>
<p v-else-if="scope.row.versionStatus=='4'">
停用
</p>
</template>
</el-table-column>
第二种写法
直接用v-if