|
@@ -162,10 +162,11 @@
|
|
|
element-loading-text="Loading"
|
|
|
border
|
|
|
fit
|
|
|
- stripe
|
|
|
+
|
|
|
+ :row-class-name="tableRowClassName"
|
|
|
@select-all="hanleSelectAll"
|
|
|
@select="hanleSelectAll"
|
|
|
- :row-style="rowClass"
|
|
|
+
|
|
|
>
|
|
|
<el-table-column
|
|
|
type="selection"
|
|
@@ -486,17 +487,21 @@ export default {
|
|
|
this.getList()
|
|
|
})
|
|
|
},
|
|
|
- rowClass({ row, rowIndex }) {
|
|
|
- if (this.ids.includes(row.id)) {
|
|
|
- console.log(row);
|
|
|
- return { 'background-color': '#ecf5ff' }
|
|
|
- }
|
|
|
- }
|
|
|
+ tableRowClassName({row, rowIndex}) {
|
|
|
+ // || row.examineStatus=='FAIL'
|
|
|
+ if (this.ids.includes(row.id)) {
|
|
|
+ return 'warning-row';
|
|
|
+ }
|
|
|
+ return '';
|
|
|
+ },
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
+ ::v-deep .el-table .warning-row {
|
|
|
+ background: oldlace;
|
|
|
+ }
|
|
|
::v-deep .el-select--small {
|
|
|
width: 100%;
|
|
|
}
|