From c26281ff05585d8f3f337b290831803fe766748b Mon Sep 17 00:00:00 2001 From: su1124 <1583764726@qq.com> Date: 星期二, 02 一月 2024 18:31:44 +0800 Subject: [PATCH] su --- src/views/doctor/test/index.vue | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 48 insertions(+), 0 deletions(-) diff --git a/src/views/doctor/test/index.vue b/src/views/doctor/test/index.vue index 0282eaf..0beb65e 100644 --- a/src/views/doctor/test/index.vue +++ b/src/views/doctor/test/index.vue @@ -585,6 +585,14 @@ listUser(this.addDateRange(this.queryParams, this.dateRange)).then( (response) => { this.userList = response.rows; + if (this.doctorName == null) { + this.userList.forEach((element) => { + const userName = this.$store.state.user.name; + if (userName == element.userName) { + this.doctorName = element.nickName; + } + }); + } } ); getInfo().then((response) => { @@ -1033,6 +1041,14 @@ this.proParentList.sons.forEach((item) => { this.doctorName = item.doctorName; + if (this.doctorName == null) { + this.userList.forEach((element) => { + const userName = this.$store.state.user.name; + if (userName == element.userName) { + this.doctorName = element.nickName; + } + }); + } if (item.isReturn == 1) { item.isReturn = true; @@ -1139,6 +1155,14 @@ this.userList.forEach((item) => { if (this.doctorName == item.nickName) { this.doctorName = item.userId; + if (this.doctorName == null) { + this.userList.forEach((element) => { + const userName = this.$store.state.user.name; + if (userName == element.userName) { + this.doctorName = element.nickName; + } + }); + } } }); this.proParentList.sons.forEach((item) => { @@ -1203,6 +1227,14 @@ } this.proParentList.sons.forEach((item) => { this.doctorName = item.doctorName; + if (this.doctorName == null) { + this.userList.forEach((element) => { + const userName = this.$store.state.user.name; + if (userName == element.userName) { + this.doctorName = element.nickName; + } + }); + } if (item.isReturn == 1) { item.isReturn = true; } @@ -1257,6 +1289,14 @@ } this.proParentList.sons.forEach((item) => { this.doctorName = item.doctorName; + if (this.doctorName == null) { + this.userList.forEach((element) => { + const userName = this.$store.state.user.name; + if (userName == element.userName) { + this.doctorName = element.nickName; + } + }); + } if (item.isReturn == 1) { item.isReturn = true; } @@ -1298,6 +1338,14 @@ this.userList.forEach((item) => { if (this.doctorName == item.nickName) { this.doctorName = item.userId; + if (this.doctorName == null) { + this.userList.forEach((element) => { + const userName = this.$store.state.user.name; + if (userName == element.userName) { + this.doctorName = element.nickName; + } + }); + } } }); this.proParentList.sons.forEach((item) => { -- Gitblit v1.8.0