|
@@ -524,6 +524,7 @@
|
|
this.title = '四平市态势感知平台'
|
|
this.title = '四平市态势感知平台'
|
|
}, 1000)
|
|
}, 1000)
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
|
|
+ this.getResourcesCount();
|
|
this.getTodayEvents(this.getCurrentDataStr())
|
|
this.getTodayEvents(this.getCurrentDataStr())
|
|
this.getDeptEventCount(this.getCurrentDataStr())
|
|
this.getDeptEventCount(this.getCurrentDataStr())
|
|
this.getWeather(this.getCurrentDataStr())
|
|
this.getWeather(this.getCurrentDataStr())
|
|
@@ -533,7 +534,6 @@
|
|
this.getExposureStage(this.getCurrentDataStr())
|
|
this.getExposureStage(this.getCurrentDataStr())
|
|
this.getSupermap(this.getCurrentDataStr())
|
|
this.getSupermap(this.getCurrentDataStr())
|
|
this.getMenuEventType()
|
|
this.getMenuEventType()
|
|
- this.getResourcesCount();
|
|
|
|
}, 2000)
|
|
}, 2000)
|
|
/** ----------------------------------weosocket开始------------------------------------- */
|
|
/** ----------------------------------weosocket开始------------------------------------- */
|
|
// this.initWebSocket()
|
|
// this.initWebSocket()
|
|
@@ -668,6 +668,7 @@
|
|
//查询各类资源的数量
|
|
//查询各类资源的数量
|
|
getResourcesCount() {
|
|
getResourcesCount() {
|
|
let that = this;
|
|
let that = this;
|
|
|
|
+ that.resourcesList = []
|
|
fireControlViewList("jiaotong").then(function (res) {
|
|
fireControlViewList("jiaotong").then(function (res) {
|
|
for (let i = 0; i < res.data.length; i++) {
|
|
for (let i = 0; i < res.data.length; i++) {
|
|
if(res.data[i].type !='centerdata_t_forest_fireteam'){
|
|
if(res.data[i].type !='centerdata_t_forest_fireteam'){
|
|
@@ -809,7 +810,6 @@
|
|
" </div>" +
|
|
" </div>" +
|
|
" </div>" +
|
|
" </div>" +
|
|
" </span></div>";
|
|
" </span></div>";
|
|
- return markersMap;
|
|
|
|
let that = this
|
|
let that = this
|
|
getResourcesCount().then(res => {
|
|
getResourcesCount().then(res => {
|
|
this.resourcesCountList = res.data;
|
|
this.resourcesCountList = res.data;
|
|
@@ -819,6 +819,7 @@
|
|
that.$set(that.resourcesCountList[index], 'bg', getIconBg(icon));
|
|
that.$set(that.resourcesCountList[index], 'bg', getIconBg(icon));
|
|
})
|
|
})
|
|
})
|
|
})
|
|
|
|
+ return markersMap;
|
|
},
|
|
},
|
|
sewageOutletClick(data) {
|
|
sewageOutletClick(data) {
|
|
const params = Object.assign({});
|
|
const params = Object.assign({});
|
|
@@ -1478,20 +1479,8 @@
|
|
} else {
|
|
} else {
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
that.$refs.supermap.clearM()
|
|
that.$refs.supermap.clearM()
|
|
- //数据自动落点开始
|
|
|
|
- let maxCount = 150; //落点数超过这个数的资源不落点
|
|
|
|
- let list = that.resourcesCountList;
|
|
|
|
- let types = [];
|
|
|
|
- if(list == undefined || list == null) return
|
|
|
|
- for (let i = 0; i < list.length; i++) { //获取符合要求的类型及数量
|
|
|
|
- if (list[i].num <= maxCount) {
|
|
|
|
- types.push(list[i].type);
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- for (let i = 0; i < types.length; i++) {
|
|
|
|
- that.selectResourcesByLabel(types[i], '所有');
|
|
|
|
- }
|
|
|
|
- //数据自动落点结束
|
|
|
|
|
|
+
|
|
|
|
+ that.getResourcesCount();
|
|
}, 2000)
|
|
}, 2000)
|
|
}
|
|
}
|
|
})
|
|
})
|