updated text

This commit is contained in:
Warunee Tamkoo 2024-07-12 13:33:29 +07:00
parent 2519b7939c
commit b3752f8269
4 changed files with 25 additions and 13 deletions

View file

@ -81,8 +81,8 @@ const formDetail = reactive<any>({
/** Option รอบการประเมิน*/
const roundOp = ref<DataOptions[]>([
{ id: "APR", name: "รอบเมษายน" },
{ id: "OCT", name: "รอบตุลาคม" },
{ id: "APR", name: "รอบที่ 1 เมษายน" },
{ id: "OCT", name: "รอบที่ 2 ตุลาคม" },
]);
function fetchListPlan() {

View file

@ -31,7 +31,14 @@ const isReadonly = <boolean>(route.name === "KPIEditEvaluator" ? true : false);
const store = useKpiDataStore();
const $q = useQuasar();
const mixin = useCounterMixin();
const { showLoader, hideLoader, messageError, dialogConfirm, success } = mixin;
const {
showLoader,
hideLoader,
messageError,
dialogConfirm,
success,
findOrgName,
} = mixin;
const evaluatorIdOp = ref<DataOptions[]>([]);
const commanderIdOp = ref<DataOptions[]>([]);
@ -522,11 +529,16 @@ onMounted(async () => {
:style="$q.screen.gt.xs ? 'padding-left: 12%' : ''"
>
<div class="row col-12 items-center justify-center">
<span class="text-h6 text-weight-medium text-primary">{{
store.dataEvaluation.firstName
? `${store.dataEvaluation.prefix}${store.dataEvaluation.firstName} ${store.dataEvaluation.lastName}`
: ""
}}</span>
<div>
<span class="text-h6 text-weight-medium text-primary">{{
store.dataEvaluation.firstName
? `${store.dataEvaluation.prefix}${store.dataEvaluation.firstName} ${store.dataEvaluation.lastName}`
: ""
}}</span>
<p class="q-mb-none">
{{ findOrgName(store.dataProfile) }}
</p>
</div>
<q-space v-if="$q.screen.gt.xs" />
<div class="q-gutter-x-sm">

View file

@ -63,7 +63,7 @@ const columns = ref<QTableProps["columns"]>([
field: "durationKPI",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
format: (v) => (v == "OCT" ? "ตุลาคม" : "เมษายน"),
format: (v) => (v == "OCT" ? "รอบที่ 2 ตุลาคม" : "รอบที่ 1 เมษายน"),
sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
},
@ -148,9 +148,9 @@ function fetchRoundOption(type: string) {
id: e.id,
name:
e.durationKPI === "OCT"
? "รอบตุลาคม"
? "รอบที่ 2 ตุลาคม"
: e.durationKPI === "APR"
? "รอบเมษายน"
? "รอบที่ 1 เมษายน"
: "",
isClosed: !e.isActive,
}));

View file

@ -102,9 +102,9 @@ function fetchRoundOption(type: boolean = false) {
id: e.id,
name:
e.durationKPI === "OCT"
? "รอบตุลาคม"
? "รอบที่ 2 ตุลาคม"
: e.durationKPI === "APR"
? "รอบเมษายน"
? "รอบที่ 1 เมษายน"
: "",
}));
roundOp.value = list;