<el-table-column label="报警状态" align="center" prop="alarmStatusValue" min-width="100">
<template slot-scope="scope">
<el-tag v-if="scope.row.alarmStatusValue" :type="tagTypeChange(scope.row.alarmStatus)" disable-transitions>{{ scope.row.alarmStatusValue }}</el-tag>
</template>
</el-table-column>
tagTypeChange (status) {
if (dictionaryConstant.CONFIRM_NORMAL == status) {
return "success";
} else if (dictionaryConstant.CONFIRM_ABNORMAL == status) {
return "danger";
} else if (dictionaryConstant.CONFIRM_NO == status) {
return "primary";
}
}