fix(接口测试): 修复等待控制器显示状态的缺陷

--bug=1026218 --user=王孝刚 【接口测试】场景-生成报告-等待控制器显示执行结果success
https://www.tapd.cn/55049933/s/1376396
This commit is contained in:
wxg0103 2023-05-29 09:57:30 +08:00 committed by fit2-zhao
parent 2c7aede979
commit 5cb8ae30a0
3 changed files with 12 additions and 5 deletions

View File

@ -23,8 +23,8 @@
</el-col>
<el-col :span="2">
<div style="float: right">
<ms-api-report-status :status="node.totalStatus"
v-if="node.type !=='ConstantTimer'|| node.type !=='Assertion'"/>
<ms-api-report-status :status="node.totalStatus" v-if="node.type !=='ConstantTimer' && node.type !=='Assertion'
&& node.children && node.children.length > 0"/>
</div>
</el-col>
</el-row>

View File

@ -924,15 +924,21 @@ export default {
getProjectUsers().then((res) => {
this.userInProject = res.data;
//
let isExist = false;
let isExistPer = false;
let isExistApi = false;
this.userInProject.forEach((item) => {
if (item.id === this.config.performanceScriptReviewer) {
isExist = true;
isExistPer = true;
}
if (item.id === this.config.apiScriptReviewer) {
isExistApi = true;
}
});
if (!isExist) {
this.$set(this.config, "performanceScriptReviewer", null);
this.$set(this.config, "performanceReviewLoadTestScript", false);
}
if (!isExistApi) {
this.$set(this.config, "apiScriptReviewer", null);
this.$set(this.config, "apiReviewTestScript", false);
}

View File

@ -19,7 +19,8 @@
</el-col>
<el-col :span="2">
<div style="float: right">
<ms-api-report-status :status="node.totalStatus" v-if="node.type !=='ConstantTimer'|| node.type !=='Assertion'"/>
<ms-api-report-status :status="node.totalStatus" v-if="node.type !=='ConstantTimer' && node.type !=='Assertion'
&& node.children && node.children.length > 0"/>
</div>
</el-col>
</el-row>