From 8defdff039eb0c8ae2f5711a6dcd4b668a5eef20 Mon Sep 17 00:00:00 2001 From: wuyize Date: Wed, 6 Jul 2022 15:25:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E5=B7=A5=E4=BD=9C=E9=A1=B9?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/icons/assignment.svg | 2 + src/assets/icons/defect.svg | 2 + src/assets/icons/demand.svg | 2 + src/views/Project.vue | 36 ++++++--- src/views/ProjectWorkitem.vue | 134 +++++++++++++++++++++++++++++++- 5 files changed, 162 insertions(+), 14 deletions(-) create mode 100644 src/assets/icons/assignment.svg create mode 100644 src/assets/icons/defect.svg create mode 100644 src/assets/icons/demand.svg diff --git a/src/assets/icons/assignment.svg b/src/assets/icons/assignment.svg new file mode 100644 index 0000000..302e75e --- /dev/null +++ b/src/assets/icons/assignment.svg @@ -0,0 +1,2 @@ + \ No newline at end of file diff --git a/src/assets/icons/defect.svg b/src/assets/icons/defect.svg new file mode 100644 index 0000000..e1df828 --- /dev/null +++ b/src/assets/icons/defect.svg @@ -0,0 +1,2 @@ + \ No newline at end of file diff --git a/src/assets/icons/demand.svg b/src/assets/icons/demand.svg new file mode 100644 index 0000000..c4f8110 --- /dev/null +++ b/src/assets/icons/demand.svg @@ -0,0 +1,2 @@ + \ No newline at end of file diff --git a/src/views/Project.vue b/src/views/Project.vue index a90a155..2d3dc8c 100644 --- a/src/views/Project.vue +++ b/src/views/Project.vue @@ -5,14 +5,15 @@ + :default-active="menuDefaultActive">

项目
管理系统

返回 + text :icon="ArrowLeft" @click="this.router.push({path: '/'})">返回 + 概览 @@ -20,10 +21,7 @@ 工作项 - - 需求 - - + 团队
@@ -33,18 +31,23 @@
- {{project.projectName}} + {{ project.projectName }}
- {{ this.$store.state.staff===null? this.$store.state.staff:this.$store.state.staff.staffFullname[0] }} + {{ + this.$store.state.staff === null ? this.$store.state.staff : this.$store.state.staff.staffFullname[0] + }}
- {{ this.$store.state.staff===null? this.$store.state.staff: this.$store.state.staff.staffFullname }} + {{ + this.$store.state.staff === null ? this.$store.state.staff : this.$store.state.staff.staffFullname + }} {{ staffJob }} @@ -76,17 +79,30 @@ export default { projectName: '' }, staffJob: '项目经理', + menuDefaultActive: '1', } }, created() { + switch (this.$route.path.split('/').pop()) { + case 'workitem': + this.menuDefaultActive = '2'; + break + case 'group': + this.menuDefaultActive = '3'; + break + default: + this.menuDefaultActive = '1'; + break + } + this.getProjectInfo(); }, methods: { getProjectInfo() { const that = this request({ - url: 'project/'+this.$route.params.projectId, + url: 'project/' + this.$route.params.projectId, method: 'get' }).then(response => { diff --git a/src/views/ProjectWorkitem.vue b/src/views/ProjectWorkitem.vue index a67d37b..d4f6e43 100644 --- a/src/views/ProjectWorkitem.vue +++ b/src/views/ProjectWorkitem.vue @@ -1,13 +1,139 @@ +
+
+

工作项

+
+
+ + + + + + + + + + + + + + + + + +
+
+ + \ No newline at end of file