diff --git a/pages/issue/job/issueDetail.vue b/pages/issue/job/issueDetail.vue index 5435b274..afbafc2f 100644 --- a/pages/issue/job/issueDetail.vue +++ b/pages/issue/job/issueDetail.vue @@ -33,6 +33,7 @@ takeIssueJob, cancleTakeIssueJob, getIssueJobDetail, + issueJobSubmit } from '@/api/request2.js'; import { @@ -79,18 +80,17 @@ onLoad(option) { this.id = option.id; - // if (this.id != undefined) { - // //新建的任务自动接收 - // if (option.status == "JOB_PENDING") { - // this.receive((callback => { - // this.received = true; - // this.getDetail(); - // })); - // } else { - // this.getDetail(); - // } - // } - this.getDetail(); + if (this.id != undefined) { + //新建的任务自动接收 + if (option.status == "1") { + this.receive((callback => { + this.received = true; + this.getDetail(); + })); + } else { + this.getDetail(); + } + } }, onNavigationBarButtonTap(e) {