doway-coms 2.2.24 → 2.2.26
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
|
@@ -423,25 +423,25 @@ 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].
|
|
426
|
+
for (let k = 0; k < this.rows[i].items[j].nodes.length; k++) {
|
|
427
427
|
let nodeDiffMiniutes = moment(
|
|
428
|
-
this.rows[i].items[j].
|
|
428
|
+
this.rows[i].items[j].nodes[k].start
|
|
429
429
|
).diff(moment(minDateTime), "minutes");
|
|
430
430
|
let nodeTempLeft = XEUtils.divide(
|
|
431
431
|
XEUtils.multiply(this.colWidth, nodeDiffMiniutes),
|
|
432
432
|
splitMinutes
|
|
433
433
|
);
|
|
434
|
-
this.rows[i].items[j].
|
|
434
|
+
this.rows[i].items[j].nodes[k]["left"] = nodeTempLeft;
|
|
435
435
|
//计算宽度
|
|
436
|
-
let nodeOrdMinutes = moment(this.rows[i].items[j].
|
|
437
|
-
moment(this.rows[i].items[j].
|
|
436
|
+
let nodeOrdMinutes = moment(this.rows[i].items[j].nodes[k].end).diff(
|
|
437
|
+
moment(this.rows[i].items[j].nodes[k].start),
|
|
438
438
|
"minutes"
|
|
439
439
|
);
|
|
440
440
|
let nodeTempWidth = XEUtils.divide(
|
|
441
441
|
XEUtils.multiply(this.colWidth, nodeOrdMinutes),
|
|
442
442
|
splitMinutes
|
|
443
443
|
);
|
|
444
|
-
this.rows[i].items[j].
|
|
444
|
+
this.rows[i].items[j].nodes[k]["width"] = nodeTempWidth;
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
447
|
}
|
|
@@ -521,12 +521,12 @@ export default {
|
|
|
521
521
|
<style lang="scss" scoped>
|
|
522
522
|
.gantt-bar {
|
|
523
523
|
position: absolute;
|
|
524
|
-
top:
|
|
524
|
+
top: 0px;
|
|
525
525
|
z-index: 2;
|
|
526
526
|
// float:left;
|
|
527
|
-
height:
|
|
527
|
+
height: 40px;
|
|
528
528
|
cursor: pointer;
|
|
529
|
-
overflow: hidden;
|
|
529
|
+
// overflow: hidden;
|
|
530
530
|
border-radius: 5px;
|
|
531
531
|
}
|
|
532
532
|
.gantt-bar :hover {
|