Skip to content

Commit 816d344

Browse files
huangfei1994flyhuang
andauthored
wedpr-web更新结果获取 (#201)
Co-authored-by: flyhuang <flyhuang@webank.com>
1 parent c94a6c5 commit 816d344

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

wedpr-web/src/views/jobDetail/index.vue

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -398,16 +398,25 @@ export default {
398398
this.jobInfo.sql = sql
399399
}
400400
// 查询任务模型和结果
401-
if (this.jobStatusInfo.status === 'RunSuccess' && this.receiverList.includes(this.agencyId)) {
402-
if ([jobEnum.XGB_TRAINING, jobEnum.XGB_PREDICTING, jobEnum.LR_TRAINING, jobEnum.LR_PREDICTING].includes(this.jobInfo.jobType)) {
401+
if (this.jobStatusInfo.status === 'RunSuccess') {
402+
if (
403+
[jobEnum.XGB_TRAINING, jobEnum.XGB_PREDICTING, jobEnum.LR_TRAINING, jobEnum.LR_PREDICTING].includes(this.jobInfo.jobType) &&
404+
this.receiverList.includes(this.agencyId)
405+
) {
403406
this.getJobResult()
404-
} else {
407+
}
408+
if (
409+
[jobEnum.PIR, jobEnum.PSI, jobEnum.MPC, jobEnum.SQL].includes(this.jobInfo.jobType) &&
410+
this.jobInfo.owner === this.userId &&
411+
this.jobInfo.ownerAgency === this.agencyId
412+
) {
405413
// pir psi sql mpc 直接展示任务结果
406414
if (resultFileInfo) {
407415
this.resultFileInfo = resultFileInfo
408416
}
409417
}
410418
}
419+
411420
this.startInterVal()
412421
} else {
413422
this.jobInfo = {}

0 commit comments

Comments
 (0)