Commit f2519909 by zhangxw

去掉mock

1 parent ca49ee07
......@@ -239,26 +239,6 @@
this.params = params
this.getSortParams()
EventBus.$emit('uiMap.historyLocation.destroy');
let res = mock.getResidentByRealTime
if (res.returnCode == 0) {
const data = res.data
if (data.length) {
data.forEach((item, idx) => {
item.idx = idx
})
this.resultList = data
EventBus.$emit('uiMap.historyLocation.draw', data)
this.resultBoxHidden = false
} else {
this.$message({
type: 'info',
message: '暂无数据'
})
}
this.isSearching = false
}
GET_HISTORY_LOCATION({...this.params}).then((res)=>{
if(res.code == 200){
const data = res.data;
......
......@@ -152,26 +152,6 @@
// times: this.form.timerange,
}
this.params = params
let res = mock.getResidentByRealTime
if(res.returnCode == 0){
const data = res.data;
if(data.length){
data.forEach((item, idx)=>{
item.idx = idx;
});
this.resultList = data;
EventBus.$emit('uiMap.resident.draw', data);
this.resultBoxHidden = false;
}else{
this.$message({
type: 'info',
message: '暂无数据'
});
EventBus.$emit('uiMap.resident.destroy', data);
}
this.isSearching = false;
}
GET_RESIDENT_LOCATION(params).then((res)=>{
if(res.code == 200){
const data = res.data;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!