|
|
@ -109,7 +109,7 @@ const reloadViewDataHook = inject(ReloadViewDataHookInj, createEventHook()) |
|
|
|
|
|
|
|
|
|
|
|
const openNewRecordFormHook = inject(OpenNewRecordFormHookInj, createEventHook()) |
|
|
|
const openNewRecordFormHook = inject(OpenNewRecordFormHookInj, createEventHook()) |
|
|
|
|
|
|
|
|
|
|
|
const { isMobileMode } = useGlobal() |
|
|
|
const { isMobileMode, isAddNewRecordGridMode, setAddNewRecordGridMode } = useGlobal() |
|
|
|
|
|
|
|
|
|
|
|
const scrollParent = inject(ScrollParentInj, ref<undefined>()) |
|
|
|
const scrollParent = inject(ScrollParentInj, ref<undefined>()) |
|
|
|
|
|
|
|
|
|
|
@ -196,8 +196,6 @@ const preloadColumn = ref<any>() |
|
|
|
|
|
|
|
|
|
|
|
const scrolling = ref(false) |
|
|
|
const scrolling = ref(false) |
|
|
|
|
|
|
|
|
|
|
|
const isAddNewRecordGridMode = ref(true) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const switchingTab = ref(false) |
|
|
|
const switchingTab = ref(false) |
|
|
|
|
|
|
|
|
|
|
|
const isView = false |
|
|
|
const isView = false |
|
|
@ -493,12 +491,12 @@ const onDraftRecordClick = () => { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const onNewRecordToGridClick = () => { |
|
|
|
const onNewRecordToGridClick = () => { |
|
|
|
isAddNewRecordGridMode.value = true |
|
|
|
setAddNewRecordGridMode(true) |
|
|
|
addEmptyRow() |
|
|
|
addEmptyRow() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const onNewRecordToFormClick = () => { |
|
|
|
const onNewRecordToFormClick = () => { |
|
|
|
isAddNewRecordGridMode.value = false |
|
|
|
setAddNewRecordGridMode(false) |
|
|
|
onDraftRecordClick() |
|
|
|
onDraftRecordClick() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|