Browse Source

医护管理

XMLWAN 4 years ago
parent
commit
57b8c365d2

+ 9 - 1
src/xt_pages/medicalScheduling/index.vue View File

@@ -452,7 +452,8 @@ export default {
452 452
             }
453 453
             getStaffScheduleList(params).then(response=>{
454 454
                 if(response.data.state == 1){
455
-                    var staffList =  response.data.data.staffList                
455
+                    var staffList =  response.data.data.staffList
456
+                    console.log("stafflist",staffList)                
456 457
                     var sevenStr = ""
457 458
                     var oneStr = ""
458 459
                     var twoStr = ""
@@ -652,6 +653,13 @@ export default {
652 653
                         sixStr = strSix
653 654
                      }
654 655
                     }
656
+                    console.log("周一",oneStr)
657
+                    console.log("周er",twoStr)
658
+                    console.log("周三",threeStr)
659
+                    console.log("周四",fourStr)
660
+                    console.log("周五",fiveStr)
661
+                    console.log("周六",sixStr)
662
+                    console.log("周日",sevenStr)
655 663
                     let tempArr = [], newArr = []
656 664
                     for (let i = 0; i < staffList.length; i++) {
657 665
                         if (tempArr.indexOf(staffList[i].user_name) === -1) {

+ 2 - 2
src/xt_pages/medicalScheduling/medical_print.vue View File

@@ -459,11 +459,11 @@ export default {
459 459
               } 
460 460
             }
461 461
           })
462
-          if(newClass.indexOf("(") > -1){
462
+          if(newClass && newClass.indexOf("(") > -1){
463 463
             let num = newClass.indexOf("(")
464 464
             let a = newClass.slice(0, num) + '\n' + newClass.slice(num)
465 465
             return a
466
-          }else if(newClass.indexOf("(") > -1) {
466
+          }else if(newClass && newClass.indexOf("(") > -1) {
467 467
             let num = newClass.indexOf("(")
468 468
             let a = newClass.slice(0, num) + '\n' + newClass.slice(num)
469 469
             return a