fix(接口测试): 场景详情-生成报告-向下滑动下页面查看步骤和生成报告中页面步骤-页面会卡顿

--bug=1027937 --user=白奇 【接口测试】场景详情-生成报告-向下滑动下页面查看步骤和生成报告中页面步骤-页面会卡顿 https://www.tapd.cn/55049933/s/1396497
This commit is contained in:
baiqi 2023-07-24 14:09:51 +08:00 committed by fit2-zhao
parent 07947ed4d9
commit 065626102e
2 changed files with 34 additions and 32 deletions

View File

@ -79,9 +79,6 @@
<script>
import { baseSocket } from '@/api/base-network';
import MsRequestResult from './components/RequestResult';
import MsRequestResultTail from './components/RequestResultTail';
import MsScenarioResult from './components/ScenarioResult';
import MsMetricChart from './components/MetricChart';
import MsScenarioResults from './components/ScenarioResults';
import MsContainer from 'metersphere-frontend/src/components/MsContainer';
@ -102,10 +99,7 @@ export default {
MsMainContainer,
MsContainer,
MsScenarioResults,
MsRequestResultTail,
MsMetricChart,
MsScenarioResult,
MsRequestResult,
},
data() {
return {

View File

@ -8,33 +8,41 @@
<i class="el-icon-remove-outline ms-open-btn" size="mini" @click="closeExpansion" />
</el-tooltip>
</div>
<el-tree
<div style="height: calc(100vh - 400px)">
<vue-easy-tree
:data="treeData"
node-key="resourceId"
:sizeDependencies="['expanded']"
height="calc(100vh - 400px)"
:minItemSize="48"
:buffer="300"
:expand-on-click-node="false"
:default-expand-all="defaultExpand"
:filter-node-method="filterNode"
highlight-current
isDynamic
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%">
<ms-scenario-result
:node="data"
:expanded.sync="node.expanded"
:console="console"
v-on:requestResult="requestResult"
:isActive="isActive"
:is-share="isShare"
:share-id="shareId" />
</span>
</el-tree>
</vue-easy-tree>
</div>
</el-card>
</template>
<script>
import MsScenarioResult from './ScenarioResult';
import InfiniteScrollTree from '@/business/automation/report/components/tree/InfiniteScrollTree.vue';
export default {
name: 'MsScenarioResults',
components: { MsScenarioResult, InfiniteScrollTree },
components: { MsScenarioResult },
props: {
scenarios: Array,
treeData: Array,