Skip to content

Commit

Permalink
perf(frontend): 单据详情跳转链接调整 TencentBlueKing#8626
Browse files Browse the repository at this point in the history
  • Loading branch information
hLinx committed Dec 16, 2024
1 parent f6e7112 commit 8a0622c
Show file tree
Hide file tree
Showing 88 changed files with 318 additions and 283 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@
const handleClickRelatedTicket = (billId: number) => {
const route = router.resolve({
name: 'bizTicketManage',
query: {
id: billId,
params: {
ticketId: billId,
},
});
window.open(route.href);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
location(
{
name: 'bizTicketManage',
query: {
id: data.id,
params: {
ticketId: data.id,
},
},
data.bk_biz_id,
Expand Down
4 changes: 2 additions & 2 deletions dbm-ui/frontend/src/hooks/useCreateTicket.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ export const useCreateTicket = (params: Record<string, any>) => {
content: () => {
const route = router.resolve({
name: 'bizTicketManage',
query: {
id,
params: {
ticketId: id,
},
});

Expand Down
4 changes: 2 additions & 2 deletions dbm-ui/frontend/src/hooks/useTicketMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ export const useTicketMessage = () => {
return (id: number | string) => {
const route = router.resolve({
name: 'bizTicketManage',
query: {
id,
params: {
ticketId: id,
},
});

Expand Down
4 changes: 2 additions & 2 deletions dbm-ui/frontend/src/services/source/ticket.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ export function createTicket(formData: Record<string, any>) {

const route = router.resolve({
name: 'bizTicketManage',
query: {
id,
params: {
ticketId: id,
},
});
return new Promise<{ id: number }>((resolve, reject) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
target="_blank"
:to="{
name: 'bizTicketManage',
query: {
id: data.operationTicketId,
params: {
ticketId: data.operationTicketId,
},
}">
{{ $t('单据') }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
target="_blank"
:to="{
name: 'bizTicketManage',
query: {
id: data.ticketId,
params: {
ticketId: data.ticketId,
},
}">
{{ $t('单据') }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@
<router-link
to={{
name: 'bizTicketManage',
query: {
id: data.ticket_id,
params: {
ticketId: data.ticket_id,
},
}}
target="_blank">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@
target="_blank"
:to="{
name: 'bizTicketManage',
query: {
id: operationData?.operationTicketId,
params: {
ticketId: operationData?.operationTicketId,
},
}">
{{ t('单据') }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@
target="_blank"
:to="{
name: 'bizTicketManage',
query: {
id: operationData?.operationTicketId,
params: {
ticketId: operationData?.operationTicketId,
},
}">
{{ t('单据') }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@
target="_blank"
:to="{
name: 'bizTicketManage',
query: {
id: operationData?.operationTicketId,
params: {
ticketId: operationData?.operationTicketId,
},
}">
{{ t('单据') }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,8 @@
target="_blank"
to={{
name: 'bizTicketManage',
query: {
id: data.ticket_id,
params: {
ticketId: data.ticket_id,
},
}}>
{data.ticket_id}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
target="_blank"
:to="{
name: 'bizTicketManage',
query: {
id: ticketId,
params: {
ticketId: ticketId,
},
}">
{{ t('单据') }}
Expand Down Expand Up @@ -75,8 +75,8 @@
const handleGoTicket = () => {
const route = router.resolve({
name: 'bizTicketManage',
query: {
id: ticketId,
params: {
ticketId: Number(ticketId),
},
});
window.open(route.href);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
target="_blank"
:to="{
name: 'bizTicketManage',
query: {
id: ticketId,
params: {
ticketId: ticketId,
},
}">
{{ $t('单据') }}
Expand Down Expand Up @@ -71,8 +71,8 @@
const handleGoTicket = () => {
const route = router.resolve({
name: 'bizTicketManage',
query: {
id: ticketId,
params: {
ticketId: Number(ticketId),
},
});
window.open(route.href);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
target="_blank"
:to="{
name: 'bizTicketManage',
query: {
id: ticketId,
params: {
ticketId: ticketId,
},
}">
{{ t('单据') }}
Expand Down Expand Up @@ -72,8 +72,8 @@
const handleGoTicket = () => {
const route = router.resolve({
name: 'bizTicketManage',
query: {
id: ticketId,
params: {
ticketId: Number(ticketId),
},
});
window.open(route.href);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
target="_blank"
:to="{
name: 'bizTicketManage',
query: {
id: ticketId,
params: {
ticketId: ticketId,
},
}">
{{ t('单据') }}
Expand Down Expand Up @@ -72,8 +72,8 @@
const handleGoTicket = () => {
const route = router.resolve({
name: 'bizTicketManage',
query: {
id: ticketId,
params: {
ticketId: Number(ticketId),
},
});
window.open(route.href);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
target="_blank"
:to="{
name: 'bizTicketManage',
query: {
id: ticketId,
params: {
ticketId: ticketId,
},
}">
{{ $t('单据') }}
Expand Down Expand Up @@ -72,8 +72,8 @@
const handleGoTicket = () => {
const route = router.resolve({
name: 'bizTicketManage',
query: {
id: ticketId,
params: {
ticketId: Number(ticketId),
},
});
window.open(route.href);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -518,8 +518,8 @@
}
const route = router.resolve({
name: 'bizTicketManage',
query: {
id: ticketId,
params: {
ticketId,
},
});
window.open(route.href);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
target="_blank"
:to="{
name: 'bizTicketManage',
query: {
id: data.operationTicketId,
params: {
ticketId: data.operationTicketId,
},
}">
{{ $t('单据') }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
target="_blank"
:to="{
name: 'bizTicketManage',
query: {
id: ticketId,
params: {
ticketId: ticketId,
},
}">
{{ $t('单据') }}
Expand Down Expand Up @@ -71,8 +71,8 @@
const handleGoTicket = () => {
const route = router.resolve({
name: 'bizTicketManage',
query: {
id: ticketId,
params: {
ticketId: Number(ticketId),
},
});
window.open(route.href);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
target="_blank"
:to="{
name: 'bizTicketManage',
query: {
id: ticketId,
params: {
ticketId: ticketId,
},
}">
{{ $t('单据') }}
Expand Down Expand Up @@ -72,8 +72,8 @@
const handleGoTicket = () => {
const route = router.resolve({
name: 'bizTicketManage',
query: {
id: ticketId,
params: {
ticketId: Number(ticketId),
},
});
window.open(route.href);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
target="_blank"
:to="{
name: 'bizTicketManage',
query: {
id: ticketId,
params: {
ticketId: ticketId,
},
}">
{{ $t('单据') }}
Expand Down Expand Up @@ -72,8 +72,8 @@
const handleGoTicket = () => {
const route = router.resolve({
name: 'bizTicketManage',
query: {
id: ticketId,
params: {
ticketId: Number(ticketId),
},
});
window.open(route.href);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
target="_blank"
:to="{
name: 'bizTicketManage',
query: {
id: ticketId,
params: {
ticketId: ticketId,
},
}">
{{ $t('单据') }}
Expand Down Expand Up @@ -72,8 +72,8 @@
const handleGoTicket = () => {
const route = router.resolve({
name: 'bizTicketManage',
query: {
id: ticketId,
params: {
ticketId: Number(ticketId),
},
});
window.open(route.href);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@
<router-link
to={{
name: 'bizTicketManage',
query: {
id: data.ticket_id,
params: {
ticketId: data.ticket_id,
},
}}
target="_blank">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@
target="_blank"
to={{
name: 'bizTicketManage',
query: {
id: data.ticket_id,
params: {
ticketId: data.ticket_id,
},
}}>
{data.ticket_id}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
target="_blank"
:to="{
name: 'bizTicketManage',
query: {
id: ticketId,
params: {
ticketId: ticketId,
},
}">
{{ t('单据') }}
Expand Down Expand Up @@ -72,8 +72,8 @@
const handleGoTicket = () => {
const route = router.resolve({
name: 'bizTicketManage',
query: {
id: ticketId,
params: {
ticketId: Number(ticketId),
},
});
window.open(route.href);
Expand Down
Loading

0 comments on commit 8a0622c

Please sign in to comment.