seimin 2 years ago
parent
commit
a950093f96

+ 4 - 4
src/app/share/detail-bx/detail-bx.component.ts

@@ -98,10 +98,10 @@ export class DetailBxComponent implements OnInit {
98 98
     this.mainService
99 99
       .wechatRequesterIncident(this.orderInfo.id)
100 100
       .subscribe((res:any)=> {
101
-        this.imgs = ['https://img2.woyaogexing.com/2022/08/19/1f5e056b1d076920!400x400.jpg','https://img2.woyaogexing.com/2022/08/19/359346943c3c489f!400x400.jpg']
102
-        // for (var i = 0; i < res.data.length; i++) {
103
-        //   this.imgs.push(res.data[i].previewUrl);
104
-        // }
101
+        // this.imgs = ['https://img2.woyaogexing.com/2022/08/19/1f5e056b1d076920!400x400.jpg','https://img2.woyaogexing.com/2022/08/19/359346943c3c489f!400x400.jpg']
102
+        for (var i = 0; i < res.data.length; i++) {
103
+          this.imgs.push(res.data[i].previewUrl);
104
+        }
105 105
       });
106 106
   }
107 107
 

+ 4 - 0
src/app/views/hushijiandan/hushijiandan.component.ts

@@ -2573,6 +2573,10 @@ export class HushijiandanComponent implements OnInit {
2573 2573
       this.bxForm.controls[i].updateValueAndValidity();
2574 2574
     }
2575 2575
     if (this.bxForm.invalid) return;
2576
+    if(!this.selectIncidentId){
2577
+      this.message.error("请选择故障现象!");
2578
+      return;
2579
+    }
2576 2580
     this.bxLoading = true;
2577 2581
     this.mainService.wxbx({}).subscribe((result) => {
2578 2582
       if ((result as any).status == 200) {