@ -623,7 +623,8 @@ const project = {
view_history: 'View history',
view_log: 'View log',
enter_this_child_node: 'Enter this child node',
name: 'Name',
name: 'Node Name',
task_name: 'Task Name',
name_tips: 'Please enter name (required)',
task_type: 'Task Type',
task_type_tips: 'Please select a task type (required)',
@ -620,6 +620,7 @@ const project = {
view_log: '查看日志',
enter_this_child_node: '进入该子节点',
name: '节点名称',
task_name: '任务名称',
name_tips: '请输入名称(必填)',
task_type: '任务类型',
task_type_tips: '请选择任务类型(必选)',
@ -18,13 +18,13 @@
import { useI18n } from 'vue-i18n'
import type { IJsonItem } from '../types'
export function useName(): IJsonItem {
export function useName(from?: number): IJsonItem {
const { t } = useI18n()
return {
type: 'input',
field: 'name',
class: 'input-node-name',
name: t('project.node.name'),
name: from === 1 ? t('project.node.task_name') : t('project.node.name'),
props: {
placeholder: t('project.node.name_tips'),
maxLength: 100
@ -65,7 +65,7 @@ export function useConditions({
json: [
Fields.useName(),
Fields.useName(from),
...extra,
Fields.useRunFlag(),
Fields.useDescription(),
@ -76,7 +76,7 @@ export function useDataQuality({
@ -67,7 +67,7 @@ export function useDataX({
@ -67,7 +67,7 @@ export function useDependent({
@ -62,7 +62,7 @@ export function useEmr({
@ -69,7 +69,7 @@ export function useFlink({
@ -68,7 +68,7 @@ export function useHttp({
@ -62,7 +62,7 @@ export function useMr({
@ -61,7 +61,7 @@ export function usePigeon({
@ -65,7 +65,7 @@ export function useProcedure({
@ -63,7 +63,7 @@ export function usePython({
@ -67,7 +67,7 @@ export function useSeaTunnel({
@ -63,7 +63,7 @@ export function useShell({
@ -69,7 +69,7 @@ export function useSpark({
@ -69,7 +69,7 @@ export function useSql({
@ -81,7 +81,7 @@ export function useSqoop({
@ -65,7 +65,7 @@ export function useSubProcess({
@ -65,7 +65,7 @@ export function useSwitch({