mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-13 23:01:07 +03:30
Shokouhi
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user