<!--联系信息-->
<template>
  <div class="userInfoPanel mt10 pd15">
    <el-table v-loading="loading" :data="data">
      <el-table-column label="地址描述" width="90" align="center" prop="des" />
      <el-table-column label="国家" align="center" prop="nation" />
      <el-table-column label="省" align="center">
        <template slot-scope="scope">
          <span>{{ getArea(scope.row.ral)[0] }}</span>
        </template>
      </el-table-column>
      <el-table-column label="市县" align="center" :show-overflow-tooltip="true">
        <template slot-scope="scope">
          <span v-if="getArea(scope.row.ral).length>3">{{ getArea(scope.row.ral)[1] }}</span>
          <span v-else>{{ getArea(scope.row.ral)[0] }}</span>
        </template>
      </el-table-column>
      <el-table-column label="区镇" align="center">
        <template slot-scope="scope">
          <span v-if="getArea(scope.row.ral).length>3">{{ getArea(scope.row.ral)[2] }}</span>
          <span v-else>{{ getArea(scope.row.ral)[1] }}</span>
        </template>
      </el-table-column>
      <el-table-column label="街道门牌号" width="190" align="center">
        <template slot-scope="scope">
          <span>{{ getArea(scope.row.ral)[(getArea(scope.row.ral).length-1)] }}</span>
        </template>
      </el-table-column>
      <el-table-column label="邮政编码" align="center" prop="zipcode" />
      <el-table-column label="微信" align="center" prop="wechat" :show-overflow-tooltip="true"  />
      <el-table-column label="邮箱" align="center" prop="email" :show-overflow-tooltip="true" />
      <el-table-column label="QQ" align="center" prop="qq"  :show-overflow-tooltip="true"/>
      <el-table-column label="手机" align="center" prop="pmphone"  :show-overflow-tooltip="true"/>
    </el-table>
  </div>
</template>
<script>

  export default {
    props: {
      data: {
        type: Array,
        default:function (){
          return [];
        }
      },
    },
    data() {
      return {
        loading: false,
      };
    },
    mounted() {
      this.initChart();
    },
    methods: {
      initChart() {

      }
    }
  };
</script>
