Commit dbf4770b by 张立顺

上传逻辑判断修改

1 parent d77eb41e
......@@ -4,7 +4,7 @@
<i class="el-icon-s-tools"
style="marginRight:20px;cursor:pointer"
v-if="userInfo.beSuper"
@click="setTitle"></i>
@click="setTitle" />
<el-popover ref="popover1"
placement="top-start"
width="400"
......@@ -50,7 +50,7 @@
</div>
<!-- 隐私协议 -->
<privacy-agreement-dialog :privacyVisible="privacyVisible"
<privacy-agreement-dialog :privacy-visible="privacyVisible"
v-if="privacyVisible"
@dialogClose="privacyClose" />
</div>
......@@ -221,8 +221,8 @@ export default {
const methodLists = ['dj.api.smartcarlife.goodsOrderProfitAllocation.export.async',
'dj.api.smartcarlife.goodsOrderProfitAllocation.exportAccountStatement.async'
]
let isOnlyReq = this.pollDownloadList.some((item) => {
let { method } = JSON.parse(item.exportParam)
const isOnlyReq = this.pollDownloadList.some((item) => {
const { method } = JSON.parse(item.exportParam)
return methodLists.includes(method)
})
console.log(isOnlyReq)
......@@ -277,7 +277,8 @@ export default {
result.forEach((ele) => {
if (ele.uuid == item.uuid) {
item = Object.assign(item, ele)
item.ifSuccess = ele.progress == 100
// 新增逻辑 可能progress完成 但这两个数据还没写入 failNum succNum
item.ifSuccess = ele.progress == 100 && (ele.failNum > 0 || ele.succNum > 0)
if (item.ifSuccess) {
flag = true
if (ele.failNum) {
......@@ -451,13 +452,12 @@ export default {
setTitle() {
this.privacyVisible = !this.privacyVisible
console.log(this.privacyVisible);
console.log(this.privacyVisible)
},
privacyClose() {
this.privacyVisible = !this.privacyVisible
},
}
},
beforeDestroy() {
clearInterval(dowloadTimer)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!