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

View File

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

View File

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