+
({
image: null,
});
-const employeeHistoryDialog = ref(false);
const inputSearch = ref();
const fieldSelectedCustomer = ref<{ label: string; value: string }>({
label: t('all'),
@@ -363,6 +363,9 @@ const selectorList = computed(() => [
const customerType = ref('CORP');
+const employeeHistoryDialog = ref(false);
+const employeeHistory = ref();
+
function triggerCreate(type: CustomerType) {
customerType.value = type;
openDialogInputForm();
@@ -1072,7 +1075,8 @@ async function checkEmployeeForm() {
}
async function openHistory(id: string) {
- console.log(id);
+ const res = await employeeStore.getEditHistory(id);
+ employeeHistory.value = res.reverse();
employeeHistoryDialog.value = true;
}
@@ -2883,8 +2887,9 @@ watch([inputSearch, currentStatus], async () => {
:title="$t('editHistory')"
v-model:modal="employeeHistoryDialog"
:close="() => (employeeHistoryDialog = false)"
+ v-if="employeeHistory"
>
-
+