<template>
  <avue-detail :option="option" v-model="form">
    <template slot="mapForm">
<!--      <residential-map :latitude="form.latitude" :longitude="form.longitude" :name="form.name"></residential-map>-->
      </template>
  </avue-detail>
</template>

<script>

  import residentialMap from "./residentialMap.vue";
  export default {
    components:{
      residentialMap
    },
    props:{
      form:{
        type: Object
      }
    },
    data(){
      return {
         form:{

         },
         option:{
            group:[
              {
                icon:'el-icon-info',
                label: '基础信息',
                prop: 'group',
                column: [{
                  label: '小区名称',
                  prop: 'name',
                  span: 12,
                },
                {
                  label: "详细地址",
                  prop: "address",
                  span: 12,
                },{
                  label: "楼栋总数",
                  prop: "buildingNumber",
                  span: 4
                },{
                  label: "单元总数",
                  prop: "unitNumber",
                  span: 4
                },{
                  label: "楼层总数",
                  prop: "floorNumber",
                  span: 4
                },{
                  label: "房间总数",
                  prop: "roomNumber",
                  span: 4
                },{
                  label: "用户总数",
                  prop: "userNumber",
                  span: 4
                }
                ]
              },{
                icon:'el-icon-s-flag',
                label: '物业信息',
                prop: 'group',
                column: [{
                  label: '物业名称',
                  prop: 'estatePidName',
                  span: 12
                }, {
                  label: '物业电话',
                  prop: 'estatePidPhone',
                  span: 12
                }]
              },{
                icon:'el-icon-place',
                label: '地理位置',
                prop: 'group',
                column: [{
                  label: '经度',
                  prop: 'longitude',
                  span: 12,
                },
                {
                  label: "纬度",
                  prop: "latitude",
                  span: 12,
                },{
                  prop: "map",
                  formslot: true,
                  span: 24,
                  align: "center"

                }
                ]
              },
            ]
         }
      }
    }
  }
</script>

<style>
</style>
