From 1fb54251afe3349e29838e65930d49a8e4f438f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=89=E5=A4=B4=E5=BC=BA?= <5661595+jxjzh@user.noreply.gitee.com> Date: Thu, 2 May 2024 10:59:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=B4=A8=E9=87=8F=E5=AE=89?= =?UTF-8?q?=E5=85=A8=E6=8F=90=E4=BA=A4=E6=A3=80=E6=9F=A5=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E6=95=B4=E6=94=B9=E5=8D=95=E4=BD=8D=E7=82=B9=E5=87=BB=E4=B8=8D?= =?UTF-8?q?=E4=BA=86=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/login/compatibleLogin.vue | 6 +++++- pages/projectEnd/qualityManage/addIssue.vue | 11 ++++++----- pages/projectEnd/safeSame/addIssue.vue | 15 ++++++++------- 3 files changed, 19 insertions(+), 13 deletions(-) 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); //设置问题描述