fix bug select position, change field reportingDateFullDate to reportingDate, add send positionExecutiveField & positionArea
This commit is contained in:
parent
0ef46feabc
commit
20f95f1a69
7 changed files with 23 additions and 10 deletions
|
|
@ -93,7 +93,7 @@ function updateSelected(data: TreeMain) {
|
|||
if (props?.dataRow?.nodeId === data.orgTreeId) {
|
||||
positionId.value = props?.dataRow?.posmasterId;
|
||||
seletcId.value = props?.dataRow?.positionId;
|
||||
datePos.value = props?.dataRow?.reportingDateFullDate;
|
||||
datePos.value = props?.dataRow?.reportingDate;
|
||||
} else {
|
||||
positionId.value = "";
|
||||
seletcId.value = "";
|
||||
|
|
@ -237,6 +237,8 @@ async function onClickSubmit() {
|
|||
posExecutiveName: selectedPos.value[0].posExecutiveName,
|
||||
reportingDate: convertDateToAPI(datePos.value),
|
||||
posmasterId: dataPosMaster.id,
|
||||
positionExecutiveField: selectedPos.value[0].positionExecutiveField, //ด้านทางการบริหาร
|
||||
positionArea: selectedPos.value[0].positionArea, //ด้าน/สาขา
|
||||
};
|
||||
|
||||
await http
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue