Fix frontend
This commit is contained in:
Vendored
+2
-1
@@ -141,7 +141,8 @@ declare module server {
|
||||
balluf: number,
|
||||
magazinePositionType: number,
|
||||
maxLeft: number,
|
||||
maxRight: number
|
||||
maxRight: number,
|
||||
childsTools: Array<ShanksChildsTools>
|
||||
}
|
||||
|
||||
export interface FamiliesNc{
|
||||
|
||||
@@ -511,13 +511,23 @@ export default class depot extends Vue {
|
||||
}
|
||||
|
||||
public dataForOpenInfoNcShank(id) {
|
||||
let shank = (this.$store.state as AppModel).tooling.ncShanks.find(s => s.id == id);
|
||||
|
||||
ModalHelper.infoEquipmentModal.enableModalShank = true;
|
||||
ModalHelper.infoEquipmentModal.enableModalTool = false;
|
||||
ModalHelper.infoEquipmentModal.currentShank = shank;
|
||||
ModalHelper.infoEquipmentModal.editEnabled = !this.editable;
|
||||
ModalHelper.ShowModal(InfoEquipment);
|
||||
let shank = (this.$store.state as AppModel).tooling.ncShanks.find(t => t.id == id);
|
||||
console.log(shank)
|
||||
if (shank.childsTools.length == 1) {
|
||||
ModalHelper.infoEquipmentModal.enableModalShank = false;
|
||||
ModalHelper.infoEquipmentModal.enableModalTool = true;
|
||||
ModalHelper.infoEquipmentModal.currentEquipment = shank.childsTools[0];
|
||||
ModalHelper.infoEquipmentModal.editEnabled = !this.editable;
|
||||
ModalHelper.ShowModal(InfoEquipment);
|
||||
}
|
||||
else {
|
||||
let shank = (this.$store.state as AppModel).tooling.ncShanks.find(s => s.id == id);
|
||||
ModalHelper.infoEquipmentModal.enableModalShank = true;
|
||||
ModalHelper.infoEquipmentModal.enableModalTool = false;
|
||||
ModalHelper.infoEquipmentModal.currentShank = shank;
|
||||
ModalHelper.infoEquipmentModal.editEnabled = !this.editable;
|
||||
ModalHelper.ShowModal(InfoEquipment);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user