Merge branch 'develop' into devTee

This commit is contained in:
setthawutttty 2024-12-17 15:41:54 +07:00
commit 8e52ef1fa3
7 changed files with 21 additions and 15 deletions

View file

@ -57,7 +57,7 @@ const statusReport = ref<boolean>();
const dataProfile = ref<Object>([]); const dataProfile = ref<Object>([]);
/** คอลัมน์ที่แสดง */ /** คอลัมน์ที่แสดง */
const columns = ref<any["columns"]>([ const columns = computed(() => [
{ {
name: "order", name: "order",
label: "ลำดับ", label: "ลำดับ",
@ -79,7 +79,7 @@ const columns = ref<any["columns"]>([
{ {
name: "position", name: "position",
align: "left", align: "left",
label: "ตำแหน่ง", label: `ตำแหน่ง ${employeeType.value == "OFFICER" ? "(ในสายงาน)" : ""}`,
title: "ตำแหน่ง", title: "ตำแหน่ง",
subtitle: employeeType.value == "OFFICER" ? "ในสายงาน" : "", subtitle: employeeType.value == "OFFICER" ? "ในสายงาน" : "",
field: "position", field: "position",
@ -89,7 +89,9 @@ const columns = ref<any["columns"]>([
{ {
name: "positionType", name: "positionType",
align: "left", align: "left",
label: "ตำแหน่ง", label: `ตำแหน่ง (${
employeeType.value == "OFFICER" ? "ประเภท" : "กลุ่มงาน"
})`,
title: "ตำแหน่ง", title: "ตำแหน่ง",
subtitle: employeeType.value == "OFFICER" ? "ประเภท" : "กลุ่มงาน", subtitle: employeeType.value == "OFFICER" ? "ประเภท" : "กลุ่มงาน",
field: "positionType", field: "positionType",
@ -100,7 +102,7 @@ const columns = ref<any["columns"]>([
{ {
name: "positionNumber", name: "positionNumber",
align: "left", align: "left",
label: "ตำแหน่ง (เลขที่) ", label: "ตำแหน่ง (เลขที่)",
title: "ตำแหน่ง", title: "ตำแหน่ง",
subtitle: "เลขที่", subtitle: "เลขที่",
field: "positionNumber", field: "positionNumber",
@ -439,6 +441,7 @@ onMounted(async () => {
@click="backHistory" @click="backHistory"
/> />
รายชอผเกษยณอายราชการ รายชอผเกษยณอายราชการ
{{ employeeType === "OFFICER" ? "ข้าราชการ กทม.สามัญ" : "ลูกจ้างประจำ" }}
</div> </div>
<div> <div>
<q-card class="col-12 q-pa-md"> <q-card class="col-12 q-pa-md">

View file

@ -82,6 +82,9 @@ const columns = ref<QTableProps["columns"]>([
label: "ตำแหน่งเลขที่", label: "ตำแหน่งเลขที่",
sortable: true, sortable: true,
field: "posMasterNo", field: "posMasterNo",
format(val, row) {
return `${row.orgShortname} ${row.posMasterNo}`;
},
headerStyle: "font-size: 14px", headerStyle: "font-size: 14px",
style: "font-size: 14px", style: "font-size: 14px",
}, },

View file

@ -162,9 +162,7 @@ async function copyLink(name: string) {
}); });
} }
/** /** function เรียกข้อมูลวันที่ประกาศ */
* function เรยกขอมลวนทประกาศ
*/
async function getDate() { async function getDate() {
showLoader(); showLoader();
await http await http
@ -185,9 +183,8 @@ async function getDate() {
} }
const download10Url = ref<string>(""); const download10Url = ref<string>("");
/**
* function เชคไฟลปโหลด /** function เช็คไฟล์อัปโหลด*/
*/
async function checkDocResult() { async function checkDocResult() {
showLoader(); showLoader();
await http await http
@ -297,7 +294,7 @@ onMounted(async () => {
> >
<div>นทกแจงผลการประกาศคดเลอก</div> <div>นทกแจงผลการประกาศคดเลอก</div>
<q-space /> <q-space />
<div> <div v-if="download10Url">
<q-btn <q-btn
:href="download10Url" :href="download10Url"
target="_blank" target="_blank"

View file

@ -167,6 +167,7 @@ function onSearch() {
watchEffect(() => { watchEffect(() => {
if (props.Modal === true) { if (props.Modal === true) {
selected.value = props.selectedRow; selected.value = props.selectedRow;
filterKeyword2.value = "";
} }
}); });
@ -201,7 +202,7 @@ watch(
outlined outlined
dense dense
class="col-12 q-mb-sm" class="col-12 q-mb-sm"
:model-value="filterKeyword2" v-model="filterKeyword2"
placeholder="ค้นหารายชื่อ" placeholder="ค้นหารายชื่อ"
style="max-width: 100%" style="max-width: 100%"
@keydown.enter="onSearch" @keydown.enter="onSearch"

View file

@ -167,6 +167,7 @@ function onSearch() {
watchEffect(() => { watchEffect(() => {
if (props.Modal === true) { if (props.Modal === true) {
selected.value = props.selectedRow; selected.value = props.selectedRow;
filterKeyword.value = "";
} }
}); });
@ -201,7 +202,7 @@ watch(
outlined outlined
dense dense
class="col-12 q-mb-sm" class="col-12 q-mb-sm"
:model-value="filterKeyword" v-model="filterKeyword"
placeholder="ค้นหารายการประชุม" placeholder="ค้นหารายการประชุม"
style="max-width: 100%" style="max-width: 100%"
@keydown.enter="onSearch" @keydown.enter="onSearch"

View file

@ -526,7 +526,7 @@ watch(
<div class="row q-pa-md q-col-gutter-sm"> <div class="row q-pa-md q-col-gutter-sm">
<div class="col-12"> <div class="col-12">
<datepicker <datepicker
:disable="selected.length === 0" :readonly="selected.length === 0"
menu-class-name="modalfix" menu-class-name="modalfix"
v-model="yearDialog" v-model="yearDialog"
:locale="'th'" :locale="'th'"

View file

@ -156,10 +156,11 @@ function getDevelop() {
.then((res) => { .then((res) => {
const data = res.data.result; const data = res.data.result;
rows.value = data; rows.value = data;
store.devScoreVal = rows.value.reduce( const total = rows.value.reduce(
(sum: number, e: any) => sum + e.summary, (sum: number, e: any) => sum + e.summary,
0 0
); );
store.devScoreVal = total / rows.value.length;
}); });
} }