probation add api
This commit is contained in:
parent
7de96b1286
commit
fb3614d88f
4 changed files with 32 additions and 3 deletions
|
|
@ -513,10 +513,10 @@ const fecthOrganiz = async () => {
|
|||
const findlist = async (id: string) => {
|
||||
let data = [
|
||||
{ criteriaType: "is_retire", criteriaValue: "false" },
|
||||
{ criteriaType: "is_probation", criteriaValue: "true" },
|
||||
{ criteriaType: "is_probation", criteriaValue: "false" },
|
||||
];
|
||||
await http
|
||||
.post(config.API.profileSearchNewOcIdType(id, "all"), {
|
||||
.post(config.API.profileSearchNewOcIdType(id, "officer"), {
|
||||
criterias: data,
|
||||
})
|
||||
.then((res) => {
|
||||
|
|
@ -557,7 +557,17 @@ const clickAdd = (id: string) => {
|
|||
persistent: true,
|
||||
})
|
||||
.onOk(async () => {
|
||||
console.log("เพิ่ม:", id);
|
||||
const postData = {
|
||||
personal_id: id,
|
||||
}
|
||||
console.log("postData:", postData);
|
||||
await http
|
||||
.post(config.API.personalAdd(), postData)
|
||||
.then((res) => {
|
||||
console.log("res:", res);
|
||||
|
||||
});
|
||||
|
||||
})
|
||||
.onCancel(() => {})
|
||||
.onDismiss(() => {});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue