|
|
@@ -32,6 +32,7 @@
|
|
|
fontWeight: '700',
|
|
|
color: '#606266',
|
|
|
}"
|
|
|
+ :row-class-name="tableRowClassName"
|
|
|
style="width: 100%"
|
|
|
>
|
|
|
<el-table-column
|
|
|
@@ -75,6 +76,14 @@
|
|
|
minwidth="180"
|
|
|
>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ header-align="center"
|
|
|
+ align="center"
|
|
|
+ prop="referrerName"
|
|
|
+ label="推荐人"
|
|
|
+ minwidth="180"
|
|
|
+ >
|
|
|
+ </el-table-column>
|
|
|
<el-table-column
|
|
|
header-align="center"
|
|
|
align="center"
|
|
|
@@ -579,6 +588,14 @@ export default {
|
|
|
this.queryBlood()
|
|
|
},
|
|
|
methods: {
|
|
|
+ //页面符合条件表格添加class
|
|
|
+ tableRowClassName({row, rowIndex}) {
|
|
|
+ console.log(row, rowIndex)
|
|
|
+ if (row.userId == this.queryFrom.affiliation && this.queryFrom.affiliation!='') {
|
|
|
+ return 'success-row';
|
|
|
+ }
|
|
|
+ return '';
|
|
|
+ },
|
|
|
handleSizeChange(value) {
|
|
|
this.pagination.pageSize = value;
|
|
|
this.queryBlood()
|
|
|
@@ -790,4 +807,11 @@ export default {
|
|
|
margin-left: 0px !important;
|
|
|
}
|
|
|
/* 顶部查询条件样式End */
|
|
|
+/* /deep/ .el-table .warning-row {
|
|
|
+ background: oldlace;
|
|
|
+} */
|
|
|
+
|
|
|
+/deep/ .el-table .success-row {
|
|
|
+ background: #f0f9eb;
|
|
|
+}
|
|
|
</style>
|