kpi convertDateToAPI
This commit is contained in:
parent
6720b04fdd
commit
d97241a199
1 changed files with 5 additions and 1 deletions
|
|
@ -187,7 +187,11 @@ function onSubmit() {
|
|||
? config.API.kpiPeriodById("12")
|
||||
: config.API.kpiPeriod;
|
||||
const method = isStatusEdit.value ? "put" : "post";
|
||||
await http[method](url, formData);
|
||||
await http[method](url, {
|
||||
...formData,
|
||||
startDate: formData.startDate,
|
||||
endDate: formData.endDate,
|
||||
});
|
||||
await fetchList();
|
||||
await success($q, "บันทึกข้อมูลสำเร็จ");
|
||||
closeDialog();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue