Browse Source

[Fix][UI] Add the task name entry when the workflow instance detail page goes to the task instance page. (#11761)

3.1.0-release
Amy0104 2 years ago committed by GitHub
parent
commit
d0d481d10f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      dolphinscheduler-ui/src/views/projects/task/components/node/detail-modal.tsx
  2. 3
      dolphinscheduler-ui/src/views/projects/task/instance/use-table.ts

5
dolphinscheduler-ui/src/views/projects/task/components/node/detail-modal.tsx

@ -140,7 +140,10 @@ const NodeDetailModal = defineComponent({
action: () => {
router.push({
name: 'task-instance',
params: { processInstanceId: processInstance.id }
params: {
processInstanceId: processInstance.id,
taskName: props.data.name
}
})
},
icon: renderIcon(HistoryOutlined)

3
dolphinscheduler-ui/src/views/projects/task/instance/use-table.ts

@ -46,6 +46,7 @@ export function useTable() {
const router: Router = useRouter()
const projectCode = Number(route.params.projectCode)
const processInstanceId = Number(route.params.processInstanceId)
const taskName = route.params.taskName
const variables = reactive({
columns: [],
@ -53,7 +54,7 @@ export function useTable() {
tableData: [] as IRecord[],
page: ref(1),
pageSize: ref(10),
searchVal: ref(null),
searchVal: ref(taskName || null),
processInstanceId: ref(processInstanceId ? processInstanceId : null),
host: ref(null),
stateType: ref(null),

Loading…
Cancel
Save