Structor CSSD

This commit is contained in:
saeid
2019-04-25 20:14:09 +04:30
parent fc162db99b
commit 14a91bdef7
72 changed files with 6957 additions and 4636 deletions
+7 -7
View File
@@ -87,32 +87,32 @@ export default {
logo: './img/vuetifylogo.png',
links: [
{
to: '/dashboard',
to: {name: 'Dashboard'},
icon: 'mdi-view-dashboard',
text: 'Dashboard'
},
{
to: '/my-info',
to: {name: 'MyInfo'},
icon: 'mdi-account',
text: 'My Info'
},
{
to: '/all-resualttest',
to: {name: 'AllResultTest'},
icon: 'description',
text: 'All Test Result'
},
{
to: '/manage-users',
to: {name: 'ManageUsers'},
icon: 'far fa-address-book',
text: 'Manage Users'
},
{
to: '/test-creator',
to: {name: 'ListTestType'},
icon: 'fas fa-vial',
text: 'Add a Test Type'
text: 'List Test Type'
},
{
to: '/submit-test-result',
to: {name: 'SubmitTestResult'},
icon: 'done',
text: 'Submit Test Result'
},
@@ -30,6 +30,7 @@
import { mapGetters, mapMutations } from "vuex";
import { ApiService } from "@/services";
import { roles } from "@/config/utils";
import { urls } from "@/config/urls";
export default {
data: () => ({
items: roles,
@@ -39,11 +40,11 @@ export default {
...mapMutations("modal", ["closeModal", "setResultModal"]),
async changeRole() {
const result = await ApiService.post(
`Users/ChangeRole/${this.getModalProperties.user.id}`,
urls.changeRoleUser(this.getModalProperties.user.id),
this.data
);
if (result && result.status == 200) {
this.setResultModal(result.data);
this.setResultModal(result.data.data);
this.closeModal();
}
}