|
|
|
@ -152,6 +152,7 @@ export function useTable() {
|
|
|
|
|
render: (row) => |
|
|
|
|
h(TableAction, { |
|
|
|
|
row, |
|
|
|
|
onEditWorkflow: () => editWorkflow(row), |
|
|
|
|
onStartWorkflow: () => startWorkflow(row), |
|
|
|
|
onTimingWorkflow: () => timingWorkflow(row), |
|
|
|
|
onVersionWorkflow: () => versionWorkflow(row), |
|
|
|
@ -165,6 +166,15 @@ export function useTable() {
|
|
|
|
|
} |
|
|
|
|
] as TableColumns<any> |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const editWorkflow = (row: any) => { |
|
|
|
|
variables.row = row |
|
|
|
|
router.push({ |
|
|
|
|
name: 'workflow-definition-detail', |
|
|
|
|
params: { code: row.code } |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const startWorkflow = (row: any) => { |
|
|
|
|
variables.startShowRef = true |
|
|
|
|
variables.row = row |
|
|
|
|