style(接口测试): 去除case变量弹框遮罩层
--bug=1014222 --user=赵勇 【接口测试】接口CASE,请求体form-json格式,点编辑按钮屏幕出现灰色遮罩 https://www.tapd.cn/55049933/s/1185468
This commit is contained in:
parent
7a02e8fc68
commit
acdd69020c
|
@ -100,7 +100,6 @@ import {JMETER_FUNC, MOCKJS_FUNC} from "@/common/js/constants";
|
|||
import MsApiVariableAdvance from "./ApiVariableAdvance";
|
||||
import MsApiVariableJson from "./ApiVariableJson";
|
||||
import MsApiBodyFileUpload from "./body/ApiBodyFileUpload";
|
||||
import {REQUIRED} from "../model/JsonData";
|
||||
import Vue from 'vue';
|
||||
import ApiVariableSetting from "@/business/components/api/definition/components/ApiVariableSetting";
|
||||
|
||||
|
@ -262,6 +261,7 @@ export default {
|
|||
},
|
||||
advanced(item) {
|
||||
if (item.type === 'json') {
|
||||
this.appendDialogToBody = true;
|
||||
this.$refs.variableJson.open(item);
|
||||
this.currentItem = item;
|
||||
} else {
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
:useEnvironment="environment"
|
||||
:is-case-edit="isCaseEdit"
|
||||
:button-text="saveButtonText"
|
||||
ref="header"/>
|
||||
ref="header" v-if="refreshHeader"/>
|
||||
</template>
|
||||
|
||||
<el-container v-if="!result.loading">
|
||||
|
@ -103,7 +103,8 @@ export default {
|
|||
api: {},
|
||||
envMap: new Map,
|
||||
maintainerOptions: [],
|
||||
environments: []
|
||||
environments: [],
|
||||
refreshHeader: true
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
|
@ -198,6 +199,10 @@ export default {
|
|||
},
|
||||
runTestCase(api, testCaseId) {
|
||||
if (api && testCaseId) {
|
||||
this.refreshHeader = false;
|
||||
this.$nextTick(() => {
|
||||
this.refreshHeader = true;
|
||||
});
|
||||
this.api = api;
|
||||
this.testCaseId = testCaseId;
|
||||
this.condition = {components: API_CASE_CONFIGS};
|
||||
|
|
Loading…
Reference in New Issue