ทดลองงาน - ส่ง personal id เพิ่มในส่วนข้อมูลฟอร์มมอบหมายงาน
This commit is contained in:
parent
940dd882bc
commit
9cad6dce3d
2 changed files with 32 additions and 25 deletions
|
|
@ -1557,10 +1557,10 @@ const OPgroup = ref<
|
|||
}>
|
||||
>([]);
|
||||
const clearDateExam = () => {
|
||||
date_start.value = null;
|
||||
date_start.value = undefined;
|
||||
};
|
||||
const clearDateExam2 = () => {
|
||||
date_finish.value = null;
|
||||
date_finish.value = undefined;
|
||||
};
|
||||
const isDatePicker2Readonly = computed(() => {
|
||||
return date_start.value === null;
|
||||
|
|
@ -1699,8 +1699,8 @@ const getAssignNew = async (id: string) => {
|
|||
position.value = data.person.OrganizationOrganization
|
||||
});
|
||||
};
|
||||
const getcompetency = async () => {
|
||||
await http.get(config.API.competencyOptions()).then((res: any) => {
|
||||
const getcompetency = async (id: string) => {
|
||||
await http.get(config.API.competencyOptions(id)).then((res: any) => {
|
||||
const data = res.data.data;
|
||||
OPmain.value = data;
|
||||
main.value = data[0];
|
||||
|
|
@ -1710,8 +1710,8 @@ const getcompetency = async () => {
|
|||
main5.value = data[4];
|
||||
});
|
||||
};
|
||||
const getCompetencyGroup = async () => {
|
||||
await http.get(config.API.competencyGroupOptions()).then((res: any) => {
|
||||
const getCompetencyGroup = async (id: string) => {
|
||||
await http.get(config.API.competencyGroupOptions(id)).then((res: any) => {
|
||||
const data = res.data.data;
|
||||
OPgroup.value = data;
|
||||
group.value = data[0];
|
||||
|
|
@ -1719,13 +1719,13 @@ const getCompetencyGroup = async () => {
|
|||
group3.value = data[2];
|
||||
});
|
||||
};
|
||||
const getKnowledge = async () => {
|
||||
await http.get(config.API.knowledgeOptions()).then((res: any) => {
|
||||
const getKnowledge = async (id: string) => {
|
||||
await http.get(config.API.knowledgeOptions(id)).then((res: any) => {
|
||||
OPknowledge.value = res.data.data;
|
||||
});
|
||||
};
|
||||
const getSkill = async () => {
|
||||
await http.get(config.API.skillOptions()).then((res: any) => {
|
||||
const getSkill = async (id: string) => {
|
||||
await http.get(config.API.skillOptions(id)).then((res: any) => {
|
||||
const skillData = res.data.data;
|
||||
OPcomputer.value = [skillData.computer];
|
||||
OPenglish.value = [skillData.english];
|
||||
|
|
@ -1737,8 +1737,8 @@ const getSkill = async () => {
|
|||
skill4.value = skillData.resourse;
|
||||
});
|
||||
};
|
||||
const getLaw = async () => {
|
||||
await http.get(config.API.lawOptions()).then((res: any) => {
|
||||
const getLaw = async (id: string) => {
|
||||
await http.get(config.API.lawOptions(id)).then((res: any) => {
|
||||
checkRule.value = res.data.data;
|
||||
});
|
||||
};
|
||||
|
|
@ -1936,11 +1936,11 @@ const OPresourse = ref<
|
|||
>([]);
|
||||
|
||||
onMounted(async () => {
|
||||
await getLaw();
|
||||
await getcompetency();
|
||||
await getCompetencyGroup();
|
||||
await getSkill();
|
||||
await getKnowledge();
|
||||
await getLaw(personalId);
|
||||
await getcompetency(personalId);
|
||||
await getCompetencyGroup(personalId);
|
||||
await getSkill(personalId);
|
||||
await getKnowledge(personalId);
|
||||
await getAssignNew(personalId);
|
||||
});
|
||||
watch(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue