update 路由跳转

This commit is contained in:
gssong
2024-03-24 15:13:05 +08:00
parent d186c800f0
commit cd129aa949
9 changed files with 69 additions and 30 deletions

View File

@ -175,18 +175,36 @@ const handleSelectionChange = (selection: LeaveVO[]) => {
const handleAdd = () => {
proxy.$tab.closePage(proxy.$route);
proxy.$router.push(`/demo/leaveEdit/index/add/add`);
proxy.$router.push({
path: `/demo/leaveEdit/index`,
query: {
type: 'add'
}
})
};
/** 修改按钮操作 */
const handleUpdate = (row?: LeaveVO) => {
proxy.$tab.closePage(proxy.$route);
proxy.$router.push(`/demo/leaveEdit/index/${row.id}/update`);;
proxy.$router.push({
path: `/demo/leaveEdit/index`,
query: {
id: row.id,
type: 'update'
}
})
};
/** 查看按钮操作 */
const handleView = (row?: LeaveVO) => {
proxy.$tab.closePage(proxy.$route);
proxy.$router.push(`/demo/leaveEdit/index/${row.id}/view`);
proxy.$router.push({
path: `/demo/leaveEdit/index`,
query: {
id: row.id,
type: 'view'
}
})
};
/** 删除按钮操作 */