edit Type in storeMain

This commit is contained in:
watcharanondh 2023-06-09 17:37:18 +07:00
parent 97a42825d6
commit 27dcb7e4c2

View file

@ -29,8 +29,8 @@ export const usePlacementDataStore = defineStore("placement", () => {
let DataMainYear = ref<object[]>([]) // ข้อมูลจำนวนปี
let DataMainOrig = ref<FormPlacementMainData[]>([]) // ข้อมูลหลักดั้งเดิม
let DataMainUpdate = ref<FormPlacementMainData[]>([]) // ข้อมูลเปลี่ยนแปลง
const DataMainYearSet = (val: any) => (DataMainYear.value = val)
const DataMain = (val: any) => (DataMainOrig.value = val)
const DataMainYearSet = (val: FormPlacementMainData[]) => (DataMainYear.value = val)
const DataMain = (val: FormPlacementMainData[]) => (DataMainOrig.value = val)
const DataUpdateMain = (filter_1: number | null, filter_2: number | null, filter_3: boolean) => {
DataMainUpdate.value = [];
if (filter_1 === null && filter_2 === 0 && filter_3 === false) {