diff --git a/src/components/site/previewOfSiteStatus.vue b/src/components/site/previewOfSiteStatus.vue index 0d6deec..de25d88 100644 --- a/src/components/site/previewOfSiteStatus.vue +++ b/src/components/site/previewOfSiteStatus.vue @@ -563,7 +563,7 @@ this.$http .post(this.nozzle.sysPlatformGetAllSiteCount) .then(response => { - if (response.data.code === 200) { + if (response.data.code === 1) { this.Region = response.data.data; } else { message(response); @@ -1034,7 +1034,7 @@ data: {} }) .then(response => { - if (response.data.code === 200) { + if (response.data.code === 1) { let photoInfo = {}; let wgs = new SpatialReference({ wkid: 4326 @@ -1123,7 +1123,6 @@ return; } let d = res; - console.log(33333); _this.$http .post(_this.nozzle.getTempData, { data: { diff --git a/src/components/site/previewOfSiteStatus.vue b/src/components/site/previewOfSiteStatus.vue index 0d6deec..de25d88 100644 --- a/src/components/site/previewOfSiteStatus.vue +++ b/src/components/site/previewOfSiteStatus.vue @@ -563,7 +563,7 @@ this.$http .post(this.nozzle.sysPlatformGetAllSiteCount) .then(response => { - if (response.data.code === 200) { + if (response.data.code === 1) { this.Region = response.data.data; } else { message(response); @@ -1034,7 +1034,7 @@ data: {} }) .then(response => { - if (response.data.code === 200) { + if (response.data.code === 1) { let photoInfo = {}; let wgs = new SpatialReference({ wkid: 4326 @@ -1123,7 +1123,6 @@ return; } let d = res; - console.log(33333); _this.$http .post(_this.nozzle.getTempData, { data: { diff --git a/src/util/project.js b/src/util/project.js index 36c55eb..037365d 100644 --- a/src/util/project.js +++ b/src/util/project.js @@ -8,11 +8,11 @@ let nozzle = { sysPlatformListPlatform: "/sys/platform/listPlatform", //站点状况预览图-----获取所有的平台名称 sysPlatformGetSiteCountAndState: "/sys/platform/getSiteCountAndState", //站点状况预览图-----获取平台站点的数量和状态统计 - sysPlatformGetAllSiteCount: "/sys/platform/getAllSiteCount", //站点状况预览图-----获取所有平台站点数目统计 + platEquipmentGetEquipStatistics: "/plat/equipment/getEquipStatistics", //站点状况预览图-----获取平台拥有设备类型、数量统计 sysPlatformGetSiteStateStatistics: "/sys/platform/getSiteStateStatistics", //站点状况预览图-----平台近七日站点状态统计 warnLogGetWarnLogOfPlatform: "/warn/log/getWarnLogOfPlatform", //站点状况预览图-----查询该平台各站点报警数据 - listStationBase: "/sys/site/listStationBase", //所有站点无分页 + // listStationBase: "/sys/site/listStationBase", //所有站点无分页 sysSiteListStationBaseWithPage: "/sys/site/listStationBaseWithPage", //所有站点有分页 warnConfigListNonConfig: "/warn/config/listNonConfig", //获取选择站点未配置但已分配的因子 warnConfigListWarnConfig: "/warn/config/listWarnConfig", //查询站点已配置的预警报警线 diff --git a/src/components/site/previewOfSiteStatus.vue b/src/components/site/previewOfSiteStatus.vue index 0d6deec..de25d88 100644 --- a/src/components/site/previewOfSiteStatus.vue +++ b/src/components/site/previewOfSiteStatus.vue @@ -563,7 +563,7 @@ this.$http .post(this.nozzle.sysPlatformGetAllSiteCount) .then(response => { - if (response.data.code === 200) { + if (response.data.code === 1) { this.Region = response.data.data; } else { message(response); @@ -1034,7 +1034,7 @@ data: {} }) .then(response => { - if (response.data.code === 200) { + if (response.data.code === 1) { let photoInfo = {}; let wgs = new SpatialReference({ wkid: 4326 @@ -1123,7 +1123,6 @@ return; } let d = res; - console.log(33333); _this.$http .post(_this.nozzle.getTempData, { data: { diff --git a/src/util/project.js b/src/util/project.js index 36c55eb..037365d 100644 --- a/src/util/project.js +++ b/src/util/project.js @@ -8,11 +8,11 @@ let nozzle = { sysPlatformListPlatform: "/sys/platform/listPlatform", //站点状况预览图-----获取所有的平台名称 sysPlatformGetSiteCountAndState: "/sys/platform/getSiteCountAndState", //站点状况预览图-----获取平台站点的数量和状态统计 - sysPlatformGetAllSiteCount: "/sys/platform/getAllSiteCount", //站点状况预览图-----获取所有平台站点数目统计 + platEquipmentGetEquipStatistics: "/plat/equipment/getEquipStatistics", //站点状况预览图-----获取平台拥有设备类型、数量统计 sysPlatformGetSiteStateStatistics: "/sys/platform/getSiteStateStatistics", //站点状况预览图-----平台近七日站点状态统计 warnLogGetWarnLogOfPlatform: "/warn/log/getWarnLogOfPlatform", //站点状况预览图-----查询该平台各站点报警数据 - listStationBase: "/sys/site/listStationBase", //所有站点无分页 + // listStationBase: "/sys/site/listStationBase", //所有站点无分页 sysSiteListStationBaseWithPage: "/sys/site/listStationBaseWithPage", //所有站点有分页 warnConfigListNonConfig: "/warn/config/listNonConfig", //获取选择站点未配置但已分配的因子 warnConfigListWarnConfig: "/warn/config/listWarnConfig", //查询站点已配置的预警报警线 diff --git a/src/util/projectSet.js b/src/util/projectSet.js index 185cd92..a6dd7e9 100644 --- a/src/util/projectSet.js +++ b/src/util/projectSet.js @@ -41,6 +41,7 @@ listStationBase: "/sys/stationbase/listStationBase", //所有站点 getTempData: "/sys/stationbase/getTempData", //单个站点 + sysPlatformGetAllSiteCount: "/sys/sysplatform/getAllSiteCount", //站点状况预览图-----获取所有平台站点数目统计 }; for (let item in nozzle) {