แก้ไข TAB เครื่องราชฯ ปรับ Table
This commit is contained in:
parent
b18056a335
commit
a1bd65f1ca
13 changed files with 87 additions and 10 deletions
|
|
@ -225,6 +225,7 @@ onMounted(async () => {
|
|||
"officer",
|
||||
props.tab
|
||||
);
|
||||
DataStore.mainTab = props.tab;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -157,6 +157,7 @@ onMounted(async () => {
|
|||
"officer",
|
||||
props.tab
|
||||
);
|
||||
DataStore.mainTab = props.tab;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -143,6 +143,7 @@ const columns = ref<QTableProps["columns"]>([
|
|||
},
|
||||
]);
|
||||
onMounted(async () => {
|
||||
|
||||
organizationOptions.value = DataStore.optionsTypeOc;
|
||||
organization.value = await (DataStore.agency != null
|
||||
? DataStore.agency
|
||||
|
|
@ -156,6 +157,7 @@ onMounted(async () => {
|
|||
"officer",
|
||||
props.tab
|
||||
);
|
||||
DataStore.mainTab = props.tab;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -5,10 +5,12 @@ import { useQuasar } from "quasar";
|
|||
import type { QTableProps } from "quasar";
|
||||
import http from "@/plugins/http";
|
||||
import config from "@/app.config";
|
||||
import { useInsigniaDataStore } from "@/modules/07_insignia/store";
|
||||
|
||||
const $q = useQuasar();
|
||||
const mixin = useCounterMixin();
|
||||
const { showLoader, hideLoader, messageError } = mixin;
|
||||
const DataStore = useInsigniaDataStore();
|
||||
const props = defineProps({
|
||||
roundId: {
|
||||
type: String,
|
||||
|
|
@ -44,6 +46,7 @@ const rows = ref<any[]>([]);
|
|||
|
||||
onMounted(async () => {
|
||||
await fecthOrg();
|
||||
DataStore.mainTab = props.tab;
|
||||
});
|
||||
watch(props, async () => {
|
||||
if (props.tab === "organization") {
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ const round = ref<string>("");
|
|||
const roundName = ref<string>("");
|
||||
const optionRound = ref<any>([]);
|
||||
const optiontypeOc = ref<any>([]);
|
||||
const tab = ref<any>("pending");
|
||||
const tab = ref<any>("");
|
||||
const stat = ref<any>({
|
||||
allUserUser: 0,
|
||||
orgAllCount: 0,
|
||||
|
|
@ -39,6 +39,7 @@ const stat = ref<any>({
|
|||
});
|
||||
|
||||
onMounted(async () => {
|
||||
tab.value = DataStore.mainTab;
|
||||
await checkRole();
|
||||
await fecthlistRound();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue