fix(接口测试): 接口自动化全屏后运行环境加载不出来
This commit is contained in:
parent
24bdda2914
commit
812ecb116b
|
@ -81,7 +81,7 @@
|
||||||
</div>
|
</div>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row type="flex" style="margin-top: 5px">
|
<el-row type="flex" style="margin-top: 5px;">
|
||||||
<el-col v-if="this.mode">
|
<el-col v-if="this.mode">
|
||||||
<div style="float: left">
|
<div style="float: left">
|
||||||
<span> {{ $t('report.run_model') + ':' }} </span>
|
<span> {{ $t('report.run_model') + ':' }} </span>
|
||||||
|
@ -100,7 +100,7 @@
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col></el-col>
|
<el-col></el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row v-if="showProjectEnv" type="flex" style="margin-top: 5px">
|
<el-row v-if="showProjectEnv" type="flex" style="margin-top: 5px; padding-left: 10px;">
|
||||||
<span> {{ $t('commons.environment') + ':' }} </span>
|
<span> {{ $t('commons.environment') + ':' }} </span>
|
||||||
<div v-for="(values, key) in projectEnvMap" :key="key" style="margin-right: 10px">
|
<div v-for="(values, key) in projectEnvMap" :key="key" style="margin-right: 10px">
|
||||||
{{ key + ':' }}
|
{{ key + ':' }}
|
||||||
|
|
|
@ -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" @click.native="handleMainClick">
|
<ms-aside-container :draggable="false" @setAsideHidden="setAsideHidden" style="padding: 0px; overflow: hidden" width="50%" @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>
|
||||||
|
@ -543,6 +543,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleMainClick(e) {
|
handleMainClick(e) {
|
||||||
|
console.log(e.target.tagName);
|
||||||
this.outsideClick(e)
|
this.outsideClick(e)
|
||||||
},
|
},
|
||||||
handleComponentClick(e) {
|
handleComponentClick(e) {
|
||||||
|
@ -1323,11 +1324,13 @@ export default {
|
||||||
},
|
},
|
||||||
getEnv(definition) {
|
getEnv(definition) {
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
getApiScenarioEnv({ definition: definition }).then((res) => {
|
const encoder = new TextEncoder();
|
||||||
if (res.data) {
|
const bytes = encoder.encode(definition, 'utf-8');
|
||||||
res.data.projectIds.push(this.projectId);
|
getApiScenarioEnv(bytes).then((res) => {
|
||||||
this.$emit('update:projectIds', new Set(res.data.projectIds));
|
if (res.data && res.data.data) {
|
||||||
this.$emit('update:isFullUrl', res.data.fullUrl);
|
res.data.data.projectIds.push(this.projectId);
|
||||||
|
this.$emit('update:projectIds', new Set(res.data.data.projectIds));
|
||||||
|
this.$emit('update:isFullUrl', res.data.data.fullUrl);
|
||||||
}
|
}
|
||||||
resolve();
|
resolve();
|
||||||
});
|
});
|
||||||
|
|
|
@ -13,13 +13,14 @@
|
||||||
<div style="overflow: scroll" class="ms-aside-node-tree" :style="{'height': containerCalHeight }">
|
<div style="overflow: scroll" class="ms-aside-node-tree" :style="{'height': containerCalHeight }">
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
</div>
|
</div>
|
||||||
<ms-horizontal-drag-bar/>
|
<ms-horizontal-drag-bar v-if="draggable"/>
|
||||||
</el-aside>
|
</el-aside>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import MsHorizontalDragBar from "./dragbar/MsLeft2RightDragBar";
|
import MsHorizontalDragBar from "./dragbar/MsLeft2RightDragBar";
|
||||||
import {getUUID} from "../utils";
|
import {getUUID} from "../utils";
|
||||||
|
import {boolean} from "../../public/js/dev/mock";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "MsAsideContainer",
|
name: "MsAsideContainer",
|
||||||
|
@ -49,6 +50,10 @@ export default {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: null
|
default: null
|
||||||
},
|
},
|
||||||
|
draggable: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true,
|
||||||
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
asideHidden() {
|
asideHidden() {
|
||||||
|
|
Loading…
Reference in New Issue