From 6793ecec8f87a9893a8df709c97b8f229ed07320 Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Tue, 28 Nov 2023 19:04:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E6=96=99=E4=BB=BB=E5=8A=A1=E5=8F=96?= =?UTF-8?q?=E6=B6=88=E5=92=8C=E6=89=BF=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/issue/job/issueDetail.vue | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) 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) {