เพิ่มตัวเเปร
This commit is contained in:
parent
e705ad839c
commit
c1622582d2
1 changed files with 20 additions and 17 deletions
|
|
@ -41,8 +41,14 @@ const formCommand = reactive<FormCommand>({
|
|||
commanderAboveFullname: "", //ผู้บังคับบัญชาเหนือขึ้นไป 1 ระดับ
|
||||
commanderAbovePosition: "", //ตำแหน่ง ผู้บังคับบัญชาเหนือขึ้นไป 1 ระดับ
|
||||
author: "", //เจ้าของผลงาน
|
||||
subject: "", //ชื่อผลงาน
|
||||
subject: [], //ชื่อผลงาน
|
||||
assignedPosition: "",
|
||||
commanderPositionOld: "",
|
||||
commanderOrgOld: "",
|
||||
commanderOrg: "",
|
||||
commanderAbovePositionOld: "",
|
||||
commanderAboveOrgOld: "",
|
||||
commanderAboveOrg: "",
|
||||
});
|
||||
|
||||
const formData = reactive<FormData>({
|
||||
|
|
@ -420,9 +426,7 @@ async function getData() {
|
|||
messageError($q, e);
|
||||
hideLoader();
|
||||
})
|
||||
.finally(() => {
|
||||
|
||||
});
|
||||
.finally(() => {});
|
||||
}
|
||||
|
||||
function getDetail(type: any) {
|
||||
|
|
@ -448,24 +452,23 @@ const keyObject = ref<string[]>([
|
|||
"assessments",
|
||||
"government",
|
||||
]);
|
||||
const reportData = ref<any>()
|
||||
async function getCheckSpace(){
|
||||
const reportData = ref<any>();
|
||||
async function getCheckSpace() {
|
||||
http
|
||||
.get(config.API.evaluationReportCheckspecByid(evaluateId.value))
|
||||
.then((res)=>{
|
||||
reportData.value = res.data.result
|
||||
})
|
||||
.catch((e)=>{
|
||||
messageError($q,e)
|
||||
hideLoader();
|
||||
}).finally(()=>{
|
||||
|
||||
})
|
||||
.get(config.API.evaluationReportCheckspecByid(evaluateId.value))
|
||||
.then((res) => {
|
||||
reportData.value = res.data.result;
|
||||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
hideLoader();
|
||||
})
|
||||
.finally(() => {});
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
showLoader();
|
||||
Promise.all([getData(),getCheckSpace(), ...keyObject.value.map(getDetail)])
|
||||
Promise.all([getData(), getCheckSpace(), ...keyObject.value.map(getDetail)])
|
||||
.then(() => {})
|
||||
.catch((e) => {
|
||||
hideLoader();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue