From 26f2cbdbde628ac6bdc9748ac80ad337fcdde59e Mon Sep 17 00:00:00 2001 From: Tcsm <1377977403@qq.com> Date: 星期二, 13 六月 2023 15:35:01 +0800 Subject: [PATCH] 1.各模块点击电子文件可进入详情页面 2.家根网和家谱的详情页接上数据 --- ruoyi-ui/src/views/genealogy/index.vue | 26 +++++++++++++++++++++----- 1 files changed, 21 insertions(+), 5 deletions(-) diff --git a/ruoyi-ui/src/views/genealogy/index.vue b/ruoyi-ui/src/views/genealogy/index.vue index eb291bd..4e1626f 100644 --- a/ruoyi-ui/src/views/genealogy/index.vue +++ b/ruoyi-ui/src/views/genealogy/index.vue @@ -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