From c5351e5f1d21b848bbaaa403726115d220443074 Mon Sep 17 00:00:00 2001
From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com>
Date: 星期二, 31 十月 2023 15:36:24 +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