แก้ไข TAB เครื่องราชฯ ปรับ Table
This commit is contained in:
parent
b18056a335
commit
a1bd65f1ca
13 changed files with 87 additions and 10 deletions
|
|
@ -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
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue