fix: 关联前后置对象页面数量显示错误

This commit is contained in:
chenjianxing 2021-10-25 14:14:39 +08:00 committed by jianxing
parent c9e7ddad33
commit 1b061f13f0
3 changed files with 5 additions and 5 deletions

View File

@ -9,6 +9,7 @@
:condition="condition" :condition="condition"
:select-node-ids="selectNodeIds" :select-node-ids="selectNodeIds"
:result="result" :result="result"
:total="total"
:current-protocol="currentProtocol" :current-protocol="currentProtocol"
:screen-height="screenHeight" :screen-height="screenHeight"
@setSelectRow="setSelectRow" @setSelectRow="setSelectRow"
@ -57,6 +58,7 @@
screenHeight: 'calc(100vh - 400px)',//, screenHeight: 'calc(100vh - 400px)',//,
tableData: [], tableData: [],
environmentId: "", environmentId: "",
total: 0,
selectRows: new Set() selectRows: new Set()
} }
}, },

View File

@ -18,6 +18,7 @@
<api-table-list <api-table-list
:table-data="tableData" :table-data="tableData"
:total="total"
:condition="condition" :condition="condition"
:select-node-ids="selectNodeIds" :select-node-ids="selectNodeIds"
:result="result" :result="result"
@ -53,6 +54,7 @@
currentRow: {}, currentRow: {},
projectId: "", projectId: "",
result: {}, result: {},
total: 0,
tableData: [] tableData: []
}; };
}, },

View File

@ -154,8 +154,7 @@
result: Object, result: Object,
tableData: Array, tableData: Array,
condition: Object, condition: Object,
// currentPage: Number, total: Number,
// pageSize: Number,
screenHeight: { screenHeight: {
type: [Number, String], type: [Number, String],
default() { default() {
@ -189,9 +188,6 @@
return this.$t('api_test.definition.api_type'); return this.$t('api_test.definition.api_type');
} }
}, },
total() {
return this.tableData ? this.tableData.length : 0;
},
}, },
methods: { methods: {
buildPagePath(path) { buildPagePath(path) {