fix probation

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-12-24 17:18:04 +07:00
parent 0feef52cbc
commit a214c89112
4 changed files with 20 additions and 33 deletions

View file

@ -5,25 +5,24 @@ import type {
DataPermissions,
TabPermissions,
} from "@/modules/05_placement/interface/index/Main";
export const useProbationDataStore = defineStore("probationStore", () => {
const dataPermissions = ref<DataPermissions>();
const assign = ref<any>([]);
const evaluate = ref<any>([]);
const tabs = ref<any>([]);
const mainTab = ref<string>("");
const checkLoad = ref<boolean>(false)
const checkLoad = ref<boolean>(false);
const assignOutput = ref<any>([]);
const director = ref<any>([]);
const person = ref<any>([]);
const fecthdataAssign = async (data: any) => {
checkLoad.value = data.evaluate.length == 0 ? true:false
checkLoad.value = data.evaluate.length == 0 ? true : false;
assign.value = await data.assign;
evaluate.value = await data.evaluate;
tabs.value = await data.evaluate;
};
const fecthAssignoutput = (data: any) => {
assignOutput.value = data.assign_output;
@ -114,6 +113,6 @@ export const useProbationDataStore = defineStore("probationStore", () => {
behavior_no2,
behavior_no3,
dataPermissions,
checkLoad
checkLoad,
};
});