updated format code

This commit is contained in:
Warunee Tamkoo 2024-09-03 11:28:01 +07:00
parent b75d69ea08
commit b14bad2249
241 changed files with 14012 additions and 13811 deletions

View file

@ -148,7 +148,7 @@ async function fetchAssigned() {
async function getCriteria() {
await http
.get(config.API.KpiEvaluationInfo+`/edit`)
.get(config.API.KpiEvaluationInfo + `/edit`)
.then(async (res) => {
const data = await res.data.result.data;
dataListCriteria.value = data;

View file

@ -215,7 +215,7 @@ onMounted(() => {
>
<q-btn
v-if="!isReadonly &&!checkRoutePermisson"
v-if="!isReadonly && !checkRoutePermisson"
size="12px"
flat
round

View file

@ -551,8 +551,16 @@ watch(
</q-card-section>
<q-separator />
<q-card-actions align="right" class="bg-white text-teal" v-if="competencyType !== 'HEAD' && competencyType !== 'GROUP'">
<q-btn v-if="competencyType !== 'HEAD' && competencyType !== 'GROUP'" label="บันทึก" color="secondary" type="submit"
<q-card-actions
align="right"
class="bg-white text-teal"
v-if="competencyType !== 'HEAD' && competencyType !== 'GROUP'"
>
<q-btn
v-if="competencyType !== 'HEAD' && competencyType !== 'GROUP'"
label="บันทึก"
color="secondary"
type="submit"
><q-tooltip>นทกขอม</q-tooltip></q-btn
>
</q-card-actions>

View file

@ -53,7 +53,10 @@ watch(
<template>
<q-dialog v-model="modal" persistent>
<q-card class="col-12" style="width: 85%">
<DialogHeader :tittle="`พฤติกรรมที่คาดหวัง/พฤติกรรมย่อย`" :close="closeDialog" />
<DialogHeader
:tittle="`พฤติกรรมที่คาดหวัง/พฤติกรรมย่อย`"
:close="closeDialog"
/>
<q-separator />
<q-card-section class="q-pa-sm scroll" style="max-height: 80vh">

View file

@ -287,7 +287,7 @@ async function getDataByYear() {
showLoader();
http
.get(config.API.developmentMain + `/done?year=${formData.year}`)
.then(async(res) => {
.then(async (res) => {
const data = await res.data.result.data;
projectOpMain.value = data;
})
@ -311,7 +311,7 @@ function getProjectDetail(val: any) {
formData.isDevelopment70 = data.isDevelopment70;
formData.isDevelopment20 = data.isDevelopment20;
formData.isDevelopment10 = data.isDevelopment10;
development.value = data.developmentProjectTechniqueActuals;
reasonDevelopment70.value =
data.developmentProjectTechniqueActuals.includes("other1")
@ -384,7 +384,7 @@ function filterOptionFn(val: string, update: Function) {
year-picker
:alt-position="customPosition"
:enableTimePicker="false"
@update:model-value="getDataByYear(),projectName = ''"
@update:model-value="getDataByYear(), (projectName = '')"
>
<template #year="{ year }">{{ year + 543 }}</template>
<template #year-overlay-value="{ value }">{{

View file

@ -10,9 +10,8 @@ const modal = defineModel<boolean>("modal", { required: true });
const rows = defineModel<any>("rows", { required: true });
const dataRows = ref<any[]>([]);
const visibleColumns = ref<String[]>([ "description"]);
const visibleColumns = ref<String[]>(["description"]);
const columns = ref<QTableProps["columns"]>([
{
name: "description",
align: "left",
@ -30,13 +29,15 @@ function closeDialog() {
rows.value = [];
dataRows.value = [];
}
</script>
<template>
<q-dialog v-model="modal" persistent>
<q-card class="col-12" style="width: 85%">
<DialogHeader :tittle="`ข้อมูลพฤติกรรมที่คาดหวัง/พฤติกรรมย่อย`" :close="closeDialog" />
<DialogHeader
:tittle="`ข้อมูลพฤติกรรมที่คาดหวัง/พฤติกรรมย่อย`"
:close="closeDialog"
/>
<q-separator />
<q-card-section class="q-pa-sm scroll" style="max-height: 80vh">

View file

@ -16,7 +16,9 @@ const $q = useQuasar();
const dataList = ref<ListCriteria[]>([]);
const { showLoader, hideLoader, messageError } = useCounterMixin();
const modal = defineModel<boolean>("modal", { required: true });
const dataListCriteria = defineModel<ListCriteria[]>("dataListCriteria", { required: true });
const dataListCriteria = defineModel<ListCriteria[]>("dataListCriteria", {
required: true,
});
function close() {
modal.value = false;
@ -38,9 +40,11 @@ function close() {
</div>
<q-separator />
<div v-for="(item, index) in dataListCriteria" :key="item.id">
<div :class="`row q-pa-sm ${index %2 !== 0 && 'bg-grey-2'}`">
<div :class="`row q-pa-sm ${index % 2 !== 0 && 'bg-grey-2'}`">
<div class="col-8"><span v-html="item.description"></span></div>
<div class="col-4 text-center self-center text-body1 text-weight-bold">
<div
class="col-4 text-center self-center text-body1 text-weight-bold"
>
<span>{{ item.level }}</span>
</div>
</div>

View file

@ -38,7 +38,7 @@ function close() {
function getData() {
showLoader();
http
.get(config.API.profilePosition+`/${store.dataProfile.profileId}`)
.get(config.API.profilePosition + `/${store.dataProfile.profileId}`)
.then((res) => {
const data = res.data.result.isProbation;
work.value = data;

View file

@ -193,10 +193,16 @@ function fetchDetailIndividual() {
target.value = data.target;
development.value = data.developmentProjects;
reasonDevelopment70.value = data.developmentProjects.includes("other1") ? data.reasonDevelopment70:'';
reasonDevelopment20.value = data.developmentProjects.includes("other2") ? data.reasonDevelopment20:'';
reasonDevelopment10.value = data.developmentProjects.includes("other3") ? data.reasonDevelopment10:'';
reasonDevelopment70.value = data.developmentProjects.includes("other1")
? data.reasonDevelopment70
: "";
reasonDevelopment20.value = data.developmentProjects.includes("other2")
? data.reasonDevelopment20
: "";
reasonDevelopment10.value = data.developmentProjects.includes("other3")
? data.reasonDevelopment10
: "";
const achievements = ["10", "5", "0"];
rows.value = achievements.map((i) => ({
achievement: i,

View file

@ -367,10 +367,10 @@ onMounted(() => {
</q-tr>
</template>
<template v-slot:body="props">
<q-tr :props="props" >
<q-tr :props="props">
<q-td
><q-btn
v-if="checkPermission($route)?.attrIsGet"
v-if="checkPermission($route)?.attrIsGet"
flat
dense
round
@ -397,7 +397,6 @@ onMounted(() => {
{{ col.value ?? "-" }}
</div>
</q-td>
</q-tr>
</template>
<template v-slot:pagination="scope">

View file

@ -50,17 +50,17 @@ interface NewPagination {
}
interface FormListMainByRole {
page:number
pageSize:number
position:string
round:string
keyword:string
year:number|null
page: number;
pageSize: number;
position: string;
round: string;
keyword: string;
year: number | null;
}
interface ListGroup{
id:string
nameGroupKPI:string
interface ListGroup {
id: string;
nameGroupKPI: string;
}
interface FormQueryCapacity {
@ -77,5 +77,5 @@ export type {
NewPagination,
FormQueryCapacity,
ListGroup,
FormListMainByRole
FormListMainByRole,
};

View file

@ -63,7 +63,7 @@ interface FormCommentByRole {
topic: string;
reason: string;
createdFullName: string;
score:string
score: string;
reasonEvaluator: string;
reasonCommander: string;
reasonCommanderHigh: string;
@ -91,5 +91,5 @@ export type {
FormCommentByRole,
FormQuery,
DataOptions,
DataOptionTechnique
DataOptionTechnique,
};

View file

@ -1,7 +1,6 @@
//ข้อมูล
interface ResponseObject {
nameGroupKPI: string,
}
export type { ResponseObject };
nameGroupKPI: string;
}
export type { ResponseObject };