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/components/AppMain.vue | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/layout/components/AppMain.vue b/src/layout/components/AppMain.vue index c21454f..e9e0b9f 100644 --- a/src/layout/components/AppMain.vue +++ b/src/layout/components/AppMain.vue @@ -1,7 +1,7 @@ <template> <section class="app-main"> <transition name="fade-transform" mode="out-in"> - <router-view :key="key" /> + <router-view ref="child" @triggerMainBtnPlan="triggerMainBtnPlan" :key="key" /> </transition> </section> </template> @@ -13,13 +13,21 @@ key() { return this.$route.path } + }, + methods: { + childMethod(){ + this.$refs.child.combackLookPlan() + }, + triggerMainBtnPlan(){ + this.$parent.triggerCombackBtn() + } } } </script> <style lang="scss" scoped> .app-main { - /*88 = navbar+baredcrumb */ + /* 88 = navbar+baredcrumb */ min-height: calc(100vh - 88px); width: 100%; position: relative; @@ -45,4 +53,7 @@ padding-right: 15px; } } +.el-menu--popup{ + width: 120px; +} </style> -- Gitblit v1.9.3