fix: send rootDna
This commit is contained in:
parent
b1421d4d1a
commit
99e127bd06
4 changed files with 8 additions and 0 deletions
|
|
@ -34,6 +34,7 @@ function addData(formData: FormDataPost) {
|
|||
email: formData.email,
|
||||
phone: formData.phone,
|
||||
qualification: formData.qualification,
|
||||
rootDnaId: formData.rootDnaId,
|
||||
})
|
||||
.then((res) => {
|
||||
success($q, "บันทึกข้อมูลสำเร็จ");
|
||||
|
|
|
|||
|
|
@ -77,6 +77,7 @@ function putData(formData: FormData) {
|
|||
email: formData.email,
|
||||
phone: formData.phone,
|
||||
qualification: formData.qualification,
|
||||
rootDnaId: formData.rootDnaId,
|
||||
})
|
||||
.then((res) => {
|
||||
success($q, "บันทึกข้อมูลสำเร็จ");
|
||||
|
|
|
|||
|
|
@ -75,6 +75,7 @@ const formData = reactive<FormData>({
|
|||
phone: "",
|
||||
email: "",
|
||||
qualification: "",
|
||||
rootDnaId: "",
|
||||
});
|
||||
|
||||
/**
|
||||
|
|
@ -225,6 +226,7 @@ async function getSearch() {
|
|||
organization: e.organization ?? "-",
|
||||
phone: e.phone ?? "-",
|
||||
email: e.email ?? "-",
|
||||
rootDnaId: e.rootDnaId ?? "-",
|
||||
}));
|
||||
|
||||
rows.value = list;
|
||||
|
|
@ -240,6 +242,7 @@ async function getSearch() {
|
|||
/** เก็บข้อมูลลงตัวแปร */
|
||||
function returnDetail(data: ResponsePreson) {
|
||||
formData.prefix = data.prefix;
|
||||
formData.rootDnaId = data.rootDnaId;
|
||||
formData.firstname = data.firstName;
|
||||
formData.lastname = data.lastName;
|
||||
formData.position = data.position;
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ interface FormData {
|
|||
phone: string;
|
||||
email: string;
|
||||
qualification?:string
|
||||
rootDnaId?:string
|
||||
}
|
||||
interface FormDataPost {
|
||||
personalId: string;
|
||||
|
|
@ -17,6 +18,7 @@ interface FormDataPost {
|
|||
phone: string;
|
||||
email: string;
|
||||
qualification: string;
|
||||
rootDnaId: string;
|
||||
}
|
||||
interface FormRef {
|
||||
prefix: object | null;
|
||||
|
|
@ -44,6 +46,7 @@ interface ResponsePreson {
|
|||
organization: string; //สังกัด
|
||||
email: string; //อีเมล
|
||||
phone: string; //เบอร์โทรศัพท์
|
||||
rootDnaId: string; //rootDnaId
|
||||
}
|
||||
|
||||
interface tableType {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue