แก้ตามเทส
This commit is contained in:
parent
29f58ba8aa
commit
140a319718
3 changed files with 17 additions and 1 deletions
|
|
@ -294,7 +294,9 @@ async function saveStep1() {
|
|||
|
||||
const evaluateType = route.params.type.toString();
|
||||
const form = {
|
||||
root: formDetail.value.root,
|
||||
userId: formDetail.value.id,
|
||||
orgRootId: formDetail.value.rootId,
|
||||
citizenId: formDetail.value.citizenId,
|
||||
prefix: formDetail.value.prefix,
|
||||
fullName: `${formDetail.value.prefix}${formDetail.value.firstName} ${formDetail.value.lastName}`,
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ const modalView = ref<boolean>(false);
|
|||
const numOfPages = ref<number>(0);
|
||||
const page = ref<number>(1);
|
||||
const pdfSrc = ref<any>();
|
||||
|
||||
const evaluationResult = ref<string>("");
|
||||
/** ไปหน้าต่อไปของรายงาน */
|
||||
function nextPage() {
|
||||
if (page.value < numOfPages.value) {
|
||||
|
|
@ -149,6 +149,7 @@ async function fetcheSigner(id: string) {
|
|||
author.value = data.authorDoc2;
|
||||
subject.value = data.subjectDoc2;
|
||||
assignedPosition.value = data.assignedPosition;
|
||||
evaluationResult.value = data.evaluationResult;
|
||||
})
|
||||
.catch(() => {})
|
||||
.finally(() => {
|
||||
|
|
@ -243,6 +244,17 @@ onMounted(async () => {
|
|||
</div>
|
||||
</q-card>
|
||||
</div>
|
||||
<div
|
||||
v-if="evaluationResult !== 'PENDING'"
|
||||
align="right"
|
||||
:class="
|
||||
evaluationResult == 'PASS'
|
||||
? `full-width text-green`
|
||||
: `full-width text-orange`
|
||||
"
|
||||
>
|
||||
ผลการพิจารณา : {{ evaluationResult == "PASS" ? "ผ่าน" : "ไม่ผ่าน" }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -72,6 +72,8 @@ async function fetchDetail() {
|
|||
.get(config.API.positionBykeycloak())
|
||||
.then((res) => {
|
||||
const data = res.data.result;
|
||||
formDetail.root = data.root;
|
||||
formDetail.rootId = data.rootId;
|
||||
formDetail.userId = data.id;
|
||||
formDetail.citizenId = data.citizenId;
|
||||
formDetail.prefix = data.prefix;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue