history duplicata e fluidità del gantt
This commit is contained in:
@@ -36,7 +36,8 @@ export default class Dashboard extends Vue {
|
||||
|
||||
@Watch("lastItem", { deep: true })
|
||||
async lastitemChanged(n: Prod.IProd, o) {
|
||||
this.items.splice(0, 0, ...await prodService.History(n.numDone - 1, 1));
|
||||
if (this.items.length && n.numDone - 1 != this.items[0].numDone)
|
||||
this.items.splice(0, 0, ...await prodService.History(n.numDone - 1, 1));
|
||||
}
|
||||
|
||||
items: Prod.IProd[] = [];
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
<time-line
|
||||
:padding-horizontal="padX"
|
||||
:zoom-factor="zoomFactor"
|
||||
:speed=".7"
|
||||
:speed="1"
|
||||
:x="ganttOptions.stepDuration * ganttOptions.secondSize - 15"
|
||||
:position="(currentTime) * ganttOptions.secondSize"
|
||||
:line-height="getRowHeight($refs.section1) + getRowHeight($refs.section2) +getRowHeight($refs.section2)+ ganttOptions.elementPadding*3"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<g :transform="`translate(${ paddingHorizontal} 0)`">
|
||||
<g
|
||||
:transform="`translate(${(position * zoomFactor)} 0)`"
|
||||
:style="`transition: transform ${speed}s linear`"
|
||||
:style="position>50?`transition: transform ${speed}s linear`:''"
|
||||
>
|
||||
<path class="arrow" d="M 0 0 L 30 0 L 15 24 Z" />
|
||||
<line x1="15" y1="24" x2="15" :y2="lineHeight" />
|
||||
|
||||
Reference in New Issue
Block a user