From 80e0b09695493b7f811f746dfb7158244088afe3 Mon Sep 17 00:00:00 2001 From: feige <791364011@qq.com> Date: 星期日, 22 九月 2024 11:02:56 +0800 Subject: [PATCH] 修改了多个bug --- ruoyi-ui/src/views/clanManager/ancestor/index.vue | 62 +++++++++--------------------- 1 files changed, 19 insertions(+), 43 deletions(-) diff --git a/ruoyi-ui/src/views/clanManager/ancestor/index.vue b/ruoyi-ui/src/views/clanManager/ancestor/index.vue index 52aa510..51c32da 100644 --- a/ruoyi-ui/src/views/clanManager/ancestor/index.vue +++ b/ruoyi-ui/src/views/clanManager/ancestor/index.vue @@ -8,48 +8,14 @@ <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> <el-form-item label="鐢ㄦ埛鍚嶇О" prop="userName"> <el-input - v-model="queryParams.userName" + v-model="queryParams.name" placeholder="璇疯緭鍏ョ敤鎴峰悕绉�" clearable style="width: 240px" @keyup.enter.native="handleQuery" /> </el-form-item> - <el-form-item label="鎵嬫満鍙风爜" prop="phonenumber"> - <el-input - v-model="queryParams.phonenumber" - placeholder="璇疯緭鍏ユ墜鏈哄彿鐮�" - clearable - style="width: 240px" - @keyup.enter.native="handleQuery" - /> - </el-form-item> - <el-form-item label="鐘舵��" prop="status"> - <el-select - v-model="queryParams.status" - placeholder="鐢ㄦ埛鐘舵��" - clearable - style="width: 240px" - > - <el-option - v-for="dict in dict.type.sys_normal_disable" - :key="dict.value" - :label="dict.label" - :value="dict.value" - /> - </el-select> - </el-form-item> - <el-form-item label="鍒涘缓鏃堕棿"> - <el-date-picker - v-model="dateRange" - style="width: 240px" - value-format="yyyy-MM-dd" - type="daterange" - range-separator="-" - start-placeholder="寮�濮嬫棩鏈�" - end-placeholder="缁撴潫鏃ユ湡" - ></el-date-picker> - </el-form-item> + <el-form-item> <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">鎼滅储</el-button> <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">閲嶇疆</el-button> @@ -79,7 +45,7 @@ >淇敼</el-button> </el-col> - <el-col :span="1.5"> + <!-- <el-col :span="1.5"> <el-button type="info" plain @@ -88,7 +54,7 @@ @click="handleImport" v-hasPermi="['system:user:import']" >瀵煎叆</el-button> - </el-col> + </el-col> --> <el-col :span="1.5"> <el-button type="warning" @@ -157,7 +123,7 @@ <el-row> <el-col :span="12" > - <el-form-item label="瀹舵棌鍚嶇О" prop="clanId"> + <el-form-item label="閫夊鏃忓彿" prop="clanId"> <el-select v-model="form.clanId" placeholder="璇疯緭鍏ュ鏃忓悕绉�"> <el-option @@ -459,6 +425,7 @@ /** 鏌ヨ鐢ㄦ埛鍒楄〃 */ getList() { this.loading = true; + alert(this.queryParams.name) //alert(this.queryParams.pageNum) listAncestor(this.queryParams).then(response => { this.userList = response.data.data; @@ -529,7 +496,8 @@ }, // 澶氶�夋閫変腑鏁版嵁 handleSelectionChange(selection) { - this.ids = selection.map(item => item.userId); + this.ids = selection.map(item => item.id); + console.log(this.ids+"----------") this.single = selection.length != 1; this.multiple = !selection.length; }, @@ -715,9 +683,17 @@ }, /** 瀵煎嚭鎸夐挳鎿嶄綔 */ handleExport() { - this.download('system/user/export', { - ...this.queryParams - }, `user_${new Date().getTime()}.xlsx`) + const Ids = this.ids; +alert(Ids) + if(Ids.length==0) + { + this.download('/ZfAncestor/export', { + ...this.queryParams + }, `zIdea_${new Date().getTime()}.xlsx`) + }else{ + this.download('/ZfAncestor/export1/'+Ids, { + }, `zIdea_${new Date().getTime()}.xlsx`) + } }, /** 瀵煎叆鎸夐挳鎿嶄綔 */ handleImport() { -- Gitblit v1.9.1