fix(接口测试): 场景详情-生成报告-向下滑动下页面查看步骤和生成报告中页面步骤-页面会卡顿
--bug=1027937 --user=白奇 【接口测试】场景详情-生成报告-向下滑动下页面查看步骤和生成报告中页面步骤-页面会卡顿 https://www.tapd.cn/55049933/s/1396497
This commit is contained in:
parent
07947ed4d9
commit
065626102e
|
@ -79,9 +79,6 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { baseSocket } from '@/api/base-network';
|
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 MsMetricChart from './components/MetricChart';
|
||||||
import MsScenarioResults from './components/ScenarioResults';
|
import MsScenarioResults from './components/ScenarioResults';
|
||||||
import MsContainer from 'metersphere-frontend/src/components/MsContainer';
|
import MsContainer from 'metersphere-frontend/src/components/MsContainer';
|
||||||
|
@ -102,10 +99,7 @@ export default {
|
||||||
MsMainContainer,
|
MsMainContainer,
|
||||||
MsContainer,
|
MsContainer,
|
||||||
MsScenarioResults,
|
MsScenarioResults,
|
||||||
MsRequestResultTail,
|
|
||||||
MsMetricChart,
|
MsMetricChart,
|
||||||
MsScenarioResult,
|
|
||||||
MsRequestResult,
|
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -8,33 +8,41 @@
|
||||||
<i class="el-icon-remove-outline ms-open-btn" size="mini" @click="closeExpansion" />
|
<i class="el-icon-remove-outline ms-open-btn" size="mini" @click="closeExpansion" />
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
</div>
|
</div>
|
||||||
<el-tree
|
<div style="height: calc(100vh - 400px)">
|
||||||
|
<vue-easy-tree
|
||||||
:data="treeData"
|
:data="treeData"
|
||||||
|
node-key="resourceId"
|
||||||
|
:sizeDependencies="['expanded']"
|
||||||
|
height="calc(100vh - 400px)"
|
||||||
|
:minItemSize="48"
|
||||||
|
:buffer="300"
|
||||||
:expand-on-click-node="false"
|
:expand-on-click-node="false"
|
||||||
:default-expand-all="defaultExpand"
|
:default-expand-all="defaultExpand"
|
||||||
:filter-node-method="filterNode"
|
:filter-node-method="filterNode"
|
||||||
highlight-current
|
highlight-current
|
||||||
|
isDynamic
|
||||||
class="ms-tree ms-report-tree"
|
class="ms-tree ms-report-tree"
|
||||||
ref="resultsTree">
|
ref="resultsTree">
|
||||||
<span slot-scope="{ node, data }" style="width: 99%" @click="nodeClick(node)">
|
<span slot-scope="{ node, data }" style="width: 99%">
|
||||||
<ms-scenario-result
|
<ms-scenario-result
|
||||||
:node="data"
|
:node="data"
|
||||||
|
:expanded.sync="node.expanded"
|
||||||
:console="console"
|
:console="console"
|
||||||
v-on:requestResult="requestResult"
|
v-on:requestResult="requestResult"
|
||||||
:isActive="isActive"
|
:isActive="isActive"
|
||||||
:is-share="isShare"
|
:is-share="isShare"
|
||||||
:share-id="shareId" />
|
:share-id="shareId" />
|
||||||
</span>
|
</span>
|
||||||
</el-tree>
|
</vue-easy-tree>
|
||||||
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import MsScenarioResult from './ScenarioResult';
|
import MsScenarioResult from './ScenarioResult';
|
||||||
import InfiniteScrollTree from '@/business/automation/report/components/tree/InfiniteScrollTree.vue';
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'MsScenarioResults',
|
name: 'MsScenarioResults',
|
||||||
components: { MsScenarioResult, InfiniteScrollTree },
|
components: { MsScenarioResult },
|
||||||
props: {
|
props: {
|
||||||
scenarios: Array,
|
scenarios: Array,
|
||||||
treeData: Array,
|
treeData: Array,
|
||||||
|
|
Loading…
Reference in New Issue