升降机数据导出bug修复
This commit is contained in:
parent
f138dd9e4e
commit
3ed69fc04c
@ -440,19 +440,12 @@ export default {
|
||||
this.selectLifterCurrentData()
|
||||
},
|
||||
exportExcel(){
|
||||
console.log('点击this.valueTime',this.valueTime)
|
||||
const loading = this.$loading({
|
||||
lock: true,
|
||||
text: 'Loading',
|
||||
spinner: 'el-icon-loading',
|
||||
background: 'rgba(0, 0, 0, 0.7)'
|
||||
});
|
||||
// console.log('点击this.valueTime',this.valueTime)
|
||||
if(this.valueTime){
|
||||
window.location.href =
|
||||
this.$http.defaults.baseURL +
|
||||
"xmgl/download/exporExcelTowerAlarm?projectSn=" + this.projectSn +
|
||||
"&devSn=" + this.devSn + "&startTime=" + this.valueTime[0] + "&endTime=" + this.valueTime[1];
|
||||
loading.close();
|
||||
}else {
|
||||
window.location.href =
|
||||
this.$http.defaults.baseURL +
|
||||
|
||||
@ -13,7 +13,9 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="right">
|
||||
<component :is="componentName"></component>
|
||||
<!-- <component :is="componentName"></component> -->
|
||||
<workCycleTable v-if="activeNav == 1"></workCycleTable>
|
||||
<liveDataTable v-else></liveDataTable>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@ -311,12 +311,14 @@ export default {
|
||||
this.selectLifterWorkCycle()
|
||||
},
|
||||
exportExcel(){
|
||||
// console.log('this.valueTime',this.valueTime)
|
||||
if(this.valueTime){
|
||||
window.location.href =
|
||||
this.$http.defaults.baseURL +
|
||||
"xmgl/download/exporExcelTowerAlarm?projectSn=" + this.projectSn +
|
||||
"&devSn=" + this.devSn?this.devSn:"" + "&startTime=" + this.transformTimestamp2(this.valueTime[0]) + "&endTime=" + this.transformTimestamp2(this.valueTime[1]);
|
||||
}else {
|
||||
"&devSn=" + this.devSn + "&startTime=" + this.valueTime[0] + "&endTime=" + this.valueTime[1];
|
||||
}
|
||||
else {
|
||||
window.location.href =
|
||||
this.$http.defaults.baseURL +
|
||||
"xmgl/download/exporExcelTowerAlarm?projectSn=" + this.projectSn +
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user