mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-13 11:31:05 +03:30
Structor CSSD
This commit is contained in:
@@ -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