From b91ae843757fcfb74af04ff85decf8c26b6f4591 Mon Sep 17 00:00:00 2001
From: Tcsm <1377977403@qq.com>
Date: 星期一, 17 七月 2023 23:23:54 +0800
Subject: [PATCH] 主要在成长经历阅历主要经历的修改做改动(未能成功修改数据)

---
 ruoyi-ui/src/views/genealogy/index.vue |   28 ++++++++++++++++++++++------
 1 files changed, 22 insertions(+), 6 deletions(-)

diff --git a/ruoyi-ui/src/views/genealogy/index.vue b/ruoyi-ui/src/views/genealogy/index.vue
index eb291bd..5b654da 100644
--- a/ruoyi-ui/src/views/genealogy/index.vue
+++ b/ruoyi-ui/src/views/genealogy/index.vue
@@ -149,7 +149,7 @@
 
     <el-table v-loading="loading" :data="listRoot"  @selection-change="handleSelectionChange"  :row-class-name="tableRowClassName" style="background: #FFEFF2;  border-radius: 14px 14px 14px 14px;">
       <el-table-column type="selection" width="25"  align="center" />
-      <el-table-column  label="搴忓彿" sortable type="index" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="80"/>
+      <el-table-column fixed label="搴忓彿" sortable type="index" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="80"/>
 
       <el-table-column label="韬唤" prop="identity" sortable width="100" >
         <template slot-scope="scope">
@@ -480,7 +480,7 @@
   },
   created() {
     this.getList();
-    this.getCateInfor()
+    // this.getCateInfor()
     // for (let i = 0; i < this.contactList.length; i++) {
     //   this.formDat[i] = this.contactList[i];
     // }
@@ -637,7 +637,7 @@
     /** 鏌ョ湅璇︾粏淇℃伅 */
     handleCheck(row){
       const id = row.userId;
-      alert(id)
+      // alert(id)
      this.$router.push("/familymodel/jiagenwang/personInfo/" + id);
     },
 
@@ -701,11 +701,27 @@
       }).catch(() => {});
     },
     /** 瀵煎嚭鎸夐挳鎿嶄綔 */
+    // handleExport() {
+    //   this.download('/self/user/export/genealogy', {
+    //     ...this.queryParams
+    //   }, `zGenealogy_${new Date().getTime()}.xlsx`)
+    // },
+
     handleExport() {
-      this.download('/self/user/export/genealogy', {
-        ...this.queryParams
-      }, `zGenealogy_${new Date().getTime()}.xlsx`)
+      const Ids = this.ids;
+
+      if(Ids.length==0)
+      {
+        this.download('/self/user/export/genealogy', {
+          ...this.queryParams
+        }, `zGenealogy_${new Date().getTime()}.xlsx`)
+      }else{
+        this.download('/self/user/export/genealogy/'+Ids, {
+
+        }, `zGenealogy_${new Date().getTime()}.xlsx`)
+      }
     },
+
     /** 瀵煎叆鎿嶄綔*/
     // handleEnport(params){
     //   var file = params.file;

--
Gitblit v1.9.1