fix(测试计划): 修复测试计划全选UI用例环境显示不及时问题
--bug=1031043 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001031043
This commit is contained in:
parent
f460ae66a5
commit
555d3bcc43
|
@ -94,6 +94,7 @@
|
||||||
<el-radio label="newEnv">{{ $t("api_test.environment.choose_new_environment") }}</el-radio>
|
<el-radio label="newEnv">{{ $t("api_test.environment.choose_new_environment") }}</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
<env-group-popover
|
<env-group-popover
|
||||||
|
v-loading="uiLoading"
|
||||||
:env-map="projectEnvMap"
|
:env-map="projectEnvMap"
|
||||||
:project-ids="projectIds"
|
:project-ids="projectIds"
|
||||||
:show-env-group="false"
|
:show-env-group="false"
|
||||||
|
@ -161,6 +162,7 @@ export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
loading: false,
|
loading: false,
|
||||||
|
uiLoading: false,
|
||||||
showConfigButtonWithOutPermission: false,
|
showConfigButtonWithOutPermission: false,
|
||||||
condition: {
|
condition: {
|
||||||
components: TEST_PLAN_RELEVANCE_UI_SCENARIO_CONFIGS
|
components: TEST_PLAN_RELEVANCE_UI_SCENARIO_CONFIGS
|
||||||
|
@ -302,6 +304,7 @@ export default {
|
||||||
|
|
||||||
},
|
},
|
||||||
initProjectIds() {
|
initProjectIds() {
|
||||||
|
this.uiLoading = true;
|
||||||
this.projectIds.clear();
|
this.projectIds.clear();
|
||||||
this.map = new Map();
|
this.map = new Map();
|
||||||
if (!this.selectAll) {
|
if (!this.selectAll) {
|
||||||
|
@ -316,6 +319,7 @@ export default {
|
||||||
newProjectIds.push(...this.map[key])
|
newProjectIds.push(...this.map[key])
|
||||||
}
|
}
|
||||||
this.projectIds = new Set(newProjectIds)
|
this.projectIds = new Set(newProjectIds)
|
||||||
|
this.uiLoading = false;
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
testPlanUiScenarioRelevanceListIds(this.condition).then((res) => {
|
testPlanUiScenarioRelevanceListIds(this.condition).then((res) => {
|
||||||
|
@ -326,7 +330,8 @@ export default {
|
||||||
for (let key of Object.keys(this.map)) {
|
for (let key of Object.keys(this.map)) {
|
||||||
newProjectIds.push(...this.map[key])
|
newProjectIds.push(...this.map[key])
|
||||||
}
|
}
|
||||||
this.projectIds = new Set(newProjectIds)
|
this.projectIds = new Set(newProjectIds);
|
||||||
|
this.uiLoading = false;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue