see999 4 years ago
parent
commit
c322c16092
1 changed files with 5 additions and 3 deletions
  1. 5 3
      src/xt_pages/dialysis/dialysisDoctorAdvice.vue

+ 5 - 3
src/xt_pages/dialysis/dialysisDoctorAdvice.vue View File

@@ -495,7 +495,7 @@ export default {
495 495
             console.log("列表数据",schedules)
496 496
             var config = resp.data.config
497 497
             console.log("config222222",config.is_open)
498
-           if(config.is_open == 0){
498
+           if(config.is_open == 0 || config.is_open == 2){
499 499
             this.show = true
500 500
             this.showOne = false
501 501
             let arr = []
@@ -539,6 +539,7 @@ export default {
539 539
                 })
540 540
                 this.scheduleMap = a
541 541
             }
542
+            console.log("列表22222",this.scheduleMap)
542 543
             this.scheduleMap.map(ele => {
543 544
                 let firstIndex = this.scheduleMap.findIndex(item => {
544 545
                   return item.patient_id === ele.patient_id   // 当category相同的时候,返回第一个相同的Index 赋值给 firstIndex
@@ -554,7 +555,7 @@ export default {
554 555
             })
555 556
             this.indexInfoList = newArr
556 557
            }
557
-           if(config.is_open == 1 || config.is_open == 2){
558
+           if(config.is_open == 1){
558 559
              this.show = false
559 560
              this.showOne  = true
560 561
             var schedules =  resp.data.hisAdvices
@@ -599,6 +600,7 @@ export default {
599 600
                 })
600 601
                 this.scheduleMap = a
601 602
             }
603
+            console.log('333333344444',this.scheduleMap)
602 604
             this.scheduleMap.map(ele => {
603 605
                 let firstIndex = this.scheduleMap.findIndex(item => {
604 606
                   return item.patient_id === ele.patient_id   // 当category相同的时候,返回第一个相同的Index 赋值给 firstIndex
@@ -615,7 +617,7 @@ export default {
615 617
             this.indexInfoList = newArr
616 618
            }
617 619
          }
618
-         console.log("列表22222",this.scheduleMap)
620
+        //  console.log("列表22222",this.scheduleMap)
619 621
         })
620 622
     },
621 623
     getValue: function(val) {