แก้แต่งตั้งลูกจ้างเลือกตำแหน่ง

This commit is contained in:
Kittapath 2023-10-11 09:38:51 +07:00
parent f9d6225774
commit 4257d4115e

View file

@ -30,14 +30,14 @@ const {
date2Thai,
dialogRemove,
dialogConfirm,
dialogMessageNotify
dialogMessageNotify,
} = mixin;
const rowsPosition = ref<any>([]);
const router = useRouter();
const rows = ref<listAppointType[]>([]);
const rows2 = ref<listAppointType[]>([]);
const modalTree = ref<boolean>(false);
const ModalEmployee = ref<boolean>(false)
const ModalEmployee = ref<boolean>(false);
const personal = ref<resData[]>([]);
const personalId = ref<string>("");
const filterKeyword = ref<string>("");
@ -46,7 +46,7 @@ const filterRef = ref<any>(null);
const listRecevice = ref<resData[]>([]);
const optionsType = ref<OpType[]>([]);
const type = ref<string>("");
const selectedPosition = ref<any>([]);
const selectedPosition = ref<any>([]);
const visibleColumns = ref<string[]>([
"no",
"citizenId",
@ -317,15 +317,15 @@ const fecthTypeOption = async () => {
});
};
//
const openModalEmployee = async(id: string) => {
const openModalEmployee = async (id: string) => {
personalId.value = id;
await getPosition(id)
await getPosition(id);
};
const getPosition = async (id:string) => {
const getPosition = async (id: string) => {
showLoader();
await http
.get(config.API.organizationEmployeePositionId(id))
.get(config.API.organizationEmployee)
.then((res) => {
const { result } = res.data;
let data: any[] = [];
@ -470,7 +470,7 @@ const savePosition = async () => {
messageError($q, e);
})
.finally(async () => {
fecthlistappointment()
fecthlistappointment();
clickClose();
});
};
@ -755,7 +755,7 @@ const savePosition = async () => {
</q-toolbar>
</div>
</div>
<d-table
:rows="rowsPosition"
:columns="columnsPosition"