From 8ec379cc35a2d53031c604c40956cc2c38e9cfc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=97=AB=E6=99=93=E8=8C=B9?= <1935832701@qq.com> Date: Fri, 23 Sep 2022 11:16:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E8=AE=A2=E5=8D=95=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=EF=BC=8C=E6=8A=A4=E7=90=86=E7=AB=99=E5=92=8C=E9=83=A8?= =?UTF-8?q?=E9=97=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/StationDepartment/index.vue | 65 +++++-- src/views/system/order/index.vue | 194 +++++++++---------- src/views/system/station/index.vue | 2 +- 3 files changed, 145 insertions(+), 116 deletions(-) diff --git a/src/views/system/StationDepartment/index.vue b/src/views/system/StationDepartment/index.vue index d24dcb9..e9bc2ef 100644 --- a/src/views/system/StationDepartment/index.vue +++ b/src/views/system/StationDepartment/index.vue @@ -8,10 +8,27 @@ v-show="showSearch" label-width="68px" > - + + + + + + + = this.total2) { } else { if (this.nurseStationqueryParams.pageNum >= a) { } else { this.nurseStationqueryParams.pageNum++; - list(this.nurseStationqueryParams).then((res) => { + console.log(this.nurseStationqueryParams.pageNum); + getListByUser(this.nurseStationqueryParams).then((res) => { console.log(res); res.rows.forEach((e) => { this.nurseStationlist.push(e); @@ -571,6 +593,7 @@ export default { }, /** 重置按钮操作 */ resetQuery() { + if (this.nurseStationlist[0].isAdmin == "1") { this.resetForm("queryForm"); this.queryParams = { pageNum: 1, @@ -582,13 +605,31 @@ export default { phone: null, nurseStationName: null, }; - list(this.nurseStationqueryParams).then((res) => { - console.log(res); - this.nurseStationlist = res.rows; - this.total2 = res.total; - console.log(this.nurseStationlist); - }); this.handleQuery(); + }else { + console.log(1); + this.queryParams.departmentCode = null; + this.queryParams.pageSize = 10; + this.queryParams.pageNum = 1; + this.queryParams.departmentName = null; + this.handleQuery(); + } + }, + //权限列表 + 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(); + } + }); }, // 多选框选中数据 handleSelectionChange(selection) { diff --git a/src/views/system/order/index.vue b/src/views/system/order/index.vue index 073af12..588f6bc 100644 --- a/src/views/system/order/index.vue +++ b/src/views/system/order/index.vue @@ -52,81 +52,83 @@ >重置 + + - - - + + + + + + + - - - - - - - - - - - - - - + 查看 + 删除 + + + + + + +
- - - - - - - - - - - - - - - - - - - -
-
- - + +
\ No newline at end of file diff --git a/src/views/system/station/index.vue b/src/views/system/station/index.vue index 45107cb..85b612e 100644 --- a/src/views/system/station/index.vue +++ b/src/views/system/station/index.vue @@ -181,7 +181,7 @@ > - +