[Fix][UI] Add the task name entry when the workflow instance detail page goes to the task instance page. (#11761)
This commit is contained in:
parent
f8d46a26c1
commit
d0d481d10f
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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…
Reference in New Issue