diff --git a/hb_client/package.json b/hb_client/package.json index 4a4ab4c..21eedd0 100644 --- a/hb_client/package.json +++ b/hb_client/package.json @@ -19,6 +19,8 @@ "@riophae/vue-treeselect": "^0.4.0", "axios": "^0.21.1", "compression-webpack-plugin": "^5.0.1", + "d3": "^5.14.2", + "dagre-d3": "^0.6.4", "element-ui": "^2.15.5", "file-saver": "^2.0.2", "fuse.js": "^6.4.6", diff --git a/hb_client/src/api/workflow.js b/hb_client/src/api/workflow.js index 0b388a9..724227a 100644 --- a/hb_client/src/api/workflow.js +++ b/hb_client/src/api/workflow.js @@ -120,4 +120,12 @@ export function deleteWfTransition(id, data) { method: 'delete', data }) -} \ No newline at end of file +} +//工单详情 +export function getTickets(query) { + return request({ + url: `/wf/ticket/`, + method: 'get', + params:query + }) +} diff --git a/hb_client/src/layout/components/Navbar.vue b/hb_client/src/layout/components/Navbar.vue index ae69bc5..7cb30fd 100644 --- a/hb_client/src/layout/components/Navbar.vue +++ b/hb_client/src/layout/components/Navbar.vue @@ -7,7 +7,7 @@
diff --git a/hb_client/src/layout/components/Sidebar/SidebarItem.vue b/hb_client/src/layout/components/Sidebar/SidebarItem.vue index a418c3d..27feb9f 100644 --- a/hb_client/src/layout/components/Sidebar/SidebarItem.vue +++ b/hb_client/src/layout/components/Sidebar/SidebarItem.vue @@ -13,8 +13,8 @@ import('@/views/workflow/ticket'), + meta: { title: '工单列表', icon: 'example', perms: ['ticket_manage'] }, + hidden: true + },{ + path: 'test', + name: 'test', + component: () => import('@/views/workflow/test'), + meta: { title: '工单', icon: 'example', perms: ['test_manage'] }, + hidden: true + }, ] }, { diff --git a/hb_client/src/views/workflow/customfield.vue b/hb_client/src/views/workflow/customfield.vue index 78b579a..76b154f 100644 --- a/hb_client/src/views/workflow/customfield.vue +++ b/hb_client/src/views/workflow/customfield.vue @@ -1,7 +1,7 @@ diff --git a/hb_client/src/views/workflow/test.vue b/hb_client/src/views/workflow/test.vue new file mode 100644 index 0000000..fa06867 --- /dev/null +++ b/hb_client/src/views/workflow/test.vue @@ -0,0 +1,133 @@ + + + + + diff --git a/hb_client/src/views/workflow/ticket.vue b/hb_client/src/views/workflow/ticket.vue new file mode 100644 index 0000000..7039ed0 --- /dev/null +++ b/hb_client/src/views/workflow/ticket.vue @@ -0,0 +1,238 @@ + + + + +