fix(UI 自动化): 测试计划ui关联用例模块数量统计错误
--bug=1015020 --user=张大海 【测试跟踪】测试计划中关联UI测试用例后左侧模块数量统计错误 https://www.tapd.cn/55049933/s/1213090 --bug=1015042 --user=张大海 【测试跟踪】测试计划详情-UI测试用例列表,左侧的模块树统计不对 https://www.tapd.cn/55049933/s/1213091
This commit is contained in:
parent
ac2644876d
commit
c737018d20
|
@ -13,6 +13,7 @@
|
|||
@setModuleOptions="setModuleOptions"
|
||||
:relevance-project-id="projectId"
|
||||
:is-read-only="true"
|
||||
:show-case-num="false"
|
||||
ref="nodeTree"/>
|
||||
</template>
|
||||
|
||||
|
@ -35,9 +36,10 @@ import TestCaseRelevanceBase from "../base/TestCaseRelevanceBase";
|
|||
import {strMapToObj} from "../../../../../../../common/js/utils";
|
||||
import ApiCaseSimpleList from "../../../../../api/definition/components/list/ApiCaseSimpleList";
|
||||
import MsApiScenarioList from "../../../../../api/automation/scenario/ApiScenarioList";
|
||||
import UiScenarioModule from "@/business/components/xpack/ui/automation/scenario/UiScenarioModule";
|
||||
import RelevanceUiScenarioList from "@/business/components/track/plan/view/comonents/api/RelevanceUiScenarioList";
|
||||
import {ENV_TYPE} from "@/common/js/constants";
|
||||
const requireComponent = require.context('@/business/components/xpack/', true, /\.vue$/);
|
||||
const UiScenarioModule = requireComponent.keys().length > 0 ? requireComponent("./ui/automation/scenario/UiScenarioModule.vue") : {};
|
||||
|
||||
export default {
|
||||
name: "TestCaseUiScenarioRelevance",
|
||||
|
@ -45,7 +47,7 @@ export default {
|
|||
RelevanceUiScenarioList,
|
||||
MsApiScenarioList,
|
||||
ApiCaseSimpleList,
|
||||
UiScenarioModule,
|
||||
"UiScenarioModule" : UiScenarioModule.default,
|
||||
TestCaseRelevanceBase,
|
||||
},
|
||||
data() {
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
:is-read-only="true"
|
||||
:plan-id="planId"
|
||||
:plan-status="planStatus"
|
||||
:show-case-num="false"
|
||||
ref="scenarioNodeTree">
|
||||
</ui-scenario-module>
|
||||
</template>
|
||||
|
@ -41,23 +42,25 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import NodeTree from "../../../../common/NodeTree";
|
||||
import MsTestPlanCommonComponent from "../base/TestPlanCommonComponent";
|
||||
import TestPlanApiCaseList from "./TestPlanApiCaseList";
|
||||
import TestCaseApiRelevance from "./TestCaseApiRelevance";
|
||||
import ApiCaseSimpleList from "../../../../../api/definition/components/list/ApiCaseSimpleList";
|
||||
import MsApiModule from "../../../../../api/definition/components/module/ApiModule";
|
||||
import MsTestPlanUiScenarioList from "./TestPlanUiScenarioList";
|
||||
import UiScenarioModule from "@/business/components/xpack/ui/automation/scenario/UiScenarioModule";
|
||||
import TestCaseUiScenarioRelevance
|
||||
import NodeTree from "../../../../common/NodeTree";
|
||||
import MsTestPlanCommonComponent from "../base/TestPlanCommonComponent";
|
||||
import TestPlanApiCaseList from "./TestPlanApiCaseList";
|
||||
import TestCaseApiRelevance from "./TestCaseApiRelevance";
|
||||
import ApiCaseSimpleList from "../../../../../api/definition/components/list/ApiCaseSimpleList";
|
||||
import MsApiModule from "../../../../../api/definition/components/module/ApiModule";
|
||||
import MsTestPlanUiScenarioList from "./TestPlanUiScenarioList";
|
||||
import TestCaseUiScenarioRelevance
|
||||
from "@/business/components/track/plan/view/comonents/api/TestCaseUiScenarioRelevance";
|
||||
|
||||
export default {
|
||||
const requireComponent = require.context('@/business/components/xpack/', true, /\.vue$/);
|
||||
const UiScenarioModule = requireComponent.keys().length > 0 ? requireComponent("./ui/automation/scenario/UiScenarioModule.vue") : {};
|
||||
|
||||
export default {
|
||||
name: "TestPlanUi",
|
||||
components: {
|
||||
TestCaseUiScenarioRelevance,
|
||||
MsTestPlanUiScenarioList,
|
||||
UiScenarioModule,
|
||||
"UiScenarioModule": UiScenarioModule.default,
|
||||
MsApiModule,
|
||||
ApiCaseSimpleList,
|
||||
TestCaseApiRelevance,
|
||||
|
@ -93,19 +96,19 @@
|
|||
this.selectNodeIds = [];
|
||||
this.moduleOptions = {};
|
||||
},
|
||||
redirectCharType(){
|
||||
if(this.redirectCharType=='scenario'){
|
||||
redirectCharType() {
|
||||
if (this.redirectCharType == 'scenario') {
|
||||
this.model = 'scenario';
|
||||
}else{
|
||||
} else {
|
||||
this.model = 'api';
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
checkRedirectCharType(){
|
||||
if(this.redirectCharType=='scenario'){
|
||||
checkRedirectCharType() {
|
||||
if (this.redirectCharType == 'scenario') {
|
||||
this.model = 'scenario';
|
||||
}else{
|
||||
} else {
|
||||
this.model = 'api';
|
||||
}
|
||||
},
|
||||
|
@ -145,16 +148,16 @@
|
|||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
.model-change-radio {
|
||||
.model-change-radio {
|
||||
height: 25px;
|
||||
line-height: 25px;
|
||||
margin: 5px 10px;
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
|
|
Loading…
Reference in New Issue