yq1 1 年之前
父節點
當前提交
7eeabf4cca
共有 2 個文件被更改,包括 29 次插入23 次删除
  1. 11 11
      src/xt_pages/workforce/components/editTableData.vue
  2. 18 12
      src/xt_pages/workforce/components/tableData.vue

+ 11 - 11
src/xt_pages/workforce/components/editTableData.vue 查看文件

@@ -4138,17 +4138,17 @@ export default {
4138 4138
     },
4139 4139
     // 单元格样式
4140 4140
     cellstyle({row, column, rowIndex, columnIndex}){
4141
-      for(let i=0;i<this.subzone.length;i++){
4142
-        const subslice=this.subzone[i].jihaos.slice(-1)
4143
-        // console.log('这是row',subslice);
4144
-        if(row.zone_id==subslice[0].zone_id && row.jihao_id == subslice[0].id ){
4145
-          // console.log('33333333333',subslice);
4146
-          return 'border-bottom: 1px solid #707174;'
4147
-        }
4148
-      }
4149
-      if(columnIndex==0){
4150
-        return 'border-bottom: 1px solid #707174;'
4151
-      }
4141
+      // for(let i=0;i<this.subzone.length;i++){
4142
+      //   const subslice=this.subzone[i].jihaos.slice(-1)
4143
+      //   // console.log('这是row',subslice);
4144
+      //   if(row.zone_id==subslice[0].zone_id && row.jihao_id == subslice[0].id ){
4145
+      //     // console.log('33333333333',subslice);
4146
+      //     return 'border-bottom: 1px solid #707174;'
4147
+      //   }
4148
+      // }
4149
+      // if(columnIndex==0){
4150
+      //   return 'border-bottom: 1px solid #707174;'
4151
+      // }
4152 4152
     },
4153 4153
     // 单元格的 className 的回调方法
4154 4154
     cellClass({ row, column, rowIndex, columnIndex }) {

+ 18 - 12
src/xt_pages/workforce/components/tableData.vue 查看文件

@@ -1454,17 +1454,23 @@ export default {
1454 1454
     },
1455 1455
     cellstyle({ row, column, rowIndex, columnIndex }){
1456 1456
       // 分区蓝线
1457
-      for(let i=0;i<this.subzone.length;i++){
1458
-        const subslice=this.subzone[i].jihaos.slice(-1)
1459
-        // console.log('这是row',subslice);
1460
-        if(row.zone_id==subslice[0].zone_id && row.jihao_id == subslice[0].id ){
1461
-          // console.log('33333333333',subslice);
1462
-          return 'border-bottom: 1px solid #707174;'
1463
-        }
1464
-      }
1465
-      if(columnIndex==0){
1466
-        return 'border-bottom: 1px solid #707174;'
1467
-      }
1457
+      // for(let i=0;i<this.subzone.length;i++){
1458
+      //   var subslice=this.subzone[i].jihaos.slice(-1)
1459
+      //   // console.log('这是row',subslice);
1460
+        
1461
+      //   // if(row.zone_id==subslice[0].zone_id && row.jihao_id == subslice[0].id ){
1462
+      //   //   // console.log('33333333333',subslice);
1463
+      //   //   return 'border-bottom: 1px solid #707174;'
1464
+      //   // }
1465
+      // }
1466
+      // for(let j in subslice){
1467
+      //   if(row.zone_id==subslice[j].zone_id && row.jihao_id == subslice[j].id ){
1468
+      //     return 'border-bottom: 1px solid #707174;'
1469
+      //   }
1470
+      // }
1471
+      // if(columnIndex==0){
1472
+      //   return 'border-bottom: 1px solid #707174;'
1473
+      // }
1468 1474
     },
1469 1475
 
1470 1476
     changeSearchContagion(id) {
@@ -4136,7 +4142,7 @@ export default {
4136 4142
     ScheduleItem
4137 4143
   },
4138 4144
   mounted() {
4139
-    new Drag(this.$refs.main);
4145
+    // new Drag(this.$refs.main);
4140 4146
     this.tableContainHeight = window.innerHeight - this.$refs.table.$el.offsetTop - 120;
4141 4147
 
4142 4148
     // var theType = this.weekType(this.weekTime);