fix(测试跟踪): 测试计划关联接口用例显示错误
--bug=1010172 --user=lyh 【测试跟踪】github#10351,测试计划关联接口用例显示错误 https://www.tapd.cn/55049933/s/1102856 Closes #10351
This commit is contained in:
parent
bd4aca287a
commit
aacb50c1c5
|
@ -20,6 +20,7 @@
|
|||
:current-protocol="currentProtocol"
|
||||
:screen-height="screenHeight"
|
||||
@setSelectRow="setSelectRow"
|
||||
@selectCountChange="setSelectCounts"
|
||||
@refreshTable="initTable"
|
||||
ref="apitable">
|
||||
|
||||
|
@ -32,7 +33,7 @@
|
|||
|
||||
</api-list-container>
|
||||
|
||||
<table-select-count-bar :count="selectRows.size"/>
|
||||
<table-select-count-bar :count="selectCounts"/>
|
||||
</div>
|
||||
|
||||
</template>
|
||||
|
@ -66,7 +67,8 @@ export default {
|
|||
tableData: [],
|
||||
environmentId: "",
|
||||
total: 0,
|
||||
selectRows: new Set()
|
||||
selectRows: new Set(),
|
||||
selectCounts: 0
|
||||
};
|
||||
},
|
||||
props: {
|
||||
|
@ -121,6 +123,9 @@ export default {
|
|||
setSelectRow(setSelectRow) {
|
||||
this.selectRows = setSelectRow;
|
||||
},
|
||||
setSelectCounts(data) {
|
||||
this.selectCounts = data;
|
||||
},
|
||||
isApiListEnableChange(data) {
|
||||
this.$emit('isApiListEnableChange', data);
|
||||
},
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
@search="initTable"/>
|
||||
|
||||
<ms-table :data="tableData" :select-node-ids="selectNodeIds" :condition="condition" :page-size="pageSize"
|
||||
:total="total" enableSelection
|
||||
:total="total" enableSelection @selectCountChange="selectCountChange"
|
||||
:screenHeight="screenHeight"
|
||||
operator-width="170px"
|
||||
@refresh="initTable"
|
||||
|
@ -211,6 +211,9 @@ export default {
|
|||
buildPagePath(path) {
|
||||
return path + "/" + this.currentPage + "/" + this.pageSize;
|
||||
},
|
||||
selectCountChange(value) {
|
||||
this.$emit('selectCountChange', value)
|
||||
},
|
||||
getColor(flag, method) {
|
||||
return this.methodColorMap.get(method);
|
||||
},
|
||||
|
|
|
@ -246,6 +246,9 @@ export default {
|
|||
this.initData();
|
||||
});
|
||||
}
|
||||
},
|
||||
selectDataCounts(value) {
|
||||
this.$emit("selectCountChange", value);
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
Loading…
Reference in New Issue