ปรับ text และ validate บรรจุ

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2023-09-28 15:23:22 +07:00
parent 2b99a1459e
commit 0875ee189b
6 changed files with 503 additions and 159 deletions

View file

@ -13,7 +13,7 @@ import type { QTableProps, QForm } from "quasar";
import type {
TypeFile,
ResponseDataDetail,
rowFile
rowFile,
} from "@/modules/05_placement/interface/response/Transfer";
const $q = useQuasar();
@ -275,10 +275,10 @@ const saveData = async () => {
});
};
const cancel = () => {
edit.value = false
getData()
myForm.value?.resetValidation()
}
edit.value = false;
getData();
myForm.value?.resetValidation();
};
const getClass = (val: boolean) => {
return {
"full-width inputgreen cursor-pointer": val,
@ -537,9 +537,7 @@ onMounted(async () => {
<div class="row bg-white q-col-gutter-y-md">
<div class="col-xs-12 row items-center">
<div class="col-12">
<div class="text-weight-bold text-grey">
ตำแหนงและหนวยงานเด
</div>
<div class="text-weight-bold">ตำแหนงและหนวยงานเด</div>
</div>
<div class="col-12">
<q-input
@ -609,6 +607,8 @@ onMounted(async () => {
currency: 'THB',
}"
:label="`${'เงินเดือน'}`"
:rules="[(val:number) => !!val || `${'กรุณากรอกเงินเดือน'}`]"
lazy-rules
/>
</div>
</div>
@ -687,7 +687,6 @@ onMounted(async () => {
:readonly="!edit"
:borderless="!edit"
v-model="reason"
:rules="[(val) => !!val || `${'กรุณากรอกหมายเหตุ '}`]"
hide-bottom-space
:label="`${'หมายเหตุ '}`"
type="textarea"