From 006a5f9ea16bc4cde408be6e116fcd285e15e13a Mon Sep 17 00:00:00 2001 From: X_Rian <904416525@qq.com> Date: Wed, 12 Jun 2024 21:32:18 +0800 Subject: [PATCH] =?UTF-8?q?flx=EF=BC=9A=E4=BF=AE=E6=94=B9=E5=AE=89?= =?UTF-8?q?=E5=85=A8=E7=BC=96=E8=BE=91=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/projectEnd/safeSame/editIssue.vue | 35 ++++++++++++++++++------- 1 file changed, 26 insertions(+), 9 deletions(-) diff --git a/pages/projectEnd/safeSame/editIssue.vue b/pages/projectEnd/safeSame/editIssue.vue index bdeeec1d..2d0b0015 100644 --- a/pages/projectEnd/safeSame/editIssue.vue +++ b/pages/projectEnd/safeSame/editIssue.vue @@ -571,7 +571,7 @@ this.getCheckPointList(); this.getIssueList(); this.getPersonList(); - this.getReviewPeopleList(); + // this.getReviewPeopleList(); // this.getPersonUpdateList(); this.getProgressListData() console.log('lll', option.taskId, option.itemId) @@ -581,8 +581,15 @@ this.form.itemId = option.itemId console.log(dateformat(new Date()), 777888) }, - - + watch: { + "form.regionId": { + // immediate: true, + handler(nVal) { + this.getReviewPeopleList(); + // console.log("22222222222", this.reviewList) + } + } + }, methods: { //获取基本信息 getBasicInfo() { @@ -646,12 +653,22 @@ method: 'post', data: { projectSn: this.projectSn, - enterpriseTypeId: 7, + // enterpriseTypeId: 7, + qualityRegionId: this.form.regionId, + qualityRegionBindType: 2, + isSupervisingRoleName: 1 }, success: res => { console.log(res.result) if (res.result.length > 0) { this.reviewList = res.result; + // 复查人数据拿取 + this.reviewList.forEach((item, index) => { + // console.log("11111111", item.userId,this.form.reviewId) + if (item.userId == this.form.reviewId) { + this.reviewIndex = index + } + }); } else { this.reviewList = []; } @@ -864,11 +881,11 @@ } }); // 复查人数据拿取 - this.reviewList.forEach((item, index) => { - if (item.userId == this.form.reviewId) { - this.reviewIndex = index - } - }); + // this.reviewList.forEach((item, index) => { + // if (item.userId == this.form.reviewId) { + // this.reviewIndex = index + // } + // }); } else if (type == 2) { console.log('选择问题描述的数据', val); //设置问题描述