工作流路由重构

This commit is contained in:
Teo
2025-07-11 11:18:01 +08:00
parent ff8dd472de
commit 4a0962b117
6 changed files with 29 additions and 27 deletions

View File

@ -167,7 +167,7 @@ const handleSelectionChange = (selection: LeaveVO[]) => {
const handleAdd = () => {
proxy.$tab.closePage(proxy.$route);
proxy.$router.push({
path: `/workflows/leaveEdit/index`,
path: `/test/leaveEdit/index`,
query: {
type: 'add'
}
@ -178,7 +178,7 @@ const handleAdd = () => {
const handleUpdate = (row?: LeaveVO) => {
proxy.$tab.closePage(proxy.$route);
proxy.$router.push({
path: `/workflows/leaveEdit/index`,
path: `/test/leaveEdit/index`,
query: {
id: row.id,
type: 'update'
@ -190,7 +190,7 @@ const handleUpdate = (row?: LeaveVO) => {
const handleView = (row?: LeaveVO) => {
proxy.$tab.closePage(proxy.$route);
proxy.$router.push({
path: `/workflows/leaveEdit/index`,
path: `/test/leaveEdit/index`,
query: {
id: row.id,
type: 'view'
@ -210,7 +210,7 @@ const handleDelete = async (row?: LeaveVO) => {
/** 导出按钮操作 */
const handleExport = () => {
proxy?.download(
'workflows/leave/export',
'workflow/leave/export',
{
...queryParams.value
},