เพิ่ม ข้อมูล
This commit is contained in:
commit
6d3330c327
21 changed files with 2362 additions and 89 deletions
|
|
@ -12,40 +12,47 @@ const currentRouteName = router.currentRoute.value.name;
|
|||
const currentRoute = ref(currentRouteName);
|
||||
const text = ref('');
|
||||
const tabManu = [
|
||||
{name: 'metadata',label:'ข้อมูลหลัก',path: 'metadata',},
|
||||
{name: 'metadata',label:'ข้อมูลหลัก',path: 'metadata'},
|
||||
{name: 'organizational',label:'โครงสร้างอัตรากำลัง',path: 'organizational'},
|
||||
{name: '3',label:'ทะเบียนประวัติ',path: ''},
|
||||
{name: '4',label:'ทะเบียนประวัติลูกจ้าง',path: ''},
|
||||
{name: '5',label:'ออกคำสั่ง',path: ''},
|
||||
{name: '6',label:'สรรหา',path: ''},
|
||||
{name: '3',label:'ทะเบียนประวัติ',path: 'registration'},
|
||||
{name: '4',label:'ทะเบียนประวัติลูกจ้าง',path: 'registemployee'},
|
||||
{name: '5',label:'ออกคำสั่ง',path: 'order'},
|
||||
{name: '6',label:'สรรหา',path: 'recruitmain'},
|
||||
];
|
||||
const tabManu2 = [
|
||||
{name: '7',label:'บรรจุ แต่งตั้ง ย้าย โอน',path: ''},
|
||||
{name: '8',label:'พ้นราชการ',path: ''},
|
||||
{name: '9',label:'เครื่องราชฯ',path: ''},
|
||||
{name: '7',label:'บรรจุ แต่งตั้ง ย้าย โอน',path: 'placement'},
|
||||
{name: '8',label:'พ้นราชการ',path: 'retirement'},
|
||||
{name: '9',label:'เครื่องราชฯ',path: 'insignia'},
|
||||
{name: '10',label:'การลา',path: ''},
|
||||
{name: '11',label:'วินัย',path: ''},
|
||||
];
|
||||
|
||||
const mainmenu = [
|
||||
{text: 'ข้อมูลหลัก', icon:'mdi-account-outline', path: 'metadata'},
|
||||
{text: 'โครงสร้างอัตรากำลัง', icon:'mdi-account-group-outline',path: 'organizational'},
|
||||
{text: 'ทะเบียนประวัติ', icon:'mdi-file-account-outline',path: 'registration'},
|
||||
{text: 'ทะเบียนประวัติลูกจ้าง', icon:'mdi-file-account-outline',path: 'organizational'},
|
||||
{text: 'ออกคำสั่ง', icon:'mdi-file-certificate-outline',path: 'organizational'},
|
||||
{text: 'สรรหา', icon:'mdi-magnify',path: 'organizational'},
|
||||
{text: 'บรรจุ แต่งตั้ง ย้าย โอน', icon:'mdi-account-check',path: 'organizational'},
|
||||
{text: 'พ้นราชการ', icon:'mdi-account-cancel-outline',path: 'organizational'},
|
||||
{text: 'เครื่องราชฯ', icon:'mdi-medal-outline',path: 'organizational'},
|
||||
{text: 'การลา', icon:'mdi-calendar',path: 'organizational'},
|
||||
{text: 'วินัย', icon:'mdi-scale-balance',path: 'organizational'}
|
||||
{text: 'ข้อมูลหลัก',img: new URL('../assets/icon/1_metadata.png', import.meta.url).href , icon:'mdi-account-outline', path: 'metadata'},
|
||||
{text: 'โครงสร้างอัตรากำลัง',img: new URL('../assets/icon/2_organizational.png', import.meta.url).href, icon:'mdi-account-group-outline',path: 'organizational'},
|
||||
{text: 'ทะเบียนประวัติ',img: new URL('../assets/icon/3_registry.png', import.meta.url).href, icon:'mdi-file-account-outline',path: 'registration'},
|
||||
{text: 'ทะเบียนประวัติลูกจ้าง',img: new URL('../assets/icon/4_registry-employee.png', import.meta.url).href, icon:'mdi-file-account-outline',path: 'registemployee'},
|
||||
{text: 'ออกคำสั่ง',img: new URL('../assets/icon/5_order.png', import.meta.url).href, icon:'mdi-file-certificate-outline',path: 'order'},
|
||||
{text: 'สรรหา',img: new URL('../assets/icon/6_recruitmain.png', import.meta.url).href, icon:'mdi-magnify',path: 'recruitmain'},
|
||||
{text: 'บรรจุ แต่งตั้ง ย้าย โอน',img: new URL('../assets/icon/7_placement.png', import.meta.url).href, icon:'mdi-account-check',path: 'placement'},
|
||||
{text: 'พ้นราชการ',img: new URL('../assets/icon/8_retirement.png', import.meta.url).href, icon:'แ',path: 'retirement'},
|
||||
{text: 'เครื่องราชฯ',img: new URL('../assets/icon/9_insignia.png', import.meta.url).href, icon:'mdi-medal-outline',path: 'insignia'},
|
||||
/* {text: 'การลา',img: new URL('../assets/.png', import.meta.url).href, icon:'mdi-calendar',path: 'organizational'},
|
||||
{text: 'วินัย',img: new URL('../assets/.png', import.meta.url).href, icon:'mdi-scale-balance',path: 'organizational'} */
|
||||
];
|
||||
|
||||
|
||||
const mainmanual = [
|
||||
{text: 'คู่มือการใช้งาน', icon:'mdi-account-outline', path: 'metadata'}
|
||||
/*{text: 'คู่มือการใช้งาน', icon:'mdi-account-outline', path: 'metadata'},*/
|
||||
{text: 'คู่มือการใช้งาน',img: new URL('../assets/icon/00_manual.png', import.meta.url).href, icon:'mdi-book-open-page-variant'},
|
||||
];
|
||||
|
||||
const mainmaintenance = [
|
||||
/*{text: 'คู่มือการใช้งาน', icon:'mdi-account-outline', path: 'metadata'},*/
|
||||
{text: 'ดูแลรักษาระบบ',img: new URL('../assets/icon/00_manual.png', import.meta.url).href, icon:'mdi-laptop',path: 'maintenance'}
|
||||
];
|
||||
|
||||
|
||||
const redirectToManual = () => {
|
||||
const newTab = window.open('https://bma-ehr-manual.frappet.synology.me/', '_blank');
|
||||
if (newTab) {
|
||||
|
|
@ -153,8 +160,11 @@ window.onpopstate = function() {
|
|||
:key="index"
|
||||
>
|
||||
<q-card class="connn q-pa-md row justify-center text-dark cursor-pointer cardmenu" @click="clickMain(menu.path)" ><!-- router.push({ name: `${}`}) -->
|
||||
<q-icon class="col-12 items-center" size="40px" :name="`${menu.icon}`"/>
|
||||
<div class="q-pt-md">{{ menu.text }} </div>
|
||||
<!-- <q-icon class="col-12 items-center" size="40px" :name="`${menu.icon}`"/> -->
|
||||
<q-avatar rounded size="60px">
|
||||
<q-img :src="menu.img" />
|
||||
</q-avatar>
|
||||
<div class="col-12 q-pt-md text-center">{{ menu.text }} </div>
|
||||
</q-card>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -186,7 +196,6 @@ window.onpopstate = function() {
|
|||
|
||||
|
||||
|
||||
|
||||
<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>
|
||||
|
|
@ -194,7 +203,7 @@ window.onpopstate = function() {
|
|||
<div class="col-12 row q-col-gutter-lg">
|
||||
|
||||
<div class="col-xs-12 col-sm-12"
|
||||
v-for="(menu , index) in mainmanual"
|
||||
v-for="(menu , index) in mainmaintenance"
|
||||
:key="index"
|
||||
>
|
||||
|
||||
|
|
@ -259,7 +268,7 @@ window.onpopstate = function() {
|
|||
</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="primary" />
|
||||
<q-btn fab icon="keyboard_arrow_up" color="blue" />
|
||||
</q-page-scroller>
|
||||
</q-page-container>
|
||||
</q-layout>
|
||||
|
|
@ -345,6 +354,4 @@ window.onpopstate = function() {
|
|||
color: #02A998;
|
||||
}
|
||||
|
||||
|
||||
|
||||
</style>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue