From 4929b5a4a0fb3618a83f528342b834ca46763624 Mon Sep 17 00:00:00 2001 From: admin-lmm <2497833386@QQ.com> Date: Thu, 24 Aug 2023 17:06:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jsowell-ui/src/views/pile/basic/index.vue | 83 ++++++++++++++++++++--- 1 file changed, 73 insertions(+), 10 deletions(-) diff --git a/jsowell-ui/src/views/pile/basic/index.vue b/jsowell-ui/src/views/pile/basic/index.vue index 91eaf5f6c..b82129404 100644 --- a/jsowell-ui/src/views/pile/basic/index.vue +++ b/jsowell-ui/src/views/pile/basic/index.vue @@ -39,13 +39,29 @@ - 刷新 + 刷新 - 重置 + 重置 - 批量新增 + 批量新增 { + this.loading = false; + this.getModelList(); + }, 500); + }, changeSelectMerchant(value) { // 清空内容 this.createPile.stationId = ""; @@ -422,8 +481,11 @@ export default { }); }, getModelList() { - listModel().then((response) => { + listModel(this.searchModelParam).then((response) => { + // console.log("response", response); + this.modelTotal = response.total; this.modelList = response.rows; + this.loadMoreFlag = this.searchModelParam.pageSize <= this.modelTotal; console.log("this.modelList", this.modelList); }); }, @@ -476,7 +538,7 @@ export default { /** 重置按钮操作 */ resetQuery() { this.queryParams = { - pageNum: 1 + pageNum: 1, }; // this.resetForm("queryForm"); this.handleQuery(); @@ -493,6 +555,7 @@ export default { this.getMerchantList(); this.title = "批量添加设备"; this.open = true; + this.getModelList(); }, /** 修改按钮操作 */ handleUpdate(row) {