From 6009cba016cd197d38bae8072c19ec701a173c8a Mon Sep 17 00:00:00 2001 From: Tanyalak Date: Thu, 14 Dec 2023 17:46:50 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A=20currentR?= =?UTF-8?q?outeName?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/MainLayout.vue | 67 ++++++++++++++++++++++------------------ 1 file changed, 37 insertions(+), 30 deletions(-) diff --git a/src/views/MainLayout.vue b/src/views/MainLayout.vue index 97861cb..261cf7d 100644 --- a/src/views/MainLayout.vue +++ b/src/views/MainLayout.vue @@ -9,12 +9,12 @@ const $q = useQuasar(); const tab = ref('') -const currentRouteName = ref(''); +const currentRouteName = router.currentRoute.value.name; +const currentRoute = ref(currentRouteName); const text = ref(''); const menuList = [ {text:'ข้อมูลหลัก',path: 'metadata'}, {text:'โครงสร้างอัตรากำลัง',path: 'organizational'}, - ]; const mainmenu = [ @@ -33,26 +33,29 @@ const mainmenu = [ const clickMain = (val: string) => { router.push(val) - currentRouteName.value = val + currentRoute.value = val tab.value=val }; const goHome = () => { router.push('/') - currentRouteName.value = '' + currentRoute.value = 'home' }; const click = () => { router.push('/contact') - currentRouteName.value = 'contact' + currentRoute.value = 'contact' }; +const scrollInfo = ref({}) +const onScroll = (info: any) => { scrollInfo.value = info} -
+
ระบบทรัพยากรบุคคล
@@ -118,27 +119,33 @@ const click = () => {
-
-
+
+ + + +
+ + + +
- -
- - - -
- -
- - - - - -
-
+
+ + + + + +
+ + +
+ + + + @@ -208,7 +215,7 @@ const click = () => { } .content-heigt{ - height: 55vh !important; + height: 60vh !important; overflow-y:auto; }