doway-coms 2.2.26 → 2.2.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doway-coms",
3
- "version": "2.2.26",
3
+ "version": "2.2.27",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -105,7 +105,7 @@
105
105
  :key="loopItem.id"
106
106
  :name="'gantt-bar'+loopItem.taskId"
107
107
  :id="'gantt-bar'+loopItem.id"
108
- class="gantt-bar"
108
+ :class="loopItem.type=='schedule'?'gantt-schedule':'gantt-ord'"
109
109
  @mouseenter="ganttBarMouseEnter($event, loopItem, rowIndex)"
110
110
  @mouseleave="ganttBarMouseLeave($event, loopItem)"
111
111
  :style="{
@@ -423,26 +423,26 @@ export default {
423
423
  );
424
424
  this.rows[i].items[j]["width"] = tempWidth;
425
425
 
426
- for (let k = 0; k < this.rows[i].items[j].nodes.length; k++) {
427
- let nodeDiffMiniutes = moment(
428
- this.rows[i].items[j].nodes[k].start
429
- ).diff(moment(minDateTime), "minutes");
430
- let nodeTempLeft = XEUtils.divide(
431
- XEUtils.multiply(this.colWidth, nodeDiffMiniutes),
432
- splitMinutes
433
- );
434
- this.rows[i].items[j].nodes[k]["left"] = nodeTempLeft;
435
- //计算宽度
436
- let nodeOrdMinutes = moment(this.rows[i].items[j].nodes[k].end).diff(
437
- moment(this.rows[i].items[j].nodes[k].start),
438
- "minutes"
439
- );
440
- let nodeTempWidth = XEUtils.divide(
441
- XEUtils.multiply(this.colWidth, nodeOrdMinutes),
442
- splitMinutes
443
- );
444
- this.rows[i].items[j].nodes[k]["width"] = nodeTempWidth;
445
- }
426
+ // for (let k = 0; k < this.rows[i].items[j].nodes.length; k++) {
427
+ // let nodeDiffMiniutes = moment(
428
+ // this.rows[i].items[j].nodes[k].start
429
+ // ).diff(moment(minDateTime), "minutes");
430
+ // let nodeTempLeft = XEUtils.divide(
431
+ // XEUtils.multiply(this.colWidth, nodeDiffMiniutes),
432
+ // splitMinutes
433
+ // );
434
+ // this.rows[i].items[j].nodes[k]["left"] = nodeTempLeft;
435
+ // //计算宽度
436
+ // let nodeOrdMinutes = moment(this.rows[i].items[j].nodes[k].end).diff(
437
+ // moment(this.rows[i].items[j].nodes[k].start),
438
+ // "minutes"
439
+ // );
440
+ // let nodeTempWidth = XEUtils.divide(
441
+ // XEUtils.multiply(this.colWidth, nodeOrdMinutes),
442
+ // splitMinutes
443
+ // );
444
+ // this.rows[i].items[j].nodes[k]["width"] = nodeTempWidth;
445
+ // }
446
446
  }
447
447
  }
448
448
  this.lineHeight = this.rows.length * 40;
@@ -519,18 +519,23 @@ export default {
519
519
  }
520
520
  </style>
521
521
  <style lang="scss" scoped>
522
- .gantt-bar {
522
+ .gantt-schedule {
523
523
  position: absolute;
524
524
  top: 0px;
525
525
  z-index: 2;
526
526
  // float:left;
527
527
  height: 40px;
528
- cursor: pointer;
528
+ // cursor: pointer;
529
529
  // overflow: hidden;
530
530
  border-radius: 5px;
531
531
  }
532
- .gantt-bar :hover {
533
- background-color: darkgrey;
532
+ // .gantt-schedule :hover {
533
+ // background-color: darkgrey;
534
+ // }
535
+ .gantt-ord {
536
+ position: relative;
537
+ z-index: 3;
538
+ cursor: pointer;
534
539
  }
535
540
 
536
541
  .gantt-line-area {