diff --git a/src/modules/08_KPI/components/Tab/01_Assessment.vue b/src/modules/08_KPI/components/Tab/01_Assessment.vue index 77115fb..98317e2 100644 --- a/src/modules/08_KPI/components/Tab/01_Assessment.vue +++ b/src/modules/08_KPI/components/Tab/01_Assessment.vue @@ -4,8 +4,7 @@ import { useQuasar, type QTableProps } from "quasar"; import { useRoute } from "vue-router"; import DialogListCriteria from "@/modules/08_KPI/components/Tab/Dialog/DialogListCriteria.vue"; -import DialogDevelop from '@/modules/08_KPI/components/Tab/Dialog/DialogDevelop.vue' - +import DialogDevelop from "@/modules/08_KPI/components/Tab/Dialog/DialogDevelop.vue"; import config from "@/app.config"; import http from "@/plugins/http"; @@ -18,7 +17,6 @@ import { useKpiDataStore } from "@/modules/08_KPI/store"; import type { ListCriteria } from "@/modules/08_KPI/interface/request/index"; - const indicatorScore = defineModel("indicatorScore", { type: Number, default: 0, @@ -249,13 +247,13 @@ watch( ); function onAdd() { - modalDevelop.value = true - editDevelop.value = false + modalDevelop.value = true; + editDevelop.value = false; } function onEdit(id: string) { - modalDevelop.value = true - editDevelop.value = true + modalDevelop.value = true; + editDevelop.value = true; } function onDelete(id: string) {} @@ -462,8 +460,7 @@ onMounted(() => { v-model:dataListCriteria="dataListCriteria" /> - - + 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..9508edc 100644 --- a/src/modules/08_KPI/components/Tab/Topic/01_Indicator.vue +++ b/src/modules/08_KPI/components/Tab/Topic/01_Indicator.vue @@ -36,14 +36,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", @@ -124,7 +128,7 @@ 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; // } @@ -191,7 +195,10 @@ watch(
{{ title }} เพิ่มข้อมูล
- + @@ -242,14 +252,35 @@ watch( {{ col.label }} - + 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 }} - +