From 0e8c70150aef0a59d2fd19aebc9f67d040764193 Mon Sep 17 00:00:00 2001
From: yujialong <479214531@qq.com>
Date: Wed, 19 Apr 2023 18:26:16 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9D=83=E9=99=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/setting.js | 2 +-
src/views/match/manage/index.vue | 17 ++++++++++-------
src/views/parnerOperation/index.vue | 6 +++---
src/views/parnerOperation/mobileRole.vue | 9 +++++----
src/views/parnerOperation/pcRole.vue | 9 +++++----
src/views/parnerOperation/staff.vue | 9 +++++----
6 files changed, 29 insertions(+), 23 deletions(-)
diff --git a/src/setting.js b/src/setting.js
index 493ce0b..de23153 100644
--- a/src/setting.js
+++ b/src/setting.js
@@ -45,7 +45,7 @@ const Setting = {
isDev,
isPro,
// 是否使用动态路由
- dynamicRoute: false,
+ dynamicRoute: true,
/**
* @description 默认密码
*/
diff --git a/src/views/match/manage/index.vue b/src/views/match/manage/index.vue
index 4108aa7..f996489 100644
--- a/src/views/match/manage/index.vue
+++ b/src/views/match/manage/index.vue
@@ -56,14 +56,17 @@ export default {
initTabs() {
const btns = this.$store.state.btns
const tab1 = btns.includes('/match:管理:大赛详情')
- const tab2 = btns.includes('/match:管理:竞赛进展')
- const tab3 = btns.includes('/match:管理:公告通知')
- const tab4 = btns.includes('/match:管理:报名人员')
+ const tab2 = btns.includes('/match:管理:大赛成绩管理')
+ const tab3 = btns.includes('/match:管理:竞赛进展')
+ const tab4 = btns.includes('/match:管理:公告通知')
+ const tab5 = btns.includes('/match:管理:报名人员')
- tab1 || delete this.tabs.tab1
- tab2 || delete this.tabs.tab2
- tab3 || delete this.tabs.tab3
- tab4 || delete this.tabs.tab4
+ tab1 || this.$delete(this.tabs, 'tab1')
+ tab2 || this.$delete(this.tabs, 'tab2')
+ tab3 || this.$delete(this.tabs, 'tab3')
+ tab4 || this.$delete(this.tabs, 'tab4')
+ tab5 || this.$delete(this.tabs, 'tab5')
+
const type = this.$route.query.tab
const keys = Object.keys(this.tabs)
this.active = keys.includes(type) ? type : keys[0]
diff --git a/src/views/parnerOperation/index.vue b/src/views/parnerOperation/index.vue
index cfb2f03..e28862d 100644
--- a/src/views/parnerOperation/index.vue
+++ b/src/views/parnerOperation/index.vue
@@ -47,9 +47,9 @@ export default {
},
initTabs() {
const btns = this.$store.state.btns
- const tab1 = btns.includes('/parner:合伙人学习管理')
- const tab2 = btns.includes('/parner:合伙人资讯管理')
- const tab3 = btns.includes('/parner:方案管理')
+ const tab1 = btns.includes('/parnerOperation:合伙人学习管理')
+ const tab2 = btns.includes('/parnerOperation:合伙人资讯管理')
+ const tab3 = btns.includes('/parnerOperation:方案管理')
tab1 || delete this.tabs.staff
tab2 || delete this.tabs.pcRole
diff --git a/src/views/parnerOperation/mobileRole.vue b/src/views/parnerOperation/mobileRole.vue
index f2557ef..28d6007 100644
--- a/src/views/parnerOperation/mobileRole.vue
+++ b/src/views/parnerOperation/mobileRole.vue
@@ -13,8 +13,8 @@