From 8ac1977c617685dafed2f6c994c8ac88465b175e Mon Sep 17 00:00:00 2001 From: zhujida Date: Wed, 13 Jan 2021 10:54:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=87=E6=A0=87=E6=A0=B7=E5=BC=8F=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/kpi/set/index.vue | 6 +++- src/views/kpi/set/target/add/index.vue | 48 ++++++++++++++++++-------- src/views/kpi/set/target/index.vue | 36 ++++++++++++++----- 3 files changed, 67 insertions(+), 23 deletions(-) diff --git a/src/views/kpi/set/index.vue b/src/views/kpi/set/index.vue index f7f8671..0203439 100644 --- a/src/views/kpi/set/index.vue +++ b/src/views/kpi/set/index.vue @@ -57,7 +57,11 @@ export default { } else { this.activeIndex = '' } - if (this.auth.evaluationSet && this.auth.roleSet) this.activeIndex = this.$route.query.activeIndex || '0' + if (this.auth.evaluationSet && this.auth.roleSet) { + this.activeIndex = this.$route.query.activeIndex || '0' + } else { + this.activeIndex = this.$route.query.activeIndex + } }, beforeMount () { }, mounted () { }, diff --git a/src/views/kpi/set/target/add/index.vue b/src/views/kpi/set/target/add/index.vue index 516b72c..050de36 100644 --- a/src/views/kpi/set/target/add/index.vue +++ b/src/views/kpi/set/target/add/index.vue @@ -1,7 +1,7 @@