diff --git a/src/components/Dialogs/AddPersonal.vue b/src/components/Dialogs/AddPersonal.vue index 42bd3965b..6003ace6f 100644 --- a/src/components/Dialogs/AddPersonal.vue +++ b/src/components/Dialogs/AddPersonal.vue @@ -305,7 +305,7 @@ watch( outlined option-label="name" option-value="id" - @update:model-value="(rows = []), (selected = [])" + @update:model-value="rows = []" /> diff --git a/src/modules/13_salary/components/04_salaryLists/TabMain.vue b/src/modules/13_salary/components/04_salaryLists/TabMain.vue index ddf8804e5..5da8f0b3d 100644 --- a/src/modules/13_salary/components/04_salaryLists/TabMain.vue +++ b/src/modules/13_salary/components/04_salaryLists/TabMain.vue @@ -222,7 +222,6 @@ const itemsCard = ref([ * @param id กลุ่ม */ async function fetchDataQuota(id: string) { - if (!id) return; await http .get(config.API.salaryListPeriodQuota(id)) .then((res) => { @@ -255,7 +254,6 @@ async function fetchDataQuota(id: string) { * @param id กลุ่ม */ async function fetchDataPeriod(id: string, force: boolean = false) { - if (!id) return; force && showLoader(); let formData = { ...params.value, diff --git a/src/modules/13_salary/components/05_salaryListsEmployee/TabMain.vue b/src/modules/13_salary/components/05_salaryListsEmployee/TabMain.vue index cc50f45cb..e4f00a7cc 100644 --- a/src/modules/13_salary/components/05_salaryListsEmployee/TabMain.vue +++ b/src/modules/13_salary/components/05_salaryListsEmployee/TabMain.vue @@ -215,7 +215,6 @@ const itemsCard = ref([ * @param id กลุ่ม */ async function fetchDataQuota(id: string) { - if (!id) return; await http .get(config.API.salaryListPeriodQuotaEmp(id)) .then((res) => { @@ -247,7 +246,6 @@ async function fetchDataQuota(id: string) { * @param id กลุ่ม */ async function fetchDataPeriod(id: string, force: boolean = false) { - if (!id) return; force && showLoader(); let formData = { ...params.value,