fix ระบบพัฒนาบุคคล
This commit is contained in:
parent
74981c4217
commit
247989c9e8
7 changed files with 2387 additions and 2369 deletions
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue