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 ข้อมูล */
|
||||
function sendData() {
|
||||
console.log(rowsPosition.value);
|
||||
|
||||
const positionData: RequestPosition[] = [];
|
||||
rowsPosition.value.map((r: ResponsePosition) => {
|
||||
positionData.push({
|
||||
id: r.id,
|
||||
positionId: r.position.id,
|
||||
positionName: r.position.name,
|
||||
positionLevelId: r.level.id,
|
||||
positionLevelName: r.level.name,
|
||||
typeId: r.type.id,
|
||||
typeName: r.type.name,
|
||||
positionId: r.position ? r.position.id : "",
|
||||
positionName: r.position ? r.position.name : "",
|
||||
positionLevelId: r.level ? r.level.id : "",
|
||||
positionLevelName: r.level ? r.level.name : "",
|
||||
typeId: r.type ? r.type.id : "",
|
||||
typeName: r.type ? r.type.name : "",
|
||||
code: r.code,
|
||||
highDegree: r.highDegree == "1" ? true : false,
|
||||
educationLevel: r.educationLevel,
|
||||
});
|
||||
});
|
||||
|
||||
if (fee.value == 0) {
|
||||
datePayment.value = null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue