table表单内容:
<el-table-column label="状态" align="center" prop="status">
<template slot-scope="scope">
{{ StatusTranslate(scope.row.status) }}
</template>
</el-table-column>>
methods方法内容:
StatusTranslate(status) {
let statusArr = {
'1': '正常',
'2': '审核中',
'3': '变更中',
'4': '闲置中',
'5': '闲置',
'6': '报废中',
'7': '维修中',
'8': '盘点中',
}
return statusArr[status]
},