Procházet zdrojové kódy

'图例展示兼容性处理'

zhangyu před 4 roky
rodič
revize
ce2b1cb007

+ 2 - 2
src/views/FloorFunc.vue

@@ -24,7 +24,7 @@
               <div class="cell">图例</div>
             </th>
           </tr>
-          <tr v-for="tr in floor.Statistics" :key="`${floor.FloorId}-${tr.OrderId}`" v-show="tr.Num">
+          <tr v-for="tr in floor.Statistics" :key="`${floor.FloorId}-${tr.GraphElementId}`" v-show="tr.Num">
             <td>
               <div class="cell">{{tr.Name||'--'}}</div>
             </td>
@@ -69,7 +69,7 @@
               <div class="cell">图例</div>
             </th>
           </tr>
-          <tr v-for="tr in floor.Properties" :key="`${floor.FloorId}-${tr.OrderId}`">
+          <tr v-for="(tr, index) in floor.Properties" :key="`${floor.FloorId}-${index}`">
             <td>
               <div class="cell">{{tr.ItemExplain||'--'}}</div>
             </td>

+ 1 - 1
src/views/equipmentFacilities/index.vue

@@ -322,7 +322,7 @@ export default {
         handleFloor(item) {
             let title = this.systemText + '-楼层分布'
             // TODO: 楼层分布
-            // this.$router.push({ name: 'SystemFloor', params: { title } })
+            this.$router.push({ name: 'SystemFloor', params: { title } })
         },
         goToEquipment(data) {
             console.log(data)