From 956bfd00fda1a790a5a6a49aa5c52ad4fff04ee6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com> Date: Thu, 17 Nov 2022 16:51:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/goodsInfo/indexjs.js | 19 +++++-------------- src/views/system/goodsOrder/indexjs.js | 17 +++++------------ src/views/system/stationConsumable/indexjs.js | 11 ++--------- 3 files changed, 12 insertions(+), 35 deletions(-) diff --git a/src/views/system/goodsInfo/indexjs.js b/src/views/system/goodsInfo/indexjs.js index 918023e..4d966f8 100644 --- a/src/views/system/goodsInfo/indexjs.js +++ b/src/views/system/goodsInfo/indexjs.js @@ -304,20 +304,11 @@ export default { }, /** 重置按钮操作 */ resetQuery() { - if (this.nurseStationlist[0].isAdmin == "1") { - this.resetForm("queryForm"); - this.queryParams = { - pageNum: 1, - pageSize: 10, - }; - } else { - this.queryParams.pageNum = 1; - this.queryParams.pageSize = 10; - this.queryParams.goodsName = null; - this.queryParams.goodsCategoryName = null; - this.queryParams.goodsPurpose = null; - this.queryParams.whetherShelf = null; - } + this.resetForm("queryForm"); + this.queryParams = { + pageNum: 1, + pageSize: 10, + }; this.handleQuery(); }, // 多选框选中数据 diff --git a/src/views/system/goodsOrder/indexjs.js b/src/views/system/goodsOrder/indexjs.js index 16ba6bf..25421a1 100644 --- a/src/views/system/goodsOrder/indexjs.js +++ b/src/views/system/goodsOrder/indexjs.js @@ -340,18 +340,11 @@ export default { }, /** 重置按钮操作 */ resetQuery() { - if (this.nurseStationlist[0].isAdmin == "1") { - this.resetForm("queryForm"); - this.queryParams = { - pageNum: 1, - pageSize: 10, - }; - } else { - this.queryParams.pageNum = 1; - this.queryParams.pageSize = 10; - this.queryParams.orderNo = null; - this.queryParams.orderStatus = null; - } + this.resetForm("queryForm"); + this.queryParams = { + pageNum: 1, + pageSize: 10, + }; this.handleQuery(); }, diff --git a/src/views/system/stationConsumable/indexjs.js b/src/views/system/stationConsumable/indexjs.js index 4ddf7f4..89df9c6 100644 --- a/src/views/system/stationConsumable/indexjs.js +++ b/src/views/system/stationConsumable/indexjs.js @@ -403,15 +403,8 @@ export default { //护理站列表 info() { getListByUser(this.getListByUserquery).then((res) => { - if (res.rows[0].isAdmin == "1") { - this.nurseStationlist = res.rows; - this.total3 = res.total; - } else { - this.total3 = res.total; - this.nurseStationlist = res.rows; - this.queryParams.nurseStationId = res.rows[0].id; - this.handleQuery(); - } + this.nurseStationlist = res.rows; + this.total3 = res.total; }); }, },