fix
This commit is contained in:
parent
c55c5a5ac1
commit
e81b47bbe4
1 changed files with 9 additions and 6 deletions
|
|
@ -408,21 +408,24 @@ async function checkSave() {
|
||||||
|
|
||||||
/** body สำหรับ save ข้อมูล */
|
/** body สำหรับ save ข้อมูล */
|
||||||
function sendData() {
|
function sendData() {
|
||||||
|
console.log(rowsPosition.value);
|
||||||
|
|
||||||
const positionData: RequestPosition[] = [];
|
const positionData: RequestPosition[] = [];
|
||||||
rowsPosition.value.map((r: ResponsePosition) => {
|
rowsPosition.value.map((r: ResponsePosition) => {
|
||||||
positionData.push({
|
positionData.push({
|
||||||
id: r.id,
|
id: r.id,
|
||||||
positionId: r.position.id,
|
positionId: r.position ? r.position.id : "",
|
||||||
positionName: r.position.name,
|
positionName: r.position ? r.position.name : "",
|
||||||
positionLevelId: r.level.id,
|
positionLevelId: r.level ? r.level.id : "",
|
||||||
positionLevelName: r.level.name,
|
positionLevelName: r.level ? r.level.name : "",
|
||||||
typeId: r.type.id,
|
typeId: r.type ? r.type.id : "",
|
||||||
typeName: r.type.name,
|
typeName: r.type ? r.type.name : "",
|
||||||
code: r.code,
|
code: r.code,
|
||||||
highDegree: r.highDegree == "1" ? true : false,
|
highDegree: r.highDegree == "1" ? true : false,
|
||||||
educationLevel: r.educationLevel,
|
educationLevel: r.educationLevel,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
if (fee.value == 0) {
|
if (fee.value == 0) {
|
||||||
datePayment.value = null;
|
datePayment.value = null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue