fix(测试跟踪): 修改测试计划报告UI截图显示问题

--bug=1021714 --user=郭雨琦
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001021714
This commit is contained in:
guoyuqi 2023-03-02 13:14:01 +08:00 committed by 刘瑞斌
parent 2c7b1fe8e4
commit a1f24c112e
4 changed files with 10 additions and 2 deletions

View File

@ -23,6 +23,7 @@
:tree-node="treeNode" :tree-node="treeNode"
:command="node" :command="node"
:isActive="isActive" :isActive="isActive"
:is-template="isTemplate"
:result="node.value"/> :result="node.value"/>
</div> </div>
<div v-else> <div v-else>
@ -63,6 +64,7 @@ export default {
console: String, console: String,
isActive: Boolean, isActive: Boolean,
isShare: Boolean, isShare: Boolean,
isTemplate: Boolean,
shareId: String, shareId: String,
}, },
data() { data() {

View File

@ -16,7 +16,7 @@
class="ms-tree ms-report-tree" ref="resultsTree"> class="ms-tree ms-report-tree" ref="resultsTree">
<span slot-scope="{ node, data}" style="width: 99%" @click="nodeClick(node)"> <span slot-scope="{ node, data}" style="width: 99%" @click="nodeClick(node)">
<ms-scenario-result :node="data" :tree-node="node" :console="console" v-on:requestResult="requestResult" <ms-scenario-result :node="data" :tree-node="node" :console="console" v-on:requestResult="requestResult"
:isActive="isActive" :is-share="isShare" :share-id="shareId"/> :isActive="isActive" :is-share="isShare" :is-template="isTemplate" :share-id="shareId"/>
</span> </span>
</el-tree> </el-tree>
</el-card> </el-card>
@ -39,6 +39,7 @@ export default {
type: Boolean, type: Boolean,
}, },
isShare: Boolean, isShare: Boolean,
isTemplate: Boolean,
shareId: String, shareId: String,
}, },
data() { data() {

View File

@ -19,7 +19,7 @@
</span> </span>
</el-col> </el-col>
<el-col :span="3"> <el-col :span="3" v-if="!isTemplate">
<!-- 兼容旧数据 报告截图 --> <!-- 兼容旧数据 报告截图 -->
<el-popover <el-popover
placement="right" placement="right"
@ -86,6 +86,7 @@ export default {
default: false default: false
}, },
treeNode: Object, treeNode: Object,
isTemplate: Boolean,
}, },
data() { data() {
return { return {

View File

@ -24,6 +24,7 @@
<!-- all step--> <!-- all step-->
<el-tab-pane :label="$t('api_report.total')" name="total"> <el-tab-pane :label="$t('api_report.total')" name="total">
<ms-scenario-results <ms-scenario-results
:is-template="isTemplate"
:treeData="fullTreeNodes" :treeData="fullTreeNodes"
:console="content.console" :console="content.console"
:report="report" :report="report"
@ -42,6 +43,7 @@
:console="content.console" :console="content.console"
:report="report" :report="report"
:is-share="isShare" :is-share="isShare"
:is-template="isTemplate"
:share-id="shareId" :share-id="shareId"
:treeData="fullTreeNodes" ref="failsTree" :treeData="fullTreeNodes" ref="failsTree"
:errorReport="content.error"/> :errorReport="content.error"/>
@ -57,6 +59,7 @@
v-on:requestResult="requestResult" v-on:requestResult="requestResult"
:report="report" :report="report"
:is-share="isShare" :is-share="isShare"
:is-template="isTemplate"
:share-id="shareId" :share-id="shareId"
:console="content.console" :console="content.console"
:treeData="fullTreeNodes" ref="errorReportTree"/> :treeData="fullTreeNodes" ref="errorReportTree"/>
@ -73,6 +76,7 @@
v-on:requestResult="requestResult" v-on:requestResult="requestResult"
:report="report" :report="report"
:is-share="isShare" :is-share="isShare"
:is-template="isTemplate"
:share-id="shareId" :share-id="shareId"
:console="content.console" :console="content.console"
:treeData="fullTreeNodes" ref="unExecuteTree"/> :treeData="fullTreeNodes" ref="unExecuteTree"/>