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.kpiPeriodById("12")
|
||||||
: config.API.kpiPeriod;
|
: config.API.kpiPeriod;
|
||||||
const method = isStatusEdit.value ? "put" : "post";
|
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 fetchList();
|
||||||
await success($q, "บันทึกข้อมูลสำเร็จ");
|
await success($q, "บันทึกข้อมูลสำเร็จ");
|
||||||
closeDialog();
|
closeDialog();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue