From 4af9a5d043aa4e29f43b8f8e2a21e41d6827ab6f Mon Sep 17 00:00:00 2001 From: yuyu <1981343953@qq.com> Date: 星期五, 18 八月 2023 16:17:26 +0800 Subject: [PATCH] 8.18 合格率统计 --- src/layout/index.vue | 24 ++++++++++++++++++++++-- 1 files changed, 22 insertions(+), 2 deletions(-) diff --git a/src/layout/index.vue b/src/layout/index.vue index f8ca9cf..a1016fa 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -8,8 +8,12 @@ </div> <div class="clearFixed" /> <!-- 娓呴櫎瀹氫綅鐨勫奖鍝� --> - <Breadcrumb class="breadcrumb-container" /> - <app-main /> + <div class="breadcrumb"> + <Breadcrumb class="breadcrumb-container" ref="breadcrumb" /> + </div> + <div class="app-main"> + <app-main ref="main" @triggerCombackBtn="triggerCombackBtn"/> + </div> </div> </div> </template> @@ -50,6 +54,12 @@ methods: { handleClickOutside() { this.$store.dispatch('app/closeSideBar', { withoutAnimation: false }) + }, + combackPlan(){ + this.$refs.main.childMethod() + }, + triggerCombackBtn(){ + this.$refs.breadcrumb.triggerBtnPlan() } } } @@ -72,10 +82,20 @@ box-shadow: 0 0 0.857143rem rgba(0,0,0,.12); } .main-container{ + position: relative; background: #f0f2f5; .clearFixed{ height: 50px; } + .breadcrumb{ + position: fixed; + left: 0.57rem !important; + width: 93.8%; + z-index: 999; + } + .app-main{ + margin-top: 4vh; + } } } .drawer-bg { -- Gitblit v1.9.3