chenged position to methods
This commit is contained in:
@@ -201,20 +201,6 @@ module.exports = {
|
|||||||
|
|
||||||
const p = this.plan_time / this.toolpath.time;
|
const p = this.plan_time / this.toolpath.time;
|
||||||
return Math.min(1, p);
|
return Math.min(1, p);
|
||||||
},
|
|
||||||
gcode_files: async function (){
|
|
||||||
const files=this.state.files.filter(item => !this.config.macrosList.some(compareItem => compareItem.gcode_file_name == item));
|
|
||||||
console.log(files);
|
|
||||||
// this.config.gcodeList=files;
|
|
||||||
// try {
|
|
||||||
// await api.put("config/save", this.config);
|
|
||||||
// console.log("Successfully saved");
|
|
||||||
// this.$dispatch("update");
|
|
||||||
// } catch (error) {
|
|
||||||
// console.error("Restore Failed: ", error);
|
|
||||||
// alert("Restore failed");
|
|
||||||
// }
|
|
||||||
return files;
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -527,6 +513,20 @@ module.exports = {
|
|||||||
console.warn("Error running program: ",error);
|
console.warn("Error running program: ",error);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
gcode_files: async function (){
|
||||||
|
const files=this.state.files.filter(item => !this.config.macrosList.some(compareItem => compareItem.gcode_file_name == item));
|
||||||
|
console.log(files);
|
||||||
|
// this.config.gcodeList=files;
|
||||||
|
// try {
|
||||||
|
// await api.put("config/save", this.config);
|
||||||
|
// console.log("Successfully saved");
|
||||||
|
// this.$dispatch("update");
|
||||||
|
// } catch (error) {
|
||||||
|
// console.error("Restore Failed: ", error);
|
||||||
|
// alert("Restore failed");
|
||||||
|
// }
|
||||||
|
return files;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
mixins: [ require("./axis-vars") ]
|
mixins: [ require("./axis-vars") ]
|
||||||
|
|||||||
Reference in New Issue
Block a user