diff --git a/src/modules/08_KPI/components/Tab/Dialog/01_FormIndicator.vue b/src/modules/08_KPI/components/Tab/Dialog/01_FormIndicator.vue index c6cdf50..cd4d865 100644 --- a/src/modules/08_KPI/components/Tab/Dialog/01_FormIndicator.vue +++ b/src/modules/08_KPI/components/Tab/Dialog/01_FormIndicator.vue @@ -16,7 +16,6 @@ const $q = useQuasar(); const route = useRoute(); const mixin = useCounterMixin(); const store = useKpiDataStore(); - const { showLoader, hideLoader, diff --git a/src/modules/08_KPI/components/Tab/Dialog/DialogViewInfo.vue b/src/modules/08_KPI/components/Tab/Dialog/DialogViewInfo.vue new file mode 100644 index 0000000..12c71e8 --- /dev/null +++ b/src/modules/08_KPI/components/Tab/Dialog/DialogViewInfo.vue @@ -0,0 +1,111 @@ +divdiv + + + + + diff --git a/src/modules/08_KPI/components/Tab/DialogEvaluate/01_Indicator.vue b/src/modules/08_KPI/components/Tab/DialogEvaluate/01_Indicator.vue index 16133de..429d1a7 100644 --- a/src/modules/08_KPI/components/Tab/DialogEvaluate/01_Indicator.vue +++ b/src/modules/08_KPI/components/Tab/DialogEvaluate/01_Indicator.vue @@ -126,9 +126,12 @@ function onSubmit() { dialogConfirm($q, async () => { try { showLoader(); + console.log(rows.value); + const formData = rows.value.map((e: any) => ({ id: e.id, point: e.point, + summary: ((e.point / 5) * e.weight).toFixed(2), })); const url = @@ -183,7 +186,29 @@ function onSubmit() {
- + + +
+ +
+
+
+ + +
{{ props.row.point ? `ระดับ ${props.row.point}` : "" }} @@ -283,4 +308,19 @@ function onSubmit() { top: 0; } } +.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/DialogEvaluate/02_Competenct.vue b/src/modules/08_KPI/components/Tab/DialogEvaluate/02_Competenct.vue index ae6c2a5..9299127 100644 --- a/src/modules/08_KPI/components/Tab/DialogEvaluate/02_Competenct.vue +++ b/src/modules/08_KPI/components/Tab/DialogEvaluate/02_Competenct.vue @@ -282,9 +282,14 @@ function onSubmit() { } .q-btn-group--outline > .q-btn-item.active { color: #2196f3 !important; - background-color: #fff; + 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/Topic/01_Indicator.vue b/src/modules/08_KPI/components/Tab/Topic/01_Indicator.vue index 5d34234..1427d89 100644 --- a/src/modules/08_KPI/components/Tab/Topic/01_Indicator.vue +++ b/src/modules/08_KPI/components/Tab/Topic/01_Indicator.vue @@ -10,6 +10,7 @@ import type { QTableProps } from "quasar"; import Dialog from "@/modules/08_KPI/components/Tab/Dialog/01_FormIndicator.vue"; import Dialog03 from "@/modules/08_KPI/components/Tab/Dialog/03_FormIndicatorSpecial.vue"; import DialogEvaluate from "@/modules/08_KPI/components/Tab/DialogEvaluate/01_Indicator.vue"; +import DialogViewInfo from "@/modules/08_KPI/components/Tab/Dialog/DialogViewInfo.vue"; import { useCounterMixin } from "@/stores/mixin"; import { useKpiDataStore } from "@/modules/08_KPI/store"; @@ -36,14 +37,18 @@ const props = defineProps({ fetchList: { type: Function, required: true }, }); -const visibleColumns = ref([ - "includingName", - "target", - "point", - "weight", - "achievement", - "evaluationResults", -]); +const visibleColumns = ref( + store.tabOpen === 3 + ? [ + "includingName", + "target", + "point", + "weight", + "achievement", + "evaluationResults", + ] + : ["includingName", "target", "weight"] +); const columns = ref([ { name: "includingName", @@ -119,17 +124,23 @@ const modal = ref(false); const modalAssigned = ref(false); const isStatusEdit = ref(false); const modalEvaluate = ref(false); +const modalViewInfo = ref(false); function onAdd(edit: boolean = false, id: string = "") { isStatusEdit.value = edit; kpiUserPlannedId.value = id; // if (numpage.value !== 3) { - modal.value = true; + modal.value = true; // } else if (numpage.value == 3) { // modalAssigned.value = true; // } } +function onClickView(id: string) { + kpiUserPlannedId.value = id; + modalViewInfo.value = true; +} + function onEvaluate() { modalEvaluate.value = true; } @@ -191,7 +202,10 @@ watch(
{{ title }} เพิ่มข้อมูล
- +
@@ -239,17 +256,52 @@ watch( > diff --git a/src/modules/08_KPI/components/Tab/Topic/02_Competency.vue b/src/modules/08_KPI/components/Tab/Topic/02_Competency.vue index 9963619..27abba3 100644 --- a/src/modules/08_KPI/components/Tab/Topic/02_Competency.vue +++ b/src/modules/08_KPI/components/Tab/Topic/02_Competency.vue @@ -230,7 +230,10 @@ onMounted(() => {
{{ item.name }} { { {{ col.label }} - +