แก้ไขรอบการปฏิบัติงานผู้ใช้งาน

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2023-12-08 17:30:40 +07:00
parent 90c263aa45
commit ba19811676
3 changed files with 13 additions and 8 deletions

View file

@ -33,7 +33,7 @@ const roundOp = ref<any>([]);
/**Hook */
onMounted(async () => {
await fetchDataOption();
// await fetchDataOption();
});
/**FormData */
@ -124,8 +124,10 @@ async function fetchDataOption() {
name: `${r.startTimeMorning}-${r.endTimeAfternoon}`,
});
});
roundOp.value = option;
console.log(roundOp.value);
roundOp.value = option.filter(
(e) => e.name !== props.DataRow?.currentRound
);
})
.catch((err) => {
messageError($q, err);
@ -190,12 +192,15 @@ function close() {
}
watch(
() => props.modal,
(newDetailData, oldDetailData) => {
async (newDetailData, oldDetailData) => {
if (props.editCheck === "edit") {
formData.round = "";
formData.reson = "";
formData.effectiveDate = null;
}
if (props.modal === true) {
await fetchDataOption();
}
}
);
</script>