| | |
| | | } |
| | | ,exportCsv () { |
| | | let param = { |
| | | dev_name: this.export_name, |
| | | dev_name: this.export_name.replace(/#/g, '号'), |
| | | dev_id: this.export_id, |
| | | export_num: 1, |
| | | table_name: this.export_date.replace(/-/g, '_'), |
| | | record_time: this.export_date + " 00:00:00" |
| | | }; |
| | | console.log(param, 'param'); |
| | | // 显示进度条 |
| | | this.progress.show = true; |
| | | // 请求后台 |
| | |
| | | document.body.appendChild(link); |
| | | link.click(); |
| | | document.body.removeChild(link); |
| | | setTimeout(()=>{ |
| | | // 关闭进度条 |
| | | this.progress.show = false; |
| | | this.progress.value = 0; |
| | | }, 1000); |
| | | setTimeout(()=>{ |
| | | // 关闭进度条 |
| | | this.progress.show = false; |
| | | this.progress.value = 0; |
| | | }, 1000); |
| | | }else { |
| | | // 关闭进度条 |
| | | this.progress.show = false; |
| | |
| | | } |
| | | // 数据导出 |
| | | ,exportData (obj) { |
| | | console.log('数据导出'); |
| | | this.export_id = obj.dev_id; |
| | | this.export_name = obj.dev_name; |
| | | this.exportDialogVisible = true; |
| | |
| | | } |
| | | ,exportCsv () { |
| | | let param = { |
| | | dev_name: this.export_name, |
| | | dev_name: this.export_name.replace(/#/g, '号'), |
| | | dev_id: this.export_id, |
| | | export_num: 1, |
| | | table_name: this.export_date.replace(/-/g, '_'), |
| | | record_time: this.export_date + " 00:00:00" |
| | | }; |
| | | console.log(param, 'param'); |
| | | // 显示进度条 |
| | | this.progress.show = true; |
| | | // 请求后台 |
| | |
| | | } |
| | | // 数据导出 |
| | | ,exportData (obj) { |
| | | console.log('数据导出'); |
| | | this.export_id = obj.dev_id; |
| | | this.export_name = obj.dev_name; |
| | | this.exportDialogVisible = true; |
| | |
| | | } |
| | | ,exportCsv () { |
| | | let param = { |
| | | dev_name: this.export_name, |
| | | dev_name: this.export_name.replace(/#/g, '号'), |
| | | dev_id: this.export_id, |
| | | export_num: 1, |
| | | table_name: this.export_date.replace(/-/g, '_'), |
| | | record_time: this.export_date + " 00:00:00" |
| | | }; |
| | | console.log(param, 'param'); |
| | | // 显示进度条 |
| | | this.progress.show = true; |
| | | // 请求后台 |
| | |
| | | document.body.appendChild(link); |
| | | link.click(); |
| | | document.body.removeChild(link); |
| | | setTimeout(()=>{ |
| | | // 关闭进度条 |
| | | this.progress.show = false; |
| | | this.progress.value = 0; |
| | | }, 1000); |
| | | setTimeout(()=>{ |
| | | // 关闭进度条 |
| | | this.progress.show = false; |
| | | this.progress.value = 0; |
| | | }, 1000); |
| | | }else { |
| | | // 关闭进度条 |
| | | this.progress.show = false; |
| | |
| | | } |
| | | // 数据导出 |
| | | ,exportData (obj) { |
| | | console.log('数据导出'); |
| | | this.export_id = obj.dev_id; |
| | | this.export_name = obj.dev_name; |
| | | this.exportDialogVisible = true; |
| | |
| | | } |
| | | ,exportCsv () { |
| | | let param = { |
| | | dev_name: this.export_name, |
| | | dev_name: this.export_name.replace(/#/g, '号'), |
| | | dev_id: this.export_id, |
| | | export_num: 1, |
| | | table_name: this.export_date.replace(/-/g, '_'), |
| | | record_time: this.export_date + " 00:00:00" |
| | | }; |
| | | console.log(param, 'param'); |
| | | // 显示进度条 |
| | | this.progress.show = true; |
| | | // 请求后台 |