diff --git a/pages/login/compatibleLogin.vue b/pages/login/compatibleLogin.vue index a0b27676..b35adb84 100644 --- a/pages/login/compatibleLogin.vue +++ b/pages/login/compatibleLogin.vue @@ -104,11 +104,15 @@ uni.reLaunch({ url: "/pages/supplier/qualifications/qualifications?isNull=1" }) - return; + return; } + this.showForm = false; this.deptList = res.result; + if(this.deptList.length==1){ + this.clickDept(this.deptList[0]); + } console.log(res); } }) diff --git a/pages/projectEnd/qualityManage/addIssue.vue b/pages/projectEnd/qualityManage/addIssue.vue index 49c0bc2e..7764ac53 100644 --- a/pages/projectEnd/qualityManage/addIssue.vue +++ b/pages/projectEnd/qualityManage/addIssue.vue @@ -782,11 +782,7 @@ }).join("/"); this.checkPointName = regionName; this.form.regionName = regionName; - this.personList.forEach((item, index) => { - if (item.userId == val[0].dutyId) { - this.changePeopleIndex = index - } - }); + this.form.changeId = val[0].dutyId; this.notifier = val[0].intendanceNames; this.form.notifyPerson = val[0].intendanceIds; @@ -794,6 +790,11 @@ this.subpackageLsit = val[0].enterpriseInfos // 整改人数据拿取 this.personUpdateList = val[0].systemUsers + this.personUpdateList.forEach((item, index) => { + if (item.userId == val[0].dutyId) { + this.changePeopleIndex = index + } + }); } else if (type == 2) { console.log('选择问题描述的数据', val); //设置问题描述 diff --git a/pages/projectEnd/safeSame/addIssue.vue b/pages/projectEnd/safeSame/addIssue.vue index 773a1c80..38eaf7bd 100644 --- a/pages/projectEnd/safeSame/addIssue.vue +++ b/pages/projectEnd/safeSame/addIssue.vue @@ -766,9 +766,9 @@ this.form.enterpriseSn = ""; this.form.enterpriseName = ""; this.form.changeId = ""; - console.log(val, type) + // console.log(val, type) this.changePeopleIndex = null - // console.log(this.checkPointList, val, this.personList) + console.log(this.checkPointList, val, this.personList) this.form.regionId = val[0].id; let arr = JSON.parse(JSON.stringify(val[0].parents)); let obj = { @@ -782,11 +782,7 @@ }).join("/"); this.checkPointName = regionName; this.form.regionName = regionName; - this.personList.forEach((item, index) => { - if (item.userId == val[0].dutyId) { - this.changePeopleIndex = index - } - }); + this.form.changeId = val[0].dutyId; this.notifier = val[0].intendanceNames; this.form.notifyPerson = val[0].intendanceIds; @@ -794,6 +790,11 @@ this.subpackageLsit = val[0].enterpriseInfos // 整改人数据拿取 this.personUpdateList = val[0].systemUsers + this.personUpdateList.forEach((item, index) => { + if (item.userId == val[0].dutyId) { + this.changePeopleIndex = index + } + }); } else if (type == 2) { console.log('选择问题描述的数据', val); //设置问题描述