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/imaging/index.vue |   46 ++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 46 insertions(+), 0 deletions(-)

diff --git a/src/views/doctor/imaging/index.vue b/src/views/doctor/imaging/index.vue
index 540cda5..b4af74a 100644
--- a/src/views/doctor/imaging/index.vue
+++ b/src/views/doctor/imaging/index.vue
@@ -879,6 +879,12 @@
       listUser(this.addDateRange(this.queryParams, this.dateRange)).then(
         (response) => {
           this.userList = response.rows;
+          this.userList.forEach((element) => {
+            const userName = this.$store.state.user.name;
+            if (userName == element.userName) {
+              this.doctorName = element.nickName;
+            }
+          });
         }
       );
       getInfo().then((response) => {
@@ -1360,6 +1366,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;
@@ -1431,6 +1445,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) => {
@@ -1495,6 +1517,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;
               }
@@ -1549,6 +1579,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;
               }
@@ -1590,6 +1628,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