|
@@ -16,13 +16,14 @@
|
|
:total="total"
|
|
:total="total"
|
|
:page-size="pageInfo.size"
|
|
:page-size="pageInfo.size"
|
|
:page-current="pageInfo.current"
|
|
:page-current="pageInfo.current"
|
|
|
|
+ :row-class-name="rowClassName"
|
|
@page-change="onPageChange"
|
|
@page-change="onPageChange"
|
|
@expand-change="onExpandChange"
|
|
@expand-change="onExpandChange"
|
|
>
|
|
>
|
|
<template #expand="{ row }">
|
|
<template #expand="{ row }">
|
|
<el-form label-position="left" inline class="demo-table-expand">
|
|
<el-form label-position="left" inline class="demo-table-expand">
|
|
<m-card shadow="nerve">
|
|
<m-card shadow="nerve">
|
|
- <el-timeline :reverse="reverse">
|
|
|
|
|
|
+ <el-timeline>
|
|
<el-timeline-item
|
|
<el-timeline-item
|
|
:hide-timestamp="true">
|
|
:hide-timestamp="true">
|
|
<el-row>
|
|
<el-row>
|
|
@@ -76,6 +77,7 @@ export default {
|
|
name: 'salary-comparison',
|
|
name: 'salary-comparison',
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
|
|
+ expandRow: [],
|
|
importLoading: false,
|
|
importLoading: false,
|
|
downloadLoading: false,
|
|
downloadLoading: false,
|
|
submitLoading: false,
|
|
submitLoading: false,
|
|
@@ -150,6 +152,10 @@ export default {
|
|
this.$message.error(error)
|
|
this.$message.error(error)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ rowClassName ({ row, rowIndex }) {
|
|
|
|
+ console.log(111, row)
|
|
|
|
+ return this.expandRow.includes(row.unifiedCertificationNumber) ? 'grey' : null
|
|
|
|
+ },
|
|
onSearch () {
|
|
onSearch () {
|
|
this.pageInfo.current = 1
|
|
this.pageInfo.current = 1
|
|
this.init()
|
|
this.init()
|
|
@@ -180,6 +186,7 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
async onExpandChange (row, expandedRows) {
|
|
async onExpandChange (row, expandedRows) {
|
|
|
|
+ this.expandRow = expandedRows.map(e => e.unifiedCertificationNumber)
|
|
if (row.childrenList.length) {
|
|
if (row.childrenList.length) {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
@@ -239,4 +246,7 @@ export default {
|
|
height: 32px;
|
|
height: 32px;
|
|
line-height: 30px;
|
|
line-height: 30px;
|
|
}
|
|
}
|
|
|
|
+::v-deep .grey {
|
|
|
|
+ background-color: #f0f0f0;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|