From d9ed0ceaba6145c1e7d6a3e8e1bd4f01463f44fe Mon Sep 17 00:00:00 2001
From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com>
Date: 星期四, 02 十一月 2023 15:48:16 +0800
Subject: [PATCH] qxtj

---
 src/views/doctor/check/index.vue |   36 +++++++++++++++++++++++-------------
 1 files changed, 23 insertions(+), 13 deletions(-)

diff --git a/src/views/doctor/check/index.vue b/src/views/doctor/check/index.vue
index bfb025b..8ee401a 100644
--- a/src/views/doctor/check/index.vue
+++ b/src/views/doctor/check/index.vue
@@ -714,11 +714,15 @@
               this.proParentList = response.data;
               this.loading = false;
               this.value = [];
-              if (this.proParentList.xiaoJie.length != 0) {
-                this.proParentList.xiaoJie.forEach((item2) => {
-                  this.value.push(item2.id);
+              if(this.proParentList.xiaoJieIds != null){
+                if (this.proParentList.xiaoJieIds.length != 0) {
+                this.proParentList.xiaoJieIds.forEach((item2) => {
+                  let item = Number(item2)
+                  this.value.push(item);
                 });
               }
+              }
+             
               this.proParentList.sons.forEach((item) => {
                 this.doctorName = item.doctorName;
 
@@ -845,11 +849,14 @@
           getParentId(data).then((response) => {
             this.proParentList = response.data;
             this.value = [];
-            if (this.proParentList.xiaoJie.length != 0) {
-              this.proParentList.xiaoJie.forEach((item2) => {
-                this.value.push(item2.id);
-              });
-            }
+            if(this.proParentList.xiaoJieIds != null){
+                if (this.proParentList.xiaoJieIds.length != 0) {
+                this.proParentList.xiaoJieIds.forEach((item2) => {
+                  let item = Number(item2)
+                  this.value.push(item);
+                });
+              }
+              }
             this.proParentList.sons.forEach((item) => {
               this.doctorName = item.doctorName;
               if (item.isReturn == 1) {
@@ -896,11 +903,14 @@
           getParentId(data).then((response) => {
             this.proParentList = response.data;
             this.value = [];
-            if (this.proParentList.xiaoJie.length != 0) {
-              this.proParentList.xiaoJie.forEach((item2) => {
-                this.value.push(item2.id);
-              });
-            }
+            if(this.proParentList.xiaoJieIds != null){
+                if (this.proParentList.xiaoJieIds.length != 0) {
+                this.proParentList.xiaoJieIds.forEach((item2) => {
+                  let item = Number(item2)
+                  this.value.push(item);
+                });
+              }
+              }
             this.proParentList.sons.forEach((item) => {
               this.doctorName = item.doctorName;
               if (item.isReturn == 1) {

--
Gitblit v1.8.0