This commit is contained in:
bb_pan 2026-01-05 21:52:37 +08:00
parent b05024ab9f
commit 0d795c0d3a
1 changed files with 2 additions and 1 deletions

View File

@ -110,7 +110,8 @@
<el-table-column align="center" prop="inStockNum" label="在库数量" width="100" />
<el-table-column align="center" prop="status" label="预警情况" width="120" >
<template slot-scope="scope">
<span :class="scope.row.status.includes('告警')?'red':''">{{ scope.row.status }}
<span :class="scope.row.status && scope.row.status.includes('告警')?'red':''">
{{ scope.row.status }}
</span>
</template>
</el-table-column>