fix(测试跟踪): 关联测试用例全选时切换模块没有状态没改变
--user=郭雨琦 --bug=1013988 【测试跟踪】github#14657,测试计划关联用例问题汇总 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001013988
This commit is contained in:
parent
fd4bca460f
commit
3481faa0fb
|
@ -60,15 +60,16 @@
|
|||
|
||||
<script>
|
||||
|
||||
import TestCaseRelevanceBase from "../base/TestCaseRelevanceBase";
|
||||
import MsApiModule from "../../../../../api/definition/components/module/ApiModule";
|
||||
import RelevanceApiList from "../../../../../api/automation/scenario/api/RelevanceApiList";
|
||||
import RelevanceCaseList from "../../../../../api/automation/scenario/api/RelevanceCaseList";
|
||||
import {getCurrentProjectID, hasLicense} from "@/common/js/utils";
|
||||
const requireComponent = require.context('@/business/components/xpack/', true, /\.vue$/);
|
||||
const VersionSelect = requireComponent.keys().length > 0 ? requireComponent("./version/VersionSelect.vue") : {};
|
||||
import TestCaseRelevanceBase from "../base/TestCaseRelevanceBase";
|
||||
import MsApiModule from "../../../../../api/definition/components/module/ApiModule";
|
||||
import RelevanceApiList from "../../../../../api/automation/scenario/api/RelevanceApiList";
|
||||
import RelevanceCaseList from "../../../../../api/automation/scenario/api/RelevanceCaseList";
|
||||
import {getCurrentProjectID, hasLicense} from "@/common/js/utils";
|
||||
|
||||
export default {
|
||||
const requireComponent = require.context('@/business/components/xpack/', true, /\.vue$/);
|
||||
const VersionSelect = requireComponent.keys().length > 0 ? requireComponent("./version/VersionSelect.vue") : {};
|
||||
|
||||
export default {
|
||||
name: "TestCaseApiRelevance",
|
||||
components: {
|
||||
RelevanceCaseList,
|
||||
|
@ -154,6 +155,13 @@
|
|||
},
|
||||
|
||||
nodeChange(node, nodeIds, pNodes) {
|
||||
if (this.$refs.apiList) {
|
||||
this.$refs.apiList.condition.selectAll = false;
|
||||
}
|
||||
if (this.$refs.apiCaseList) {
|
||||
this.$refs.apiCaseList.condition.selectAll = false;
|
||||
}
|
||||
this.condition.selectAll = false;
|
||||
this.selectNodeIds = nodeIds;
|
||||
},
|
||||
handleProtocolChange(protocol) {
|
||||
|
@ -164,8 +172,6 @@
|
|||
},
|
||||
|
||||
saveCaseRelevance() {
|
||||
|
||||
|
||||
let url = '';
|
||||
let environmentId = undefined;
|
||||
let selectIds = [];
|
||||
|
@ -236,18 +242,18 @@
|
|||
this.$refs.baseRelevance.selectCounts = data;
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
/deep/ .select-menu {
|
||||
/deep/ .select-menu {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
}
|
||||
|
||||
/deep/ .environment-select {
|
||||
/deep/ .environment-select {
|
||||
float: right;
|
||||
margin-right: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
|
|
|
@ -235,6 +235,8 @@ export default {
|
|||
this.save(param, this);
|
||||
},
|
||||
nodeChange(node, nodeIds, nodeNames) {
|
||||
this.page.condition.selectAll = false;
|
||||
this.$refs.table.condition.selectAll = false;
|
||||
this.selectNodeIds = nodeIds;
|
||||
this.selectNodeNames = nodeNames;
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue