|
@@ -41,7 +41,8 @@
|
|
|
<!-- 设备列表start -->
|
|
|
<block class="">
|
|
|
<view class="processList">
|
|
|
- <view class="cu-list menu-avatar ">
|
|
|
+ <view class="cu-list menu-avatar ">
|
|
|
+ <view class=" site-item text-center margin-top" v-if="!this.deviceOffLineData.length&&this.deviceOffLineDataRes==1">暂无数据</view>
|
|
|
<view class="cu-item" v-for="(item,index) in deviceOffLineData" :key="index" >
|
|
|
<view class="cu-avatar lg">
|
|
|
<image class="image-bg" src="/static/device-icon.png"/>
|
|
@@ -83,7 +84,8 @@
|
|
|
transfer_type1: 0,
|
|
|
|
|
|
status_type:0,
|
|
|
- deviceOffLineData:json.deviceOffLineData,
|
|
|
+ deviceOffLineData:[],
|
|
|
+ deviceOffLineDataRes:0,
|
|
|
siteListRes: 0,
|
|
|
siteName: '',
|
|
|
type: '0',
|
|
@@ -145,20 +147,26 @@
|
|
|
if (e.float == 'right') {
|
|
|
alert("你点击了导出");
|
|
|
|
|
|
- this.exportData({
|
|
|
- "status_type":this.status_type,
|
|
|
- "transfer_type":this. transfer_type1,
|
|
|
- dwtype:this.dwtype1,
|
|
|
- company_code:uni.getStorageSync('selectedCode')
|
|
|
+ //#ifdef H5
|
|
|
+
|
|
|
+ // this.exportData({
|
|
|
+ // "status_type":this.status_type,
|
|
|
+ // "transfer_type":this. transfer_type1,
|
|
|
+ // dwtype:this.dwtype1,
|
|
|
+ // company_code:uni.getStorageSync('selectedCode')
|
|
|
|
|
|
- })
|
|
|
+ // })
|
|
|
|
|
|
- return;
|
|
|
-
|
|
|
+ // return;
|
|
|
+
|
|
|
|
|
|
let exportUrl= this.$BASE_URL+`ExportModule/getStatusDetailsListExpor/status_type/${this.status_type}/company_code/${uni.getStorageSync('selectedCode')}/ transfer_type/${this. transfer_type1}/dwtype/${this.dwtype1}/`
|
|
|
-
|
|
|
- //#ifdef H5
|
|
|
+ window.location.href=exportUrl;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
// window.open(URL,name,features,replace)
|
|
|
|
|
@@ -200,7 +208,8 @@
|
|
|
})
|
|
|
this.siteListRes = 1;
|
|
|
console.log(res.data.data)
|
|
|
- this.deviceOffLineData = res.data.data
|
|
|
+ this.deviceOffLineData = res.data.data;
|
|
|
+ this.deviceOffLineDataRes=1
|
|
|
},
|
|
|
|
|
|
// 导出
|
|
@@ -219,7 +228,6 @@
|
|
|
aLink.style.display = 'none';
|
|
|
aLink.href = url;
|
|
|
aLink.target="_blank";
|
|
|
- // aLink.setAttribute('download', res.headers['content-disposition'].split('=')[1]);
|
|
|
document.body.appendChild(aLink);
|
|
|
aLink.click();
|
|
|
document.body.removeChild(aLink); // 下载完成移除元素
|