33 lines
793 B
TypeScript
33 lines
793 B
TypeScript
import { defineStore } from "pinia";
|
|
import { ref, reactive } from "vue";
|
|
|
|
import type { DataOption } from "@/modules/04_registryPerson/interface/index/Main";
|
|
import type {
|
|
DataType,
|
|
DataLevel,
|
|
} from "@/modules/04_registryPerson/interface/response/Main";
|
|
import type { FormFilter } from "@/modules/21_report/interface/Main";
|
|
|
|
export const useReportStore = defineStore("reportStore", () => {
|
|
const formFilter = reactive<FormFilter>({
|
|
page: 1,
|
|
pageSize: 12,
|
|
keyword: "",
|
|
type: "officer",
|
|
posType: "",
|
|
posLevel: "",
|
|
retireYear: "",
|
|
rangeYear: { min: 0, max: 60 },
|
|
isShowRetire: false,
|
|
isProbation: false,
|
|
isAll: true,
|
|
nodeId: null,
|
|
node: null,
|
|
searchType: "fullName",
|
|
retireType: null,
|
|
});
|
|
|
|
return {
|
|
formFilter,
|
|
};
|
|
});
|