- แก้รอบเครื่องราช
- ผูก flow จัดการคำขอ
This commit is contained in:
parent
8d45efa921
commit
7894e7a715
5 changed files with 82 additions and 26 deletions
|
|
@ -23,6 +23,9 @@ const props = defineProps({
|
|||
fecthInsigniaByOc: {
|
||||
type: Function,
|
||||
},
|
||||
roleUser: {
|
||||
type: String,
|
||||
},
|
||||
});
|
||||
|
||||
const organization = ref<string>("1");
|
||||
|
|
@ -136,7 +139,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);
|
||||
// }
|
||||
|
|
@ -190,6 +195,7 @@ const paginationLabel = (start: string, end: string, total: string) => {
|
|||
<!-- {{ DataStore.typeinsigniaOptions }} -->
|
||||
<div class="row col-12 q-col-gutter-sm">
|
||||
<q-select
|
||||
v-if="props.roleUser == 'admin'"
|
||||
v-model="organization"
|
||||
label="หน่วยงาน"
|
||||
dense
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue