fix(接口测试): 修复场景定时任务时资源池有时未给默认值的问题
--bug=1038787 --user=宋天阳 【接口测试】场景列表-创建定时任务-资源池显示为空 https://www.tapd.cn/55049933/s/1492015
This commit is contained in:
parent
5d19b38c61
commit
4508d2a523
|
@ -1124,9 +1124,9 @@
|
||||||
{ label: t('apiTestManagement.timeTaskDay'), value: '0 0 0 * * ?' },
|
{ label: t('apiTestManagement.timeTaskDay'), value: '0 0 0 * * ?' },
|
||||||
];
|
];
|
||||||
|
|
||||||
function resetScheduleConfig(record: ApiScenarioTableItem) {
|
async function resetScheduleConfig(record: ApiScenarioTableItem) {
|
||||||
// 初始化资源池
|
// 初始化资源池
|
||||||
initResourcePool();
|
await initResourcePool();
|
||||||
|
|
||||||
// 初始化已选择的表格数据
|
// 初始化已选择的表格数据
|
||||||
tableRecord.value = record;
|
tableRecord.value = record;
|
||||||
|
@ -1146,7 +1146,7 @@
|
||||||
}
|
}
|
||||||
scheduleUseNewEnv.value = !!scheduleConfig.value.config.environmentId;
|
scheduleUseNewEnv.value = !!scheduleConfig.value.config.environmentId;
|
||||||
// 初始化环境
|
// 初始化环境
|
||||||
initEnvList();
|
await initEnvList();
|
||||||
|
|
||||||
// 初始化弹窗标题
|
// 初始化弹窗标题
|
||||||
if (tableRecord.value.scheduleConfig) {
|
if (tableRecord.value.scheduleConfig) {
|
||||||
|
@ -1156,8 +1156,8 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function openScheduleModal(record: ApiScenarioTableItem) {
|
async function openScheduleModal(record: ApiScenarioTableItem) {
|
||||||
resetScheduleConfig(record);
|
await resetScheduleConfig(record);
|
||||||
showScheduleModal.value = true;
|
showScheduleModal.value = true;
|
||||||
}
|
}
|
||||||
async function deleteScenarioSchedule(scenarioId: string) {
|
async function deleteScenarioSchedule(scenarioId: string) {
|
||||||
|
|
|
@ -53,8 +53,8 @@ export default {
|
||||||
'project.environmental.http.copy': 'Copy HTTP',
|
'project.environmental.http.copy': 'Copy HTTP',
|
||||||
'project.environmental.http.hostName': 'Host Name',
|
'project.environmental.http.hostName': 'Host Name',
|
||||||
'project.environmental.http.hostNameRequired': 'Host name is required',
|
'project.environmental.http.hostNameRequired': 'Host name is required',
|
||||||
'project.environmental.http.httpHostNamePlaceholder': 'For example: http://127.0.0.1',
|
'project.environmental.http.httpHostNamePlaceholder': 'For example: 127.0.0.1',
|
||||||
'project.environmental.http.httpsHostNamePlaceholder': 'For example: https://127.0.0.1',
|
'project.environmental.http.httpsHostNamePlaceholder': 'For example: 127.0.0.1',
|
||||||
'project.environmental.http.selectApiModule': 'Select interface module',
|
'project.environmental.http.selectApiModule': 'Select interface module',
|
||||||
'project.environmental.http.applyModule': 'Apply Module',
|
'project.environmental.http.applyModule': 'Apply Module',
|
||||||
'project.environmental.http.enableCondition': 'Enable Condition',
|
'project.environmental.http.enableCondition': 'Enable Condition',
|
||||||
|
|
|
@ -58,8 +58,8 @@ export default {
|
||||||
'project.environmental.http.copy': '复制HTTP',
|
'project.environmental.http.copy': '复制HTTP',
|
||||||
'project.environmental.http.hostName': '域名',
|
'project.environmental.http.hostName': '域名',
|
||||||
'project.environmental.http.hostNameRequired': '域名必填',
|
'project.environmental.http.hostNameRequired': '域名必填',
|
||||||
'project.environmental.http.httpHostNamePlaceholder': '例如:http://127.0.0.1',
|
'project.environmental.http.httpHostNamePlaceholder': '例如:127.0.0.1',
|
||||||
'project.environmental.http.httpsHostNamePlaceholder': '例如:https://127.0.0.1',
|
'project.environmental.http.httpsHostNamePlaceholder': '例如:127.0.0.1',
|
||||||
'project.environmental.http.applyModule': '应用模块',
|
'project.environmental.http.applyModule': '应用模块',
|
||||||
'project.environmental.http.selectApiModule': '选择接口模块',
|
'project.environmental.http.selectApiModule': '选择接口模块',
|
||||||
'project.environmental.http.enableCondition': '启用条件',
|
'project.environmental.http.enableCondition': '启用条件',
|
||||||
|
|
Loading…
Reference in New Issue