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