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); //设置问题描述