test
This commit is contained in:
@@ -17,14 +17,13 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
computed:{
|
computed:{
|
||||||
is_ready: function() {
|
is_ready: function() {
|
||||||
console.log("is_ready: ",this.mach_state);
|
console.log("is_ready: ",this);
|
||||||
return this.mach_state == "READY";
|
return this.mach_state == "READY";
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
print: function(){
|
print: function(){
|
||||||
console.log("/nthis.config",this.config);
|
console.log(this.template);
|
||||||
console.log("/nthis.state",this.state);
|
|
||||||
},
|
},
|
||||||
open: function() {
|
open: function() {
|
||||||
utils.clickFileInput("gcode-file-input");
|
utils.clickFileInput("gcode-file-input");
|
||||||
@@ -34,7 +33,9 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
load: function() {
|
load: function() {
|
||||||
const file_time = this.state.selected_time;
|
const file_time = this.state.selected_time;
|
||||||
|
console.log('file_time',this.state.selected_time);
|
||||||
const file = this.state.selected;
|
const file = this.state.selected;
|
||||||
|
console.log("file: ",this.state.selected);
|
||||||
if (this.last_file == file && this.last_file_time == file_time) {
|
if (this.last_file == file && this.last_file_time == file_time) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,13 +2,13 @@ script#macros-template(type="text/x-template")
|
|||||||
#macros
|
#macros
|
||||||
h1 Macros Configuration
|
h1 Macros Configuration
|
||||||
input(type="text",id="inputField")
|
input(type="text",id="inputField")
|
||||||
button.printVariable(title="print Varibale", @click='print()',
|
button.printVariable(title="print Varibale", @click='print',
|
||||||
style="height:100px;width:100px;font-weight:normal") PrintVariable
|
style="height:100px;width:100px;font-weight:normal") PrintVariable
|
||||||
button.printVariable(title="print Varibale", @click='print()',
|
h3 {{no_of_macros}}
|
||||||
style="height:100px;width:200px;font-weight:normal") Print No of Macros
|
|
||||||
//- button.pure-button(title="Upload a new GCode program.", @click="open",
|
//- button.pure-button(title="Upload a new GCode program.", @click="open",
|
||||||
//- :disabled="!is_ready",style="height:100px;width:100px;font-weight:normal")
|
//- :disabled="!is_ready",style="height:100px;width:100px;font-weight:normal")
|
||||||
//- .fa.fa-folder-open
|
//- .fa.fa-folder-open
|
||||||
|
|
||||||
//- select(title="Select previously uploaded GCode programs.",
|
//- select(title="Select previously uploaded GCode programs.",
|
||||||
//- v-model="state.selected", @change="load", :disabled="!is_ready",
|
//- v-model="state.selected", @change="load", :disabled="!is_ready",
|
||||||
//- style="max-width:100%")
|
//- style="max-width:100%")
|
||||||
@@ -20,4 +20,4 @@ script#macros-template(type="text/x-template")
|
|||||||
//- "finishes.")
|
//- "finishes.")
|
||||||
//- div(:style="'width:' + (toolpath_progress || 0) * 100 + '%'")
|
//- div(:style="'width:' + (toolpath_progress || 0) * 100 + '%'")
|
||||||
//- label Simulating {{(toolpath_progress || 0) | percent}}
|
//- label Simulating {{(toolpath_progress || 0) | percent}}
|
||||||
//- gcode-viewer
|
gcode-viewer
|
||||||
|
|||||||
Reference in New Issue
Block a user