ปรับวันที่สืบสวน
This commit is contained in:
parent
c50e00968c
commit
fabc55134c
6 changed files with 348 additions and 323 deletions
|
|
@ -56,6 +56,7 @@ const data = reactive<FormData>({
|
|||
respondentType: "",
|
||||
organizationId: "",
|
||||
persons: [],
|
||||
investigationExtendHistory: [],
|
||||
});
|
||||
|
||||
/** ข้อมูล v-model ของฟอร์มเรื่องร้องเรียน */
|
||||
|
|
@ -139,7 +140,7 @@ function getData() {
|
|||
.get(config.API.investigateById(id.value))
|
||||
.then((res) => {
|
||||
const dataList = res.data.result;
|
||||
console.log(dataList);
|
||||
// console.log(dataList);
|
||||
data.id = dataList.id;
|
||||
data.idComplaint = dataList.idComplaint;
|
||||
data.respondentType = dataList.respondentType;
|
||||
|
|
@ -160,7 +161,8 @@ function getData() {
|
|||
data.investigationStatusResult = dataList.investigationStatusResult;
|
||||
data.investigationExtendStatus = dataList.investigationExtendStatus;
|
||||
data.investigationDaysExtend = dataList.investigationDaysExtend;
|
||||
console.log(dataList);
|
||||
data.investigationExtendHistory = dataList.investigationExtendHistory ?? [];
|
||||
// console.log(dataList);
|
||||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
|
|
@ -176,7 +178,6 @@ function getData() {
|
|||
*/
|
||||
async function onSubmit(data: any) {
|
||||
// put
|
||||
console.log("edit", data);
|
||||
showLoader();
|
||||
http
|
||||
.put(config.API.investigateById(id.value), data)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue