fix bug
This commit is contained in:
parent
1afb941c4c
commit
9a268f9d7a
2 changed files with 11 additions and 15 deletions
|
|
@ -77,7 +77,7 @@ const currentAddress = reactive<AddressData>({
|
|||
});
|
||||
|
||||
onMounted(async () => {
|
||||
// await getNewData();
|
||||
await getNewData();
|
||||
emit("update:statusEdit", false);
|
||||
});
|
||||
|
||||
|
|
@ -126,13 +126,13 @@ const filterSelector = (val: any, update: Function, refData: string) => {
|
|||
|
||||
const refreshData = async () => {
|
||||
myform.value.reset();
|
||||
await props.fetch();
|
||||
// await props.fetch();
|
||||
await fetchProvince();
|
||||
// await getNewData();
|
||||
await getNewData();
|
||||
};
|
||||
|
||||
const getNewData = async () => {
|
||||
await props.fetch();
|
||||
// await props.fetch();
|
||||
await fetchProvince();
|
||||
};
|
||||
|
||||
|
|
@ -181,9 +181,9 @@ const editData = async () => {
|
|||
.finally(async () => {
|
||||
edit.value = false;
|
||||
emit("update:statusEdit", false);
|
||||
// await getNewData();
|
||||
await props.fetch();
|
||||
await fetchProvince();
|
||||
await getNewData();
|
||||
// await props.fetch();
|
||||
// await fetchProvince();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -143,19 +143,15 @@ const closeModal = () => {
|
|||
|
||||
// เปิดโมเดล
|
||||
const openModalOrder = () => {
|
||||
console.log(filters.value);
|
||||
|
||||
openModal();
|
||||
console.log("filters===>",filters.value)
|
||||
const row = filters.value.filter(
|
||||
(r: ResponseData) =>
|
||||
(r.status == "WAITTING" ||
|
||||
r.status == "PENDING" ||
|
||||
r.status == "APPROVE") &&
|
||||
r.createdAt &&
|
||||
(r.status == "APPROVE") &&
|
||||
r.organizationPositionOld &&
|
||||
r.positionTypeOld &&
|
||||
r.positionLevel &&
|
||||
r.posNo &&
|
||||
r.positionLevelOld &&
|
||||
r.positionNumberOld &&
|
||||
r.salary !== null &&
|
||||
r.organization &&
|
||||
r.date
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue