ปรับ โค้ด ทดลองงาน

This commit is contained in:
STW_TTTY\stwtt 2024-08-16 14:42:11 +07:00
parent 51707646e7
commit 46af20233f
16 changed files with 167 additions and 339 deletions

View file

@ -20,7 +20,6 @@ const {
showLoader,
hideLoader,
dialogConfirm,
dialogMessageNotify,
} = mixin;
const personalId = route.params.personalId as string;
const assignId = ref<string>(route.params.form as string);
@ -421,23 +420,10 @@ async function getcompetency(id: string) {
main3.value = data[2];
main4.value = data[3];
main5.value = data[4];
console.log(main.value);
})
.catch((err) => {
messageError($q, err);
});
// await http.get(config.API.competencyOptions(id)).then((res: any) => {
// const data = res.data.data;
// console.log(data);
// OPmain.value = data;
// main.value = data[0];
// main2.value = data[1];
// main3.value = data[2];
// main4.value = data[3];
// main5.value = data[4];
// });
}
/**
@ -446,7 +432,6 @@ async function getcompetency(id: string) {
*/
const assign_competencyGroupMain = ref<any>();
async function getCompetencyGroup(id: string) {
console.log(position.value);
http
.get(config.API.kpiCapacity + `/group?positionName=${position.value}`)
.then((res) => {
@ -820,17 +805,8 @@ function putData(id: string) {
* @param id personal id
*/
async function saveData(id: string) {
console.log("tests");
const data = putData(id);
console.log("data==>", data);
// await myForm.value.validate().then((result: boolean) => {
// if (result) {
dialogConfirm($q, async () => await DataSave(id));
// } else {
// dialogMessageNotify($q, "");
// }
// });
}
/**