แก้ไขรอบการปฏิบัติงานผู้ใช้งาน
This commit is contained in:
parent
90c263aa45
commit
ba19811676
3 changed files with 13 additions and 8 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue