This commit is contained in:
汪汇 2024-01-03 15:49:45 +08:00
parent 9f829f9d1d
commit db97a3e78a
1 changed files with 43 additions and 16 deletions

View File

@ -226,8 +226,10 @@ const dropdown = reactive({
}); });
const list = reactive({ const list = reactive({
page: 1,
size: 20,
show: true, show: true,
index: 3, index: 0,
yxfw: [ yxfw: [
{ {
id: 0, 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 = () => { const init = () => {
map = new T.Map("mapDiv"); map = new T.Map("mapDiv");
// map.setMapType(window.TMAP_SATELLITE_MAP); // map.setMapType(window.TMAP_SATELLITE_MAP);
@ -314,8 +304,8 @@ const init = () => {
const yxfwxz = (e) => { const yxfwxz = (e) => {
list.index = e.id; list.index = e.id;
getlist(e.columnName) getlist(e.columnName);
// map.clearOverLays(); list.page = 1;
}; };
const touchmove = (event) => { const touchmove = (event) => {
if ( if (
@ -345,6 +335,43 @@ onMounted(() => {
init(); init();
getlist(); 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);
}
});
};
</script> </script>
<style scoped lang='scss'> <style scoped lang='scss'>
.home_body { .home_body {