diff --git a/src/views/system/person/index.vue b/src/views/system/person/index.vue index d11b68c..5b2d447 100644 --- a/src/views/system/person/index.vue +++ b/src/views/system/person/index.vue @@ -8,10 +8,10 @@ v-show="showSearch" label-width="68px" > - + + + + + + + + { - this.StationDepartmentLists = res.rows; - this.total3 = res.total; - this.loading = false; - }); + console.log(item); this.departid = item.departmentCode; this.innerVisible2 = true; @@ -1281,11 +1297,7 @@ export default { }, // 新增护理站按钮 clickinnerVisible(item, index) { - stationList(this.queryParams2).then((res) => { - this.stationLists = res.rows; - this.total2 = res.total; - this.loading = false; - }); + // console.log(item); this.stationid = item.nurseStationId; this.innerVisible = true; @@ -1304,24 +1316,24 @@ export default { // this.index = index; }, //xialakuang - loadMore() { - console.log("1"); - var a = Math.ceil(this.total4 / 10); - console.log(this.nurseStationlist.length); - if (this.nurseStationlist.length + 1 >= this.total4) { - } else { - if (this.nurseStationqueryParams.pageNum >= a) { - } else { - this.nurseStationqueryParams.pageNum++; - stationList(this.nurseStationqueryParams).then((res) => { - console.log(res); - res.rows.forEach((e) => { - this.nurseStationlist.push(e); - }); - }); - } - } - }, + // loadMore() { + // console.log("1"); + // var a = Math.ceil(this.total4 / 10); + // console.log(this.nurseStationlist.length); + // if (this.nurseStationlist.length + 1 >= this.total4) { + // } else { + // if (this.nurseStationqueryParams.pageNum >= a) { + // } else { + // this.nurseStationqueryParams.pageNum++; + // stationList(this.nurseStationqueryParams).then((res) => { + // console.log(res); + // res.rows.forEach((e) => { + // this.nurseStationlist.push(e); + // }); + // }); + // } + // } + // }, nurselist() { stationList(this.nurseStationqueryParams).then((res) => { console.log(res); @@ -1417,6 +1429,21 @@ export default { this.loading = false; }); }, + getList2() { + // 护理站名称 + this.loading = true; + stationList(this.queryParams2).then((res) => { + this.stationLists = res.rows; + this.total2 = res.total; + this.loading = false; + }); + StationDepartmentList(this.queryParams3).then((res) => { + this.StationDepartmentLists = res.rows; + this.total3 = res.total; + this.loading = false; + }); + + }, // 取消按钮 cancel() { this.open = false; @@ -1428,6 +1455,7 @@ export default { }, // 表单重置 reset() { + this.form = { id: null, nurseStationId: null, @@ -1461,6 +1489,7 @@ export default { ], }; this.resetForm("form"); + }, /** 搜索按钮操作 */ @@ -1506,7 +1535,6 @@ export default { id: null, nurseStationId: null, }; - stationList(this.queryParams2).then((res) => { this.stationLists = res.rows; this.total2 = res.total; @@ -1522,7 +1550,6 @@ export default { departmentName: null, nurseStationId: null, }; - StationDepartmentList(this.queryParams3).then((response) => { this.StationDepartmentLists = response.rows; this.total3 = response.total; @@ -1531,6 +1558,7 @@ export default { }, resetQuery() { + if (this.nurseStationlist[0].isAdmin == "1") { this.resetForm("queryForm"); this.queryParams = { pageNum: 1, @@ -1545,6 +1573,14 @@ export default { address: null, }; this.handleQuery(); + } else { + console.log(1); + this.queryParams.departmentName = null; + this.queryParams.pageSize = 10; + this.queryParams.pageNum = 1; + this.queryParams.nursePersonName = null; + this.handleQuery(); + } }, // 多选框选中数据 handleSelectionChange(selection) { @@ -1668,6 +1704,58 @@ export default { `person_${new Date().getTime()}.xlsx` ); }, + //权限列表 + info() { + getListByUser(this.nurseStationqueryParams).then((res) => { + console.log(res); + if (res.rows[0].isAdmin == "1") { + console.log(true); + this.nurseStationlist = res.rows; + this.total2 = res.total; + } else { + this.total2 = res.total; + this.nurseStationlist = res.rows; + this.queryParams.nurseStationId = res.rows[0].id; + this.handleQuery(); + } + }); + }, + //滑动下拉框 + loadMore() { + var a = Math.ceil(this.total4 / 10); + if (this.nurseStationlist.length + 1 >= this.total4) { + } else { + if (this.nurseStationqueryParams.pageNum >= a) { + } else { + this.nurseStationqueryParams.pageNum++; + console.log(this.nurseStationqueryParams.pageNum); + getListByUser(this.nurseStationqueryParams).then((res) => { + console.log(res); + res.rows.forEach((e) => { + this.nurseStationlist.push(e); + }); + }); + } + } + }, + // loadMore() { + // console.log("1"); + // var a = Math.ceil(this.total4 / 10); + // console.log(this.nurseStationlist.length); + // if (this.nurseStationlist.length + 1 >= this.total4) { + // } else { + // if (this.nurseStationqueryParams.pageNum >= a) { + // } else { + // this.nurseStationqueryParams.pageNum++; + // stationList(this.nurseStationqueryParams).then((res) => { + // console.log(res); + // res.rows.forEach((e) => { + // this.nurseStationlist.push(e); + // }); + // }); + // } + // } + // }, }, };