This commit is contained in:
Warunee Tamkoo 2024-06-12 11:28:18 +07:00
parent 41cd0f50ff
commit 797d2015e7
3 changed files with 21 additions and 1 deletions

View file

@ -2,11 +2,13 @@ import env from "../index";
const management = `${env.API_URI}/org/keycloak`;
const managementAuth = `${env.API_URI}/org/auth/authRole`;
const managementSys = `${env.API_URI}/org/auth/authSys`;
export default {
management,
managementUser: `${management}/user`,
managementRole: `${management}/role`,
managementSysList: `${managementSys}/list`,
/** จัดการบทบาทและสิทธิ์*/
managementAuth,

View file

@ -199,7 +199,7 @@ onMounted(() => {
</q-tr>
</template>
<template v-slot:body="props">
<q-tr :props="props" class="cursor-pointer">
<q-tr :props="props">
<q-td v-for="col in props.cols" :key="col.name" :props="props">
<div>
{{ col.value ? col.value : "-" }}

View file

@ -1099,6 +1099,23 @@ function fetchDataRole() {
});
}
const sys = ref<any[]>([]);
function fetchSys() {
showLoader();
http
.get(config.API.managementSysList)
.then((res) => {
sys.value = res.data.result;
console.log(sys.value);
})
.catch((err) => {
messageError($q, err);
})
.finally(() => {
hideLoader();
});
}
function onSubmit() {
dialogConfirm($q, () => {
showLoader();
@ -1124,6 +1141,7 @@ function onSubmit() {
onMounted(() => {
fetchDataRole();
fetchSys();
});
</script>