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; }); }, },