Refactoring code module 06_retirement

This commit is contained in:
STW_TTTY\stwtt 2024-09-18 15:18:57 +07:00
parent 1225254062
commit ea921b39b0
29 changed files with 730 additions and 823 deletions

View file

@ -26,19 +26,19 @@ const emit = defineEmits([
"update:previous",
]);
const updateEdit = (value: Boolean) => {
function updateEdit(value: Boolean) {
emit("update:editvisible", value);
};
const edit = async () => {
}
async function edit() {
updateEdit(!props.editvisible);
props.edit();
};
}
/* บันทึกข้อมูล**/
const checkSave = () => {
function checkSave() {
props.validate();
props.save();
};
}
</script>
<template>
<q-card-actions class="text-primary">
@ -49,8 +49,7 @@ const checkSave = () => {
:disabled="editvisible"
:color="editvisible ? 'grey-7' : 'primary'"
@click="edit"
><!-- icon="mdi-pencil-outline"
<q-tooltip>แกไขขอม</q-tooltip> -->
>
</q-btn>
<div v-else>
<q-btn
@ -60,9 +59,7 @@ const checkSave = () => {
:color="!editvisible ? 'grey-7' : 'public'"
@click="checkSave"
>
</q-btn
><!-- icon="mdi-content-save-outline">
<q-tooltip>นท</q-tooltip> -->
</q-btn>
</div>
</q-card-actions>
</template>