three-trees-ui 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
</el-button>
|
|
131
131
|
</div>
|
|
132
132
|
</el-header>
|
|
133
|
-
<el-main class="custom-dialog_main">
|
|
133
|
+
<el-main class="custom-dialog_main" ref="customTableRef">
|
|
134
134
|
<el-table
|
|
135
135
|
ref="orgTable"
|
|
136
136
|
:data="dialogData"
|
|
@@ -422,7 +422,6 @@
|
|
|
422
422
|
})
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
|
-
this.initTableHeight()
|
|
426
425
|
},
|
|
427
426
|
immediate: true,
|
|
428
427
|
deep: true,
|
|
@@ -579,9 +578,12 @@
|
|
|
579
578
|
},
|
|
580
579
|
initTableHeight() {
|
|
581
580
|
this.$nextTick(() => {
|
|
582
|
-
let mainEl =
|
|
583
|
-
if (mainEl
|
|
584
|
-
this.tableHeight =
|
|
581
|
+
let mainEl = this.$refs.customTableRef
|
|
582
|
+
if (mainEl) {
|
|
583
|
+
this.tableHeight =
|
|
584
|
+
mainEl.$el.clientHeight - 2 > 350
|
|
585
|
+
? mainEl.$el.clientHeight - 2
|
|
586
|
+
: 350
|
|
585
587
|
}
|
|
586
588
|
})
|
|
587
589
|
},
|
|
@@ -1038,6 +1040,7 @@
|
|
|
1038
1040
|
totalKey: this.customDialog.totalKey,
|
|
1039
1041
|
}
|
|
1040
1042
|
this.getDialoglistJson(requestParam).then(() => {
|
|
1043
|
+
this.initTableHeight()
|
|
1041
1044
|
this.checkList()
|
|
1042
1045
|
})
|
|
1043
1046
|
} catch (e) {
|
|
@@ -1051,11 +1054,13 @@
|
|
|
1051
1054
|
})
|
|
1052
1055
|
this.customDialog.pageBean = queryFilter
|
|
1053
1056
|
this.getDialoglistJson(this.customDialog).then(() => {
|
|
1057
|
+
this.initTableHeight()
|
|
1054
1058
|
this.checkList()
|
|
1055
1059
|
})
|
|
1056
1060
|
} else {
|
|
1057
1061
|
this.customDialog.pageBean = pageBean
|
|
1058
1062
|
this.getDialoglistJson(this.customDialog).then(() => {
|
|
1063
|
+
this.initTableHeight()
|
|
1059
1064
|
this.checkList()
|
|
1060
1065
|
})
|
|
1061
1066
|
}
|
|
@@ -1880,5 +1885,6 @@
|
|
|
1880
1885
|
}
|
|
1881
1886
|
.custom-dialog_main {
|
|
1882
1887
|
min-height: 350px;
|
|
1888
|
+
padding: 0 20px !important;
|
|
1883
1889
|
}
|
|
1884
1890
|
</style>
|