fixing competency
This commit is contained in:
parent
aa643f2b9c
commit
f14567a0b6
3 changed files with 9 additions and 6 deletions
|
|
@ -271,8 +271,10 @@ function onLevel(num: number, list: any) {
|
||||||
}
|
}
|
||||||
|
|
||||||
const competencyType = ref<DataOptions[]>([]);
|
const competencyType = ref<DataOptions[]>([]);
|
||||||
onMounted(async () => {
|
onMounted(() => {
|
||||||
setTimeout(async () => {
|
setTimeout(async () => {
|
||||||
|
// console.log("posTypeName===>", store.dataEvaluation.posTypeName);
|
||||||
|
|
||||||
competencyType.value = await (store.dataEvaluation.posTypeName ==
|
competencyType.value = await (store.dataEvaluation.posTypeName ==
|
||||||
"อำนวยการ" || store.dataEvaluation.posTypeName == "บริหาร"
|
"อำนวยการ" || store.dataEvaluation.posTypeName == "บริหาร"
|
||||||
? store.competencyType.filter(
|
? store.competencyType.filter(
|
||||||
|
|
|
||||||
|
|
@ -61,9 +61,9 @@ const router = useRouter();
|
||||||
async function fetchEvaluation() {
|
async function fetchEvaluation() {
|
||||||
await http
|
await http
|
||||||
.get(config.API.kpiEvaluation + `/${id.value}`)
|
.get(config.API.kpiEvaluation + `/${id.value}`)
|
||||||
.then(async (res) => {
|
.then((res) => {
|
||||||
const data = res.data.result;
|
const data = res.data.result;
|
||||||
store.dataEvaluation = await data;
|
store.dataEvaluation = res.data.result;
|
||||||
formProfile.status = store.convertStatus(data.evaluationStatus);
|
formProfile.status = store.convertStatus(data.evaluationStatus);
|
||||||
formProfile.result = store.convertResults(data.evaluationResults);
|
formProfile.result = store.convertResults(data.evaluationResults);
|
||||||
// store.checkCompetency();
|
// store.checkCompetency();
|
||||||
|
|
|
||||||
|
|
@ -184,11 +184,12 @@ watch(
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
function onChangTab() {
|
async function onChangTab() {
|
||||||
store.formQuery.page = 1;
|
store.formQuery.page = 1;
|
||||||
dataListMain.value = [];
|
dataListMain.value = await [];
|
||||||
|
store.selected = await [];
|
||||||
|
|
||||||
fetchList();
|
fetchList();
|
||||||
store.selected = [];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue