feat(sj_1.1.0-beta3): 定时任务执行器新增 Python 类型

This commit is contained in:
dhb52 2024-07-08 22:48:52 +08:00
parent 9ed4866822
commit e54bb8c534
5 changed files with 9 additions and 5 deletions

View File

@ -160,7 +160,8 @@ export const contentTypeOptions = transformRecordToNumberOption(contentTypeRecor
/** 执行器类型 */
export const executorTypeRecord: Record<Api.Common.ExecutorType, App.I18n.I18nKey> = {
1: 'common.executorType.items.java'
1: 'common.executorType.items.java',
2: 'common.executorType.items.python'
};
export const executorTypeRecordOptions = transformRecordToNumberOption(executorTypeRecord);

View File

@ -135,7 +135,8 @@ const local: App.I18n.Schema = {
label: 'Executor Type',
form: 'Please enter executor type',
items: {
java: 'Java'
java: 'Java',
python: 'Python'
}
},
taskType: {

View File

@ -135,7 +135,8 @@ const local: App.I18n.Schema = {
label: '执行器类型',
form: '请选择执行器类型',
items: {
java: 'Java'
java: 'Java',
python: 'Python'
}
},
taskType: {

View File

@ -91,8 +91,8 @@ declare namespace Api {
/** 工作流节点状态 */
type WorkFlowNodeStatus = 0 | 1;
/** 执行器类型 1:Java */
type ExecutorType = 1;
/** 执行器类型 1:Java 2:Python */
type ExecutorType = 1 | 2;
/** 触发类型 2:固定时间 3:CRON 表达式 99:工作流 */
type TriggerType = 2 | 3 | 99;

View File

@ -395,6 +395,7 @@ declare namespace App {
form: string;
items: {
java: string;
python: string;
};
};
taskType: {