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({
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);
}
});
};
</script>
<style scoped lang='scss'>
.home_body {