Commit ce7e2c0a by 张立顺

修复线上问题

1 parent 1fdea4a3
...@@ -290,8 +290,8 @@ export default { ...@@ -290,8 +290,8 @@ export default {
const fileUuidList = this.pollDownloadList.map((item) => { const fileUuidList = this.pollDownloadList.map((item) => {
return item.uuid return item.uuid
}) })
console.log('272', fileUuidList) // console.log('272', fileUuidList)
console.log('272', this.waitDownloadList) // console.log('272', this.waitDownloadList)
// return // return
fileUuidList.length && exportExcel({ fileUuidList }).then((result) => { fileUuidList.length && exportExcel({ fileUuidList }).then((result) => {
console.log(result) console.log(result)
...@@ -307,15 +307,17 @@ export default { ...@@ -307,15 +307,17 @@ export default {
let needAdd = false let needAdd = false
const list = this.dowloadList.map((item) => { const list = this.dowloadList.map((item) => {
// item.labelText = '导出中' // item.labelText = '导出中'
result.forEach((ele) => { console.log(item)
result.forEach((ele, index) => {
if (ele.fileUuid == item.uuid) { if (ele.fileUuid == item.uuid) {
// item = Object.assign(ele, item) // item = Object.assign(ele, item)
item.ifSuccess = ele.status != 0 item.ifSuccess = ele.status != 0
if (ele.status != 0) item.status = 'end' if (ele.status != 0) item.status = 'end'
if (ele.status == 1) { if (ele.status == 1) {
needAdd = true needAdd = true
// console.log(ele.fileUrl) setTimeout(() => {
downLoadFile(ele.fileUrl) downLoadFile(ele.fileUrl)
}, index * 7000)
this.notice.okTips(status[ele.status]) this.notice.okTips(status[ele.status])
} else if (ele.status == 2) { } else if (ele.status == 2) {
needAdd = true needAdd = true
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!