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" > - +