diff --git a/src/frontend/src/views/strategy-manage/language/en.js b/src/frontend/src/views/strategy-manage/language/en.js index 7c825d4..18dd34e 100644 --- a/src/frontend/src/views/strategy-manage/language/en.js +++ b/src/frontend/src/views/strategy-manage/language/en.js @@ -213,5 +213,9 @@ export default { '在单据页,鼠标移入label,即可显示字段说明': 'On the ticket page, move the mouse into the label to display the field description', 请输入风险单名称: 'Please enter the name of the risk order', 请选择通知组: 'Please select a notification group', + 调度方式: 'Scheduling method', + 固定周期调度: 'Periodic scheduling', + 实时调度: 'Real-time scheduling', + 策略实时运行: 'Strategies run in real time', }, }; diff --git a/src/frontend/src/views/strategy-manage/language/zh.js b/src/frontend/src/views/strategy-manage/language/zh.js index 8334a0b..6b7fc80 100644 --- a/src/frontend/src/views/strategy-manage/language/zh.js +++ b/src/frontend/src/views/strategy-manage/language/zh.js @@ -220,5 +220,9 @@ export default { '在单据页,鼠标移入label,即可显示字段说明': '在单据页,鼠标移入label,即可显示字段说明', 请输入风险单名称: '请输入风险单名称', 请选择通知组: '请选择通知组', + 调度方式: '调度方式', + 固定周期调度: '固定周期调度', + 实时调度: '实时调度', + 策略实时运行: '策略实时运行', }, }; diff --git a/src/frontend/src/views/strategy-manage/strategy-create/components/step1/components/aiops/index.vue b/src/frontend/src/views/strategy-manage/strategy-create/components/step1/components/aiops/index.vue index cd3277e..19e1047 100644 --- a/src/frontend/src/views/strategy-manage/strategy-create/components/step1/components/aiops/index.vue +++ b/src/frontend/src/views/strategy-manage/strategy-create/components/step1/components/aiops/index.vue @@ -73,51 +73,71 @@
- - {{ t('调度周期') }} - -
- - - - - - - - -
+ + + + {{ t('固定周期调度') }} + + + + {{ t('实时调度') }} + + + + +
@@ -280,6 +300,18 @@ if (!isInit) return; emits('updateDataSource', dataSource); }; + const handleSourceTypeChange = (type: string) => { + if (type === 'stream_source') { + formData.value.configs.aiops_config = { + count_freq: '', + schedule_period: 'hour', + }; + } + emits('updateAiopsConfig', formData.value.configs.data_source.source_type !== 'stream_source' + ? formData.value.configs.aiops_config + : undefined); + emits('updateDataSource', formData.value.configs.data_source); + }; watch(() => props.controlDetail, (data) => { if (data && data.input_config) {