flx:修改安全编辑问题

This commit is contained in:
X_Rian 2024-06-12 21:32:18 +08:00
parent ba7b0e85cd
commit 006a5f9ea1

View File

@ -571,7 +571,7 @@
this.getCheckPointList(); this.getCheckPointList();
this.getIssueList(); this.getIssueList();
this.getPersonList(); this.getPersonList();
this.getReviewPeopleList(); // this.getReviewPeopleList();
// this.getPersonUpdateList(); // this.getPersonUpdateList();
this.getProgressListData() this.getProgressListData()
console.log('lll', option.taskId, option.itemId) console.log('lll', option.taskId, option.itemId)
@ -581,8 +581,15 @@
this.form.itemId = option.itemId this.form.itemId = option.itemId
console.log(dateformat(new Date()), 777888) console.log(dateformat(new Date()), 777888)
}, },
watch: {
"form.regionId": {
// immediate: true,
handler(nVal) {
this.getReviewPeopleList();
// console.log("22222222222", this.reviewList)
}
}
},
methods: { methods: {
// //
getBasicInfo() { getBasicInfo() {
@ -646,12 +653,22 @@
method: 'post', method: 'post',
data: { data: {
projectSn: this.projectSn, projectSn: this.projectSn,
enterpriseTypeId: 7, // enterpriseTypeId: 7,
qualityRegionId: this.form.regionId,
qualityRegionBindType: 2,
isSupervisingRoleName: 1
}, },
success: res => { success: res => {
console.log(res.result) console.log(res.result)
if (res.result.length > 0) { if (res.result.length > 0) {
this.reviewList = res.result; 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 { } else {
this.reviewList = []; this.reviewList = [];
} }
@ -864,11 +881,11 @@
} }
}); });
// //
this.reviewList.forEach((item, index) => { // this.reviewList.forEach((item, index) => {
if (item.userId == this.form.reviewId) { // if (item.userId == this.form.reviewId) {
this.reviewIndex = index // this.reviewIndex = index
} // }
}); // });
} else if (type == 2) { } else if (type == 2) {
console.log('选择问题描述的数据', val); console.log('选择问题描述的数据', val);
// //