Bladeren bron

9月6,排班问题

yq1 2 maanden geleden
bovenliggende
commit
ad659f9294
1 gewijzigde bestanden met toevoegingen van 10 en 9 verwijderingen
  1. 10 9
      src/xt_pages/workforce/components/tableData.vue

+ 10 - 9
src/xt_pages/workforce/components/tableData.vue Bestand weergeven

@@ -1395,8 +1395,10 @@ export default {
1395 1395
      },
1396 1396
     //  单元格样式的回调
1397 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 1402
       // console.log('wwwww',column)
1401 1403
       // console.log('eeeee',rowIndex)
1402 1404
       // console.log('rrrrr',columnIndex)
@@ -1433,7 +1435,7 @@ export default {
1433 1435
             // console.log('这是row',row);
1434 1436
             if(row[column.property].patient_id > 0 && row[column.property].patient_id == this.patient_id_hover ){
1435 1437
               return 'hover-td schedule-table-cell-disable'
1436
-            }
1438
+            } else
1437 1439
             if(columnIndex!=1&&row.zone_type!=1&&columnIndex!=23&&columnIndex!=0){
1438 1440
               return 'backPurple schedule-table-cell-disable'
1439 1441
             }
@@ -1442,17 +1444,16 @@ export default {
1442 1444
             }
1443 1445
             return "schedule-table-cell-disable";
1444 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 1450
             if(columnIndex!=1&&row.zone_type!=1&&columnIndex!=23&&columnIndex!=0){
1446
-              return 'backPurple'
1451
+              return 'backPurple '
1447 1452
             }
1448 1453
             if(row.cut.indexOf('滤')>-1 && columnIndex!=1 &&columnIndex!=23&&columnIndex!=0){
1449 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 1458
         } else {
1458 1459
           // if(column.label == '晚' ){