Commit 36b88895 authored by zhanglw's avatar zhanglw

调整

parent c0c80c5b
...@@ -324,10 +324,14 @@ export default { ...@@ -324,10 +324,14 @@ export default {
this.fileSocketTimer = setInterval(() => { this.fileSocketTimer = setInterval(() => {
this.reconnect(); this.reconnect();
}, 15000); }, 15000);
this.$refs.ExcelSpreadSheet.DataSource=[] this.$nextTick(() => {
HttpReq.truckDispatching.downloadExcelOrFbx({url: item.url, type: this.query.type}).then((res) => { if (this.$refs.ExcelSpreadSheet.DataSource) {
this.blobToArrayBuffer(res).then(arrayBuffer => { this.$refs.ExcelSpreadSheet.DataSource = []
this.$refs.ExcelSpreadSheet.loadExcelFileStream(arrayBuffer) }
HttpReq.truckDispatching.downloadExcelOrFbx({url: item.url, type: this.query.type}).then((res) => {
this.blobToArrayBuffer(res).then(arrayBuffer => {
this.$refs.ExcelSpreadSheet.loadExcelFileStream(arrayBuffer)
})
}) })
}) })
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment