From 966ef940769c558c5a3ccb67a4abc2f5c1c882d5 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Fri, 30 Apr 2021 14:57:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/breadcrumb/index.vue | 6 +++--- src/layouts/navbar/index.vue | 2 +- src/pages/client/list/index.vue | 11 ++--------- src/pages/quesBank/list/index.vue | 6 +++--- src/pages/quesBank/list/myQuesBank.vue | 2 +- src/pages/quesBank/list/quesDialog.vue | 13 +++---------- src/pages/system/list/index.vue | 5 ++--- src/pages/system/list/role.vue | 6 +++--- src/pages/system/list/staff.vue | 6 +++--- src/pages/user/list/index.vue | 8 ++++---- src/styles/common.scss | 11 +++++++++-- 11 files changed, 34 insertions(+), 42 deletions(-) diff --git a/src/components/breadcrumb/index.vue b/src/components/breadcrumb/index.vue index 67c760d..df66284 100644 --- a/src/components/breadcrumb/index.vue +++ b/src/components/breadcrumb/index.vue @@ -3,7 +3,7 @@ 当前位置: 超竞企业端 - {{item}} + {{item}} @@ -14,12 +14,12 @@ export default { data() { return { pages: this.data.split('/'), - curRoute: this.$route.path + curRoute: this.$route.path, + path: this.route ? this.route : 'list' }; }, methods: { update(data){ - console.log(2222,data) this.pages = data.split('/') } } diff --git a/src/layouts/navbar/index.vue b/src/layouts/navbar/index.vue index 0241776..8967795 100644 --- a/src/layouts/navbar/index.vue +++ b/src/layouts/navbar/index.vue @@ -92,7 +92,7 @@ export default { onRoutes() { let actives = this.actives for(let i in this.actives){ - if(actives[i].includes(this.$route.name)) return `/${i}` + if(actives[i].includes(this.$route.name)) return `/${i}/list` } return this.$route.path }, diff --git a/src/pages/client/list/index.vue b/src/pages/client/list/index.vue index 454c9e2..c9afbd9 100644 --- a/src/pages/client/list/index.vue +++ b/src/pages/client/list/index.vue @@ -57,14 +57,7 @@ 查看 编辑 删除 - + @@ -197,7 +190,7 @@ export default { isDisable: val } this.$post(this.api.updateClient,data).then((res) => { - val == 1 ? util.successMsg('禁用成功') : util.successMsg('启用成功') + val == 1 ? util.warningMsg('该院校系统使用权限已关闭') : util.successMsg('该院校系统使用权限已激活') }).catch((res) => { }) }, diff --git a/src/pages/quesBank/list/index.vue b/src/pages/quesBank/list/index.vue index ffc9acd..e0f1ffc 100644 --- a/src/pages/quesBank/list/index.vue +++ b/src/pages/quesBank/list/index.vue @@ -60,9 +60,9 @@ export default { }else if(!tab1 && !tab2 && tab3){ this.active = 'type' } - if(!tab1) delete this.tabs.type - if(!tab2) delete this.tabs.my - if(!tab3) delete this.tabs.global + if(!tab1) delete this.tabs.my + if(!tab2) delete this.tabs.global + if(!tab3) delete this.tabs.type } } }; diff --git a/src/pages/quesBank/list/myQuesBank.vue b/src/pages/quesBank/list/myQuesBank.vue index fffd1fe..a30fae9 100644 --- a/src/pages/quesBank/list/myQuesBank.vue +++ b/src/pages/quesBank/list/myQuesBank.vue @@ -96,7 +96,7 @@
模板下载 - + 上传文件