Gantt
This commit is contained in:
@@ -45,12 +45,21 @@ export default class Gantt extends Vue {
|
||||
return (this.$store.state as AppModel).prod;
|
||||
}
|
||||
|
||||
get cycleProd() {
|
||||
return (this.$store.state as AppModel).machineStatus.cycleProd;
|
||||
}
|
||||
|
||||
get isSection1Active() {
|
||||
return this.prod.fase <= 1;
|
||||
var a = this.cycleProd;
|
||||
if(!this.follow)
|
||||
return true;
|
||||
return this.cycleProd.messageId <= 1;
|
||||
}
|
||||
|
||||
get isSection2Active() {
|
||||
return this.prod.fase <= 2;
|
||||
if(!this.follow)
|
||||
return true;
|
||||
return this.cycleProd.messageId <= 2;
|
||||
}
|
||||
|
||||
get ganttHeight() {
|
||||
|
||||
@@ -65,7 +65,7 @@ export interface MachineStatusModel {
|
||||
gaugeData: { timeAdv: number, power: number, vacuum: number, air: number },
|
||||
axisInfo: { [id: number]: { is: number, name: string, type: string, position: number, speed: number } }
|
||||
|
||||
cycleProd: { mode: number, status: number, timeAdv: number }
|
||||
cycleProd: { mode: number, status: number, timeAdv: number, messageId: number }
|
||||
warmersParameters: {
|
||||
warmerPlanSizeX: number,
|
||||
warmerPlanSizeY: number,
|
||||
@@ -113,7 +113,7 @@ export interface MachineStatusActions {
|
||||
|
||||
export const machineStatusStore = {
|
||||
state: {
|
||||
cycleProd: { mode: 0, status: 0, timeAdv: 0 },
|
||||
cycleProd: { mode: 0, status: 0, timeAdv: 0, messageId: 0 },
|
||||
powerOnAlarm: { active: false, clickable: false, id: null },
|
||||
airPressureAlarm: { active: false, clickable: false, id: null },
|
||||
protectionsAlarm: { active: false, clickable: false, id: null },
|
||||
|
||||
Reference in New Issue
Block a user