From edf97cb2bfe110123a6dacc1cd8c52ce400ff1db Mon Sep 17 00:00:00 2001 From: Tcsm <1377977403@qq.com> Date: 星期三, 19 七月 2023 00:46:03 +0800 Subject: [PATCH] 新增个人记事本展示和详情页 --- ruoyi-ui/src/views/genealogy/index.vue | 30 +++++++++++++++++++++++------- 1 files changed, 23 insertions(+), 7 deletions(-) diff --git a/ruoyi-ui/src/views/genealogy/index.vue b/ruoyi-ui/src/views/genealogy/index.vue index 8100cc2..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,8 +637,8 @@ /** 鏌ョ湅璇︾粏淇℃伅 */ handleCheck(row){ const id = row.userId; - alert(id) - this.$router.push("/familymodel/jiagenwang/getPInfo/" + 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