地图添加企业标点
This commit is contained in:
parent
5c28f8d61b
commit
65a2a3129f
|
|
@ -112,7 +112,7 @@ export function getSoilSummry(data) {
|
||||||
headers: {},
|
headers: {},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 各个站坐标点
|
// 获取企业列表
|
||||||
export function getCompanyList() {
|
export function getCompanyList() {
|
||||||
return requests({
|
return requests({
|
||||||
url: '/zh-applet-admin/appmana/bigScreen/getEntList',
|
url: '/zh-applet-admin/appmana/bigScreen/getEntList',
|
||||||
|
|
|
||||||
|
|
@ -633,7 +633,6 @@ export default {
|
||||||
// })
|
// })
|
||||||
// }, 2000)
|
// }, 2000)
|
||||||
// 实时时间
|
// 实时时间
|
||||||
|
|
||||||
let that = this;
|
let that = this;
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
getCompanyList().then(res => {
|
getCompanyList().then(res => {
|
||||||
|
|
|
||||||
|
|
@ -575,7 +575,6 @@ export default {
|
||||||
this.getNowTime();
|
this.getNowTime();
|
||||||
this.initMaintainLog();
|
this.initMaintainLog();
|
||||||
this.stationInfoApi();
|
this.stationInfoApi();
|
||||||
this.getAlertRecord();
|
|
||||||
},
|
},
|
||||||
initMaintainLog(){//巡检日志
|
initMaintainLog(){//巡检日志
|
||||||
getMaintainLog({stationCode: this.stationCode, pageSize: 3}).then(res => {
|
getMaintainLog({stationCode: this.stationCode, pageSize: 3}).then(res => {
|
||||||
|
|
@ -591,7 +590,7 @@ export default {
|
||||||
doGetAlertRecord({stationCode: this.stationCode, pageSize: 3}).then(res => {
|
doGetAlertRecord({stationCode: this.stationCode, pageSize: 3}).then(res => {
|
||||||
console.warn('监测预警数据',res)
|
console.warn('监测预警数据',res)
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
if(res.result.records.length === 0 && this.stationDetail.latestData !== 0){
|
if(res.result.records.length === 0 && this.stationDetail && this.stationDetail.latestData && this.stationDetail.latestData.length !== 0){
|
||||||
//itemName survValue survUnit normalValue survUnit readStatus alertTime
|
//itemName survValue survUnit normalValue survUnit readStatus alertTime
|
||||||
let tempData = [];
|
let tempData = [];
|
||||||
this.stationDetail.latestData.map(item => {
|
this.stationDetail.latestData.map(item => {
|
||||||
|
|
@ -836,6 +835,7 @@ export default {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.switchLive(true);
|
this.switchLive(true);
|
||||||
}, 2000)
|
}, 2000)
|
||||||
|
this.getAlertRecord();
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
switchLive(live, deployCode){
|
switchLive(live, deployCode){
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue