diff --git a/project/oms/apps/AppDeploy/AppDeploy.vue b/project/oms/apps/AppDeploy/AppDeploy.vue index 6a44591f..89524868 100644 --- a/project/oms/apps/AppDeploy/AppDeploy.vue +++ b/project/oms/apps/AppDeploy/AppDeploy.vue @@ -16,7 +16,7 @@ @getList="getTableData" :col-configs="colConfigs" :dict="dict"> @@ -130,10 +130,15 @@ export default { clearInterval(timer) this.$message.error("打包失败!") } else this.handleConfirmZip(row).then(v => { - if (v) { + if (v.error) { clearInterval(timer) - row.count = 100 - row.download = true + this.$message.error("打包失败!") + row.error = v.error + row.count = 0 + } else if (v.download) { + clearInterval(timer) + row.download = v.download + row.count = 0 } else row.count++ }) }, 3000) @@ -185,8 +190,10 @@ export default { params: {id} }).then(res => { if (res?.code == 0) return res.data - else return false }) + }, + getProcessMsg(row) { + return row.error || (row.download ? `最近打包时间:${row.download}` : `暂无打包`) } }, created() {