diff --git a/src/views/caseManagement/components/addCase.vue b/src/views/caseManagement/components/addCase.vue index b26c819..0aa18f2 100644 --- a/src/views/caseManagement/components/addCase.vue +++ b/src/views/caseManagement/components/addCase.vue @@ -135,7 +135,7 @@ - + 自然人 机构 @@ -423,7 +423,7 @@ - + 自然人 机构 @@ -1239,8 +1239,8 @@ export default { } }); }, - clearValidate(val) { - console.log(val) + clearValidate(val,index) { + if(index==0){ if (val == 0) { this.$set(this.formData.affiliate.applicant[0].applicant, "name", this.getUserInfoList.nickName); this.$set(this.formData.affiliate.applicant[0].applicant, "idCard", this.getUserInfoList.idCard); @@ -1249,7 +1249,7 @@ export default { this.$set(this.formData.affiliate.applicant[0].applicant, "idType", this.getUserInfoList.idType); this.$set(this.formData.affiliate.applicant[0].applicant, "nationality", this.getUserInfoList.nationality); if (this.formZipData.affiliate) { - this.$set(this.formData.affiliate.applicant[0].applicant, 'organizeFlag', 0); + // this.$set(this.formData.affiliate.applicant[0].applicant, 'organizeFlag', 0); this.$set(this.formData, 'arbitratClaims', this.formZipData.arbitratClaims); this.$set(this.formData, 'facts', this.formZipData.facts); this.$set(this.formData.affiliate.applicant[0].applicant, "name", this.getUserInfoList.nickName); @@ -1269,7 +1269,7 @@ export default { this.$set(this.formData.affiliate.applicant[0].applicantAgent, "email", this.getUserInfoList.email); this.$set(this.formData.affiliate.applicant[0].applicantAgent, "phone", this.getUserInfoList.phonenumber); if (this.formZipData.affiliate) { - this.$set(this.formData.affiliate.applicant[0].applicant, 'organizeFlag', 1); + // this.$set(this.formData.affiliate.applicant[0].applicant, 'organizeFlag', 1); this.$set(this.formData, 'arbitratClaims', this.formZipData.arbitratClaims); this.$set(this.formData, 'facts', this.formZipData.facts); this.$set(this.formData.affiliate.applicant[0].applicant, 'name', this.formZipData @@ -1299,12 +1299,15 @@ export default { this.$set(this.formData.affiliate.applicant[0].applicant, 'phone', null); } } + } + this.$refs["ruleForm"].clearValidate() }, - clearValidateRes(val) { - if (val == 0) { + clearValidateRes(val,index) { + if(index==0){ + if (val == 0) { if (this.formZipData.affiliate) { - this.$set(this.formData.affiliate.res[0].res, 'organizeFlag', 0); + // this.$set(this.formData.affiliate.res[0].res, 'organizeFlag', 0); this.$set(this.formData.affiliate.res[0].res, 'name', this.formZipData.affiliate.res[0].res.name); this.$set(this.formData.affiliate.res[0].res, 'phone', this.formZipData.affiliate.res[0].res.phone); this.$set(this.formData.affiliate.res[0].res, 'idCard', this.formZipData.affiliate.res[0].res.idCard); @@ -1315,7 +1318,7 @@ export default { } } else if (val == 1) { if (this.formZipData.affiliate) { - this.$set(this.formData.affiliate.res[0].res, 'organizeFlag', 1); + // this.$set(this.formData.affiliate.res[0].res, 'organizeFlag', 1); this.$set(this.formData.affiliate.res[0].res, 'name', this.formZipData.affiliate.res[0].res.name); this.$set(this.formData.affiliate.res[0].res, 'phone', this.formZipData.affiliate.res[0].res.phone); this.$set(this.formData.affiliate.res[0].res, 'idCard', this.formZipData.affiliate.res[0].res.idCard); @@ -1324,8 +1327,11 @@ export default { this.$set(this.formData.affiliate.res[0].res, 'home', this.formZipData.affiliate.res[0].res.home); this.$set(this.formData.affiliate.res[0].res, 'email', this.formZipData.affiliate.res[0].res.email); } + this.$set(this.formData.affiliate.res[0].res, 'name', null) + this.$set(this.formData.affiliate.res[0].res, 'home', null) } - console.log(val) + } + this.$refs["ruleForm"].clearValidate() }, cancel() { diff --git a/src/views/caseManagement/components/mediation.vue b/src/views/caseManagement/components/mediation.vue index a67a62d..45ccba6 100644 --- a/src/views/caseManagement/components/mediation.vue +++ b/src/views/caseManagement/components/mediation.vue @@ -56,7 +56,7 @@ - + 是 否 diff --git a/src/views/login.vue b/src/views/login.vue index 9deed56..c6bbae0 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -279,8 +279,15 @@ export default { // H5轮询获取E证通Token状态 getSelectPCEIDtokenStatus(data) { selectPCEIDtokenStatus(data).then((res) => { - if (res.data.Text.ErrCode == 0) { - this.$router.push(this.pathVal); + if (res.data.certificationStatus == 0) { + // this.$router.push(this.pathVal); + this.$router.push({ + path:this.pathVal, + query:{ + identityNo:res.data.identityNo, + name:res.data.name + } + }) } }); }, diff --git a/src/views/register.vue b/src/views/register.vue index 091979f..e8ed628 100644 --- a/src/views/register.vue +++ b/src/views/register.vue @@ -144,7 +144,9 @@ export default { code: "", uuid: "", nationality:0, - idType:0 + idType:0, + identityNo:"", + name:"" }, registerRules: { userName: [ @@ -241,6 +243,9 @@ export default { this.getCode(); this.getListRole(); this.getIdTypeFn(); + this.registerForm.identityNo = this.$route.query.identityNo; + this.registerForm.name = this.$route.query.name; + console.log(this.$route.query.identityNo) }, methods: { changeInput(){