Browse Source

9月6,排班问题

yq1 2 months ago
parent
commit
ad659f9294
1 changed files with 10 additions and 9 deletions
  1. 10 9
      src/xt_pages/workforce/components/tableData.vue

+ 10 - 9
src/xt_pages/workforce/components/tableData.vue View File

1395
      },
1395
      },
1396
     //  单元格样式的回调
1396
     //  单元格样式的回调
1397
     cellClass({ row, column, rowIndex, columnIndex }) {
1397
     cellClass({ row, column, rowIndex, columnIndex }) {
1398
-      
1399
-      
1398
+      // if(row[column.property].patient_id>0){
1399
+      //   console.log('qqqqq',row[column.property])
1400
+      // }
1401
+
1400
       // console.log('wwwww',column)
1402
       // console.log('wwwww',column)
1401
       // console.log('eeeee',rowIndex)
1403
       // console.log('eeeee',rowIndex)
1402
       // console.log('rrrrr',columnIndex)
1404
       // console.log('rrrrr',columnIndex)
1433
             // console.log('这是row',row);
1435
             // console.log('这是row',row);
1434
             if(row[column.property].patient_id > 0 && row[column.property].patient_id == this.patient_id_hover ){
1436
             if(row[column.property].patient_id > 0 && row[column.property].patient_id == this.patient_id_hover ){
1435
               return 'hover-td schedule-table-cell-disable'
1437
               return 'hover-td schedule-table-cell-disable'
1436
-            }
1438
+            } else
1437
             if(columnIndex!=1&&row.zone_type!=1&&columnIndex!=23&&columnIndex!=0){
1439
             if(columnIndex!=1&&row.zone_type!=1&&columnIndex!=23&&columnIndex!=0){
1438
               return 'backPurple schedule-table-cell-disable'
1440
               return 'backPurple schedule-table-cell-disable'
1439
             }
1441
             }
1442
             }
1444
             }
1443
             return "schedule-table-cell-disable";
1445
             return "schedule-table-cell-disable";
1444
           }else{
1446
           }else{
1447
+            if(row[column.property].patient_id > 0 && row[column.property].patient_id == this.patient_id_hover){
1448
+              return 'hover-td '
1449
+            }
1445
             if(columnIndex!=1&&row.zone_type!=1&&columnIndex!=23&&columnIndex!=0){
1450
             if(columnIndex!=1&&row.zone_type!=1&&columnIndex!=23&&columnIndex!=0){
1446
-              return 'backPurple'
1451
+              return 'backPurple '
1447
             }
1452
             }
1448
             if(row.cut.indexOf('滤')>-1 && columnIndex!=1 &&columnIndex!=23&&columnIndex!=0){
1453
             if(row.cut.indexOf('滤')>-1 && columnIndex!=1 &&columnIndex!=23&&columnIndex!=0){
1449
               return 'thefilter'
1454
               return 'thefilter'
1450
             }
1455
             }
1451
-            if(row[column.property].patient_id > 0 && row[column.property].patient_id == this.patient_id_hover){
1452
-              return 'hover-td schedule-table-cell-disable'
1453
-            }else {
1454
-              return ''
1455
-            }
1456
+            return 
1456
           }
1457
           }
1457
         } else {
1458
         } else {
1458
           // if(column.label == '晚' ){
1459
           // if(column.label == '晚' ){