|
@@ -178,10 +178,12 @@ export default {
|
|
|
computed: {
|
|
|
columns() {
|
|
|
if(!this.cols.length) return []
|
|
|
- const columns = [{
|
|
|
- type: 'expand',
|
|
|
- slotBody: 'expand'
|
|
|
- }]
|
|
|
+ const columns = [
|
|
|
+ // {
|
|
|
+ // type: 'expand',
|
|
|
+ // slotBody: 'expand'
|
|
|
+ // }
|
|
|
+ ]
|
|
|
this.cols.map((item, index) => {
|
|
|
columns.push({
|
|
|
label: item,
|
|
@@ -189,6 +191,11 @@ export default {
|
|
|
width: index >= 2 || index == 0 ? 100+'px' : ''
|
|
|
})
|
|
|
})
|
|
|
+ columns.push({
|
|
|
+ type: 'expand',
|
|
|
+ slotBody: 'expand',
|
|
|
+ label:'查看'
|
|
|
+ })
|
|
|
return columns
|
|
|
},
|
|
|
majorCol() {
|
|
@@ -217,8 +224,9 @@ export default {
|
|
|
}
|
|
|
::v-deep .el-table__expanded-cell {
|
|
|
padding-top: 0;
|
|
|
- padding-right: 0;
|
|
|
+ //padding-right: 50;
|
|
|
padding-bottom: 0;
|
|
|
+ padding-left: 0;
|
|
|
}
|
|
|
::v-deep .el-table__expand-icon{
|
|
|
font-size: 18px;
|