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/area-manage/areaManage.vue | 36 ++++++++++++++++++++++++++++++++---- 1 files changed, 32 insertions(+), 4 deletions(-) diff --git a/src/views/your/area-manage/areaManage.vue b/src/views/your/area-manage/areaManage.vue index a67657b..6779ed3 100644 --- a/src/views/your/area-manage/areaManage.vue +++ b/src/views/your/area-manage/areaManage.vue @@ -13,9 +13,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" @@ -324,6 +324,14 @@ modalTitle3: "", carList:[], searchForm: { + // 鎼滅储妗嗗垵濮嬪寲瀵硅薄 + pageNumber: 1, // 褰撳墠椤垫暟 + pageSize: 10, // 椤甸潰澶у皬 + sort: "createTime", // 榛樿鎺掑簭瀛楁 + order: "desc", // 榛樿鎺掑簭鏂瑰紡 + key: "", + }, + searchForm2: { // 鎼滅储妗嗗垵濮嬪寲瀵硅薄 pageNumber: 1, // 褰撳墠椤垫暟 pageSize: 10, // 椤甸潰澶у皬 @@ -700,6 +708,16 @@ } }); }, + getDataList2() { + this.loading = true; + getArea(this.searchForm2).then((res) => { + this.loading = false; + if (res.success) { + this.data = res.result.records; + this.total = res.result.total; + } + }); + }, getCustList() { this.loading = true; this.searchForm.pageNumber=1; @@ -730,6 +748,16 @@ this.loading = true; this.searchForm.areaId=areaId; getAreaSection(this.searchForm).then((res) => { + this.loading = false; + if (res.success) { + this.data2 = res.result.records; + } + }); + }, + getAreaSectionList2(areaId) { + this.loading = true; + this.searchForm2.areaId=areaId; + getAreaSection(this.searchForm2).then((res) => { this.loading = false; if (res.success) { this.data2 = res.result.records; @@ -896,7 +924,7 @@ }, equipment(row) { this.areaId = row.id - this.getAreaSectionList(row.id); + this.getAreaSectionList2(row.id); this.modalType = 0; this.modalTitle2 = "鐗囧尯娈典俊鎭�"; this.$refs.areaForm.resetFields(); @@ -1332,4 +1360,4 @@ this.init(); }, }; -</script> \ No newline at end of file +</script> -- Gitblit v1.9.1