fix bug & แก้คำผิด

This commit is contained in:
Warunee Tamkoo 2024-03-28 16:29:44 +07:00
parent 2590fb1142
commit ad09bd908a
15 changed files with 45 additions and 47 deletions

View file

@ -779,7 +779,7 @@ const openDialog = (action: string) => {
clickAction.value = action;
selectedModal.value = [];
};
//
//
const clickSavelist = () => {
if (selectedModal.value.length > 0) {
if (clickAction.value === "chairman") {

View file

@ -189,11 +189,11 @@ const checkNote = computed(() => {
}
return false;
});
//
//
const dialogDeleteData = async (id: string) => {
dialogRemove($q, () => deleteData(id));
};
// API
// API
const deleteData = async (id: string) => {
await http
.delete(config.API.personsOrder(id))
@ -208,7 +208,7 @@ const deleteData = async (id: string) => {
await conditionData();
});
};
//
//
const swapUp = async (id: string) => {
await http
.put(config.API.swapUpOrder(id))
@ -220,7 +220,7 @@ const swapUp = async (id: string) => {
hideLoader();
});
};
//
//
const swapDown = async (id: string) => {
await http
.put(config.API.swapDownOrder(id))
@ -332,7 +332,7 @@ const putSalary = async (salary: any) => {
});
});
};
// popup
// popup
const modalAddChange = async () => {
modalAdd.value = !modalAdd.value;
if (modalAdd.value == true) {
@ -392,7 +392,7 @@ const saveModalAdd = () => {
});
}
};
// API
// API
const addlist = async (data: Object) => {
const id = route.params.orderid
? route.params.orderid.toString()
@ -620,7 +620,7 @@ const pagination = ref({
@click="save"
class="q-px-md"
>
<q-tooltip>นทกขอม</q-tooltip>
<q-tooltip>นทกขอม</q-tooltip>
</q-btn>
</div>
</div>

View file

@ -243,7 +243,7 @@ const getData = async (id: string) => {
hideLoader();
});
};
//
//
const saveData = async () => {
const id = route.params.orderid
? route.params.orderid.toString()
@ -319,7 +319,7 @@ const nodeTree = async () => {
const onSelected = async (id: string) => {
await listModal(id);
};
//
//
const deleteData = async (id: string) => {
await http
.delete(config.API.copyOrderId(id))