api รับโอน
This commit is contained in:
parent
e103b9faef
commit
07ae0d4a5e
2 changed files with 12 additions and 5 deletions
|
|
@ -64,17 +64,22 @@ const resetFilter = () => {
|
|||
onMounted(() => {
|
||||
fecthlistRecevice();
|
||||
});
|
||||
const listRecevice = ref<any>([]);
|
||||
const fecthlistRecevice = async () => {
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.receiveData())
|
||||
.then((res) => {
|
||||
let response = res.data.result;
|
||||
listRecevice.value = response;
|
||||
console.log(response);
|
||||
rows.value = response.map((e: any) => ({
|
||||
personalId: e.id,
|
||||
citizenId: e.citizenId,
|
||||
fullname: e.firstname + " " + e.lastname,
|
||||
organizationName: "sssss",
|
||||
orgName: "xxaxa",
|
||||
organizationShortName: "ssss",
|
||||
positionNumber: e.positionNumber,
|
||||
positionPath: e.positionPath,
|
||||
birthday: date2Thai(e.dateOfBirth),
|
||||
|
|
@ -207,7 +212,7 @@ const openModalTree = (id: string) => {
|
|||
personalId.value = id;
|
||||
console.log(personalId.value);
|
||||
|
||||
personal.value = [];
|
||||
personal.value = listRecevice.value.filter((e) => e.id === id);
|
||||
modalTree.value = true;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue