1
wangjuncheng
8 天以前 5a93ff9c70a25e09d77aff8e9175022b63b3060f
src/api/index.js
@@ -1,24 +1,3 @@
export async function getDistrictData() {
   const response = await fetch("/json/隐患点信息.json", {
      mode: "cors",
      cache: "no-cache",
      headers: {
         "Content-Type": "application/json",
      },
   })
   return await response.json()
}
export async function getDeviceData() {
   const response = await fetch("/json/综合监测设备信息.json", {
      mode: "cors",
      cache: "no-cache",
      headers: {
         "Content-Type": "application/json",
      },
   })
   return await response.json()
}
export async function getSimulateData() {
   const response = await fetch("/json/仿真方案.json", {
      mode: "cors",
@@ -41,6 +20,17 @@
   return await response.json()
}
export async function getDistrictListData() {
   const response = await fetch("/json/隐患点信息.json", {
      mode: "cors",
      cache: "no-cache",
      headers: {
         "Content-Type": "application/json",
      },
   })
   return await response.json()
}
export async function getDistrictCount() {
   const response = await fetch("/json/北京市隐患点按区统计.json", {
      mode: "cors",
@@ -51,6 +41,18 @@
   })
   return await response.json()
}
// export async function getDistrictCount() {
//    const response = await fetch("/json/response.json", {
//       mode: "cors",
//       cache: "no-cache",
//       headers: {
//          "Content-Type": "application/json",
//       },
//    })
//    return await response.json()
// }
export async function getDistrictCountByCity() {
   const response = await fetch("/json/CountByCounty.json", {
@@ -75,7 +77,7 @@
}
export async function getMaxInfluenceArea() {
   const response = await fetch("/json/listMaxInfluenceArea_wgs84.json", {
   const response = await fetch("/json/listMaxInfluenceArea_wgs84_output.json", {
      mode: "cors",
      cache: "no-cache",
      headers: {