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