-
หัวข้อความก้าวหน้า
+
+ {{
+ 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 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ col.label }}
+
+
+
+
+
+
+
+
+
+
+ {{ col.value }}
+
+
+
+
+
+
+
+
+
+
+ {{ col.label }}
+
+
+
+
+ {{
+ col.value ?? "-"
+ }}
+
+
+
+
+
+
+
+
+ ไม่พบข้อมูลสมรรถนะ
+
+
+
+
+
+
+
+
+
+
+
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 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ col.label }}
+
+
+
+
+
+
+
+
+
+
+ {{ col.value }}
+
+
+
+
+
+
+
+
+
+
+ {{ col.label }}
+
+
+
+
+ {{
+ col.value ?? "-"
+ }}
+
+
+
+
+
+
+
+
+ ไม่พบข้อมูลสมรรถนะ
+
+
+
+
+
+
+
+
+
+
+
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();
+ }
+ }
+);
diff --git a/src/modules/08_KPI/components/Tab/Topic/01_Indicator.vue b/src/modules/08_KPI/components/Tab/Topic/01_Indicator.vue
index ff6ad24..e1509c4 100644
--- a/src/modules/08_KPI/components/Tab/Topic/01_Indicator.vue
+++ b/src/modules/08_KPI/components/Tab/Topic/01_Indicator.vue
@@ -304,7 +304,7 @@ const isEditStep3 = computed(() => {
{
(false)
+const modalCompetncyByRow = ref(false);
+const dataCompetncyByRow = ref([]);
+const dataLevel = ref([]);
+const modalCriteria = ref(false);
const dataListCriteria = defineModel("dataListCriteria", {
required: true,
});
@@ -127,7 +135,6 @@ function getData(type: string) {
.then(async (res) => {
const data = res.data.result.data;
rows.value[type] = data;
- console.log("🚀 ~ .then ~ rows.value[type]:", rows.value[type])
lists.value = await lists.value.filter((x: any) => x.type != type);
lists.value.push({ type: type, data });
})
@@ -257,8 +264,18 @@ watch(
}
);
-function onInfo(){
+function onInfo() {
+ modalCriteria.value = true;
+}
+function onAchievement(data: any) {
+ modalCompetncyByRow.value = true;
+ dataCompetncyByRow.value = data;
+}
+
+function onLevel(num:number,list:any){
+ dataLevel.value = list.filter((i:any)=> i.level == num)
+ modalLevel.value = true
}
onMounted(() => {
@@ -277,7 +294,7 @@ onMounted(() => {
{{ item.name }}
{
- {{ col.label }}
+
+
+ เกณฑ์การประเมิน {{ col.label }}
+ {{ col.label }}
@@ -338,7 +367,7 @@ onMounted(() => {
color="info"
round
class="q-ml-xs"
- @click="onInfo"
+ @click="onAchievement(props.row.achievement)"
>
พฤติกรรมที่คาดหวัง/พฤติกรรมย่อย
@@ -374,6 +403,9 @@ onMounted(() => {
: "-"
}}
+
+
{{ props.row.level }}
+
{{ col.value }}
@@ -388,25 +420,13 @@ onMounted(() => {
- รายงานความก้าวหน้า
-
-
- รายงานปัญหา
+ บันทึกเหตุการณ์/พฤติกรรม
@@ -561,6 +581,21 @@ onMounted(() => {
v-model:type="type"
:idList="idList"
/>
+
+