style(接口测试): 去除case变量弹框遮罩层

--bug=1014222 --user=赵勇 【接口测试】接口CASE,请求体form-json格式,点编辑按钮屏幕出现灰色遮罩 https://www.tapd.cn/55049933/s/1185468
This commit is contained in:
fit2-zhao 2022-06-17 16:11:57 +08:00 committed by f2c-ci-robot[bot]
parent 7a02e8fc68
commit acdd69020c
2 changed files with 8 additions and 3 deletions

View File

@ -100,7 +100,6 @@ import {JMETER_FUNC, MOCKJS_FUNC} from "@/common/js/constants";
import MsApiVariableAdvance from "./ApiVariableAdvance"; import MsApiVariableAdvance from "./ApiVariableAdvance";
import MsApiVariableJson from "./ApiVariableJson"; import MsApiVariableJson from "./ApiVariableJson";
import MsApiBodyFileUpload from "./body/ApiBodyFileUpload"; import MsApiBodyFileUpload from "./body/ApiBodyFileUpload";
import {REQUIRED} from "../model/JsonData";
import Vue from 'vue'; import Vue from 'vue';
import ApiVariableSetting from "@/business/components/api/definition/components/ApiVariableSetting"; import ApiVariableSetting from "@/business/components/api/definition/components/ApiVariableSetting";
@ -262,6 +261,7 @@ export default {
}, },
advanced(item) { advanced(item) {
if (item.type === 'json') { if (item.type === 'json') {
this.appendDialogToBody = true;
this.$refs.variableJson.open(item); this.$refs.variableJson.open(item);
this.currentItem = item; this.currentItem = item;
} else { } else {

View File

@ -13,7 +13,7 @@
:useEnvironment="environment" :useEnvironment="environment"
:is-case-edit="isCaseEdit" :is-case-edit="isCaseEdit"
:button-text="saveButtonText" :button-text="saveButtonText"
ref="header"/> ref="header" v-if="refreshHeader"/>
</template> </template>
<el-container v-if="!result.loading"> <el-container v-if="!result.loading">
@ -103,7 +103,8 @@ export default {
api: {}, api: {},
envMap: new Map, envMap: new Map,
maintainerOptions: [], maintainerOptions: [],
environments: [] environments: [],
refreshHeader: true
}; };
}, },
watch: { watch: {
@ -198,6 +199,10 @@ export default {
}, },
runTestCase(api, testCaseId) { runTestCase(api, testCaseId) {
if (api && testCaseId) { if (api && testCaseId) {
this.refreshHeader = false;
this.$nextTick(() => {
this.refreshHeader = true;
});
this.api = api; this.api = api;
this.testCaseId = testCaseId; this.testCaseId = testCaseId;
this.condition = {components: API_CASE_CONFIGS}; this.condition = {components: API_CASE_CONFIGS};