fix ระบบพัฒนาบุคคล

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-11-11 11:23:34 +07:00
parent 74981c4217
commit 247989c9e8
7 changed files with 2387 additions and 2369 deletions

View file

@ -60,9 +60,9 @@ function getClass() {
}
/** ดึงข้อมูล */
function fetchData() {
async function fetchData() {
showLoader();
http
await http
.get(config.API.developmentHistoryListByid("officer", id.value))
.then((res) => {
const data = res.data.result;
@ -104,9 +104,9 @@ function fetchData() {
}
/** ดึงข้อมูลเมื่อคอมโพเนนต์โหลดเสร็จสมบูรณ์ */
onMounted(() => {
onMounted(async () => {
if (id.value) {
fetchData();
await fetchData();
}
});
</script>
@ -232,7 +232,11 @@ onMounted(() => {
</div>
<div class="col-12 col-sm-12 col-md-7">
{{ Number(formMainProject.year) + 543 ?? "-" }}
{{
formMainProject.year
? Number(formMainProject.year) + 543
: "-"
}}
</div>
</div>
<div class="row col-12">

View file

@ -254,7 +254,6 @@ watch(
:options="govOp"
map-options
emit-value
:class="getClass()"
@update:model-value="inputSearch = ''"
/>
</div>
@ -264,7 +263,6 @@ watch(
outlined
label="ค้นหา"
v-model="inputSearch"
:class="getClass()"
:mask="search === 'citizenId' ? '#############' : undefined"
/>
</div>
@ -274,7 +272,7 @@ watch(
class="full-width full-height"
unelevated
color="teal"
@click="searchFilter()"
@click="(formFilter.page = 1), searchFilter()"
>
</q-btn>
</div>

View file

@ -235,7 +235,11 @@ onMounted(() => {
</div>
<div class="col-12 col-sm-12 col-md-7">
{{ Number(formMainProject.year) + 543 ?? "-" }}
{{
formMainProject.year
? Number(formMainProject.year) + 543
: "-"
}}
</div>
</div>
<div class="row col-12">