Browse Source

[Fix][UI][V1.0.0-Beta] Change node name to task name in the task modal on the task definition page. (#9620)

3.0.0/version-upgrade
Amy0104 3 years ago committed by GitHub
parent
commit
93ee2e45c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      dolphinscheduler-ui-next/src/locales/modules/en_US.ts
  2. 1
      dolphinscheduler-ui-next/src/locales/modules/zh_CN.ts
  3. 4
      dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-name.ts
  4. 2
      dolphinscheduler-ui-next/src/views/projects/task/components/node/tasks/use-conditions.ts
  5. 2
      dolphinscheduler-ui-next/src/views/projects/task/components/node/tasks/use-data-quality.ts
  6. 2
      dolphinscheduler-ui-next/src/views/projects/task/components/node/tasks/use-datax.ts
  7. 2
      dolphinscheduler-ui-next/src/views/projects/task/components/node/tasks/use-dependent.ts
  8. 2
      dolphinscheduler-ui-next/src/views/projects/task/components/node/tasks/use-emr.ts
  9. 2
      dolphinscheduler-ui-next/src/views/projects/task/components/node/tasks/use-flink.ts
  10. 2
      dolphinscheduler-ui-next/src/views/projects/task/components/node/tasks/use-http.ts
  11. 2
      dolphinscheduler-ui-next/src/views/projects/task/components/node/tasks/use-mr.ts
  12. 2
      dolphinscheduler-ui-next/src/views/projects/task/components/node/tasks/use-pigeon.ts
  13. 2
      dolphinscheduler-ui-next/src/views/projects/task/components/node/tasks/use-procedure.ts
  14. 2
      dolphinscheduler-ui-next/src/views/projects/task/components/node/tasks/use-python.ts
  15. 2
      dolphinscheduler-ui-next/src/views/projects/task/components/node/tasks/use-sea-tunnel.ts
  16. 2
      dolphinscheduler-ui-next/src/views/projects/task/components/node/tasks/use-shell.ts
  17. 2
      dolphinscheduler-ui-next/src/views/projects/task/components/node/tasks/use-spark.ts
  18. 2
      dolphinscheduler-ui-next/src/views/projects/task/components/node/tasks/use-sql.ts
  19. 2
      dolphinscheduler-ui-next/src/views/projects/task/components/node/tasks/use-sqoop.ts
  20. 2
      dolphinscheduler-ui-next/src/views/projects/task/components/node/tasks/use-sub-process.ts
  21. 2
      dolphinscheduler-ui-next/src/views/projects/task/components/node/tasks/use-switch.ts

3
dolphinscheduler-ui-next/src/locales/modules/en_US.ts

@ -623,7 +623,8 @@ const project = {
view_history: 'View history', view_history: 'View history',
view_log: 'View log', view_log: 'View log',
enter_this_child_node: 'Enter this child node', enter_this_child_node: 'Enter this child node',
name: 'Name', name: 'Node Name',
task_name: 'Task Name',
name_tips: 'Please enter name (required)', name_tips: 'Please enter name (required)',
task_type: 'Task Type', task_type: 'Task Type',
task_type_tips: 'Please select a task type (required)', task_type_tips: 'Please select a task type (required)',

1
dolphinscheduler-ui-next/src/locales/modules/zh_CN.ts

@ -620,6 +620,7 @@ const project = {
view_log: '查看日志', view_log: '查看日志',
enter_this_child_node: '进入该子节点', enter_this_child_node: '进入该子节点',
name: '节点名称', name: '节点名称',
task_name: '任务名称',
name_tips: '请输入名称(必填)', name_tips: '请输入名称(必填)',
task_type: '任务类型', task_type: '任务类型',
task_type_tips: '请选择任务类型(必选)', task_type_tips: '请选择任务类型(必选)',

4
dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-name.ts

@ -18,13 +18,13 @@
import { useI18n } from 'vue-i18n' import { useI18n } from 'vue-i18n'
import type { IJsonItem } from '../types' import type { IJsonItem } from '../types'
export function useName(): IJsonItem { export function useName(from?: number): IJsonItem {
const { t } = useI18n() const { t } = useI18n()
return { return {
type: 'input', type: 'input',
field: 'name', field: 'name',
class: 'input-node-name', class: 'input-node-name',
name: t('project.node.name'), name: from === 1 ? t('project.node.task_name') : t('project.node.name'),
props: { props: {
placeholder: t('project.node.name_tips'), placeholder: t('project.node.name_tips'),
maxLength: 100 maxLength: 100

2
dolphinscheduler-ui-next/src/views/projects/task/components/node/tasks/use-conditions.ts

@ -65,7 +65,7 @@ export function useConditions({
return { return {
json: [ json: [
Fields.useName(), Fields.useName(from),
...extra, ...extra,
Fields.useRunFlag(), Fields.useRunFlag(),
Fields.useDescription(), Fields.useDescription(),

2
dolphinscheduler-ui-next/src/views/projects/task/components/node/tasks/use-data-quality.ts

@ -76,7 +76,7 @@ export function useDataQuality({
return { return {
json: [ json: [
Fields.useName(), Fields.useName(from),
...extra, ...extra,
Fields.useRunFlag(), Fields.useRunFlag(),
Fields.useDescription(), Fields.useDescription(),

2
dolphinscheduler-ui-next/src/views/projects/task/components/node/tasks/use-datax.ts

@ -67,7 +67,7 @@ export function useDataX({
return { return {
json: [ json: [
Fields.useName(), Fields.useName(from),
...extra, ...extra,
Fields.useRunFlag(), Fields.useRunFlag(),
Fields.useDescription(), Fields.useDescription(),

2
dolphinscheduler-ui-next/src/views/projects/task/components/node/tasks/use-dependent.ts

@ -67,7 +67,7 @@ export function useDependent({
return { return {
json: [ json: [
Fields.useName(), Fields.useName(from),
...extra, ...extra,
Fields.useRunFlag(), Fields.useRunFlag(),
Fields.useDescription(), Fields.useDescription(),

2
dolphinscheduler-ui-next/src/views/projects/task/components/node/tasks/use-emr.ts

@ -62,7 +62,7 @@ export function useEmr({
return { return {
json: [ json: [
Fields.useName(), Fields.useName(from),
...extra, ...extra,
Fields.useRunFlag(), Fields.useRunFlag(),
Fields.useDescription(), Fields.useDescription(),

2
dolphinscheduler-ui-next/src/views/projects/task/components/node/tasks/use-flink.ts

@ -69,7 +69,7 @@ export function useFlink({
return { return {
json: [ json: [
Fields.useName(), Fields.useName(from),
...extra, ...extra,
Fields.useRunFlag(), Fields.useRunFlag(),
Fields.useDescription(), Fields.useDescription(),

2
dolphinscheduler-ui-next/src/views/projects/task/components/node/tasks/use-http.ts

@ -68,7 +68,7 @@ export function useHttp({
return { return {
json: [ json: [
Fields.useName(), Fields.useName(from),
...extra, ...extra,
Fields.useRunFlag(), Fields.useRunFlag(),
Fields.useDescription(), Fields.useDescription(),

2
dolphinscheduler-ui-next/src/views/projects/task/components/node/tasks/use-mr.ts

@ -62,7 +62,7 @@ export function useMr({
return { return {
json: [ json: [
Fields.useName(), Fields.useName(from),
...extra, ...extra,
Fields.useRunFlag(), Fields.useRunFlag(),
Fields.useDescription(), Fields.useDescription(),

2
dolphinscheduler-ui-next/src/views/projects/task/components/node/tasks/use-pigeon.ts

@ -61,7 +61,7 @@ export function usePigeon({
return { return {
json: [ json: [
Fields.useName(), Fields.useName(from),
...extra, ...extra,
Fields.useRunFlag(), Fields.useRunFlag(),
Fields.useDescription(), Fields.useDescription(),

2
dolphinscheduler-ui-next/src/views/projects/task/components/node/tasks/use-procedure.ts

@ -65,7 +65,7 @@ export function useProcedure({
return { return {
json: [ json: [
Fields.useName(), Fields.useName(from),
...extra, ...extra,
Fields.useRunFlag(), Fields.useRunFlag(),
Fields.useDescription(), Fields.useDescription(),

2
dolphinscheduler-ui-next/src/views/projects/task/components/node/tasks/use-python.ts

@ -63,7 +63,7 @@ export function usePython({
return { return {
json: [ json: [
Fields.useName(), Fields.useName(from),
...extra, ...extra,
Fields.useRunFlag(), Fields.useRunFlag(),
Fields.useDescription(), Fields.useDescription(),

2
dolphinscheduler-ui-next/src/views/projects/task/components/node/tasks/use-sea-tunnel.ts

@ -67,7 +67,7 @@ export function useSeaTunnel({
return { return {
json: [ json: [
Fields.useName(), Fields.useName(from),
...extra, ...extra,
Fields.useRunFlag(), Fields.useRunFlag(),
Fields.useDescription(), Fields.useDescription(),

2
dolphinscheduler-ui-next/src/views/projects/task/components/node/tasks/use-shell.ts

@ -63,7 +63,7 @@ export function useShell({
return { return {
json: [ json: [
Fields.useName(), Fields.useName(from),
...extra, ...extra,
Fields.useRunFlag(), Fields.useRunFlag(),
Fields.useDescription(), Fields.useDescription(),

2
dolphinscheduler-ui-next/src/views/projects/task/components/node/tasks/use-spark.ts

@ -69,7 +69,7 @@ export function useSpark({
return { return {
json: [ json: [
Fields.useName(), Fields.useName(from),
...extra, ...extra,
Fields.useRunFlag(), Fields.useRunFlag(),
Fields.useDescription(), Fields.useDescription(),

2
dolphinscheduler-ui-next/src/views/projects/task/components/node/tasks/use-sql.ts

@ -69,7 +69,7 @@ export function useSql({
return { return {
json: [ json: [
Fields.useName(), Fields.useName(from),
...extra, ...extra,
Fields.useRunFlag(), Fields.useRunFlag(),
Fields.useDescription(), Fields.useDescription(),

2
dolphinscheduler-ui-next/src/views/projects/task/components/node/tasks/use-sqoop.ts

@ -81,7 +81,7 @@ export function useSqoop({
return { return {
json: [ json: [
Fields.useName(), Fields.useName(from),
...extra, ...extra,
Fields.useRunFlag(), Fields.useRunFlag(),
Fields.useDescription(), Fields.useDescription(),

2
dolphinscheduler-ui-next/src/views/projects/task/components/node/tasks/use-sub-process.ts

@ -65,7 +65,7 @@ export function useSubProcess({
return { return {
json: [ json: [
Fields.useName(), Fields.useName(from),
...extra, ...extra,
Fields.useRunFlag(), Fields.useRunFlag(),
Fields.useDescription(), Fields.useDescription(),

2
dolphinscheduler-ui-next/src/views/projects/task/components/node/tasks/use-switch.ts

@ -65,7 +65,7 @@ export function useSwitch({
return { return {
json: [ json: [
Fields.useName(), Fields.useName(from),
...extra, ...extra,
Fields.useRunFlag(), Fields.useRunFlag(),
Fields.useDescription(), Fields.useDescription(),

Loading…
Cancel
Save