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>
+3 -3
View File
@@ -48,7 +48,7 @@
<td class="title font-weight-light">{{ item.created_at }}</td>
<td class="text-xs-right">
<v-btn color="cyan" class="mr-2" @click="show(item.id)">
<v-icon class="white--text mr-1 caption">fas fa-pen</v-icon>
<v-icon class="white--text mr-1 caption">fas fa-eye</v-icon>
<span>Show</span>
</v-btn>
<router-link
@@ -134,7 +134,7 @@ export default {
} else {
this.load();
}
},
methods: {
...mapMutations("modal", ["changeCurrentModal"]),
@@ -179,4 +179,4 @@ export default {
}
}
};
</script>
</script>