From ed96edec7c6dfd4944d0ee1c6d924c7cb808428c Mon Sep 17 00:00:00 2001
From: feige <791364011@qq.com>
Date: 星期五, 18 十月 2024 10:43:47 +0800
Subject: [PATCH] 修改了相应的bug

---
 ruoyi-ui/src/views/system/family/index.vue |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/ruoyi-ui/src/views/system/family/index.vue b/ruoyi-ui/src/views/system/family/index.vue
index 23e196b..300cdf8 100644
--- a/ruoyi-ui/src/views/system/family/index.vue
+++ b/ruoyi-ui/src/views/system/family/index.vue
@@ -207,7 +207,8 @@
         id: undefined,
         name: undefined,
         mid: undefined,
-        fid: undefined
+        fid: undefined,
+		clanId: undefined
       },
       defaultProps: {
         children: "children",
@@ -233,8 +234,9 @@
   methods: {
     chongf(){
       //alert(2)
+	  let clanId = this.$store.state.user.clanId
       if(this.form.name!=""){
-      findByFname(this.form.name).then(response => {
+      findByFname(this.form.name, clanId).then(response => {
           console.log(response.data)
        //   alert(response.data!=null)
           if(response.data!=null)
@@ -268,6 +270,7 @@
     },
     getAllUser(){
 	  let clanId = this.$store.state.user.clanId
+	  
       getAllInfo(clanId).then(response=>{
         let fams = response.data
         let _this = this;
@@ -288,6 +291,7 @@
       this.loading = true;
 	  let clanId = this.$store.state.user.clanId
 	//  alert(clanId)
+	//alert(clanId)
 	  this.queryParams.clanId = clanId; 
       listFamily(this.queryParams).then(response => {
 		  console.log(response)
@@ -483,6 +487,8 @@
     /** 鎻愪氦鎸夐挳 */
     submitForm: function() {
       let _this = this
+	  let clanId = this.$store.state.user.clanId
+	  this.form.clanId = clanId
       this.$refs["form"].validate(valid => {
         if (valid) {
         //  alert(this.form.id)

--
Gitblit v1.9.1