เพิ่มตัวเเปร

This commit is contained in:
setthawutttty 2025-05-30 14:29:16 +07:00
parent e705ad839c
commit c1622582d2

View file

@ -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();