ปรับ ui ระบบบรรจุ > บันทึกผลการทดลองปฏิบัติหน้าที่ราชการ > /probation/work/1

This commit is contained in:
Tanyalak 2023-07-20 15:17:01 +07:00
parent 6b80d6804f
commit 7944b49d8a
3 changed files with 157 additions and 14 deletions

View file

@ -0,0 +1,141 @@
<template>
<!-- <div class="toptitle text-dark col-12 row items-center">ดการบญช 2</div> -->
<q-card flat bordered class="col-12">
<q-layout
view="hHh Lpr lff"
container
class="shadow-2 rounded-borders page-relative"
style="height: 82vh"
>
<q-header class="bg-grey-1">
<q-toolbar>
<div class="text-h6 text-weight-medium text-dark col-12 row items-center q-py-md">
<q-btn
icon="mdi-arrow-left"
unelevated
round
dense
flat
color="primary"
class="q-mr-sm"
@click="router.go(-1)"
/>
นทกผลการทดลองปฏหนาทราชการของ นายสมค ยอดใจ
</div>
</q-toolbar>
<q-separator/>
</q-header>
<q-drawer
v-model="drawer"
show-if-above
:width="150"
:breakpoint="500"
class="bg-grey-1"
bordered
>
<q-scroll-area class="fit" :horizontal-thumb-style="{ opacity: 0 }">
<q-list class="text-grey-7">
<q-item
dense
active
class="q-py-sm"
active-class="text-primary bg-teal-1 text-weight-medium"
clickable
v-ripple>
<q-item-section avatar style="min-width: 40px">
<q-icon size="18px" name="mdi-file-edit" />
</q-item-section>
<q-item-section>
นทกผล
</q-item-section>
</q-item>
<q-item
active-class="text-primary bg-teal-1 text-weight-medium"
clickable
class="q-py-sm"
dense
v-ripple>
<q-item-section avatar style="min-width: 40px">
<q-icon size="18px" name="mdi-file-star" />
</q-item-section>
<q-item-section>
ประเมนผล
</q-item-section>
</q-item>
<q-item
active-class="text-primary bg-teal-1 text-weight-medium"
clickable
class="q-py-sm"
dense
v-ripple>
<q-item-section avatar style="min-width: 40px">
<q-icon size="18px" name="mdi-file-chart" />
</q-item-section>
<q-item-section>
รายการ
</q-item-section>
</q-item>
</q-list>
</q-scroll-area>
</q-drawer>
<q-page-container>
<q-layout
view="hHh Lpr lff"
container
style="height: 72vh"
>
<q-header class="bg-grey-1">
<div class="bg-grey-1">
<div class="col-12 row q-gutter-x-md items-center">
<q-tabs dense v-model="tab" active-class="text-primary text-weight-medium" indicator-color="grey-1" class="text-grey-7">
<q-tab name="save1" label="บันทึกผลครั้งที่ 1" />
<q-tab name="save2" label="บันทึกผลครั้งที่ 2" />
<q-tab name="save3" label="บันทึกผลครั้งที่ 3" />
</q-tabs>
<div>
<q-btn color="blue" flat dense icon="mdi-plus">
<q-tooltip>
เพมบนทกผลการทดลอง
</q-tooltip>
</q-btn>
</div>
</div>
<q-separator/>
</div>
</q-header>
<q-page-container>
<div class="col-12 row">
<Form />
</div>
</q-page-container>
</q-layout>
</q-page-container>
</q-layout>
</q-card>
</template>
<script setup lang="ts">
import { useRouter } from "vue-router";
import { ref } from "vue";
import Form from "@/modules/05_placement/components/probation/form.vue";
const router = useRouter();
const drawer = ref<boolean>(true);
const tab = ref('save1');
</script>
<style lang="scss" scope>
.btn-absolute {
z-index: 50;
position: absolute;
left: 200px;
top: 10px;
}
.btnShadow {
box-shadow: 0 1px 2px rgb(0 0 0 / 10%), 3px 3px 7px 1px rgba(95, 95, 95, 0.15) !important;
}
</style>

View file

@ -1,7 +1,7 @@
<!-- card อมลสวนต -->
<template>
<div class="q-pb-md">
<div class="toptitle text-dark col-12 row items-center">
<!-- <div class="toptitle text-dark col-12 row items-center">
<q-btn
icon="mdi-arrow-left"
unelevated
@ -13,26 +13,26 @@
@click="router.go(-1)"
/>
ฟอรมแบบประเมนสำหรบผแล
</div>
<q-card bordered class="col-12 text-dark">
</div> -->
<div class="col-12 text-dark">
<div class="row col-12 q-pa-lg">
<div class="row col-12 q-gutter-lg">
<div class="col-12 row">
<div class="col-12 text-top0 row items-center ">
<q-icon name="mdi-label" color="grey-4" class="q-pr-sm" />
นเรมทดลองปฎหนาทราชการ งแตนท
<span class="text-primary q-px-sm">{{date2Thai(dateToday)}}</span>
<span class="text-black q-px-sm">{{date2Thai(dateToday)}}</span>
งวนท
<span class="text-primary q-px-sm">{{date2Thai(dateEnd)}}</span>
<span class="text-black q-px-sm">{{date2Thai(dateEnd)}}</span>
</div>
<div class="col-12 text-top0 row items-center">
<q-icon name="mdi-label" color="grey-4" class="q-pr-sm" />
การทดลองปฏหนาทราชการมผล งน
<span class="text-primary q-px-sm">{{ "ครั้งที่" + period }}</span>
<span class="text-black q-px-sm">{{ "ครั้งที่" + period }}</span>
ระหวางวนท
<span class="text-primary q-px-sm">{{ date2Thai(dateToday)}}</span>
<span class="text-black q-px-sm">{{ date2Thai(dateToday)}}</span>
งวนท
<span class="text-primary q-px-sm">{{date2Thai(dateEnd)}}</span>
<span class="text-black q-px-sm">{{date2Thai(dateEnd)}}</span>
</div>
<div class="col-12 q-pt-md">
<q-separator size="3px" color="grey-2" />
@ -831,10 +831,10 @@
</div>
</div>
<q-separator />
<div class="flex justify-end q-pa-sm q-gutter-sm">
<q-btn unelevated label="บันทึก" color="public"/>
<div class="flex justify-end q-px-sm q-pt-sm">
<q-btn dense class="q-px-md" unelevated label="บันทึก" color="public"/>
</div>
</q-card>
</div>
</div>
</template>
<script setup lang="ts">
@ -845,7 +845,7 @@ import { useQuasar } from "quasar";
import router from "@/router";
const $q = useQuasar();
const ratingColors = [ 'light-green-3', 'light-green-6', 'green', 'green-9', 'green-10' ];
const ratingColors = [ 'light-blue-3', 'light-blue-6', 'blue', 'blue-9', 'blue-10' ];
const list1_1 = [
{id: '1', label: 'ผลผลิตของงานที่คาดหวัง 1'},
{id: '2', label: 'ผลผลิตของงานที่คาดหวัง 2'},
@ -944,5 +944,7 @@ const onReset = () => {
padding-bottom: 5px;
color: #02A998;
}
.q-rating__icon{
text-shadow: transparent !important;
}
</style>