From 8cd39c00bb2206303f855e1d6a561de803af2228 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=97=AB=E6=99=93=E8=8C=B9?= <1935832701@qq.com> Date: Tue, 8 Nov 2022 15:05:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A4=E7=90=86=E7=AB=99=E4=BA=BA=E5=91=98?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=9A=84=E5=A7=93=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/person/index.vue | 176 +++++++++++++----------------- 1 file changed, 77 insertions(+), 99 deletions(-) diff --git a/src/views/system/person/index.vue b/src/views/system/person/index.vue index 1b77f61..63307ff 100644 --- a/src/views/system/person/index.vue +++ b/src/views/system/person/index.vue @@ -8,10 +8,13 @@ v-show="showSearch" label-width="68px" > - + - + - + - + @@ -223,7 +235,6 @@ :prop="`nurseStationPersonList.${index}.nurseStationId`" > {{ item.nurseStationName }} - + - - - - - - - - - @@ -894,7 +881,7 @@ style="margin-left: -20px" > {{ nurseStationName }} {{ departmentName }} + + + - { - console.log(res); - this.typelooks = res.data; - this.typeopen = true; - }); }, // // 修改所属科室按钮 departclick2() { @@ -1318,7 +1284,6 @@ export default { }, // 新增护理站按钮 clickinnerVisible(item, index) { - // console.log(item); this.stationid = item.nurseStationId; this.innerVisible = true; @@ -1452,8 +1417,8 @@ export default { }, getList2() { // 护理站名称 - this.loading = true; - stationList(this.queryParams2).then((res) => { + this.loading = true; + stationList(this.queryParams2).then((res) => { this.stationLists = res.rows; this.total2 = res.total; this.loading = false; @@ -1463,7 +1428,6 @@ export default { this.total3 = res.total; this.loading = false; }); - }, // 取消按钮 cancel() { @@ -1476,7 +1440,6 @@ export default { }, // 表单重置 reset() { - this.form = { id: null, nurseStationId: null, @@ -1510,7 +1473,6 @@ export default { ], }; this.resetForm("form"); - }, /** 搜索按钮操作 */ @@ -1580,22 +1542,22 @@ export default { resetQuery() { if (this.nurseStationlist[0].isAdmin == "1") { - this.resetForm("queryForm"); - this.queryParams = { - pageNum: 1, - pageSize: 10, - nurseStationId: null, - departmentCode: null, - userId: null, - nursePersonCode: null, - nursePersonName: null, - nursePersonType: null, - phone: null, - address: null, - }; + this.resetForm("queryForm"); + this.queryParams = { + pageNum: 1, + pageSize: 10, + nurseStationId: null, + departmentCode: null, + userId: null, + nursePersonCode: null, + nursePersonName: null, + nursePersonType: null, + phone: null, + address: null, + }; - this.handleQuery(); - } else { + this.handleQuery(); + } else { console.log(1); console.log(this.nurseStationlist); this.queryParams.departmentName = null; @@ -1633,10 +1595,9 @@ export default { this.title = "修改护理站人员信息"; if (this.departmentName == null && this.departmentName == undefined) { this.departmentName = "请选择所属科室"; - } else{ - this.departmentName = response.data.departmentName; + } else { + this.departmentName = response.data.departmentName; } - }); }, /** 提交按钮 */ @@ -1669,7 +1630,7 @@ export default { handleDelete(row) { const ids = row.id || this.ids; this.$modal - .confirm('是否确认删除护理站人员信息的数据项?') + .confirm("是否确认删除护理站人员信息的数据项?") .then(function () { return delPerson(ids); }) @@ -1727,7 +1688,7 @@ export default { `person_${new Date().getTime()}.xlsx` ); }, - //权限列表 + //权限列表 info() { getListByUser(this.nurseStationqueryParams).then((res) => { console.log(res); @@ -1761,7 +1722,24 @@ export default { } } }, - + // 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); + // }); + // }); + // } + // } + // }, }, };