แก้ไข fiter ประเภทเครื่องราชฯ
This commit is contained in:
parent
c812866dce
commit
8d4813b79e
4 changed files with 14 additions and 4 deletions
|
|
@ -34,6 +34,7 @@ const profileType = ref<string>("");
|
|||
const fileResult = ref<any>(null);
|
||||
const fileinvoice = ref<any>(null);
|
||||
const loadView = ref<boolean>(false);
|
||||
const insigniaTypeOption = ref<any>([]);
|
||||
|
||||
onMounted(async () => {
|
||||
await fecthRound();
|
||||
|
|
@ -264,6 +265,11 @@ const columns = ref<QTableProps["columns"]>([
|
|||
watch(tab, () => {
|
||||
if (tab.value !== "doc") {
|
||||
fecthlistInsignia();
|
||||
console.log(DataStore.insigniaOp);
|
||||
|
||||
insigniaTypeOption.value = DataStore.insigniaOp.filter(
|
||||
(e: any) => e.insigniaType == tab.value || e.name == "ทั้งหมด"
|
||||
);
|
||||
}
|
||||
});
|
||||
watch(modal, () => {
|
||||
|
|
@ -555,7 +561,7 @@ const paginationLabel = (start: number, end: number, total: number) => {
|
|||
emit-value
|
||||
map-options
|
||||
option-label="name"
|
||||
:options="DataStore.insigniaOp"
|
||||
:options="insigniaTypeOption"
|
||||
option-value="id"
|
||||
:readonly="false"
|
||||
:borderless="false"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue