เพิ่ม เเสดงข้อมูลก่อนเเก้
This commit is contained in:
parent
bf3bc89636
commit
bd20219da9
4 changed files with 28 additions and 5 deletions
|
|
@ -37,8 +37,12 @@ export const useDisciplineChannelDataStore = defineStore(
|
|||
style: "font-size: 14px",
|
||||
},
|
||||
]);
|
||||
|
||||
const type = ref<string>('')
|
||||
// ข้อมูลในตาราง
|
||||
function getType(data:string){
|
||||
type.value = ''
|
||||
type.value = data
|
||||
}
|
||||
const rows = ref<ChannelRows[]>([]);
|
||||
function fetchData(data: ChannelRows[]) {
|
||||
rows.value = data;
|
||||
|
|
@ -49,6 +53,8 @@ export const useDisciplineChannelDataStore = defineStore(
|
|||
columns,
|
||||
rows,
|
||||
fetchData,
|
||||
type,
|
||||
getType
|
||||
};
|
||||
}
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue