From 584b22fbbdb253fe474cb7193288188c94f5aef0 Mon Sep 17 00:00:00 2001 From: shijing Date: Wed, 18 Oct 2023 17:12:23 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/components/GanttComponent.vue | 79 ++++++ src/config/route.js | 12 +- src/views/pm/gantt.vue | 163 ++++++++++++ src/views/pm/mtask.vue | 428 ++++++++++++++++++++---------- src/views/pm/mtask2.vue | 209 ++++----------- src/views/wpm/worktask.vue | 50 ++-- src/views/wpm/worktask2.vue | 170 ++---------- src/views/wpm/worktaskFlog.vue | 10 +- 9 files changed, 658 insertions(+), 465 deletions(-) create mode 100644 src/components/GanttComponent.vue create mode 100644 src/views/pm/gantt.vue diff --git a/package.json b/package.json index 40d532d8..f38b0814 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "d3": "^7.6.1", "dagre": "^0.8.5", "dagre-d3": "^0.6.4", - + "dhtmlx-gantt": "^8.0.6", "echarts": "5.4.1", "element-plus": "2.2.32", "file-saver": "^2.0.5", diff --git a/src/components/GanttComponent.vue b/src/components/GanttComponent.vue new file mode 100644 index 00000000..89133e14 --- /dev/null +++ b/src/components/GanttComponent.vue @@ -0,0 +1,79 @@ + + + + + \ No newline at end of file diff --git a/src/config/route.js b/src/config/route.js index 50570415..a028bd65 100644 --- a/src/config/route.js +++ b/src/config/route.js @@ -754,7 +754,17 @@ const routes = [ "perms": ["inm"] }, "component": "pm/mtask2" - } + }, + // { + // "name": "gantt", + // "path": "/pm/gantt", + // "meta": { + // "title": "gantt", + // "icon": "el-icon-cellphone", + // "perms": ["inm"] + // }, + // "component": "pm/gantt" + // } ] }, //生产执行 wpm diff --git a/src/views/pm/gantt.vue b/src/views/pm/gantt.vue new file mode 100644 index 00000000..beef935c --- /dev/null +++ b/src/views/pm/gantt.vue @@ -0,0 +1,163 @@ + + + \ No newline at end of file diff --git a/src/views/pm/mtask.vue b/src/views/pm/mtask.vue index d229dc9d..1497cd72 100644 --- a/src/views/pm/mtask.vue +++ b/src/views/pm/mtask.vue @@ -1,75 +1,77 @@