Forráskód Böngészése

[Improvement-14282][Task] Add app_link on the ui of task instance (#14283)

Rick Cheng 1 éve
szülő
commit
525e441223

+ 1 - 0
dolphinscheduler-ui/src/locales/en_US/project.ts

@@ -260,6 +260,7 @@ export default {
     retry_count: 'Retry Count',
     dry_run_flag: 'Dry Run Flag',
     host: 'Host',
+    app_link: 'External Application Link',
     operation: 'Operation',
     edit: 'Edit',
     delete: 'Delete',

+ 1 - 0
dolphinscheduler-ui/src/locales/zh_CN/project.ts

@@ -259,6 +259,7 @@ export default {
     duration: '运行时间',
     retry_count: '重试次数',
     dry_run_flag: '空跑标识',
+    app_link: '外部应用链接',
     host: '主机',
     operation: '操作',
     edit: '编辑',

+ 1 - 0
dolphinscheduler-ui/src/views/projects/task/instance/types.ts

@@ -32,6 +32,7 @@ interface IRecord {
   retryTimes: number
   dryRun: number
   host: string
+  appLink: string
   testFlag?: number
 }
 

+ 6 - 0
dolphinscheduler-ui/src/views/projects/task/instance/use-table.ts

@@ -187,6 +187,12 @@ export function useTable() {
         ...COLUMN_WIDTH_CONFIG['name'],
         render: (row: IRecord) => row.host || '-'
       },
+      {
+        title: t('project.task.app_link'),
+        key: 'appLink',
+        ...COLUMN_WIDTH_CONFIG['name'],
+        render: (row: IRecord) => row.appLink || '-'
+      },
       {
         title: t('project.task.operation'),
         key: 'operation',