From a540f68bb29de44e5c11300c0d58931f4672e57c Mon Sep 17 00:00:00 2001
From: feige <feige@qq.com>
Date: 星期五, 19 五月 2023 11:15:32 +0800
Subject: [PATCH] 加了几个文件显示个人信息
---
ruoyi-ui/src/views/homeRoot/personInfo.vue | 36 ++++++++++++++++++
ruoyi-ui/src/views/genealogy/perInfo.vue | 36 ++++++++++++++++++
2 files changed, 72 insertions(+), 0 deletions(-)
diff --git a/ruoyi-ui/src/views/genealogy/perInfo.vue b/ruoyi-ui/src/views/genealogy/perInfo.vue
new file mode 100644
index 0000000..edcb863
--- /dev/null
+++ b/ruoyi-ui/src/views/genealogy/perInfo.vue
@@ -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>
diff --git a/ruoyi-ui/src/views/homeRoot/personInfo.vue b/ruoyi-ui/src/views/homeRoot/personInfo.vue
new file mode 100644
index 0000000..edcb863
--- /dev/null
+++ b/ruoyi-ui/src/views/homeRoot/personInfo.vue
@@ -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>
--
Gitblit v1.9.1