แก้ฟิลเตอร์ จากล่างขึ้นบนถึง พ้นราชการ
This commit is contained in:
parent
35422c6963
commit
e9280ca4f3
21 changed files with 260 additions and 69 deletions
|
|
@ -44,6 +44,7 @@ export const useDisciplineChannelDataStore = defineStore(
|
|||
type.value = data;
|
||||
}
|
||||
const rows = ref<ChannelRows[]>([]);
|
||||
const rowsData = ref<ChannelRows[]>([]);
|
||||
|
||||
/**
|
||||
* รับค่าจาก API เก็บไว้ใน rows
|
||||
|
|
@ -51,12 +52,14 @@ export const useDisciplineChannelDataStore = defineStore(
|
|||
*/
|
||||
function fetchData(data: ChannelRows[]) {
|
||||
rows.value = data;
|
||||
rowsData.value = data;
|
||||
}
|
||||
|
||||
return {
|
||||
visibleColumns,
|
||||
columns,
|
||||
rows,
|
||||
rowsData,
|
||||
fetchData,
|
||||
type,
|
||||
getType,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue