แก้ไข กรณี แก้ไข + ยกเลิก
This commit is contained in:
parent
f73184531e
commit
5ae64b51f5
10 changed files with 21 additions and 12 deletions
|
|
@ -274,7 +274,10 @@ const saveData = async () => {
|
|||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
const cancel = () => {
|
||||
edit.value = false
|
||||
getData()
|
||||
}
|
||||
const getClass = (val: boolean) => {
|
||||
return {
|
||||
"full-width inputgreen cursor-pointer": val,
|
||||
|
|
@ -523,7 +526,7 @@ onMounted(async () => {
|
|||
class="q-px-sm"
|
||||
label="ยกเลิก"
|
||||
style="width: 80px"
|
||||
@click="edit = !edit"
|
||||
@click="cancel()"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue