|
|
@@ -50,6 +50,7 @@
|
|
|
fit
|
|
|
highlight-current-row
|
|
|
style="width: 100%;"
|
|
|
+ :max-height="maxHeight"
|
|
|
@row-dblclick="handleFoodClick"
|
|
|
>
|
|
|
<el-table-column type="index" label="序号" align="center" fixed width="60px" />
|
|
|
@@ -228,6 +229,7 @@ export default {
|
|
|
sortOptions: [{ key: 0, label: '按创建时间倒序排列' }, { key: 1, label: '按ID顺序排列' }],
|
|
|
list: [],
|
|
|
listLoading: true,
|
|
|
+ maxHeight: 600,
|
|
|
listQuery: {
|
|
|
query: '',
|
|
|
orderBy: 0,
|
|
|
@@ -254,6 +256,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
+ this.maxHeight = document.documentElement.clientHeight - 205
|
|
|
this.foodSource = getFoodSourceByUrl(this.$route.path)
|
|
|
if (this.foodSource === 'ENTRY' || this.foodSource === '') {
|
|
|
this.listQuery.orderBy = 0
|