Commit dbf4770b by 张立顺

上传逻辑判断修改

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