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