API inbox noti
This commit is contained in:
parent
1cb3c891f6
commit
2c5fb8e93c
4 changed files with 32 additions and 48 deletions
|
|
@ -5,6 +5,10 @@ import type { QTableProps } from "quasar";
|
|||
import { useInsigniaDataStore } from "@/modules/07_insignia/store";
|
||||
import { useRouter } from "vue-router";
|
||||
import DialogInformation from "@/components/Dialogs/Information.vue";
|
||||
import { useroleUserDataStore } from "@/stores/roleUser";
|
||||
|
||||
const roleDataStore = useroleUserDataStore();
|
||||
const { adminRole } = roleDataStore;
|
||||
|
||||
const router = useRouter();
|
||||
const DataStore = useInsigniaDataStore();
|
||||
|
|
@ -21,9 +25,6 @@ const props = defineProps({
|
|||
fecthInsigniaByOc: {
|
||||
type: Function,
|
||||
},
|
||||
roleUser: {
|
||||
type: String,
|
||||
},
|
||||
});
|
||||
|
||||
const organization = ref<string>("1");
|
||||
|
|
@ -143,7 +144,6 @@ const columns = ref<QTableProps["columns"]>([
|
|||
},
|
||||
]);
|
||||
onMounted(async () => {
|
||||
|
||||
organizationOptions.value = DataStore.optionsTypeOc;
|
||||
organization.value = await (DataStore.agency != null
|
||||
? DataStore.agency
|
||||
|
|
@ -211,7 +211,7 @@ const closeReson = () => {
|
|||
<div class="row col-12">
|
||||
<div class="row col-12 q-col-gutter-sm">
|
||||
<q-select
|
||||
v-if="props.roleUser == 'admin'"
|
||||
v-if="roleDataStore.adminRole"
|
||||
v-model="organization"
|
||||
label="หน่วยงาน"
|
||||
dense
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue