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">