fix bug ข้อมูลหลัก ตัวชี้วัด
This commit is contained in:
parent
e100ac0ec3
commit
cf6aae6bdd
5 changed files with 7 additions and 22 deletions
|
|
@ -298,7 +298,6 @@ onMounted(() => {
|
||||||
autoApply
|
autoApply
|
||||||
year-picker
|
year-picker
|
||||||
:enableTimePicker="false"
|
:enableTimePicker="false"
|
||||||
@update:modelValue="planData.period = ''"
|
|
||||||
>
|
>
|
||||||
<template #year="{ year }">{{ year + 543 }}</template>
|
<template #year="{ year }">{{ year + 543 }}</template>
|
||||||
<template #year-overlay-value="{ value }">{{
|
<template #year-overlay-value="{ value }">{{
|
||||||
|
|
@ -326,10 +325,7 @@ onMounted(() => {
|
||||||
v-if="year"
|
v-if="year"
|
||||||
name="cancel"
|
name="cancel"
|
||||||
class="cursor-pointer"
|
class="cursor-pointer"
|
||||||
@click.stop.prevent="
|
@click.stop.prevent="year = 0"
|
||||||
year = 0;
|
|
||||||
planData.period = '';
|
|
||||||
"
|
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</q-input>
|
</q-input>
|
||||||
|
|
@ -339,7 +335,6 @@ onMounted(() => {
|
||||||
<div class="col-2">
|
<div class="col-2">
|
||||||
<q-select
|
<q-select
|
||||||
ref="inputRef"
|
ref="inputRef"
|
||||||
:readonly="year == 0"
|
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
v-model="planData.period"
|
v-model="planData.period"
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,6 @@ const form = reactive<FormDataRole>({
|
||||||
meaning: "", //นิยามหรือความหมาย
|
meaning: "", //นิยามหรือความหมาย
|
||||||
formula: "", //สูตรคำนวณ
|
formula: "", //สูตรคำนวณ
|
||||||
documentInfoEvidence: "", //ข้อมูลเอกสารหลักฐาน
|
documentInfoEvidence: "", //ข้อมูลเอกสารหลักฐาน
|
||||||
|
|
||||||
node: null,
|
node: null,
|
||||||
nodeId: null,
|
nodeId: null,
|
||||||
orgRevisionId: null,
|
orgRevisionId: null,
|
||||||
|
|
@ -125,7 +124,7 @@ function onSubmit() {
|
||||||
: config.API.kpiRoleMainList;
|
: config.API.kpiRoleMainList;
|
||||||
|
|
||||||
const body = {
|
const body = {
|
||||||
year: form.year == 0 ? null:form.year?.toString(),
|
year: form.year == 0 ? null : form.year?.toString(),
|
||||||
position: form.position, //ตำแหน่ง
|
position: form.position, //ตำแหน่ง
|
||||||
period: form.round, //รอบการประเมิน(เมษา->APR, ตุลา->OCT)
|
period: form.round, //รอบการประเมิน(เมษา->APR, ตุลา->OCT)
|
||||||
includingName: form.includingName, //ชื่อตัวชี้วัด
|
includingName: form.includingName, //ชื่อตัวชี้วัด
|
||||||
|
|
@ -184,7 +183,7 @@ function getDetail() {
|
||||||
form.weight = data.weight;
|
form.weight = data.weight;
|
||||||
form.meaning = data.meaning;
|
form.meaning = data.meaning;
|
||||||
form.formula = data.formula;
|
form.formula = data.formula;
|
||||||
form.documentInfoEvidence = data.documentInfoEvidence
|
form.documentInfoEvidence = data.documentInfoEvidence;
|
||||||
|
|
||||||
formScore.score1 = data.achievement1;
|
formScore.score1 = data.achievement1;
|
||||||
formScore.score2 = data.achievement2;
|
formScore.score2 = data.achievement2;
|
||||||
|
|
@ -321,7 +320,6 @@ onMounted(() => {
|
||||||
autoApply
|
autoApply
|
||||||
year-picker
|
year-picker
|
||||||
:enableTimePicker="false"
|
:enableTimePicker="false"
|
||||||
@update:model-value="form.round = ''"
|
|
||||||
>
|
>
|
||||||
<template #year="{ year }">{{ year + 543 }}</template>
|
<template #year="{ year }">{{ year + 543 }}</template>
|
||||||
<template #year-overlay-value="{ value }">{{
|
<template #year-overlay-value="{ value }">{{
|
||||||
|
|
@ -350,10 +348,7 @@ onMounted(() => {
|
||||||
v-if="form.year"
|
v-if="form.year"
|
||||||
name="cancel"
|
name="cancel"
|
||||||
class="cursor-pointer"
|
class="cursor-pointer"
|
||||||
@click.stop.prevent="
|
@click.stop.prevent="form.year = 0"
|
||||||
form.year = 0;
|
|
||||||
form.round = '';
|
|
||||||
"
|
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</q-input>
|
</q-input>
|
||||||
|
|
@ -362,7 +357,6 @@ onMounted(() => {
|
||||||
</div>
|
</div>
|
||||||
<div class="col-2">
|
<div class="col-2">
|
||||||
<q-select
|
<q-select
|
||||||
:readonly="form.year == 0"
|
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
v-model="form.round"
|
v-model="form.round"
|
||||||
|
|
|
||||||
|
|
@ -28,14 +28,14 @@ interface FormDataRole {
|
||||||
includingName: string;
|
includingName: string;
|
||||||
target: string;
|
target: string;
|
||||||
unit: string;
|
unit: string;
|
||||||
weight: number | null;
|
weight: string;
|
||||||
meaning: string;
|
meaning: string;
|
||||||
formula: string;
|
formula: string;
|
||||||
documentInfoEvidence: string;
|
documentInfoEvidence: string;
|
||||||
node: number | null;
|
node: number | null;
|
||||||
nodeId: string | null;
|
nodeId: string | null;
|
||||||
orgRevisionId: string | null;
|
orgRevisionId: string | null;
|
||||||
date: [null, null];
|
date?: [null, null];
|
||||||
}
|
}
|
||||||
|
|
||||||
interface FormCompetency {
|
interface FormCompetency {
|
||||||
|
|
|
||||||
|
|
@ -325,7 +325,6 @@ onMounted(async () => {
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
v-model="nodeData.round"
|
v-model="nodeData.round"
|
||||||
:model-value="nodeData.round === '' ? 'ทั้งหมด' : nodeData.round"
|
|
||||||
:options="roundOp"
|
:options="roundOp"
|
||||||
label="รอบการประเมิน"
|
label="รอบการประเมิน"
|
||||||
option-label="name"
|
option-label="name"
|
||||||
|
|
|
||||||
|
|
@ -338,9 +338,7 @@ onMounted(async () => {
|
||||||
autoApply
|
autoApply
|
||||||
year-picker
|
year-picker
|
||||||
:enableTimePicker="false"
|
:enableTimePicker="false"
|
||||||
@update:model-value="
|
@update:model-value="(formFilter.page = 1), fetchList()"
|
||||||
(formFilter.page = 1), (formFilter.round = ''), fetchList()
|
|
||||||
"
|
|
||||||
>
|
>
|
||||||
<template #year="{ year }">{{ year + 543 }}</template>
|
<template #year="{ year }">{{ year + 543 }}</template>
|
||||||
<template #year-overlay-value="{ value }">{{
|
<template #year-overlay-value="{ value }">{{
|
||||||
|
|
@ -382,7 +380,6 @@ onMounted(async () => {
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
v-model="formFilter.round"
|
v-model="formFilter.round"
|
||||||
:model-value="formFilter.round === '' ? 'ทั้งหมด' : formFilter.round"
|
|
||||||
:options="roundOp"
|
:options="roundOp"
|
||||||
label="รอบการประเมิน"
|
label="รอบการประเมิน"
|
||||||
option-label="name"
|
option-label="name"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue