diff --git a/src/modules/14_KPI/components/competency/Forms/01_FormMain.vue b/src/modules/14_KPI/components/competency/Forms/01_FormMain.vue index fb01b5b5f..46ddf6a67 100644 --- a/src/modules/14_KPI/components/competency/Forms/01_FormMain.vue +++ b/src/modules/14_KPI/components/competency/Forms/01_FormMain.vue @@ -1,6 +1,21 @@ div @@ -97,33 +132,46 @@ function onSubmit() { {{ items.level }}
- !!val || 'กรุณากรอกมาตรฐานพฤติกรรม']" + hide-bottom-space + > + +
@@ -136,8 +184,6 @@ function onSubmit() { dense type="textarea" outlined - :rules="[(val:string) => !!val || `${'กรุณากรอกกำหนดเกณฑ์การประเมิน'}`,]" - hide-bottom-space />
diff --git a/src/modules/14_KPI/components/competency/Forms/02_FormGroup.vue b/src/modules/14_KPI/components/competency/Forms/02_FormGroup.vue index 72cc3e0f3..72b8a33cf 100644 --- a/src/modules/14_KPI/components/competency/Forms/02_FormGroup.vue +++ b/src/modules/14_KPI/components/competency/Forms/02_FormGroup.vue @@ -1,5 +1,18 @@ @@ -48,7 +85,14 @@ function onSubmit() {
- +
@@ -79,33 +125,46 @@ function onSubmit() { {{ fieldLabels[field as keyof typeof fieldLabels] }}
- !!val || 'กรุณากรอกมาตรฐานพฤติกรรม']" + hide-bottom-space + > + +
diff --git a/src/modules/14_KPI/components/competency/Forms/03_FormExecutive.vue b/src/modules/14_KPI/components/competency/Forms/03_FormExecutive.vue index 09085cba9..bb3d0f493 100644 --- a/src/modules/14_KPI/components/competency/Forms/03_FormExecutive.vue +++ b/src/modules/14_KPI/components/competency/Forms/03_FormExecutive.vue @@ -1,15 +1,19 @@ @@ -51,34 +77,47 @@ async function onSubmit() {
- !!val || 'กรุณากรอกคำจำกัดความ']" + hide-bottom-space + > + +
diff --git a/src/modules/14_KPI/components/competency/Forms/05_FormExecutiveLevel.vue b/src/modules/14_KPI/components/competency/Forms/05_FormExecutiveLevel.vue index 51940f818..059917972 100644 --- a/src/modules/14_KPI/components/competency/Forms/05_FormExecutiveLevel.vue +++ b/src/modules/14_KPI/components/competency/Forms/05_FormExecutiveLevel.vue @@ -2,8 +2,9 @@ import { ref, reactive } from "vue"; import type { QTableProps } from "quasar"; import { useCounterMixin } from "@/stores/mixin"; -import { useQuasar } from "quasar"; +import { useKPIDataStore } from "@/modules/14_KPI/store/KPIStore"; import { useRouter } from "vue-router"; +import { useQuasar } from "quasar"; import http from "@/plugins/http"; import config from "@/app.config"; @@ -21,7 +22,7 @@ const { success, date2Thai, } = mixin; - +const store = useKPIDataStore(); const formData = reactive({ competencyType: "", competencyName: "", @@ -31,8 +32,29 @@ const formData = reactive({ evaluation: "", }); -async function onSubmit() { - dialogConfirm($q, async () => {}); +function onSubmit() { + dialogConfirm($q, () => { + const body = { + competencyType: store.competencyType, + competencyName: formData.competencyName, + definition: formData.definition, + levels1: formData.level1, + levels2: formData.level2, + evaluation: formData.evaluation, + }; + // showLoader() + // http + // .put(config.API.???,body) + // .then((res)=>{ + // success($q,'บันทึกสำเร็จ') + // router.push(`/KPI-competency`) + // }).catch((e)=>{ + // messageError($q,e) + // }).finally(()=>{ + // hideLoader() + // }) + console.log(body); + }); } @@ -51,34 +73,47 @@ async function onSubmit() {
- !!val || 'กรุณากรอกคำจำกัดความ']" + hide-bottom-space + > + +
diff --git a/src/style/quasar-variables.sass b/src/style/quasar-variables.sass index 070d6407e..06edabb4e 100644 --- a/src/style/quasar-variables.sass +++ b/src/style/quasar-variables.sass @@ -136,6 +136,9 @@ $muti-tab: #87d4cc .q-tree color: #c8d3db +.q_field_p_none .q-field__control-container + padding-top: 0 !important + .input-alert .q-field--outlined .q-field__control border: 1px solid red !important background-color: rgb(255, 216, 216)