From e9bb50dcb395c160adb7f89f2f0972d9bdce3f3c Mon Sep 17 00:00:00 2001 From: qushaowei <qushaowei@163.com> Date: 星期二, 29 八月 2023 17:56:17 +0800 Subject: [PATCH] 修改宽度 --- src/views/spare/modules/sparePartInventory/SparePart2List.vue | 36 ++++++++++++++++++++++++------------ 1 files changed, 24 insertions(+), 12 deletions(-) diff --git a/src/views/spare/modules/sparePartInventory/SparePart2List.vue b/src/views/spare/modules/sparePartInventory/SparePart2List.vue index 82a7f72..2e9e217 100644 --- a/src/views/spare/modules/sparePartInventory/SparePart2List.vue +++ b/src/views/spare/modules/sparePartInventory/SparePart2List.vue @@ -73,6 +73,7 @@ @change="handleTableChange" :scroll="{ x: 'calc(1500px + 50%)', y: 900 }" :customRow="clickThenSelect" + :rowClassName="tableRowClass" > </a-table> @@ -178,25 +179,25 @@ dataIndex: 'constructorId_dictText', }, { - title: '涓诲崟浣�', + title: '鍗曚綅', align: "center", dataIndex: 'mainUnitId_dictText', }, - { + /* { title: '杈呭崟浣�', align: "center", dataIndex: 'auxiliaryUnitId_dictText', - }, + }, */ { - title: '鎬讳富鏁伴噺', + title: '鎬绘暟閲�', align: "center", dataIndex: 'totalMainQuantity', }, - { + /* { title: '鎬昏緟鏁伴噺', align: "center", dataIndex: 'totalAuxiliaryQuantity', - }, + }, */ { title: '鏈夋晥鏈�', align: "center", @@ -272,11 +273,13 @@ //绂佺敤鐘舵�佹牱寮� tableRowClass(record, index) { - if (record.status != "1") { - return "frozenRowClass"; - } - return ""; - }, + if (record.totalMainQuantity < record.inventoryLowerLimit) { + return 'error' + }else if(record.totalMainQuantity > record.inventoryUpperLimit){ + return 'yellow' + } + + }, searchReset() { this.queryParam = {}; if (this.nodeSelected.key != -1) { @@ -319,7 +322,7 @@ } } </script> -<style> +<style lang="less" > @import '~@assets/less/common.less'; .frozenRowClass { @@ -331,7 +334,16 @@ .error { color: red; } + +.yellow { + color: yellow; +} + .fontweight { font-weight: bold; } + +.ant-table-tbody .red { + background-color: red !important + } </style> \ No newline at end of file -- Gitblit v1.9.3