- แก้รอบเครื่องราช

- ผูก flow จัดการคำขอ
This commit is contained in:
Warunee Tamkoo 2023-08-23 22:23:09 +07:00
parent 8d45efa921
commit 7894e7a715
5 changed files with 82 additions and 26 deletions

View file

@ -21,6 +21,9 @@ const props = defineProps({
fecthInsigniaByOc: {
type: Function,
},
roleUser: {
type: String,
},
});
const organization = ref<string>("1");
@ -131,7 +134,9 @@ const columns = ref<QTableProps["columns"]>([
]);
onMounted(async () => {
organizationOptions.value = DataStore.optionsTypeOc;
organization.value = DataStore.typeOc;
organization.value = await (DataStore.agency != null
? DataStore.agency
: DataStore.typeOc);
// if (props.fecthInsigniaAll) {
// await props.fecthInsigniaAll(props.roundId, props.tab);
// }
@ -184,6 +189,7 @@ const paginationLabel = (start: string, end: string, total: string) => {
<div class="row col-12">
<div class="row col-12 q-col-gutter-sm">
<q-select
v-if="props.roleUser == 'admin'"
v-model="organization"
label="หน่วยงาน"
dense