Browse Source

7月4日杨青

杨青 1 year ago
parent
commit
10af2ea593
1 changed files with 15 additions and 15 deletions
  1. 15 15
      src/xt_pages/workforce/components/editTableData.vue

+ 15 - 15
src/xt_pages/workforce/components/editTableData.vue View File

2028
       zoneIdList: [],
2028
       zoneIdList: [],
2029
       strArr: "",
2029
       strArr: "",
2030
       patient_id_hover: 0,//高亮id
2030
       patient_id_hover: 0,//高亮id
2031
-
2031
+      // Mouse_id_hover:0,
2032
       now_time: "",
2032
       now_time: "",
2033
       activeItem: {
2033
       activeItem: {
2034
         day: null,
2034
         day: null,
3661
     },
3661
     },
3662
     // 高亮
3662
     // 高亮
3663
     hoverMouse(row, column, cell, event) {
3663
     hoverMouse(row, column, cell, event) {
3664
-      console.log('sdf12344565');
3665
-      if (row[column.property].schedule_id > 0) {
3666
-        let patient_id = row[column.property].patient_id
3667
-        this.patient_id_hover = patient_id
3668
-      } else {
3669
-        this.patient_id_hover = -1
3670
-      }
3664
+      // console.log('sdf12344565');
3665
+      // if (row[column.property].schedule_id > 0) {
3666
+      //   let patient_id = row[column.property].patient_id
3667
+      //   this.Mouse_id_hover = patient_id
3668
+      //   // this.cur_info.patient_id = row.id
3669
+      // } else {
3670
+      //   this.Mouse_id_hover = -1
3671
+      // }
3671
     },
3672
     },
3672
     // 单元格的 className 的回调方法
3673
     // 单元格的 className 的回调方法
3673
     cellClass({ row, column, rowIndex, columnIndex }) {
3674
     cellClass({ row, column, rowIndex, columnIndex }) {
3707
             ) {
3708
             ) {
3708
               return "hover-td schedule-table-cell-disable";
3709
               return "hover-td schedule-table-cell-disable";
3709
             } 
3710
             } 
3710
-            if(column.label == '晚'){
3711
-              return 'evening_border schedule-table-cell-disable'
3712
-            }
3711
+            // if(column.label == '晚'){
3712
+            //   return 'evening_border schedule-table-cell-disable'
3713
+            // }
3713
             return "schedule-table-cell-disable";
3714
             return "schedule-table-cell-disable";
3714
           } else {
3715
           } else {
3715
-            if(column.label == '晚' ){
3716
-                return 'evening_border'
3717
-            }
3716
+            // if(column.label == '晚' ){
3717
+            //     return 'evening_border'
3718
+            // }
3718
             if (
3719
             if (
3719
                 row[column.property].patient_id > 0 &&
3720
                 row[column.property].patient_id > 0 &&
3720
                 row[column.property].patient_id == this.patient_id_hover
3721
                 row[column.property].patient_id == this.patient_id_hover
3757
       if(this.cur_info.patient_id == row.id){
3758
       if(this.cur_info.patient_id == row.id){
3758
         // console.log('patientClassrowIndex的数据',rowIndex);
3759
         // console.log('patientClassrowIndex的数据',rowIndex);
3759
         // console.log('row的数据',row);
3760
         // console.log('row的数据',row);
3760
-
3761
         return 'highlight'
3761
         return 'highlight'
3762
       }
3762
       }
3763
     },
3763
     },