forked from verdnatura/salix-front
feat: #6943 Define new props to handle params in URL
This commit is contained in:
parent
5944084576
commit
2288c527ae
|
@ -69,7 +69,10 @@ const $props = defineProps({
|
|||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
|
||||
appendParams: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
hasSubToolbar: {
|
||||
type: Boolean,
|
||||
default: null,
|
||||
|
|
|
@ -248,7 +248,7 @@ export function useArrayData(key = useRoute().meta.moduleName, userOptions) {
|
|||
|
||||
function updateStateParams() {
|
||||
const newUrl = { path: route.path, query: { ...(route.query ?? {}) } };
|
||||
if (!route.path.endsWith('/summary'))
|
||||
if (store.appendParams)
|
||||
newUrl.query[store.searchUrl] = JSON.stringify(store.currentFilter);
|
||||
|
||||
if (store.navigate) {
|
||||
|
|
|
@ -149,7 +149,7 @@ const setShippedColor = (date) => {
|
|||
:column-search="false"
|
||||
url="Tickets"
|
||||
:columns="columns"
|
||||
search-url="tickets"
|
||||
append-params="false"
|
||||
:without-header="true"
|
||||
auto-load
|
||||
order="shipped DESC, id"
|
||||
|
|
Loading…
Reference in New Issue