杨磊
2024-06-06 97bf10af44f4f289dbca8349bf22cd9b0d508272
中医地域图谱获取数据bug
1个文件已修改
3 ■■■■ 已修改文件
src/pages/territory/territory.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/territory/territory.vue
@@ -220,7 +220,6 @@
import { loadBMap } from "@/static/map.js";
import L from "leaflet";
import "leaflet.chinatmsproviders";
import * as echarts from "echarts";
import "echarts/extension/bmap/bmap";
import { getRetrieval, getDynasty, getPreCount } from "@/api/index.js";
@@ -447,12 +446,14 @@
        dynasty: this.dynasty1Color,
      }).then(async (res) => {
        const totalCount = res.object;
        console.log(totalCount, "totalCount");
        if (totalCount % 200 == 0) {
          times = totalCount / 200 - 1;
        } else {
          times = Math.floor(totalCount / 200);
        }
        console.log(times, "times");
        if (times == 0 || times < 0) times = 1;
        let markerList = [];
        for (let i = 1; i <= times; i++) {
          const curData = await this.getDataPageInfo(i);