| | |
| | | @change="handleTableChange" |
| | | :scroll="{ x: 'calc(1500px + 50%)', y: 900 }" |
| | | :customRow="clickThenSelect" |
| | | :rowClassName="tableRowClass" |
| | | > |
| | | </a-table> |
| | | |
| | |
| | | |
| | | //禁用状态样式 |
| | | 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) { |
| | |
| | | } |
| | | } |
| | | </script> |
| | | <style> |
| | | <style lang="less" > |
| | | @import '~@assets/less/common.less'; |
| | | |
| | | .frozenRowClass { |
| | |
| | | .error { |
| | | color: red; |
| | | } |
| | | |
| | | .yellow { |
| | | color: yellow; |
| | | } |
| | | |
| | | .fontweight { |
| | | font-weight: bold; |
| | | } |
| | | |
| | | .ant-table-tbody .red { |
| | | background-color: red !important |
| | | } |
| | | </style> |