Browse Source

报修内容取值BUG

seimin 3 years ago
parent
commit
a97836bdf6
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/views/incidentDetails.vue

+ 4 - 2
src/views/incidentDetails.vue

@@ -13,7 +13,7 @@
13 13
           报修类别:
14 14
         </div>
15 15
         <div>
16
-          {{ data.incident.category.category }}
16
+          {{ data.category.category }}
17 17
         </div>
18 18
       </div>
19 19
       <div class="description">
@@ -43,8 +43,10 @@
43 43
           报修地址:
44 44
         </div>
45 45
         <div>
46
-          {{ data.incident.place.area.area }} {{ data.incident.place.place }}
46
+          <template v-if="data.place">
47
+            {{ data.place.area.area }} {{ data.place.place }}
47 48
           {{ data.address }}
49
+          </template>
48 50
         </div>
49 51
       </div>
50 52
       <div class="faultLocation" v-if="wxIncidentWithCmdb == 1">