This commit is contained in:
sanjayk03-dev
2023-12-30 02:44:46 +05:30
parent d89ae5858f
commit 53aadd1f87
2 changed files with 10 additions and 8 deletions

View File

@@ -24,7 +24,8 @@ module.exports = {
}, },
methods:{ methods:{
print: function(){ print: function(){
console.log(this.state); var inputValue = document.getElementById('inputField').value;
console.log(inputValue);
}, },
open: function() { open: function() {
utils.clickFileInput("gcode-file-input"); utils.clickFileInput("gcode-file-input");

View File

@@ -1,7 +1,8 @@
script#macros-template(type="text/x-template") script#macros-template(type="text/x-template")
#macros #macros
h2 Macros h2 Macros
button.printVariable(title="print Varibale", @click='print', input(type="text",id="inputField")
button.printVariable(title="print Varibale", @click='print()',
style="height:100px;width:100px;font-weight:normal") style="height:100px;width:100px;font-weight:normal")
.fa.fa-folder-download .fa.fa-folder-download
button.pure-button(title="Upload a new GCode program.", @click="open", button.pure-button(title="Upload a new GCode program.", @click="open",
@@ -12,9 +13,9 @@ script#macros-template(type="text/x-template")
style="max-width:100%") style="max-width:100%")
option(v-for="file in state.files", :value="file") {{file}} option(v-for="file in state.files", :value="file") {{file}}
.progress(v-if="toolpath_progress && toolpath_progress < 1", .progress(v-if="toolpath_progress && toolpath_progress < 1",
title="Simulating GCode to check for errors, calculate ETA and " + title="Simulating GCode to check for errors, calculate ETA and " +
"generate 3D view. You can run GCode before the simulation " + "generate 3D view. You can run GCode before the simulation " +
"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}}