From 7fc578dc2032fac935267e92208f7f11384e3800 Mon Sep 17 00:00:00 2001 From: feige <791364011@qq.com> Date: 星期四, 28 十一月 2024 08:36:36 +0800 Subject: [PATCH] 修改了相关bug --- ruoyi-ui/src/views/search/index.vue | 14 +++++++++----- 1 files changed, 9 insertions(+), 5 deletions(-) diff --git a/ruoyi-ui/src/views/search/index.vue b/ruoyi-ui/src/views/search/index.vue index 49760cd..f99cc28 100644 --- a/ruoyi-ui/src/views/search/index.vue +++ b/ruoyi-ui/src/views/search/index.vue @@ -15,7 +15,7 @@ <el-form-item label="鏃堕棿" prop="happenTime"> <el-date-picker v-model="dateRange" - style="width: 197px; + style="width: 240px; height: 30px; background: #FFFFFF; border-radius: 14px 14px 14px 14px; @@ -30,7 +30,7 @@ </el-form-item> <el-form-item> - <el-button size="mini" @click="getList" style=" width: 67px;height: 27px;background: #FFDDE3; + <el-button size="mini" @click="handleQuery" style=" width: 67px;height: 27px;background: #FFDDE3; border-radius: 7px 7px 7px 7px;opacity: 1; " >鎼滅储</el-button> <el-button size="mini" @click="resetQuery" style=" width: 67px;height: 27px;background: #FFDDE3; border-radius: 7px 7px 7px 7px;opacity: 1; ">閲嶇疆</el-button> @@ -233,19 +233,23 @@ deptCheckStrictly: true, remark: undefined }; - this.resetForm("form"); + this.resetForm("elForm"); }, /** 鎼滅储鎸夐挳鎿嶄綔 */ handleQuery() { this.queryParams.pageNum = 1; - this.getList(); + + if(this.keyword!=''||this.dateRange.length!=0) + this.getList(); }, /** 閲嶇疆鎸夐挳鎿嶄綔 */ resetQuery() { this.dateRange = []; this.keyword = ''; - this.getList(); + this.queryParams.pageNum = 1; + this.searchList = [] + // this.getList(); }, // 澶氶�夋閫変腑鏁版嵁 handleSelectionChange(selection) { -- Gitblit v1.9.1