diff --git a/src/config/menus.js b/src/config/menus.js index 24093e7..842fb99 100644 --- a/src/config/menus.js +++ b/src/config/menus.js @@ -6,8 +6,14 @@ export const menus = [ }, { path: '/ticket', - title: '工单处理', - icon: 'DataBoard' + title: '工单管理', + icon: 'Tickets', + children: [ + { + path: '/ticket/list', + title: '工单列表' + } + ] }, { path: '/user', diff --git a/src/router/index.js b/src/router/index.js index 571f32a..4f4f41b 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -39,7 +39,27 @@ const routes = [ title: '工单管理', icon: 'Tickets' }, - component: () => import('../views/ticket/TicketChat.vue'), + redirect: '/ticket/list', + children: [ + { + path: 'list', + name: 'TicketList', + component: () => import('../views/ticket/TicketList.vue'), + meta: { + title: '工单列表' + } + }, + { + path: 'detail', + name: 'TicketDetail', + component: () => import('../views/ticket/TicketDetail.vue'), + meta: { + title: '工单详情', + hidden: true, + activeMenu: '/ticket/list' + } + } + ] }, // ACS管理路由 diff --git a/src/views/ticket/TicketDetail.vue b/src/views/ticket/TicketDetail.vue new file mode 100644 index 0000000..3dcbf04 --- /dev/null +++ b/src/views/ticket/TicketDetail.vue @@ -0,0 +1,592 @@ + + + + + 返回列表 + + 工单号: {{ ticketInfo.id }} + + {{ getStatusText(ticketInfo.status) }} + + + 结束工单 + + + + + + + + {{ ticketInfo.username?.charAt(0) }} + + {{ ticketInfo.username }} + 创建于 {{ ticketInfo.createTime }} + + + {{ ticketInfo.title }} + + + + + + + + {{ ticketInfo?.username?.charAt(0) || 'U' }} + + + {{ message.content }} + + + + {{ formatMessageTime(message.time) }} + + + A + + + + + + + + + + + + × + + + + + + + {{ reply.title }} + + + + + + + + + + 图片 + + + Ctrl + Enter 发送 + + 发送 + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/ticket/TicketList.vue b/src/views/ticket/TicketList.vue new file mode 100644 index 0000000..e578ae5 --- /dev/null +++ b/src/views/ticket/TicketList.vue @@ -0,0 +1,388 @@ + + + + + + {{ stats.total }} + 全部工单 + + + {{ stats.pending }} + 待处理 + + + {{ stats.processing }} + 处理中 + + + {{ stats.replied }} + 已回复 + + + {{ stats.completed }} + 已完成 + + + + + + + 刷新 + + + + + + + + + {{ row.username?.charAt(0) }} + {{ row.username }} + + + + + + + + {{ getStatusText(row.status) }} + + + + + + + + + 回复 + + + 结束 + + + + + + + + + + + + + + +