แก้ชื่อฟิล หลังบ้านไม่ได้เเจ้ง

This commit is contained in:
setthawutttty 2025-03-31 14:12:10 +07:00
parent dca8d596bd
commit 921b0ca27f
2 changed files with 23 additions and 15 deletions

View file

@ -244,17 +244,9 @@ function changOption(val: string) {
) {
persanalId.value = val === "KPI8" ? persanalId.value : "";
organization.value = val === "KPI8" ? "" : organization.value;
if (round.value && organization.value) {
fetchReport();
} else if (round.value && persanalId.value) {
fetchReport();
}
} else {
round.value = "";
organization.value = "";
if (persanalId.value) {
fetchReport();
}
}
}
@ -474,7 +466,6 @@ function onSelectPerson(data: any) {
}`;
onCloseModal();
fetchReport();
}
/**
@ -500,7 +491,10 @@ function clearFilter() {
pdfSrc.value = undefined;
dataDownload.value = undefined;
fullNameShow.value = "";
round.value = "";
fetchRoundOption();
}
onMounted(() => {
fetchRoundOption();
fetchActiveId();
@ -748,6 +742,20 @@ onMounted(() => {
</div>
</div>
</q-card-section>
<div class="col-12"><q-separator /></div>
<div class="col-12 row q-pa-sm">
<q-space />
<q-btn
dense
class="q-px-md"
label="ค้นหา"
unelevated
color="public"
type="submit"
>
</q-btn>
</div>
</q-card>
</div>
<div class="col-lg-9 col-md-9 col-sm-9 col-xs-12 col-xs-12 flex">

View file

@ -138,7 +138,7 @@ function onSelectedNode(data: any) {
if (data.id !== nodeId.value) {
nodeId.value = data.id;
nodeName.value = data.orgRootName;
org.value = data.orgName;
org.value = data.orgRootName;
expandedModal.value = false;
}
}
@ -553,18 +553,18 @@ onMounted(() => {
>
<div>
<div class="text-weight-medium">
{{ prop.node.orgTreeName }}
{{ prop.node.orgRootName }}
</div>
<div class="text-weight-light text-grey-8">
{{
prop.node.orgCode == null
prop.node.orgRootCode == null
? null
: prop.node.orgCode
: prop.node.orgRootCode
}}
{{
prop.node.orgTreeShortName == null
prop.node.orgRootShortName == null
? null
: prop.node.orgTreeShortName
: prop.node.orgRootShortName
}}
</div>
</div>