Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wedpr-web更新结果获取 #201

Merged
merged 1 commit into from
Dec 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions wedpr-web/src/views/jobDetail/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -398,16 +398,25 @@ export default {
this.jobInfo.sql = sql
}
// 查询任务模型和结果
if (this.jobStatusInfo.status === 'RunSuccess' && this.receiverList.includes(this.agencyId)) {
if ([jobEnum.XGB_TRAINING, jobEnum.XGB_PREDICTING, jobEnum.LR_TRAINING, jobEnum.LR_PREDICTING].includes(this.jobInfo.jobType)) {
if (this.jobStatusInfo.status === 'RunSuccess') {
if (
[jobEnum.XGB_TRAINING, jobEnum.XGB_PREDICTING, jobEnum.LR_TRAINING, jobEnum.LR_PREDICTING].includes(this.jobInfo.jobType) &&
this.receiverList.includes(this.agencyId)
) {
this.getJobResult()
} else {
}
if (
[jobEnum.PIR, jobEnum.PSI, jobEnum.MPC, jobEnum.SQL].includes(this.jobInfo.jobType) &&
this.jobInfo.owner === this.userId &&
this.jobInfo.ownerAgency === this.agencyId
) {
// pir psi sql mpc 直接展示任务结果
if (resultFileInfo) {
this.resultFileInfo = resultFileInfo
}
}
}

this.startInterVal()
} else {
this.jobInfo = {}
Expand Down
Loading