fix(接口测试): 修复场景定时任务时资源池有时未给默认值的问题

--bug=1038787 --user=宋天阳 【接口测试】场景列表-创建定时任务-资源池显示为空 https://www.tapd.cn/55049933/s/1492015
This commit is contained in:
Jianguo-Genius 2024-04-09 17:41:26 +08:00 committed by 刘瑞斌
parent 5d19b38c61
commit 4508d2a523
3 changed files with 9 additions and 9 deletions

View File

@ -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) {

View File

@ -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',

View File

@ -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': '启用条件',