formatted Saraly ประเมิน
This commit is contained in:
parent
3bf652dc48
commit
4ce525522b
1 changed files with 5 additions and 1 deletions
|
|
@ -194,6 +194,10 @@ async function fetchCheckSpec(data: any) {
|
|||
formDetail.assessments = data.assessments;
|
||||
}
|
||||
|
||||
function formattedNumber(x: number) {
|
||||
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
||||
}
|
||||
|
||||
onMounted(async () => {
|
||||
route.name === "evaluate-add" && (await fetchDetail());
|
||||
props.data && fetchCheckSpec(props.data);
|
||||
|
|
@ -267,7 +271,7 @@ onMounted(async () => {
|
|||
<q-input
|
||||
borderless
|
||||
readonly
|
||||
:model-value="formDetail.salary"
|
||||
:model-value="formattedNumber(formDetail.salary)"
|
||||
label="เงินเดือน"
|
||||
/>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue