From a250fabd4e0ffab48ba600370d76c1149b041b71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com> Date: Mon, 7 Nov 2022 13:35:12 +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/index.vue | 76 ++++++++++++++++---- src/views/system/stationConsumable/index.vue | 2 +- 2 files changed, 65 insertions(+), 13 deletions(-) diff --git a/src/views/system/goodsInfo/index.vue b/src/views/system/goodsInfo/index.vue index 9e3ab19..31b8ffd 100644 --- a/src/views/system/goodsInfo/index.vue +++ b/src/views/system/goodsInfo/index.vue @@ -239,7 +239,23 @@ style="width: 210px; margin-left: 10px" /> - + + + + + + + { - console.log(res); - this.nurseStationlist = res.data; - }); - goodsCategory().then((res) => { - console.log(this.form); - this.goodsCategorylist = res.rows; - }); - }, + // list() { + // listStation().then((res) => { + // console.log(res); + // this.nurseStationlist = res.data; + // }); + // goodsCategory().then((res) => { + // console.log(this.form); + // this.goodsCategorylist = res.rows; + // }); + // }, // 添加 addgoodAttributeDetail() { console.log(this.goodDetailsLists); @@ -953,6 +975,36 @@ export default { }); } }, + //权限列表 + info() { + getListByUser(this.getListByUserquery).then((res) => { + if (res.rows[0].isAdmin == "1") { + this.nurseStationlist = res.rows; + this.total2 = res.total; + } else { + this.total2 = res.total; + this.nurseStationlist = res.rows; + this.queryParams.id = res.rows[0].id; + this.handleQuery(); + } + }); + }, + //滑动下拉框 + loadMore() { + var a = Math.ceil(this.total2 / 10); + if (this.nurseStationlist.length + 1 >= this.total2) { + } else { + if (this.getListByUserquery.pageNum >= a) { + } else { + this.getListByUserquery.pageNum++; + getListByUser(this.getListByUserquery).then((res) => { + res.rows.forEach((e) => { + this.nurseStationlist.push(e); + }); + }); + } + } + }, }, }; diff --git a/src/views/system/stationConsumable/index.vue b/src/views/system/stationConsumable/index.vue index 6b97ed5..34d05bd 100644 --- a/src/views/system/stationConsumable/index.vue +++ b/src/views/system/stationConsumable/index.vue @@ -230,7 +230,7 @@ :before-close="cancel" > - +