แก้แต่งตั้งลูกจ้างเลือกตำแหน่ง
This commit is contained in:
parent
f9d6225774
commit
4257d4115e
1 changed files with 9 additions and 9 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue