Skip to content

Commit 396c556

Browse files
hLinxiSecloud
authored andcommitted
fix(frontend): 单据列表可显示列配置重置 #12897
# Reviewed, transaction id: 57365
1 parent ce17d8b commit 396c556

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

dbm-ui/frontend/src/views/ticket-center/common/ticket-table/Index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@
346346
347347
type Emits = (e: 'selection', data: TicketModel<unknown>[]) => void;
348348
349-
const TABLE_SETTING_KEY = 'TICKET_TABLE_SETTINGS';
349+
const TABLE_SETTING_KEY = 'TICKET_TABLE_SETTINGS_v1';
350350
351351
const router = useRouter();
352352
const route = useRoute();
@@ -377,7 +377,7 @@
377377
378378
const tableSettings = ref({
379379
checked: userProfileStore.profile[TABLE_SETTING_KEY]?.checked,
380-
disabled: ['id', 'ticket_type__in'],
380+
disabled: ['ids', 'ticket_type__in'],
381381
size: userProfileStore.profile[TABLE_SETTING_KEY]?.size || 'small',
382382
});
383383

dbm-ui/frontend/src/views/ticket-center/ticket-business-manage/Index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
:exclude-column="['bk_biz_id']">
1717
<template #action>
1818
<TableColumn
19-
col-key="action"
19+
col-key="row-operation"
2020
fixed="right"
2121
:title="t('操作')"
2222
width="80">

dbm-ui/frontend/src/views/ticket-center/ticket-platform-manage/Index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
:data-source="dataSource">
1616
<template #action>
1717
<TableColumn
18-
col-key="action"
18+
col-key="row-operation"
1919
fixed="right"
2020
:title="t('操作')"
2121
width="80">

dbm-ui/frontend/src/views/ticket-center/ticket-self-apply/Index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
:data-source="dataSource">
1616
<template #action>
1717
<TableColumn
18-
col-key="action"
18+
col-key="row-operation"
1919
fixed="right"
2020
:title="t('操作')"
2121
width="80">

dbm-ui/frontend/src/views/ticket-center/ticket-self-todo/components/row-action/StatusFailed.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
ticket_ids: `${row.id}`,
5151
})
5252
.then((data) => {
53-
if (data[row.id].length < 1) {
53+
if (data[row.id]!.length < 1) {
5454
const { href } = router.resolve({
5555
name: 'ticketDetail',
5656
params: {
@@ -63,7 +63,7 @@
6363
const { href } = router.resolve({
6464
name: 'taskHistoryDetail',
6565
params: {
66-
root_id: data[row.id][0].flow_id,
66+
root_id: data[row.id]![0]!.flow_id,
6767
},
6868
});
6969
window.open(href);

dbm-ui/frontend/src/views/ticket-center/ticket-self-todo/components/row-action/StatusInnerTodo.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
ticket_ids: `${row.id}`,
4141
})
4242
.then((data) => {
43-
if (data[row.id].length < 1) {
43+
if (data[row.id]!.length < 1) {
4444
const { href } = router.resolve({
4545
name: 'ticketDetail',
4646
params: {
@@ -53,7 +53,7 @@
5353
const { href } = router.resolve({
5454
name: 'taskHistoryDetail',
5555
params: {
56-
root_id: data[row.id][0].flow_id,
56+
root_id: data[row.id]![0]!.flow_id,
5757
},
5858
});
5959
window.open(href);

0 commit comments

Comments
 (0)