Commit 599cc6c8 by 张晓玮

Merge branch 'v1.7.0-zxw' into 'v1.7.0'

去掉mock

See merge request !6
2 parents 99ee51d8 f2519909
...@@ -239,26 +239,6 @@ ...@@ -239,26 +239,6 @@
this.params = params this.params = params
this.getSortParams() this.getSortParams()
EventBus.$emit('uiMap.historyLocation.destroy'); 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)=>{ GET_HISTORY_LOCATION({...this.params}).then((res)=>{
if(res.code == 200){ if(res.code == 200){
const data = res.data; const data = res.data;
......
...@@ -152,26 +152,6 @@ ...@@ -152,26 +152,6 @@
// times: this.form.timerange, // times: this.form.timerange,
} }
this.params = params 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)=>{ GET_RESIDENT_LOCATION(params).then((res)=>{
if(res.code == 200){ if(res.code == 200){
const data = res.data; 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!