|
@@ -312,15 +312,15 @@ const getRegionList = async function () {
|
|
|
const changeRegion = async function () {
|
|
|
if (siteSearchParam.regionCode) {
|
|
|
streetList.value = await getStreetCodeList(siteSearchParam.regionCode);
|
|
|
+ getSiteList({pageIndex: 1, pageSize: 9999, regionCode: siteSearchParam.regionCode}).then((result: any) => {
|
|
|
+ siteDicList.value = result.list;
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ siteDicList.value = [];
|
|
|
+ streetList.value = [];
|
|
|
}
|
|
|
onSearch();
|
|
|
}
|
|
|
-// 查询驿站
|
|
|
-const getAllSites = () => {
|
|
|
- getSiteList({pageIndex: 1, pageSize: 9999}).then((result: any) => {
|
|
|
- siteDicList.value = result.list;
|
|
|
- })
|
|
|
-}
|
|
|
|
|
|
function setSiteMarker(setCenter: boolean) {
|
|
|
delMapInfo();
|
|
@@ -501,7 +501,6 @@ onMounted(() => {
|
|
|
initMap();
|
|
|
getRegionList();
|
|
|
onSearch();
|
|
|
- getAllSites();
|
|
|
})
|
|
|
</script>
|
|
|
|