diff --git a/src/modules/08_KPI/components/Tab/01_Assessment.vue b/src/modules/08_KPI/components/Tab/01_Assessment.vue index 670e826..e3b7464 100644 --- a/src/modules/08_KPI/components/Tab/01_Assessment.vue +++ b/src/modules/08_KPI/components/Tab/01_Assessment.vue @@ -407,16 +407,6 @@ onMounted(() => {
องค์ประกอบที่ 2 พฤติกรรมการปฎิบัติราชการ (สมรรถนะ) - - เกณฑ์การประเมิน -
diff --git a/src/modules/08_KPI/components/Tab/04_Result.vue b/src/modules/08_KPI/components/Tab/04_Result.vue index b719c25..60edefc 100644 --- a/src/modules/08_KPI/components/Tab/04_Result.vue +++ b/src/modules/08_KPI/components/Tab/04_Result.vue @@ -1,3 +1,390 @@ + + diff --git a/src/modules/08_KPI/components/Tab/Dialog/DialogCommentProblem.vue b/src/modules/08_KPI/components/Tab/Dialog/DialogCommentProblem.vue index 9f53be6..10ddfd6 100644 --- a/src/modules/08_KPI/components/Tab/Dialog/DialogCommentProblem.vue +++ b/src/modules/08_KPI/components/Tab/Dialog/DialogCommentProblem.vue @@ -56,7 +56,8 @@ const formDataView = reactive({ id: "", topic: "", reason: "", - + createdFullName: "", + score: "", reasonEvaluator: "", reasonCommander: "", reasonCommanderHigh: "", diff --git a/src/modules/08_KPI/components/Tab/Dialog/DialogCommentProgress.vue b/src/modules/08_KPI/components/Tab/Dialog/DialogCommentProgress.vue index 04a9577..692c697 100644 --- a/src/modules/08_KPI/components/Tab/Dialog/DialogCommentProgress.vue +++ b/src/modules/08_KPI/components/Tab/Dialog/DialogCommentProgress.vue @@ -14,11 +14,13 @@ import { useRoute } from "vue-router"; import { useQuasar } from "quasar"; import { useKpiDataStore } from "@/modules/08_KPI/store"; +const numLevel = ref(""); const store = useKpiDataStore(); const $q = useQuasar(); const mixin = useCounterMixin(); const { dialogConfirm, showLoader, hideLoader, messageError, success } = mixin; +const rows = defineModel("rows"); const modal = defineModel("modal", { required: true }); const type = defineModel("type", { required: true }); const idList = defineModel("idList", { required: true }); @@ -45,7 +47,8 @@ const formDataView = reactive({ id: "", topic: "", reason: "", - + createdFullName: "", + score: "", reasonEvaluator: "", reasonCommander: "", reasonCommanderHigh: "", @@ -58,6 +61,8 @@ function clickList(index: string, data: any) { formDataView.id = data.id; formDataView.topic = data.topic; formDataView.reason = data.reason; + formDataView.createdFullName = data.createdFullName; + formDataView.score = data.score; formDataView.reasonEvaluator = data.reasonEvaluator; formDataView.reasonCommander = data.reasonCommander; @@ -93,6 +98,7 @@ function onSubmitAdd() { { reason: formDataAdd.reason, topic: formDataAdd.topic, + score: type.value == "capacity" ? undefined : numLevel.value, } ) .then((res) => { @@ -197,6 +203,7 @@ function onSubmitComment(role: string) { }); }); } + watch( () => modal.value, () => { @@ -210,7 +217,14 @@ watch( - + - เพิ่มความก้าวหน้า + {{ + type == "capacity" || type == "development" + ? "เพิ่มเหตุการณ์/พฤติกรรม" + : "เพิ่มความก้าวหน้า" + }}
- ความก้าวหน้า + {{ + type == "capacity" || type == "development" + ? "เหตุการณ์/พฤติกรรม" + : "ความก้าวหน้า" + }}
@@ -295,13 +317,36 @@ watch(
-
หัวข้อความก้าวหน้า
+
+ {{ + type == "capacity" || type == "development" + ? "เหตุการณ์/พฤติกรรม" + : "หัวข้อความก้าวหน้า" + }} +
{{ formDataView.topic }}
-
รายละเอียดความก้าวหน้า
+
+ {{ + type == "capacity" || type == "development" + ? "รายละเอียด" + : "รายละเอียดความก้าวหน้า" + }} +
{{ formDataView.reason }}
+
+
คะแนน
+
{{ formDataView.score }}
+
+
+
ผู้สร้าง
+
{{ formDataView.createdFullName }}
+
@@ -469,7 +514,14 @@ watch( - + @@ -479,11 +531,30 @@ watch( v-model="formDataAdd.topic" outlined class="inputgreen" - label="หัวข้อความก้าวหน้า" + :label=" + type == 'capacity' || type == 'development' + ? 'เหตุการณ์/พฤติกรรม' + : 'หัวข้อความก้าวหน้า' + " dense lazy-rules hide-bottom-space - :rules="[(val:string) => !!val || `${'กรุณากรอกหัวข้อความก้าวหน้า'}`,]" + :rules="[(val:string) => !!val || `${type == 'capacity'||type == 'development' ? 'กรุณากรอกเหตุการณ์/พฤติกรรม':'กรุณากรอกหัวข้อความก้าวหน้า' }`,]" + /> +
+
+
@@ -491,11 +562,14 @@ watch( v-model="formDataAdd.reason" outlined class="inputgreen" - label="รายละเอียดความก้าวหน้า" + :label=" + type == 'capacity' || type == 'development' + ? 'รายละเอียด' + : 'รายละเอียดความก้าวหน้า' + " dense lazy-rules hide-bottom-space - :rules="[(val:string) => !!val || `${'กรุณากรอกรายละเอียดความก้าวหน้า'}`,]" type="textarea" />
@@ -520,4 +594,20 @@ watch( background: #ebf9f7 !important; color: #1bb19ab8 !important; } + +.q-btn-group--outline > .q-btn-item:not(:last-child):before { + border-right: 1px solid #c4c4c4; +} +.q-btn-group--outline > .q-btn-item.active { + color: #2196f3 !important; + background-color: #cde6fb !important; +} +.q-btn-group--outline > .q-btn-item + .q-btn-item.active:before { + border-left: 1px solid #2196f3 !important; + background-color: #cde6fb; +} +.q-btn-group--outline > .q-btn-item.active:not(:last-child):before { + border: 1px solid #2196f3; + background-color: #cde6fb; +} diff --git a/src/modules/08_KPI/components/Tab/Dialog/DialogCompetncyByRow.vue b/src/modules/08_KPI/components/Tab/Dialog/DialogCompetncyByRow.vue new file mode 100644 index 0000000..edcf075 --- /dev/null +++ b/src/modules/08_KPI/components/Tab/Dialog/DialogCompetncyByRow.vue @@ -0,0 +1,195 @@ + + + + + diff --git a/src/modules/08_KPI/components/Tab/Dialog/DialogLevel.vue b/src/modules/08_KPI/components/Tab/Dialog/DialogLevel.vue new file mode 100644 index 0000000..4ca44b3 --- /dev/null +++ b/src/modules/08_KPI/components/Tab/Dialog/DialogLevel.vue @@ -0,0 +1,178 @@ + + + + + diff --git a/src/modules/08_KPI/components/Tab/Dialog/DialogStatus.vue b/src/modules/08_KPI/components/Tab/Dialog/DialogStatus.vue index 49037a3..40ff1f5 100644 --- a/src/modules/08_KPI/components/Tab/Dialog/DialogStatus.vue +++ b/src/modules/08_KPI/components/Tab/Dialog/DialogStatus.vue @@ -35,29 +35,29 @@ function close() { modal.value = false; } -// function getData() { -// showLoader(); -// http -// .get(config.API.orgPosition+`/${store.dataProfile.profileId}`) -// .then((res) => { -// const data = res.data.result.isProbation; -// work.value = data; -// }) -// .catch((e) => { -// messageError($q, e); -// }) -// .finally(() => { -// hideLoader(); -// }); -// } -// watch( -// () => modal.value, -// (n) => { -// if (n == true) { -// getData(); -// } -// } -// ); +function getData() { + showLoader(); + http + .get(config.API.orgPosition+`/${store.dataProfile.profileId}`) + .then((res) => { + const data = res.data.result.isProbation; + work.value = data; + }) + .catch((e) => { + messageError($q, e); + }) + .finally(() => { + hideLoader(); + }); +} +watch( + () => modal.value, + (n) => { + if (n == true) { + getData(); + } + } +);