<template>
  <el-dialog title="用户信息" :close-on-click-modal="false" :visible.sync="open" width="1200px" append-to-body>
    <el-collapse-item title="基本信息" name="base">
      <el-descriptions :contentStyle="CS" :label-style="LS " class="margin-top" :column="3" size="medium" border>
        <el-descriptions-item label="id">
        </el-descriptions-item>
      </el-descriptions>
    </el-collapse-item>
    <el-collapse-item title="择偶条件" name="filter">
    </el-collapse-item>
  </el-dialog>
</template>
<script>
import { getFullUser } from '@/api/cai/user'

export default {
  name: "UserInfo",
  data() {
    return {
      activeName:['base','filter'],
      CS: {
        'text-align': 'center',  //文本居中
        'min-width': '250px',   //最小宽度
        'word-break': 'break-all'  //过长时自动换行
      },
      LS: {
        // 'color': '#000',
        'text-align': 'center',
        // 'font-weight': '600',
        'height': '40px',
        // 'background-color': 'rgba(255, 97, 2, 0.1)',
        'min-width': '110px',
        'word-break': 'keep-all'
      },
      open:false,
      info:{},
      userId: this.$route.query.id,
    };
  },
  created() {

  },
  methods: {
    init(userId){
      this.open = true;
      this.userId = userId;
      getFullUser(this.userId).then(response => {
        this.info = response.data;
      });
    },
  }
};
</script>
<style lang="scss" scoped>
.el-row {
  margin-bottom: -15px;
  display: flex;
  flex-wrap: wrap
}
</style>
