fix(接口测试): 场景全屏后无法点击空白区域取消
This commit is contained in:
parent
7c29efffa0
commit
f1aef17cf7
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div style="width: 100%; overflow: hidden">
|
<div style="width: 100%; overflow: hidden">
|
||||||
<div class="ms-header">
|
<div class="ms-header">
|
||||||
<el-row>
|
<el-row @click.native="handleHeaderClick">
|
||||||
<el-col :span="1" v-show="scenarioDefinition.length > 1">
|
<el-col :span="1" v-show="scenarioDefinition.length > 1">
|
||||||
<div class="ms-div" style="margin-left: 10px">
|
<div class="ms-div" style="margin-left: 10px">
|
||||||
<el-tooltip
|
<el-tooltip
|
||||||
|
@ -89,7 +89,7 @@
|
||||||
|
|
||||||
<!-- 场景步骤-->
|
<!-- 场景步骤-->
|
||||||
<ms-container :class="{ 'maximize-container': !asideHidden }">
|
<ms-container :class="{ 'maximize-container': !asideHidden }">
|
||||||
<ms-aside-container @setAsideHidden="setAsideHidden" style="padding: 0px; overflow: hidden">
|
<ms-aside-container @setAsideHidden="setAsideHidden" style="padding: 0px; overflow: hidden" @click.native="handleMainClick">
|
||||||
<div class="ms-debug-result" v-if="reqTotal > 0">
|
<div class="ms-debug-result" v-if="reqTotal > 0">
|
||||||
<span style="float: right">
|
<span style="float: right">
|
||||||
<span class="ms-message-right"> {{ reqTotalTime }} ms </span>
|
<span class="ms-message-right"> {{ reqTotalTime }} ms </span>
|
||||||
|
@ -117,7 +117,6 @@
|
||||||
@node-click="nodeClick"
|
@node-click="nodeClick"
|
||||||
class="ms-max-tree"
|
class="ms-max-tree"
|
||||||
ref="maxStepTree"
|
ref="maxStepTree"
|
||||||
v-custom-click-outside="outsideClick"
|
|
||||||
>
|
>
|
||||||
<el-row
|
<el-row
|
||||||
class="custom-tree-node"
|
class="custom-tree-node"
|
||||||
|
@ -202,8 +201,8 @@
|
||||||
</div>
|
</div>
|
||||||
</ms-aside-container>
|
</ms-aside-container>
|
||||||
|
|
||||||
<ms-main-container class="card-content" v-loading="loading">
|
<ms-main-container class="card-content" v-loading="loading" @click.native="handleMainClick">
|
||||||
<div v-if="!loading">
|
<div v-if="!loading" @click="handleComponentClick">
|
||||||
<!-- 第一层当前节点内容-->
|
<!-- 第一层当前节点内容-->
|
||||||
<ms-component-config
|
<ms-component-config
|
||||||
:isMax="false"
|
:isMax="false"
|
||||||
|
@ -225,7 +224,8 @@
|
||||||
@openScenario="openScenario"
|
@openScenario="openScenario"
|
||||||
@runScenario="runScenario"
|
@runScenario="runScenario"
|
||||||
@stopScenario="stopScenario"
|
@stopScenario="stopScenario"
|
||||||
v-if="selectedTreeNode && selectedNode" />
|
v-if="selectedTreeNode && selectedNode"
|
||||||
|
/>
|
||||||
<!-- 请求下还有的子步骤-->
|
<!-- 请求下还有的子步骤-->
|
||||||
<div v-if="selectedTreeNode && selectedTreeNode.hashTree && showNode(selectedTreeNode)">
|
<div v-if="selectedTreeNode && selectedTreeNode.hashTree && showNode(selectedTreeNode)">
|
||||||
<div v-for="item in selectedTreeNode.hashTree" :key="item.id" class="ms-col-one">
|
<div v-for="item in selectedTreeNode.hashTree" :key="item.id" class="ms-col-one">
|
||||||
|
@ -537,6 +537,17 @@ export default {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
handleHeaderClick(e){
|
||||||
|
if(e.target.tagName === 'DIV'){
|
||||||
|
this.outsideClick(e)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
handleMainClick(e) {
|
||||||
|
this.outsideClick(e)
|
||||||
|
},
|
||||||
|
handleComponentClick(e) {
|
||||||
|
e.stopPropagation();
|
||||||
|
},
|
||||||
initPlugins() {
|
initPlugins() {
|
||||||
getPluginList().then((response) => {
|
getPluginList().then((response) => {
|
||||||
let data = response.data;
|
let data = response.data;
|
||||||
|
|
Loading…
Reference in New Issue