แก้ไข ui เพิ่ม funciton// รอบการปฏิบัติงาน
This commit is contained in:
parent
c7e7abe441
commit
624f9cbd47
3 changed files with 212 additions and 1 deletions
|
|
@ -68,6 +68,13 @@ const formData = reactive<FormData>({
|
|||
isActive: false,
|
||||
});
|
||||
|
||||
/**FunctionCheckbox แก้ไขสถานะ */
|
||||
function checkDefault() {
|
||||
if (formData.isDefault === true) {
|
||||
formData.isActive = true;
|
||||
}
|
||||
}
|
||||
|
||||
/** Function validateForm*/
|
||||
function validateForm() {
|
||||
const hasError = [];
|
||||
|
|
@ -356,7 +363,11 @@ watch(
|
|||
<div class="row items-center q-my-sm justify-between">
|
||||
<p class="q-ma-none">เวลา Default</p>
|
||||
<label class="toggle-control">
|
||||
<input type="checkbox" v-model="formData.isDefault" />
|
||||
<input
|
||||
type="checkbox"
|
||||
v-model="formData.isDefault"
|
||||
@change="checkDefault()"
|
||||
/>
|
||||
<span class="control"></span>
|
||||
</label>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue