refactor: 场景导入页面高度优化

This commit is contained in:
chenjianxing 2021-07-15 19:44:36 +08:00 committed by jianxing
parent 125088d4b1
commit 6f3ba2d5b9
2 changed files with 4 additions and 3 deletions

View File

@ -6,11 +6,10 @@
<ms-table <ms-table
:data="tableData" :data="tableData"
:height="screenHeight" :screen-height="isRelate ? 'calc(100vh - 400px)' : screenHeight"
:screen-height="screenHeight"
:condition="condition" :condition="condition"
:page-size="pageSize" :page-size="pageSize"
:operators="operators" :operators="isRelate ? [] : operators"
:batch-operators="buttons" :batch-operators="buttons"
:total="total" :total="total"
:fields.sync="fields" :fields.sync="fields"
@ -285,6 +284,7 @@ export default {
default: false default: false
}, },
initApiTableOpretion: String, initApiTableOpretion: String,
isRelate: Boolean
}, },
data() { data() {
return { return {

View File

@ -21,6 +21,7 @@
:trash-enable="false" :trash-enable="false"
:is-reference-table="true" :is-reference-table="true"
@selection="setData" @selection="setData"
:is-relate="true"
:custom-num="customNum" :custom-num="customNum"
ref="apiScenarioList"/> ref="apiScenarioList"/>