This commit is contained in:
Shokouhi
2019-05-09 15:15:59 +04:30
parent f55a8ebc95
commit 56b108401a
8 changed files with 471 additions and 113 deletions
@@ -185,7 +185,7 @@ export default {
this.selectTestType();
}
this.load();
},
methods: {
async load() {
@@ -208,7 +208,7 @@ export default {
this.formData[result.data.data.inputs[key].children[keyForm].name] = '';
}
}
}
}
} else if(result.data.data.inputs[key].type == 'Checkbox' || result.data.data.inputs[key].type == 'Select') {
this.formData[result.data.data.inputs[key].name] = [];
} else {
@@ -231,7 +231,7 @@ export default {
} else {
result = await ApiService.post(urls.storeTestResult, this.formData);
}
if (result && result.status == 200) {
this.$router.push({name: 'Dashboard'})
}
@@ -250,7 +250,7 @@ export default {
reader.onload = (e) => {
vm.image = e.target.result;
};
reader.readAsDataURL(file);
},
removeImage: function (e) {
@@ -263,4 +263,4 @@ export default {
}
}
};
</script>
</script>