From 324b32ea1c6b386371ba2411c96e69c0b28c1e45 Mon Sep 17 00:00:00 2001 From: wuyize Date: Thu, 14 Jul 2022 09:20:07 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=9B=B4=E6=96=B0=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C=E9=A1=B9=E5=90=8E=E9=A1=B9=E7=9B=AE=E6=A6=82=E8=A7=88?= =?UTF-8?q?=E4=B8=8D=E5=88=B7=E6=96=B0=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Project.vue | 16 ++++++++++++++++ src/views/ProjectInfo.vue | 3 ++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/src/views/Project.vue b/src/views/Project.vue index 5946519..3a7b2d4 100644 --- a/src/views/Project.vue +++ b/src/views/Project.vue @@ -64,6 +64,7 @@ :projectAccessLevel="projectAccessLevel" :projectGroup="projectGroup" @groupChanged="groupChanged" + @created="viewCreated" > @@ -121,6 +122,9 @@ export default { this.getProjectGroup() }, methods: { + viewCreated() { + this.getProjectInfo(); + }, back() { router.push({path: '/'}) }, @@ -157,6 +161,18 @@ export default { }, groupChanged() { console.log('groupChanged') + const that = this + request({ + url: 'project/' + this.$route.params.projectId + '/group/' + this.$store.state.staff.staffId, + method: 'get', + }).then(response => { + if (response.data.code === 200) { + that.projectStaffPosition = response.data.data.projectStaffPosition.replaceAll(',',',') + that.projectAccessLevel = response.data.data.projectAccessLevel + } + }).catch(function (error) { + console.log(error) + }) this.getProjectGroup() } } diff --git a/src/views/ProjectInfo.vue b/src/views/ProjectInfo.vue index 245f44f..ad7e972 100644 --- a/src/views/ProjectInfo.vue +++ b/src/views/ProjectInfo.vue @@ -410,9 +410,10 @@ export default { this.getselfTaskStats(); }, }, + emits: ['created'], created() { + this.$emit("created"); //this.getProjectInfo(); - }, mounted() { const that = this