feat(sj_1.1.0-beta3): 定时任务执行器新增 Python 类型
This commit is contained in:
parent
9ed4866822
commit
e54bb8c534
@ -160,7 +160,8 @@ export const contentTypeOptions = transformRecordToNumberOption(contentTypeRecor
|
|||||||
|
|
||||||
/** 执行器类型 */
|
/** 执行器类型 */
|
||||||
export const executorTypeRecord: Record<Api.Common.ExecutorType, App.I18n.I18nKey> = {
|
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);
|
export const executorTypeRecordOptions = transformRecordToNumberOption(executorTypeRecord);
|
||||||
|
|
||||||
|
@ -135,7 +135,8 @@ const local: App.I18n.Schema = {
|
|||||||
label: 'Executor Type',
|
label: 'Executor Type',
|
||||||
form: 'Please enter executor type',
|
form: 'Please enter executor type',
|
||||||
items: {
|
items: {
|
||||||
java: 'Java'
|
java: 'Java',
|
||||||
|
python: 'Python'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
taskType: {
|
taskType: {
|
||||||
|
@ -135,7 +135,8 @@ const local: App.I18n.Schema = {
|
|||||||
label: '执行器类型',
|
label: '执行器类型',
|
||||||
form: '请选择执行器类型',
|
form: '请选择执行器类型',
|
||||||
items: {
|
items: {
|
||||||
java: 'Java'
|
java: 'Java',
|
||||||
|
python: 'Python'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
taskType: {
|
taskType: {
|
||||||
|
4
src/typings/api.d.ts
vendored
4
src/typings/api.d.ts
vendored
@ -91,8 +91,8 @@ declare namespace Api {
|
|||||||
/** 工作流节点状态 */
|
/** 工作流节点状态 */
|
||||||
type WorkFlowNodeStatus = 0 | 1;
|
type WorkFlowNodeStatus = 0 | 1;
|
||||||
|
|
||||||
/** 执行器类型 1:Java */
|
/** 执行器类型 1:Java 2:Python */
|
||||||
type ExecutorType = 1;
|
type ExecutorType = 1 | 2;
|
||||||
|
|
||||||
/** 触发类型 2:固定时间 3:CRON 表达式 99:工作流 */
|
/** 触发类型 2:固定时间 3:CRON 表达式 99:工作流 */
|
||||||
type TriggerType = 2 | 3 | 99;
|
type TriggerType = 2 | 3 | 99;
|
||||||
|
1
src/typings/app.d.ts
vendored
1
src/typings/app.d.ts
vendored
@ -395,6 +395,7 @@ declare namespace App {
|
|||||||
form: string;
|
form: string;
|
||||||
items: {
|
items: {
|
||||||
java: string;
|
java: string;
|
||||||
|
python: string;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
taskType: {
|
taskType: {
|
||||||
|
Loading…
Reference in New Issue
Block a user