แก้ kpi
This commit is contained in:
parent
adfbe1a2f8
commit
4d29976a8c
1 changed files with 18 additions and 7 deletions
|
|
@ -220,7 +220,7 @@ function filterOption(val: string, update: Function, refData: string) {
|
||||||
|
|
||||||
/** ดึงข้อมูลทั้งหมดในหน้า */
|
/** ดึงข้อมูลทั้งหมดในหน้า */
|
||||||
async function getAll() {
|
async function getAll() {
|
||||||
await Promise.all([fetchEvaluation(), getOrgOp()]);
|
await Promise.all([fetchEvaluation(), getOrgOp(), getProfile()]);
|
||||||
await store.checkStep();
|
await store.checkStep();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -459,6 +459,19 @@ async function fetchProfileEvaluator(id: string) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** ดึงข้อมูลโปรไฟล์ */
|
||||||
|
async function getProfile() {
|
||||||
|
await http
|
||||||
|
.get(config.API.profilePosition())
|
||||||
|
.then(async (res) => {
|
||||||
|
const data = await res.data.result;
|
||||||
|
store.dataProfile = await data;
|
||||||
|
})
|
||||||
|
.catch((e) => {
|
||||||
|
messageError($q, e);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
showLoader();
|
showLoader();
|
||||||
store.isUpdate = false;
|
store.isUpdate = false;
|
||||||
|
|
@ -545,8 +558,7 @@ onMounted(async () => {
|
||||||
store.indicatorWeightTotal != 100) ||
|
store.indicatorWeightTotal != 100) ||
|
||||||
((store.dataEvaluation.posTypeName == 'อำนวยการ' ||
|
((store.dataEvaluation.posTypeName == 'อำนวยการ' ||
|
||||||
store.dataEvaluation.posTypeName == 'บริหาร') &&
|
store.dataEvaluation.posTypeName == 'บริหาร') &&
|
||||||
(store.indicatorWeight1Total != 100 ||
|
store.indicatorWeightTotal != 100))
|
||||||
store.indicatorWeight2Total != 20)))
|
|
||||||
"
|
"
|
||||||
class="text-red"
|
class="text-red"
|
||||||
>*น้ำหนัก(ร้อยละ) ผลสัมฤทธิ์ของงานไม่ถูกต้อง</span
|
>*น้ำหนัก(ร้อยละ) ผลสัมฤทธิ์ของงานไม่ถูกต้อง</span
|
||||||
|
|
@ -558,13 +570,12 @@ onMounted(async () => {
|
||||||
store.dataEvaluation.evaluationStatus == 'NEW'
|
store.dataEvaluation.evaluationStatus == 'NEW'
|
||||||
"
|
"
|
||||||
:disabled="
|
:disabled="
|
||||||
(store.dataEvaluation.posTypeName != 'อำนวยการ' &&
|
((store.dataEvaluation.posTypeName != 'อำนวยการ' ||
|
||||||
store.dataEvaluation.posTypeName != 'บริหาร' &&
|
store.dataEvaluation.posTypeName != 'บริหาร') &&
|
||||||
store.indicatorWeightTotal != 100) ||
|
store.indicatorWeightTotal != 100) ||
|
||||||
((store.dataEvaluation.posTypeName == 'อำนวยการ' ||
|
((store.dataEvaluation.posTypeName == 'อำนวยการ' ||
|
||||||
store.dataEvaluation.posTypeName == 'บริหาร') &&
|
store.dataEvaluation.posTypeName == 'บริหาร') &&
|
||||||
(store.indicatorWeight1Total != 100 ||
|
store.indicatorWeightTotal != 100)
|
||||||
store.indicatorWeight2Total != 20))
|
|
||||||
"
|
"
|
||||||
unelevated
|
unelevated
|
||||||
round
|
round
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue