รายการเลื่อนเงินเดือนข้าราชการฯ=> แก้ไขคุณสมบัติ
This commit is contained in:
parent
46cb1fe6cc
commit
d226498322
1 changed files with 7 additions and 16 deletions
|
|
@ -37,8 +37,6 @@ const props = defineProps({
|
||||||
});
|
});
|
||||||
|
|
||||||
const type = ref<string>("");
|
const type = ref<string>("");
|
||||||
const typeRef = ref<any>(null);
|
|
||||||
const isReadonly = ref<boolean>(false); // อ่านได้อย่างเดียว
|
|
||||||
|
|
||||||
const isPunish = ref<boolean>(false); // มีการแก้ไขข้อมูลหรือไม่
|
const isPunish = ref<boolean>(false); // มีการแก้ไขข้อมูลหรือไม่
|
||||||
const isSuspension = ref<boolean>(false); // สำรองหรือไม่
|
const isSuspension = ref<boolean>(false); // สำรองหรือไม่
|
||||||
|
|
@ -100,10 +98,12 @@ function onSubmit() {
|
||||||
watch(
|
watch(
|
||||||
() => modal.value,
|
() => modal.value,
|
||||||
() => {
|
() => {
|
||||||
isPunish.value = props.isPunish;
|
if (modal.value) {
|
||||||
isSuspension.value = props.isSuspension;
|
isPunish.value = props.isPunish ? props.isPunish : false;
|
||||||
isAbsent.value = props.isAbsent;
|
isSuspension.value = props.isSuspension ? props.isSuspension : false;
|
||||||
isLeave.value = props.isLeave;
|
isAbsent.value = props.isAbsent ? props.isAbsent : false;
|
||||||
|
isLeave.value = props.isLeave ? props.isLeave : false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
</script>
|
</script>
|
||||||
|
|
@ -117,33 +117,24 @@ watch(
|
||||||
<q-card-section class="scroll" style="max-height: 70vh">
|
<q-card-section class="scroll" style="max-height: 70vh">
|
||||||
<div class="q-gutter-y-sm column">
|
<div class="q-gutter-y-sm column">
|
||||||
<q-checkbox
|
<q-checkbox
|
||||||
toggle-indeterminate
|
|
||||||
keep-color
|
keep-color
|
||||||
label="ไม่ถูกลงโทษทางวินัย"
|
label="ไม่ถูกลงโทษทางวินัย"
|
||||||
dense
|
dense
|
||||||
v-model="isPunish"
|
v-model="isPunish"
|
||||||
/>
|
/>
|
||||||
<q-checkbox
|
<q-checkbox
|
||||||
toggle-indeterminate
|
|
||||||
keep-color
|
keep-color
|
||||||
label="ไม่ถูกพักราชการ"
|
label="ไม่ถูกพักราชการ"
|
||||||
dense
|
dense
|
||||||
v-model="isSuspension"
|
v-model="isSuspension"
|
||||||
/>
|
/>
|
||||||
<q-checkbox
|
<q-checkbox
|
||||||
toggle-indeterminate
|
|
||||||
keep-color
|
keep-color
|
||||||
label="ไม่ขาดราชการ"
|
label="ไม่ขาดราชการ"
|
||||||
dense
|
dense
|
||||||
v-model="isAbsent"
|
v-model="isAbsent"
|
||||||
/>
|
/>
|
||||||
<q-checkbox
|
<q-checkbox keep-color label="วันลาไม่เกิน" dense v-model="isLeave" />
|
||||||
toggle-indeterminate
|
|
||||||
keep-color
|
|
||||||
label="วันลาไม่เกิน"
|
|
||||||
dense
|
|
||||||
v-model="isLeave"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
<q-separator />
|
<q-separator />
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue