fixing code workflow & get assign
This commit is contained in:
parent
2bcbbe8c9f
commit
082debf2e5
7 changed files with 11 additions and 33 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue