diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index d205fdf..7141c02 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -226,8 +226,10 @@ const dropdown = reactive({ }); const list = reactive({ + page: 1, + size: 20, show: true, - index: 3, + index: 0, yxfw: [ { id: 0, @@ -280,19 +282,7 @@ const list = reactive({ }, ], }); -const getlist = (e) => { - let patle = ""; - if (!e) { - patle = "Childcare"; - } else { - patle = e; - } - http.post(`/srv/platform/map/list/${patle}`).then((res) => { - if (res.code == 200) { - console.log(res.data); - } - }); -}; + const init = () => { map = new T.Map("mapDiv"); // map.setMapType(window.TMAP_SATELLITE_MAP); @@ -314,8 +304,8 @@ const init = () => { const yxfwxz = (e) => { list.index = e.id; - getlist(e.columnName) - // map.clearOverLays(); + getlist(e.columnName); + list.page = 1; }; const touchmove = (event) => { if ( @@ -345,6 +335,43 @@ onMounted(() => { init(); getlist(); }); +const getlist = (e) => { + let paly = { + // dataSearchDTO: { + column_id: 0, + keyword: "", + data_query: [ + { + field: "", + condition: "", + value: "", + }, + ], + data_sorts: [ + { + field: "", + sort_type: "", + }, + ], + // }, + }; + let patle = ""; + if (!e) { + patle = "Childcare"; + } else { + patle = e; + } + http + .post( + `/srv/platform/map/list/${patle}?page=${list.page}&size=${list.size}`, + paly + ) + .then((res) => { + if (res.code == 200) { + console.log(res.data); + } + }); +};