From a427dc73733de616424af4e3dd971fd3db763b7b Mon Sep 17 00:00:00 2001
From: feige <feige@qq.com>
Date: 星期一, 15 九月 2025 14:33:58 +0800
Subject: [PATCH] 新增了测试代码
---
ruoyi-ui/src/views/search/index.vue | 16 ++++++++++------
1 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/ruoyi-ui/src/views/search/index.vue b/ruoyi-ui/src/views/search/index.vue
index a6cb3ba..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) {
@@ -274,7 +278,7 @@
}else if(row.by5=="/family/zfDoctor"){//瀹跺涵灏忓尰鐢�
path ="/familymodel/Doctor/doctorInfo/"
- }else if(row.by5=="/family/zfClea"){ // 淇濇磥鏀剁撼 -----------鏈夐棶棰�
+ }else if(row.by5=="/family/zfClean"){ // 淇濇磥鏀剁撼 -----------鏈夐棶棰�----宸茶В鍐�
path = "/familymodel/clean/cleanInfo/"
}else if(row.by5=="/family/zfContact"){ //閫氳褰�
--
Gitblit v1.9.1