This commit is contained in:
itcast 2025-12-10 10:39:46 +08:00
parent 422aaeca3b
commit 50e256de40
2 changed files with 11 additions and 2 deletions

View File

@ -132,7 +132,7 @@
</el-table-column>
<el-table-column align="center" show-overflow-tooltip prop="deviceStatus" label="预警情况">
<template slot-scope="scope">
<span :class="scope.row.status=='临近364天退役'?'red':''">{{ scope.row.status }}
<span :class="scope.row.status.includes('告警')?'red':''">{{ scope.row.status }}
</span>
</template>
</el-table-column>

View File

@ -106,7 +106,12 @@
<el-table-column align="center" prop="manageMode" label="管理模式" min-width="80" />
<el-table-column align="center" prop="devCode" label="设备编码" min-width="100" />
<el-table-column align="center" prop="inStockNum" label="在库数量" width="100" />
<el-table-column align="center" prop="status" label="预警情况" width="120" />
<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>
</template>
</el-table-column>
<el-table-column align="center" prop="scrapQuantity" label="申请退役数量" width="150">
<template slot-scope="scope">
<el-input-number
@ -416,6 +421,10 @@ export default {
</script>
<style lang="scss" scoped>
::v-deep .red {
color: red; /* Element UI官方危险色比纯red更贴合UI风格 */
font-weight: 500; /* 可选:加粗突出告警文本 */
}
/* 六级分类级联选择器样式优化 */
::v-deep .six-level-cascader .el-cascader-menu {
max-height: 300px;