Bladeren bron

0306测试问题

hanchaobo 2 jaren geleden
bovenliggende
commit
5f41c61d1e
2 gewijzigde bestanden met toevoegingen van 18 en 12 verwijderingen
  1. 16
    10
      src/views/caseManagement/components/addCase.vue
  2. 2
    2
      vue.config.js

+ 16
- 10
src/views/caseManagement/components/addCase.vue Bestand weergeven

@@ -545,14 +545,6 @@ export default {
545 545
         this.getUserInfoFn();
546 546
         this.modelFlag = false;
547 547
         this.buttonFlag = true;
548
-        this.formData = {
549
-          affiliate: {
550
-            organizeFlag: 0,
551
-            respondentSex: 0,
552
-          },
553
-          columnValueList: [],
554
-          caseAttachList: [],
555
-        };
556 548
       } else if (val == 3) {
557 549
         this.title = "修改案件";
558 550
         this.modelFlag = true;
@@ -565,6 +557,20 @@ export default {
565 557
     },
566 558
     addVisable(val) {
567 559
       if (val) {
560
+        if(this.addModifyData == 1){
561
+          this.formData = {
562
+          affiliate: {
563
+            organizeFlag: 0,
564
+            respondentSex: 0,
565
+          },
566
+          columnValueList: [],
567
+          caseAttachList: [],
568
+        };
569
+        this.$set(this.formData.affiliate, "applicationName", this.getUserInfoList.nickName);
570
+        this.$set(this.formData.affiliate, "code", this.getUserInfoList.idCard);
571
+        this.$set(this.formData.affiliate, "applicationEmail", this.getUserInfoList.email);
572
+        this.$set(this.formData.affiliate, "applicationPhone", this.getUserInfoList.phonenumber);
573
+        }
568 574
         this.activeName = "first";
569 575
         this.showmediate = false;
570 576
         this.getTemplateFn();
@@ -765,8 +771,8 @@ export default {
765 771
           // this.$set(this.formData.affiliate, 'applicantHome', this.formZipData.affiliate.applicantHome);
766 772
           // this.$set(this.formData.affiliate, 'applicantAddress', this.formZipData.affiliate.applicantAddress);
767 773
           // this.$set(this.formData.affiliate, 'contactTelphoneAgent', this.formZipData.affiliate.contactTelphoneAgent);
768
-          this.$set(this.formData.affiliate, 'nameAgent', this.formZipData.affiliate.nameAgent);
769
-          this.$set(this.formData.affiliate, 'agentEmail', this.formZipData.affiliate.agentEmail);
774
+          // this.$set(this.formData.affiliate, 'nameAgent', this.formZipData.affiliate.nameAgent);
775
+          // this.$set(this.formData.affiliate, 'agentEmail', this.formZipData.affiliate.agentEmail);
770 776
           this.$set(this.formData.affiliate, 'respondentName', this.formZipData.affiliate.respondentName);
771 777
           this.$set(this.formData.affiliate, 'respondentPhone', this.formZipData.affiliate.respondentPhone);
772 778
           this.$set(this.formData.affiliate, 'respondentIdentityNum', this.formZipData.affiliate.respondentIdentityNum);

+ 2
- 2
vue.config.js Bestand weergeven

@@ -11,8 +11,8 @@ const name = process.env.VUE_APP_TITLE || '调解系统' // 网页标题
11 11
 
12 12
 const port = process.env.port || process.env.npm_config_port || 80 // 端口
13 13
 
14
-// const API = 'http://121.40.189.20:7001'  //生产
15
-const API = 'http://121.40.189.20:6001'  //测试
14
+const API = 'http://121.40.189.20:7001'  //生产
15
+// const API = 'http://121.40.189.20:6001'  //测试
16 16
 // const API = 'http://192.168.3.18:6001'  //B
17 17
 // const API = 'http://172.16.0.237:6001' //Q
18 18
 // const API = 'http://172.16.1.26:6001' //w