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