fix(测试跟踪): 关联测试用例全选时切换模块没有状态没改变

--user=郭雨琦
--bug=1013988
【测试跟踪】github#14657,测试计划关联用例问题汇总
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001013988
This commit is contained in:
guoyuqi 2022-06-13 18:19:32 +08:00 committed by 刘瑞斌
parent 8050ef6edc
commit f979a31549
2 changed files with 179 additions and 171 deletions

View File

@ -65,6 +65,7 @@
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") : {};
@ -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 = [];

View File

@ -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;
},