Browse Source

support to open a new page after clicking the link (#13265)

3.2.0-release
calvin 2 years ago committed by GitHub
parent
commit
fb67b085a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      dolphinscheduler-ui/src/views/projects/task/instance/use-table.ts
  2. 6
      dolphinscheduler-ui/src/views/projects/workflow/definition/use-table.ts
  3. 6
      dolphinscheduler-ui/src/views/projects/workflow/instance/use-table.ts

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

@ -114,12 +114,14 @@ export function useTable() {
h(
ButtonLink,
{
onClick: () =>
void router.push({
onClick: () => {
let routeUrl = router.resolve({
name: 'workflow-instance-detail',
params: { id: row.processInstanceId },
query: { code: projectCode }
})
window.open(routeUrl.href, '_blank')
}
},
{
default: () =>

6
dolphinscheduler-ui/src/views/projects/workflow/definition/use-table.ts

@ -102,11 +102,13 @@ export function useTable() {
h(
ButtonLink,
{
onClick: () =>
void router.push({
onClick: () => {
let routeUrl = router.resolve({
name: 'workflow-definition-detail',
params: { code: row.code }
})
window.open(routeUrl.href, '_blank')
}
},
{
default: () =>

6
dolphinscheduler-ui/src/views/projects/workflow/instance/use-table.ts

@ -93,12 +93,14 @@ export function useTable() {
h(
ButtonLink,
{
onClick: () =>
void router.push({
onClick: () => {
let routeUrl = router.resolve({
name: 'workflow-instance-detail',
params: { id: row.id },
query: { code: row.processDefinitionCode }
})
window.open(routeUrl.href, '_blank')
}
},
{
default: () =>

Loading…
Cancel
Save