diff --git a/src/views/daylightAppSetting/daylight/Modal.vue b/src/views/daylightAppSetting/daylight/Modal.vue index 4348a12..bdd378f 100644 --- a/src/views/daylightAppSetting/daylight/Modal.vue +++ b/src/views/daylightAppSetting/daylight/Modal.vue @@ -1021,20 +1021,8 @@ export default defineComponent({ } return roomTypeData.value.filter((item) => item.propertyId === selectId); }); - const sourceCodeListTemp = computed(() => { - const selectId = data.value?.propertyId; - if (selectId == null) { - return []; - } - return sourceCodeData.value.filter((item) => item.propertyId === selectId); - }); - const marketCodeListTemp = computed(() => { - const selectId = data.value?.propertyId; - if (selectId == null) { - return []; - } - return marketCodeData.value.filter((item) => item.propertyId === selectId); - }); + const sourceCodeListTemp = computed(() => sourceCodeData.value); + const marketCodeListTemp = computed(() => marketCodeData.value); const complimentaryTypeList = computed(() => { const selectId = data.value?.propertyId; if (selectId == null) { diff --git a/src/views/daylightAppSetting/exceptionDaylight/Modal.vue b/src/views/daylightAppSetting/exceptionDaylight/Modal.vue index 6da1545..d92348c 100644 --- a/src/views/daylightAppSetting/exceptionDaylight/Modal.vue +++ b/src/views/daylightAppSetting/exceptionDaylight/Modal.vue @@ -791,20 +791,8 @@ export default defineComponent({ } return roomTypeData.value.filter((item) => item.propertyId === selectId); }); - const sourceCodeListTemp = computed(() => { - const selectId = data.value?.propertyId; - if (selectId == null) { - return []; - } - return sourceCodeData.value.filter((item) => item.propertyId === selectId); - }); - const marketCodeListTemp = computed(() => { - const selectId = data.value?.propertyId; - if (selectId == null) { - return []; - } - return marketCodeData.value.filter((item) => item.propertyId === selectId); - }); + const sourceCodeListTemp = computed(() => sourceCodeData.value); + const marketCodeListTemp = computed(() => marketCodeData.value); const handlePropertyChange = (selectId) => { if (!data.value) { return; diff --git a/src/views/reservation/allotmentDashboard/BookModal.vue b/src/views/reservation/allotmentDashboard/BookModal.vue index 0236047..436f100 100644 --- a/src/views/reservation/allotmentDashboard/BookModal.vue +++ b/src/views/reservation/allotmentDashboard/BookModal.vue @@ -263,10 +263,10 @@