refactor: add function resetScrollBar
This commit is contained in:
parent
18059db8a0
commit
47d775ca58
4 changed files with 27 additions and 10 deletions
|
|
@ -10,7 +10,7 @@ import useOcrStore from 'stores/ocr';
|
|||
import useCustomerStore from 'stores/customer';
|
||||
import useEmployeeStore from 'stores/employee';
|
||||
import useMyBranchStore from 'stores/my-branch';
|
||||
import useUtilsStore, { dialog, notify } from 'stores/utils';
|
||||
import useUtilsStore, { dialog, notify, resetScrollBar } from 'stores/utils';
|
||||
import useFlowStore from 'stores/flow';
|
||||
import { Status } from 'stores/types';
|
||||
import {
|
||||
|
|
@ -68,6 +68,7 @@ import FormEmployeeOther from 'components/03_customer-management/FormEmployeeOth
|
|||
import useOptionStore from 'stores/options';
|
||||
import { DialogContainer, DialogHeader } from 'components/dialog';
|
||||
import KebabAction from 'src/components/shared/KebabAction.vue';
|
||||
import { roundElectricalServices } from '@quasar/extras/material-icons-round';
|
||||
|
||||
const { t, locale } = useI18n();
|
||||
const $q = useQuasar();
|
||||
|
|
@ -2695,6 +2696,7 @@ const emptyCreateDialog = ref(false);
|
|||
:close="
|
||||
() => {
|
||||
customerFormState.drawerModal = false;
|
||||
resetScrollBar('customer-form-content');
|
||||
}
|
||||
"
|
||||
:submit="
|
||||
|
|
@ -2999,11 +3001,13 @@ const emptyCreateDialog = ref(false);
|
|||
|
||||
<!-- ลูกจ้าง edit employee -->
|
||||
<DrawerInfo
|
||||
v-if="!!employeeFormState.currentEmployee"
|
||||
hide-action
|
||||
v-model:drawer-open="employeeFormState.drawerModal"
|
||||
:close="
|
||||
() => {
|
||||
employeeFormState.drawerModal = false;
|
||||
resetScrollBar('drawer-employee-form-content');
|
||||
}
|
||||
"
|
||||
:title="
|
||||
|
|
@ -3044,11 +3048,6 @@ const emptyCreateDialog = ref(false);
|
|||
employeeFormState.currentIndex = -1;
|
||||
}
|
||||
"
|
||||
:show="
|
||||
() => {
|
||||
employeeFormStore.resetFormDataEmployee(true);
|
||||
}
|
||||
"
|
||||
:before-close="
|
||||
() => {
|
||||
if (employeeFormStore.isFormDataDifferent()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue