| | |
| | | @selection-change="handleSelectionChange" |
| | | :tableLoading="tableLoading" |
| | | @pagination="pagination" |
| | | :rowClassName="rowClassName" |
| | | :total="page.total"> |
| | | <template #productNoSlot="{ row }"> |
| | | <el-button |
| | |
| | | width: 120, |
| | | }, |
| | | { |
| | | label: "合格率", |
| | | prop: "actualQualifiedRate", |
| | | width: 120, |
| | | }, |
| | | { |
| | | label: "标准合格率", |
| | | prop: "processQualifiedRate", |
| | | width: 120, |
| | | }, |
| | | { |
| | | label: "单位", |
| | | prop: "unit", |
| | | width: 120, |
| | |
| | | } |
| | | handleQuery(); |
| | | }; |
| | | |
| | | const rowClassName = ({row}) => { |
| | | if (Number(row.actualQualifiedRate) < Number(row.processQualifiedRate)) { |
| | | return 'danger-row'; |
| | | } |
| | | return ''; |
| | | }; |
| | | |
| | | const deleteReport = row => { |
| | | ElMessageBox.confirm("确定删除该报工吗?", "提示", { |
| | | confirmButtonText: "确定", |
| | |
| | | }); |
| | | </script> |
| | | |
| | | <style scoped></style> |
| | | <style scoped> |
| | | :deep(.danger-row td) { |
| | | color: #e95a66 !important; |
| | | } |
| | | </style> |