From a0654f2c21511a0e16b977427a563a3ccdfd1fba Mon Sep 17 00:00:00 2001
From: kongdeqiang <123456>
Date: 星期二, 14 三月 2023 15:34:06 +0800
Subject: [PATCH] 搜索bug
---
src/views/your/suggest-manage/suggestManage.vue | 36 +++++++++++++++++++++++++++---------
1 files changed, 27 insertions(+), 9 deletions(-)
diff --git a/src/views/your/suggest-manage/suggestManage.vue b/src/views/your/suggest-manage/suggestManage.vue
index 8a6d149..6ead1ef 100644
--- a/src/views/your/suggest-manage/suggestManage.vue
+++ b/src/views/your/suggest-manage/suggestManage.vue
@@ -12,9 +12,9 @@
openTip ? "鍏抽棴鎻愮ず" : "寮�鍚彁绀�"
}}</Button>
<Input
- v-model="searchForm.content"
+ v-model="searchForm2.content"
suffix="ios-search"
- @on-change="getDataList"
+ @on-change="getDataList2"
placeholder="杈撳叆鍙嶉鍐呭鎼滅储"
clearable
style="width: 250px"
@@ -199,6 +199,14 @@
order: "desc", // 榛樿鎺掑簭鏂瑰紡
key: "",
},
+ searchForm2: {
+ // 鎼滅储妗嗗垵濮嬪寲瀵硅薄
+ pageNumber: 1, // 褰撳墠椤垫暟
+ pageSize: 10, // 椤甸潰澶у皬
+ sort: "createTime", // 榛樿鎺掑簭瀛楁
+ order: "desc", // 榛樿鎺掑簭鏂瑰紡
+ key: "",
+ },
addOilForm: {
status : 0
},
@@ -216,11 +224,11 @@
submitLoading: false,
selectList: [],
columns: [
- {
- type: "selection",
- width: 60,
- align: "center",
- },
+ // {
+ // type: "selection",
+ // width: 60,
+ // align: "center",
+ // },
{
type: "index",
width: 60,
@@ -235,7 +243,7 @@
{
title: "鍙嶉鏃堕棿",
key: "createTime",
- width: 110,
+ width: 130,
render: (h, params) => {
return h("div",params.row.createTime.substr(0,10));
}
@@ -376,6 +384,16 @@
getDataList() {
this.loading = true;
getSuggest(this.searchForm).then((res) => {
+ this.loading = false;
+ if (res.success) {
+ this.data = res.result.records;
+ this.total = res.result.total;
+ }
+ });
+ },
+ getDataList2() {
+ this.loading = true;
+ getSuggest(this.searchForm2).then((res) => {
this.loading = false;
if (res.success) {
this.data = res.result.records;
@@ -845,4 +863,4 @@
this.init();
},
};
-</script>
\ No newline at end of file
+</script>
--
Gitblit v1.9.1