|
|
@ -139,8 +139,8 @@ const expandForm = (row: Row, state?: Record<string, any>, fromToolbar = false) |
|
|
|
|
|
|
|
|
|
|
|
if (rowId) { |
|
|
|
if (rowId) { |
|
|
|
router.push({ |
|
|
|
router.push({ |
|
|
|
params: { |
|
|
|
query: { |
|
|
|
...route.params, |
|
|
|
...route.query, |
|
|
|
rowId, |
|
|
|
rowId, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}) |
|
|
|
}) |
|
|
@ -398,18 +398,21 @@ onBeforeUnmount(async () => { |
|
|
|
|
|
|
|
|
|
|
|
const expandedFormOnRowIdDlg = computed({ |
|
|
|
const expandedFormOnRowIdDlg = computed({ |
|
|
|
get() { |
|
|
|
get() { |
|
|
|
return !!route.params.rowId |
|
|
|
return !!route.query.rowId |
|
|
|
}, |
|
|
|
}, |
|
|
|
set(val) { |
|
|
|
set(val) { |
|
|
|
if (!val) |
|
|
|
if (!val) |
|
|
|
router.push({ |
|
|
|
router.push({ |
|
|
|
params: { |
|
|
|
query: { |
|
|
|
...route.params, |
|
|
|
...route.query, |
|
|
|
rowId: undefined, |
|
|
|
rowId: undefined, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// reload table data reload hook as fallback to rowdatareload |
|
|
|
|
|
|
|
provide(ReloadRowDataHookInj, reloadViewDataHook) |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
<template> |
|
|
@ -653,11 +656,11 @@ const expandedFormOnRowIdDlg = computed({ |
|
|
|
|
|
|
|
|
|
|
|
<SmartsheetExpandedForm |
|
|
|
<SmartsheetExpandedForm |
|
|
|
v-if="expandedFormOnRowIdDlg" |
|
|
|
v-if="expandedFormOnRowIdDlg" |
|
|
|
:key="route.params.rowId" |
|
|
|
:key="route.query.rowId" |
|
|
|
v-model="expandedFormOnRowIdDlg" |
|
|
|
v-model="expandedFormOnRowIdDlg" |
|
|
|
:row="{ row: {}, oldRow: {}, rowMeta: {} }" |
|
|
|
:row="{ row: {}, oldRow: {}, rowMeta: {} }" |
|
|
|
:meta="meta" |
|
|
|
:meta="meta" |
|
|
|
:row-id="route.params.rowId" |
|
|
|
:row-id="route.query.rowId" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|