|
@@ -293,8 +293,12 @@ export default {
|
|
|
openCheckMore: true,
|
|
|
changeWidth: "240px",
|
|
|
custom: false,
|
|
|
- tableColor: ({ row, rowIndex }) => {
|
|
|
- console.log(row, 987);
|
|
|
+ tableColor: true,
|
|
|
+ tableColorFunc: ({ row, rowIndex }) => {
|
|
|
+ if (row.oId) {
|
|
|
+ return "child-row";
|
|
|
+ }
|
|
|
+ return "";
|
|
|
},
|
|
|
},
|
|
|
formData: {
|
|
@@ -835,6 +839,9 @@ export default {
|
|
|
month: [],
|
|
|
};
|
|
|
}
|
|
|
+ this.maps.forEach((value, id) => {
|
|
|
+ this.update(id);
|
|
|
+ });
|
|
|
this.getDataList();
|
|
|
},
|
|
|
init() {
|
|
@@ -941,4 +948,14 @@ export default {
|
|
|
content: ",";
|
|
|
}
|
|
|
}
|
|
|
+/deep/ {
|
|
|
+ .el-table {
|
|
|
+ .child-row {
|
|
|
+ background: #f0f9eb;
|
|
|
+ .el-table__cell {
|
|
|
+ background: #f0f9eb !important;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|