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/customerReceive-manage/customerReceive.vue | 31 ++++++++++++++++++++++++-------
1 files changed, 24 insertions(+), 7 deletions(-)
diff --git a/src/views/your/customerReceive-manage/customerReceive.vue b/src/views/your/customerReceive-manage/customerReceive.vue
index 049c674..e7ea829 100644
--- a/src/views/your/customerReceive-manage/customerReceive.vue
+++ b/src/views/your/customerReceive-manage/customerReceive.vue
@@ -12,9 +12,9 @@
openTip ? "鍏抽棴鎻愮ず" : "寮�鍚彁绀�"
}}</Button>
<Input
- v-model="searchForm.name"
+ v-model="searchForm2.name"
suffix="ios-search"
- @on-change="getDataList"
+ @on-change="getDataList2"
placeholder="杈撳叆鍟嗘埛鍚嶇О鎼滅储"
clearable
style="width: 250px"
@@ -216,6 +216,14 @@
order: "desc", // 榛樿鎺掑簭鏂瑰紡
key: "",
},
+ searchForm2: {
+ // 鎼滅储妗嗗垵濮嬪寲瀵硅薄
+ pageNumber: 1, // 褰撳墠椤垫暟
+ pageSize: 10, // 椤甸潰澶у皬
+ sort: "createTime", // 榛樿鎺掑簭瀛楁
+ order: "desc", // 榛樿鎺掑簭鏂瑰紡
+ key: "",
+ },
addOilForm: {
status : '0'
},
@@ -243,7 +251,7 @@
{
title: "鍟嗘埛鍚嶇О",
key: "customerName",
- width: 100,
+ width: 240,
},
{
title: "鎺ヨ揣浜�",
@@ -445,6 +453,16 @@
}
});
},
+ getDataList2() {
+ this.loading = true;
+ getCustomerReceive(this.searchForm2).then((res) => {
+ this.loading = false;
+ if (res.success) {
+ this.data = res.result.records;
+ this.total = res.result.total;
+ }
+ });
+ },
getPermList() {
this.treeLoading = true;
getAllPermissionList().then((res) => {
@@ -522,7 +540,7 @@
addOil() {
this.getAllCar();
this.modalType = 0;
- this.modalTitle = "娣诲姞鍔犳补璁板綍";
+ this.modalTitle = "娣诲姞璁板綍";
this.$refs.addOilForm.resetFields();
delete this.addOilForm.id;
this.roleModalVisible = true;
@@ -531,7 +549,7 @@
this.getAllCar();
this.addDate = v.addDate;
this.modalType = 1;
- this.modalTitle = "缂栬緫鍔犳补淇℃伅";
+ this.modalTitle = "缂栬緫淇℃伅";
this.$refs.addOilForm.resetFields();
// 杞崲null涓�""
for (let attr in v) {
@@ -541,7 +559,6 @@
}
let str = JSON.stringify(v);
let roleInfo = JSON.parse(str);
-
this.addOilForm = roleInfo;
this.roleModalVisible = true;
},
@@ -866,4 +883,4 @@
this.init();
},
};
-</script>
\ No newline at end of file
+</script>
--
Gitblit v1.9.1