check ข้อมูลก่อน map ระบบประเมิน
This commit is contained in:
parent
8034c29373
commit
037d2ee26f
4 changed files with 30 additions and 23 deletions
|
|
@ -32,17 +32,18 @@ async function fetchSigner() {
|
|||
.get(config.API.evaluationSigner(id.value, 1))
|
||||
.then((res) => {
|
||||
const data = res.data.result;
|
||||
formCommand.elementaryFullName =
|
||||
data == null ? "" : data.commanderFullname;
|
||||
formCommand.elementaryPosition =
|
||||
data == null ? "" : data.commanderPosition;
|
||||
formCommand.abovelevelFullname =
|
||||
data == null ? "" : data.commanderAboveFullname;
|
||||
formCommand.abovelevelPosition =
|
||||
data == null ? "" : data.commanderAbovePosition;
|
||||
|
||||
author.value = data.author;
|
||||
subject.value = data.subject;
|
||||
if (data) {
|
||||
formCommand.elementaryFullName =
|
||||
data == null ? "" : data.commanderFullname;
|
||||
formCommand.elementaryPosition =
|
||||
data == null ? "" : data.commanderPosition;
|
||||
formCommand.abovelevelFullname =
|
||||
data == null ? "" : data.commanderAboveFullname;
|
||||
formCommand.abovelevelPosition =
|
||||
data == null ? "" : data.commanderAbovePosition;
|
||||
author.value = data.author;
|
||||
subject.value = data.subject;
|
||||
}
|
||||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
|
|
|
|||
|
|
@ -218,8 +218,10 @@ async function fetchDataSigner() {
|
|||
.get(config.API.evaluationSigner(id.value, 1))
|
||||
.then((res) => {
|
||||
const data = res.data.result;
|
||||
author.value = data.author;
|
||||
subject.value = data.subject;
|
||||
if (data) {
|
||||
author.value = data.author;
|
||||
subject.value = data.subject;
|
||||
}
|
||||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
|
|
|
|||
|
|
@ -56,13 +56,15 @@ async function getSigner() {
|
|||
.get(config.API.evaluationSigner(id.value, 2))
|
||||
.then((res) => {
|
||||
const data = res.data.result;
|
||||
formCommand.elementaryFullName = data.commanderFullnameDoc2;
|
||||
formCommand.elementaryPosition = data.commanderPositionDoc2;
|
||||
formCommand.abovelevelFullname = data.commanderAboveFullnameDoc2;
|
||||
formCommand.abovelevelPosition = data.commanderAbovePositionDoc2;
|
||||
author.value = data.authorDoc2;
|
||||
subject.value = data.subjectDoc2;
|
||||
assignedPosition.value = data.assignedPosition;
|
||||
if (data) {
|
||||
formCommand.elementaryFullName = data.commanderFullnameDoc2;
|
||||
formCommand.elementaryPosition = data.commanderPositionDoc2;
|
||||
formCommand.abovelevelFullname = data.commanderAboveFullnameDoc2;
|
||||
formCommand.abovelevelPosition = data.commanderAbovePositionDoc2;
|
||||
author.value = data.authorDoc2;
|
||||
subject.value = data.subjectDoc2;
|
||||
assignedPosition.value = data.assignedPosition;
|
||||
}
|
||||
})
|
||||
.catch((e) => {
|
||||
// messageError($q, e);
|
||||
|
|
|
|||
|
|
@ -330,9 +330,11 @@ async function fetchDataSigner() {
|
|||
.get(config.API.evaluationSigner(id.value, 2))
|
||||
.then((res) => {
|
||||
const data = res.data.result;
|
||||
author.value = data.authorDoc2;
|
||||
subject.value = data.subjectDoc2;
|
||||
assignedPosition.value = data.assignedPosition;
|
||||
if (data) {
|
||||
author.value = data.authorDoc2;
|
||||
subject.value = data.subjectDoc2;
|
||||
assignedPosition.value = data.assignedPosition;
|
||||
}
|
||||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue