[CLEANUP] Change misspelled variable

This commit is contained in:
JR 2019-11-20 22:49:28 +01:00
parent d751edade8
commit ad07748aa5

View File

@ -23,7 +23,7 @@
<td>PING</td>
<td>AS</td>
</tr>
<tr v-for="tData in tabeleData">
<tr v-for="tData in tableData">
<td>{{ tData[0] }}</td>
<td>{{ tData[1] }}</td>
<td>{{ tData[2] }}</td>
@ -69,9 +69,9 @@ export default {
},
deep: true
},
tabeleData : {
tableData : {
handler() {
sessionStorage.setItem('tabeleData' + this.boxNumber, JSON.stringify(this.tabeleData));
sessionStorage.setItem('tableData' + this.boxNumber, JSON.stringify(this.tableData));
},
deep: true
}
@ -102,9 +102,9 @@ export default {
axios.get("http://"+ this.selectedIp[0] + ":" +this.selectedIp[1] + "/v3/client/request/" + this.target)
.then(response => {
// JSON responses are automatically parsed.
this.tabeleData = response.data;
this.tableData = response.data;
this.setLastExecutionTime();
this.tableDataHistory.push(this.tabeleData);
this.tableDataHistory.push(this.tableData);
})
.catch(e => {
this.executionTime = 'Check request'
@ -115,7 +115,7 @@ export default {
this.executionTime = 'Not execute yet',
this.selectedIp = ["199.247.22.146",12111,20473,1],
this.target = '8.8.8.8',
this.tabeleData = [ ],
this.tableData = [ ],
this.tableDataHistory = [ ]
}
},
@ -129,14 +129,14 @@ export default {
if (sessionStorage.getItem('tableDataHistory'+ this.boxNumber)) this.tableDataHistory = JSON.parse(sessionStorage.getItem('tableDataHistory'+ this.boxNumber));
if (sessionStorage.getItem('target'+ this.boxNumber)) this.target = JSON.parse(sessionStorage.getItem('target'+ this.boxNumber));
if (sessionStorage.getItem('tabeleData'+ this.boxNumber)) this.tabeleData = JSON.parse(sessionStorage.getItem('tabeleData'+ this.boxNumber));
if (sessionStorage.getItem('tableData'+ this.boxNumber)) this.tableData = JSON.parse(sessionStorage.getItem('tableData'+ this.boxNumber));
},
data: function () {
return {
executionTime: 'Not execute yet',
selectedIp: ["199.247.22.146",12111,20473,1],
target: '8.8.8.8',
tabeleData : [ ],
tableData : [ ],
tableDataHistory: []
}
}