fix(接口测试): 修复swagger定时同步消息通知缓存问题
--bug=1010018 --user=宋天阳 【接口测试】github#10003,swagger定时同步,任务通知的弹窗内容有缓存 https://www.tapd.cn/55049933/s/1112953
This commit is contained in:
parent
0f5160c6f5
commit
747c1d75b2
|
@ -32,7 +32,8 @@
|
|||
</el-col>
|
||||
|
||||
<el-col :span="12" style="margin-left: 50px">
|
||||
<el-switch v-model="authEnable" :active-text="$t('api_test.api_import.add_request_params')" @change="changeAuthEnable"></el-switch>
|
||||
<el-switch v-model="authEnable" :active-text="$t('api_test.api_import.add_request_params')"
|
||||
@change="changeAuthEnable"></el-switch>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="19" v-show="authEnable" style="margin-top: 10px; margin-left: 50px" class="request-tabs">
|
||||
|
@ -41,12 +42,14 @@
|
|||
<span>{{ $t('api_test.request.headers') }}{{ $t('api_test.api_import.optional') }}:</span>
|
||||
</div>
|
||||
<ms-api-key-value :label="$t('api_test.definition.request.auth_config')"
|
||||
:show-desc="true" :isShowEnable="isShowEnable" :suggestions="headerSuggestions" :items="headers"/>
|
||||
:show-desc="true" :isShowEnable="isShowEnable" :suggestions="headerSuggestions"
|
||||
:items="headers"/>
|
||||
<!--query 参数-->
|
||||
<div style="margin-top: 10px">
|
||||
<span>{{ $t('api_test.definition.request.query_param') }}{{ $t('api_test.api_import.optional') }}:</span>
|
||||
</div>
|
||||
<ms-api-variable :with-mor-setting="true" :is-read-only="isReadOnly" :isShowEnable="isShowEnable" :parameters="queryArguments"/>
|
||||
<ms-api-variable :with-mor-setting="true" :is-read-only="isReadOnly" :isShowEnable="isShowEnable"
|
||||
:parameters="queryArguments"/>
|
||||
<!--认证配置-->
|
||||
<div style="margin-top: 10px">
|
||||
<span>{{ $t('api_test.definition.request.auth_config') }}{{ $t('api_test.api_import.optional') }}:</span>
|
||||
|
@ -105,7 +108,7 @@
|
|||
width="60%"
|
||||
>
|
||||
<swagger-task-notification :api-test-id="formData.id" :scheduleReceiverOptions="scheduleReceiverOptions"
|
||||
ref="schedule-task-notification">
|
||||
ref="scheduleTaskNotification">
|
||||
|
||||
</swagger-task-notification>
|
||||
</el-dialog>
|
||||
|
@ -133,7 +136,15 @@ import {ELEMENT_TYPE, TYPE_TO_C} from "@/business/components/api/automation/scen
|
|||
export default {
|
||||
name: "ApiSchedule",
|
||||
components: {
|
||||
SwaggerTaskNotification, SelectTree, MsFormDivider, SwaggerTaskList, CrontabResult, Crontab, MsApiKeyValue, MsApiVariable, MsApiAuthConfig
|
||||
SwaggerTaskNotification,
|
||||
SelectTree,
|
||||
MsFormDivider,
|
||||
SwaggerTaskList,
|
||||
CrontabResult,
|
||||
Crontab,
|
||||
MsApiKeyValue,
|
||||
MsApiVariable,
|
||||
MsApiAuthConfig
|
||||
},
|
||||
props: {
|
||||
customValidate: {
|
||||
|
@ -225,6 +236,11 @@ export default {
|
|||
if (this.formData.id !== null && this.formData.id !== undefined) {
|
||||
this.dialogVisible = true;
|
||||
this.initUserList();
|
||||
this.$nextTick(() => {
|
||||
if (this.$refs.scheduleTaskNotification) {
|
||||
this.$refs.scheduleTaskNotification.initForm();
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.$warning("请先选择您要添加通知的定时任务");
|
||||
}
|
||||
|
|
|
@ -185,7 +185,8 @@ export default {
|
|||
};
|
||||
},
|
||||
mounted() {
|
||||
this.initForm();
|
||||
},
|
||||
created() {
|
||||
},
|
||||
methods: {
|
||||
initForm() {
|
||||
|
|
Loading…
Reference in New Issue