|
@@ -174,7 +174,7 @@ const toChooseSite = () => {
|
|
router.push({ name: "ChooseSite", params: { id: params.bbb.value } });
|
|
router.push({ name: "ChooseSite", params: { id: params.bbb.value } });
|
|
};
|
|
};
|
|
|
|
|
|
-function getLocation() {
|
|
|
|
|
|
+function _getCategoryList() {
|
|
getCategoryList().then((res) => {
|
|
getCategoryList().then((res) => {
|
|
res = res || [];
|
|
res = res || [];
|
|
treeData.value = res;
|
|
treeData.value = res;
|
|
@@ -184,9 +184,9 @@ function getLocation() {
|
|
}));
|
|
}));
|
|
});
|
|
});
|
|
}
|
|
}
|
|
-getLocation();
|
|
|
|
|
|
+getCategoryList();
|
|
|
|
|
|
-function getDateOptions() {
|
|
|
|
|
|
+function _getDateList() {
|
|
getDateList().then((res) => {
|
|
getDateList().then((res) => {
|
|
dateStates.columns = res.map((item) => ({
|
|
dateStates.columns = res.map((item) => ({
|
|
value: item,
|
|
value: item,
|
|
@@ -194,10 +194,10 @@ function getDateOptions() {
|
|
}));
|
|
}));
|
|
});
|
|
});
|
|
}
|
|
}
|
|
-getDateOptions();
|
|
|
|
|
|
+_getDateList();
|
|
|
|
|
|
const unApplyNumber = ref("");
|
|
const unApplyNumber = ref("");
|
|
-function getResultList() {
|
|
|
|
|
|
+function _getReservationList() {
|
|
getReservationList({
|
|
getReservationList({
|
|
examSiteId: params.examSiteId.value,
|
|
examSiteId: params.examSiteId.value,
|
|
date: params.date.value,
|
|
date: params.date.value,
|
|
@@ -224,7 +224,7 @@ function reservation(item) {
|
|
|
|
|
|
watch([() => params.examSiteId, () => params.date], ([examSiteId, date]) => {
|
|
watch([() => params.examSiteId, () => params.date], ([examSiteId, date]) => {
|
|
if (examSiteId.value && date.value) {
|
|
if (examSiteId.value && date.value) {
|
|
- getResultList();
|
|
|
|
|
|
+ _getReservationList();
|
|
} else {
|
|
} else {
|
|
resultList.value = [];
|
|
resultList.value = [];
|
|
}
|
|
}
|