feige
2023-05-19 a540f68bb29de44e5c11300c0d58931f4672e57c
加了几个文件显示个人信息
2个文件已添加
72 ■■■■■ 已修改文件
ruoyi-ui/src/views/genealogy/perInfo.vue 36 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/views/homeRoot/personInfo.vue 36 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/views/genealogy/perInfo.vue
New file
@@ -0,0 +1,36 @@
<template>
  <div>
    adsafasdfasdfasdfsdf
  </div>
</template>
<script>
import {getRoot} from "@/api/root/index";
  export default {
    name: "index",
    data(){
      return{
        personInfos:[]
        }
    }
  ,
  mounted() {
        const id = this.$route.params && this.$route.params.id;
     this.getList(id);
  },
  methods:{
    getList(id)
    {
    //  alert(id)
      getRoot(id).then(response => {
        console.log(response.data)
        //这里是夫妻的信息,已经拿到了
        this.personInfos = response.data
    })
    }
  },
  }
</script>
<style>
</style>
ruoyi-ui/src/views/homeRoot/personInfo.vue
New file
@@ -0,0 +1,36 @@
<template>
  <div>
    adsafasdfasdfasdfsdf
  </div>
</template>
<script>
import {getRoot} from "@/api/root/index";
  export default {
    name: "index",
    data(){
      return{
        personInfos:[]
        }
    }
  ,
  mounted() {
        const id = this.$route.params && this.$route.params.id;
     this.getList(id);
  },
  methods:{
    getList(id)
    {
    //  alert(id)
      getRoot(id).then(response => {
        console.log(response.data)
        //这里是夫妻的信息,已经拿到了
        this.personInfos = response.data
    })
    }
  },
  }
</script>
<style>
</style>