no message

This commit is contained in:
kanyarat2001 2023-12-15 11:04:27 +07:00
parent 66671faf81
commit 4618e56e2e
3 changed files with 27 additions and 285 deletions

View file

@ -9,12 +9,12 @@ const $q = useQuasar();
const tab = ref('')
const currentRouteName = router.currentRoute.value.name;
const currentRoute = ref(currentRouteName);
const currentRouteName = ref('');
const text = ref('');
const menuList = [
{text:'ข้อมูลหลัก',path: 'metadata'},
{text:'โครงสร้างอัตรากำลัง',path: 'organizational'},
];
const mainmenu = [
@ -33,29 +33,26 @@ const mainmenu = [
const clickMain = (val: string) => {
router.push(val)
currentRoute.value = val
currentRouteName.value = val
tab.value=val
};
const goHome = () => {
router.push('/')
currentRoute.value = 'home'
currentRouteName.value = ''
};
const click = () => {
router.push('/contact')
currentRoute.value = 'contact'
currentRouteName.value = 'contact'
};
const scrollInfo = ref({})
const onScroll = (info: any) => { scrollInfo.value = info}
</script>
<!-- โครงเว -->
<template>
<q-layout view="hHh LpR fFr">
<q-scroll-observer @scroll="onScroll" />
<!-- header -->
<q-header flat class="text-dark col-12 bg-transparent" height-hint="7">
<q-header flat class="text-dark col-12 bg-header bg-transparent" height-hint="7">
<q-toolbar class="q-my-xs items-center" :style="$q.screen.gt.xs ? 'padding: 1% 2%;': 'padding: 1% 4%;'">
<div class="row items-center no-wrap cursor-pointer" @click="goHome" v-if="$q.screen.gt.xs">
<q-img src="@/assets/logo.png" spinner-color="white" style="height: 35px; max-width: 35px"/>
@ -79,16 +76,12 @@ const onScroll = (info: any) => { scrollInfo.value = info}
<img src="@/assets/logo.png" style="height: 35px; max-width: 35px" />
</div>
<q-space></q-space>
<<<<<<< HEAD
<div class="row q-col-gutter-x-sm">
<div><q-btn flat color="white" label="หน้าแรก" @click="goHome"/></div>
<div><q-btn color="primary" label="ติดต่อเรา" @click="click()"/></div>
=======
<div>
<q-btn class="text-weight-medium" flat color="white" label="หน้าแรก" @click="goHome"/>
<q-btn color="secondary" text-color="white" label="ติดต่อเรา" @click="click()"/>
>>>>>>> aom_dev
</div>
</q-toolbar>
</q-header>
@ -106,15 +99,10 @@ const onScroll = (info: any) => { scrollInfo.value = info}
</template>
</q-input>
</div>
<<<<<<< HEAD
<div class="col-xs-10 col-md-8 row q-col-gutter-md" style=" margin-top: 80px;" v-if="currentRoute == 'home'">
<div class="col-12 row justify-center text-h6 text-dark">ระบบทรพยากรบคคล</div>
<div class="col-12"><q-separator color="grey-4" /></div>
=======
<div class="col-xs-10 col-md-8 row q-col-gutter-md" style=" margin-top: 80px;" v-if="currentRouteName == ''">
<div class="col-12 row justify-center text-h6 text-dark">ระบบทรพยากรบคคล</div>
<div class="col-12"><q-separator color="grey-4" /></div>
>>>>>>> aom_dev
<div class="col-12">
<div class="col-12 row q-col-gutter-lg">
@ -131,35 +119,27 @@ const onScroll = (info: any) => { scrollInfo.value = info}
</div>
</div>
<div class="col-9 row" style=" margin-top: 80px;" v-else>
<q-layout>
<q-page-container class="col-12">
<q-page>
<div class="col-12 row ">
<div class="col-12" >
<router-view :key="$route.fullPath" />
</div>
</div>
<div class="col-9 row q-col-gutter-md" style=" margin-top: 80px;" v-else>
<div class="col-12 content-heigt">
<div class="col-12 row" v-if="currentRouteName != 'contact'">
<q-page-scroller position="bottom-center" :scroll-offset="300" :offset="[18, 18]" >
<q-tabs content-class="red" no-caps active-color="primary" indicator-color="transparent" class="text-grey-8" v-model="tab">
<q-tab name="metadata" label="ข้อมูลหลัก" @click="router.push({ path: '/metadata' })"/>
<q-tab name="organizational" label="โครงสร้างอัตรากำลัง" @click="router.push({ path: '/organizational' })" />
<q-tab name="articles" label="Articles" />
</q-tabs>
</q-page-scroller>
</div>
</q-page>
</q-page-container>
</q-layout>
<div class="col-12 row ">
<q-card class="col-12">
<router-view :key="$route.fullPath" />
</q-card>
</div>
<div class="col-12 row " v-if="currentRouteName != 'contact'">
<q-tabs no-caps active-color="primary" indicator-color="transparent" class="text-grey-8" v-model="tab">
<q-tab name="metadata" label="ข้อมูลหลัก" @click="router.push({ path: '/metadata' })"/>
<q-tab name="organizational" label="โครงสร้างอัตรากำลัง" @click="router.push({ path: '/organizational' })" />
<q-tab name="articles" label="Articles" />
</q-tabs>
</div>
</div>
</div>
</div>
</q-page>
<!-- place QPageScroller at end of page -->
<q-page-scroller position="bottom-right" :scroll-offset="150" :offset="[18, 50]">
<q-btn fab icon="keyboard_arrow_up" color="blue" />
</q-page-scroller>
</q-page-container>
</q-layout>
</template>
@ -229,7 +209,7 @@ const onScroll = (info: any) => { scrollInfo.value = info}
}
.content-heigt{
height: 60vh !important;
height: 55vh !important;
overflow-y:auto;
}