前端最终规范


前端下载excel

<pre><code class="language-markdown"> handleDownload() { this.downloadLoading = true import('@/utils/excel').then((excel) =&gt; { const tHeader = ['产品', '设备编码', '设备名称', '设备状态', '最近在线时间', '离线时长', '数据上报频率'] const filterVal = ['productName', 'deviceNo', 'deviceName', 'deviceDataStatus', 'reportLatelyTime', 'offlineDuration', 'reportRate'] const list = this.list const data = this.formatJson(filterVal, list) excel.export_json_to_excel({ header: tHeader, data, filename: this.filename, autoWidth: this.autoWidth, bookType: this.bookType, }) this.downloadLoading = false }) },</code></pre>

页面列表

ITEM_HTML