แก้ไข TAB เครื่องราชฯ ปรับ Table

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2023-09-07 16:05:25 +07:00
parent b18056a335
commit a1bd65f1ca
13 changed files with 87 additions and 10 deletions

View file

@ -14,6 +14,7 @@ export const useAllocateDataStore = defineStore("insigniaallocate", () => {
const insigniaType = ref<any>()
const rows = ref<any>([])
const listInsignia = ref<any>([])
const mainTab = ref<string>("")
const fetchDatainsignia = async (data: any) => {
insignia.value = ''
@ -22,8 +23,10 @@ export const useAllocateDataStore = defineStore("insigniaallocate", () => {
insigniaOp.value.push({ name: e.name, id: e.id, type: e.insigniaType.id })
});
}
const fetchDatainsigniaType = async (data: any) => {
const fetchDatainsigniaType = async (data: any,) => {
insigniaType.value = data.map((e: any) => ({ name: e.id, label: e.name }))
// mainTab.value = insigniaType.value[0].name
}
const listinsignia = async (data: any) => {
rows.value = [];
@ -64,6 +67,7 @@ export const useAllocateDataStore = defineStore("insigniaallocate", () => {
listinsignia,
selectInsignia,
profileType,
insigniaName
insigniaName,
mainTab
};
});