test & update
This commit is contained in:
parent
97b5e63813
commit
d035692f44
2 changed files with 20 additions and 16 deletions
|
|
@ -117,7 +117,7 @@ const rows = ref<any>([
|
|||
]);
|
||||
const filter = ref<string>("");
|
||||
watch(modal, () => {
|
||||
console.log(props);
|
||||
// console.log(props);
|
||||
|
||||
if (modal.value === true) {
|
||||
retireld.value = props.retireld;
|
||||
|
|
@ -137,7 +137,7 @@ const fecthlistRetire = async () => {
|
|||
.get(config.API.profileOrganizRoot)
|
||||
.then((res) => {
|
||||
const id = res.data.result[0].id;
|
||||
console.log(id);
|
||||
// console.log(id);
|
||||
if (id !== "") {
|
||||
findlist(id);
|
||||
}
|
||||
|
|
@ -152,20 +152,20 @@ const findlist = async (id: string) => {
|
|||
if (type.value === "officer") {
|
||||
data = [{ criteriaType: "is_retire", criteriaValue: "false" }];
|
||||
} else if (type.value === "all") {
|
||||
console.log("all");
|
||||
// console.log("all");
|
||||
data = [
|
||||
{ criteriaType: "is_retire", criteriaValue: "false" },
|
||||
{ criteriaType: "employee_class", criteriaValue: "perm" },
|
||||
];
|
||||
}
|
||||
console.log(data);
|
||||
// console.log(data);
|
||||
|
||||
await http
|
||||
.post(config.API.profileSearchNewOcIdType(id, type.value), {
|
||||
criterias: data,
|
||||
})
|
||||
.then((res) => {
|
||||
console.log(res.data.result);
|
||||
// console.log(res.data.result);
|
||||
rows.value = res.data.result.map((e: any) => ({
|
||||
id: e.id,
|
||||
fullname: e.fullname,
|
||||
|
|
@ -182,13 +182,15 @@ const findlist = async (id: string) => {
|
|||
});
|
||||
};
|
||||
const clickAdd = (props: any) => {
|
||||
console.log(retireld.value, id);
|
||||
// console.log("props===>",props.row.id)
|
||||
if (retireld.value == undefined) {
|
||||
retireld.value = id;
|
||||
}
|
||||
|
||||
let data: any = props.row.id;
|
||||
|
||||
console.log("retireld & profileId",retireld.value, data);
|
||||
|
||||
$q.dialog({
|
||||
title: "ยืนยันการเพิ่มข้อมูล",
|
||||
message: "ต้องการเพิ่มข้อมูลนี้ใช่หรือไม่?",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue