ลบ store ออก
This commit is contained in:
parent
55ce294f79
commit
18a151716e
10 changed files with 269 additions and 356 deletions
|
|
@ -8,6 +8,7 @@ import type { FormAddProject } from "@/modules/15_development/interface/request/
|
|||
export const useDevelopmentDataStore = defineStore(
|
||||
"developmentDataStore",
|
||||
() => {
|
||||
const statusEdit = ref<boolean>(false)
|
||||
const formAddProject = reactive<FormAddProject>({
|
||||
year: new Date().getFullYear(), //ปีงบประมาณ*
|
||||
projectName: "", //ชื่อโครงการ/กิจกรรม/หลักสูตร*
|
||||
|
|
@ -142,6 +143,7 @@ export const useDevelopmentDataStore = defineStore(
|
|||
visibleColumns,
|
||||
columns,
|
||||
rows,
|
||||
statusEdit,
|
||||
};
|
||||
}
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1,22 +0,0 @@
|
|||
import { defineStore } from "pinia";
|
||||
import { reactive } from "vue";
|
||||
import { ref } from 'vue'
|
||||
import type { QTableProps } from "quasar";
|
||||
|
||||
// store
|
||||
export const useDevelopmentDataStoreHistory = defineStore(
|
||||
"developmentDataStoreHistory",
|
||||
() => {
|
||||
const visibleColumns = ref<string[]>([]);
|
||||
const columns = ref<QTableProps["columns"]>([]);
|
||||
const rows = ref<any[]>([])
|
||||
|
||||
const status = ref<boolean>(false)
|
||||
return {
|
||||
visibleColumns,
|
||||
columns,
|
||||
rows,
|
||||
status,
|
||||
};
|
||||
}
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue