view ผลงาน
This commit is contained in:
parent
8968086017
commit
e680ae5fc8
4 changed files with 111 additions and 6 deletions
|
|
@ -55,7 +55,7 @@ onMounted(() => {
|
|||
formDetail.position = props.data.position;
|
||||
formDetail.oc = props.data.oc;
|
||||
formDetail.salary = props.data.salary
|
||||
? props.data.salary.toLocaleString("th-TH")
|
||||
? formattedNumber(props.data.salary)
|
||||
: "-";
|
||||
formDetail.positionLevel = props.data.positionLevel;
|
||||
formDetail.posNo = props.data.posNo;
|
||||
|
|
@ -118,6 +118,10 @@ onMounted(() => {
|
|||
formDetail.assessments = props.data.assessments;
|
||||
}
|
||||
});
|
||||
|
||||
function formattedNumber(x: number) {
|
||||
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue