From 317639088df4d56f01266ffa49e1caef2bc14991 Mon Sep 17 00:00:00 2001 From: e <2432808546@qq.com> Date: Tue, 20 Jul 2021 17:00:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=9C=E5=8F=B0=E7=B3=BB=E7=BB=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/home/index.vue | 2 +- src/pages/index/list/index.vue | 33 ++-- src/pages/manage/index/index.vue | 42 +++-- .../manage/list/client/consumerClient.vue | 160 ++++++++++++++++- .../manage/list/client/corporateClient.vue | 2 +- .../manage/list/personal/currentAccount.vue | 164 +++++++++++++++++- src/pages/manage/navbar/index.vue | 3 +- src/styles/layout/index.scss | 18 +- 8 files changed, 392 insertions(+), 32 deletions(-) diff --git a/src/layouts/home/index.vue b/src/layouts/home/index.vue index eeeafb8..d1b6a9f 100644 --- a/src/layouts/home/index.vue +++ b/src/layouts/home/index.vue @@ -57,6 +57,6 @@ export default { \ No newline at end of file diff --git a/src/pages/index/list/index.vue b/src/pages/index/list/index.vue index 8f65678..9f156d0 100644 --- a/src/pages/index/list/index.vue +++ b/src/pages/index/list/index.vue @@ -124,9 +124,9 @@ - +
- +
@@ -150,7 +150,8 @@ export default { }, watch: { '$route.path':function(val){ // 控制弹框显隐 - if(val.split('/').pop()==="manage"){ + let arr = val.split('/').slice(-2) + if(arr.pop()==="manage"||arr[0]==='manage'){ this.manageVisible = true }else{ this.manageVisible = false @@ -158,10 +159,13 @@ export default { } }, created(){ - console.log(this.$route.path.split('/').pop(),'path'); - if(this.$route.path.split('/').pop()==="manage"){// 使用children当组件 + let arr = this.$route.path.split('/').slice(-2) + if(arr.pop()==="manage"||arr[0]==='manage'){ this.manageVisible = true + }else{ + this.manageVisible = false } + }, mounted() { @@ -186,7 +190,7 @@ export default { // 展示系统管理 showManage(){ this.manageVisible=true - this.$router.push('/index/list/manage') + this.$router.push('/index/list/manage/consumerClient') } } }; @@ -194,9 +198,10 @@ export default { \ No newline at end of file diff --git a/src/pages/manage/index/index.vue b/src/pages/manage/index/index.vue index fec1a6d..187c57d 100644 --- a/src/pages/manage/index/index.vue +++ b/src/pages/manage/index/index.vue @@ -1,5 +1,5 @@