feat(定时任务): 测试计划&接口场景定时任务修复

This commit is contained in:
baiqi 2024-11-14 10:14:29 +08:00 committed by Craftsman
parent 39246f217a
commit 73f0a03068
2 changed files with 10 additions and 3 deletions

View File

@ -198,9 +198,7 @@
<div class="float-left">
{{ scheduleModalTitle }}
<div v-if="isBatch" class="float-right flex text-[var(--color-text-4)]">
{{ '' }}
<div>{{ batchParams.currentSelectCount || batchParams.selectedIds?.length }}</div>
{{ '' }}
{{ t('common.selectedCount', { count: batchParams.currentSelectCount || batchParams.selectedIds?.length }) }}
</div>
<a-tooltip v-else-if="translateTextToPX(tableRecord?.name) > 300">
<template #content>
@ -1547,6 +1545,8 @@
? t('testPlan.testPlanGroup.enableScheduleTaskSuccess')
: t('testPlan.testPlanGroup.closeScheduleTaskSuccess')
);
resetSelector();
loadScenarioList(false);
} catch (error) {
// eslint-disable-next-line no-console
console.log(error);

View File

@ -16,6 +16,13 @@
)
: t('testPlan.testPlanIndex.createScheduledTask')
}}
<div v-if="isBatch" class="float-right flex text-[var(--color-text-4)]">
{{
t('common.selectedCount', {
count: props.batchParams?.currentSelectCount || props.batchParams?.selectedIds?.length,
})
}}
</div>
</template>
<a-form ref="formRef" :model="form" layout="vertical">
<a-form-item :label="t('testPlan.testPlanIndex.triggerTime')" asterisk-position="end">