updated
This commit is contained in:
parent
46b820deb2
commit
20eaec4c5e
3 changed files with 43 additions and 4 deletions
|
|
@ -191,6 +191,11 @@ function getData() {
|
||||||
.finally(() => {});
|
.finally(() => {});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ฟังก์ชันดาวน์โหลดรายงาน
|
||||||
|
*/
|
||||||
|
function downloadReport() {}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
getData();
|
getData();
|
||||||
fetchEvaluation();
|
fetchEvaluation();
|
||||||
|
|
@ -206,6 +211,21 @@ onMounted(() => {
|
||||||
<q-toolbar-title class="text-subtitle2 text-bold"
|
<q-toolbar-title class="text-subtitle2 text-bold"
|
||||||
>สรุปผลการประเมิน</q-toolbar-title
|
>สรุปผลการประเมิน</q-toolbar-title
|
||||||
>
|
>
|
||||||
|
<q-space />
|
||||||
|
|
||||||
|
<q-btn
|
||||||
|
v-if="store.dataEvaluation.evaluationStatus === 'COMPLETE'"
|
||||||
|
outline
|
||||||
|
flat
|
||||||
|
dense
|
||||||
|
color="blue"
|
||||||
|
icon="mdi-download"
|
||||||
|
size="12px"
|
||||||
|
class="q-mr-md"
|
||||||
|
@click="downloadReport"
|
||||||
|
>
|
||||||
|
<q-tooltip>ดาวน์โหลดแบบรายงานผลการปฏิบัติราชการ</q-tooltip>
|
||||||
|
</q-btn>
|
||||||
</q-toolbar>
|
</q-toolbar>
|
||||||
<q-separator />
|
<q-separator />
|
||||||
<q-card-section>
|
<q-card-section>
|
||||||
|
|
|
||||||
|
|
@ -277,12 +277,22 @@ watch(
|
||||||
<q-dialog v-model="modal" persistent>
|
<q-dialog v-model="modal" persistent>
|
||||||
<q-card class="col-12" style="width: 85%">
|
<q-card class="col-12" style="width: 85%">
|
||||||
<q-form greedy @submit.prevent @validation-success="onSubmit">
|
<q-form greedy @submit.prevent @validation-success="onSubmit">
|
||||||
<DialogHeader :tittle="`เพิ่มสมรรถนะ`" :close="closeDialog" />
|
<DialogHeader
|
||||||
|
:tittle="
|
||||||
|
competencyType == 'HEAD' || competencyType == 'GROUP'
|
||||||
|
? `รายละเอียดสมรรถนะ`
|
||||||
|
: `เพิ่มสมรรถนะ`
|
||||||
|
"
|
||||||
|
:close="closeDialog"
|
||||||
|
/>
|
||||||
<q-separator />
|
<q-separator />
|
||||||
|
|
||||||
<q-card-section class="q-pa-none scroll" style="max-height: 80vh">
|
<q-card-section class="q-pa-none scroll" style="max-height: 80vh">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="bg-grey-1 q-pa-md col-xs-12 col-md-3 row lineRight">
|
<div
|
||||||
|
v-if="competencyType != 'HEAD' && competencyType != 'GROUP'"
|
||||||
|
class="bg-grey-1 q-pa-md col-xs-12 col-md-3 row lineRight"
|
||||||
|
>
|
||||||
<div class="col-12 q-col-gutter-sm fit">
|
<div class="col-12 q-col-gutter-sm fit">
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<q-select
|
<q-select
|
||||||
|
|
@ -362,7 +372,13 @@ watch(
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-xs-12 col-md-9 q-pa-md q-col-gutter-sm">
|
<div
|
||||||
|
:class="
|
||||||
|
competencyType == 'HEAD' || competencyType == 'GROUP'
|
||||||
|
? `col-xs-12 col-md-12 q-pa-md q-col-gutter-sm`
|
||||||
|
: `col-xs-12 col-md-9 q-pa-md q-col-gutter-sm`
|
||||||
|
"
|
||||||
|
>
|
||||||
<span class="text-body2 text-weight-medium"
|
<span class="text-body2 text-weight-medium"
|
||||||
>รายละเอียดสมรรถนะ</span
|
>รายละเอียดสมรรถนะ</span
|
||||||
>
|
>
|
||||||
|
|
|
||||||
|
|
@ -468,7 +468,10 @@ onMounted(() => {
|
||||||
color="info"
|
color="info"
|
||||||
@click.stop.pervent="onEdit(props.row, item.id)"
|
@click.stop.pervent="onEdit(props.row, item.id)"
|
||||||
>
|
>
|
||||||
<q-tooltip>แก้ไข </q-tooltip>
|
<q-tooltip v-if="item.id == 'HEAD' || item.id == 'GROUP'"
|
||||||
|
>ดูรายละเอียด</q-tooltip
|
||||||
|
>
|
||||||
|
<q-tooltip v-else>แก้ไข</q-tooltip>
|
||||||
</q-btn>
|
</q-btn>
|
||||||
<q-btn
|
<q-btn
|
||||||
flat
|
flat
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue