Commit e4972848 by 前端

修复bug

1 parent c8212e5b
...@@ -123,7 +123,6 @@ ...@@ -123,7 +123,6 @@
<el-button <el-button
class="btn" class="btn"
:loading="dloading" :loading="dloading"
:disabled="!deviceList || deviceList.length <= 0"
@click="downloadExcel" @click="downloadExcel"
>导出</el-button >导出</el-button
> >
...@@ -403,6 +402,9 @@ export default { ...@@ -403,6 +402,9 @@ export default {
// 导出excel // 导出excel
async downloadExcel() { async downloadExcel() {
let params = this.getParams(); let params = this.getParams();
if (!params.leftLngLat) {
return false;
}
this.dloading = true; this.dloading = true;
let res = await GER_REGIONAL_EXPORT(params); let res = await GER_REGIONAL_EXPORT(params);
this.dloading = false; this.dloading = false;
...@@ -486,6 +488,8 @@ export default { ...@@ -486,6 +488,8 @@ export default {
return false; return false;
} }
_this.deviceList = [];
_this.loading = true; _this.loading = true;
let res = await GER_REGIONAL_SEARCH(params); let res = await GER_REGIONAL_SEARCH(params);
_this.loading = false; _this.loading = false;
......
...@@ -864,7 +864,7 @@ MapService.prototype = { ...@@ -864,7 +864,7 @@ MapService.prototype = {
createAraeInfowindow(info){ createAraeInfowindow(info){
let _div = `<h3 class="map-infowindow-title">${info.ownerName || '--'}/${info.vin || '--'}</h3> let _div = `<h3 class="map-infowindow-title">${info.ownerName || '--'}/${info.vin || '--'}</h3>
<div class="map-infowindow-ct"> <div class="map-infowindow-ct">
<p><i class="icon icon-info_device"></i> 设备号:<span class="des"> ${info.sn} (${info.sourccStr})</span> <p><i class="icon icon-info_device"></i> 设备号:<span class="des"> ${info.sn||'--'} (${info.sourccStr||'--'})</span>
<span class="battery" data-battery style="display:${info.battery?'block':'none'}"> <span class="battery" data-battery style="display:${info.battery?'block':'none'}">
<i class="fill"><i class="fill-percentage" data-battery-percentage style="width:${info.battery}%;"></i></i> <i class="fill"><i class="fill-percentage" data-battery-percentage style="width:${info.battery}%;"></i></i>
<i class="icon icon-battery_enough"></i> <i class="icon icon-battery_enough"></i>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!