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