|
@@ -42,7 +42,13 @@
|
|
|
<el-table-column class-name="action-column" label="操作" width="100">
|
|
|
<template slot-scope="scope">
|
|
|
<el-popover placement="right" trigger="hover">
|
|
|
- <el-table :data="scope.row.obeSubRequirements" border>
|
|
|
+ <el-table
|
|
|
+ :data="scope.row.obeSubRequirements"
|
|
|
+ border
|
|
|
+ :row-class-name="
|
|
|
+ ({ row }) => rowClassHandle(row, scope.row.expectValue)
|
|
|
+ "
|
|
|
+ >
|
|
|
<el-table-column
|
|
|
label="毕业要求指标"
|
|
|
prop="name"
|
|
@@ -152,6 +158,9 @@ export default {
|
|
|
};
|
|
|
this.chartOption = option;
|
|
|
},
|
|
|
+ rowClassHandle(row, expectValue) {
|
|
|
+ return row.matrixDegree < expectValue ? "row-danger" : "";
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|