fixing code workflow & get assign

This commit is contained in:
Warunee Tamkoo 2024-10-29 12:33:18 +07:00
parent 2bcbbe8c9f
commit 082debf2e5
7 changed files with 11 additions and 33 deletions

View file

@ -32,12 +32,8 @@ const {
success,
} = mixin;
const isOfficer = ref<boolean | null>(null);
const isStaff = ref<boolean | null>(null);
const paramsId = route.params.id;
const myForm = ref<QForm | null>(null);
const roleAdmin = ref<boolean>(false);
const dataProfile = ref<DataProfile>(); //
const edit = ref<boolean>(false);
const status = ref<string>("");
@ -143,27 +139,7 @@ const getClass = (val: boolean) => {
};
};
async function getWorkFlow() {
showLoader();
await http
.get(config.API.workflowKeycloakSystem("ORG_COMMAND"))
.then(async (res) => {
const data = await res.data.result;
isOfficer.value = data.isOfficer;
isStaff.value = data.isStaff;
roleAdmin.value = data.isOfficer;
hideLoader();
})
.catch((e) => {
messageError($q, e);
hideLoader();
})
.finally(() => {});
}
onMounted(async () => {
getWorkFlow();
fetchData();
});
</script>