diff --git a/backend/models/ticketIndex.js b/backend/models/ticketIndex.js index dca27e9..5dc7cf5 100644 --- a/backend/models/ticketIndex.js +++ b/backend/models/ticketIndex.js @@ -175,8 +175,11 @@ const initializeModels = async () => { } }; +initAssociations(); + module.exports = { initializeModels, + initAssociations, Ticket, TicketOperationRecord, FaultCategory diff --git a/frontend/src/pages/TicketManagement.jsx b/frontend/src/pages/TicketManagement.jsx index 05b8ae6..68e0815 100644 --- a/frontend/src/pages/TicketManagement.jsx +++ b/frontend/src/pages/TicketManagement.jsx @@ -302,7 +302,19 @@ function TicketManagement() { } })); - return [...baseColumns, ...customFieldColumns]; + const actionColumn = { + title: '操作', + key: 'action', + width: 100, + fixed: 'right', + render: (_, record) => ( + +