fix: fixed for all listview
This commit is contained in:
parent
2e62ee167f
commit
38f8c8d5cd
@ -1 +1 @@
|
|||||||
Subproject commit 05e331df9e568a2f3f1d904230333baa1f7cc7be
|
Subproject commit 388c8706d0f96d918651018ca58d85a56d2bf5cb
|
||||||
@ -12,7 +12,7 @@
|
|||||||
}"
|
}"
|
||||||
row-key="name"
|
row-key="name"
|
||||||
>
|
>
|
||||||
<ListHeader class="mx-5" />
|
<ListHeader class="mx-5" @columnWidthUpdated="emit('columnWidthUpdated')" />
|
||||||
<ListRows id="list-rows">
|
<ListRows id="list-rows">
|
||||||
<ListRow
|
<ListRow
|
||||||
class="mx-5"
|
class="mx-5"
|
||||||
@ -108,7 +108,7 @@ const props = defineProps({
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
const emit = defineEmits(['loadMore', 'updatePageCount'])
|
const emit = defineEmits(['loadMore', 'updatePageCount', 'columnWidthUpdated'])
|
||||||
|
|
||||||
const pageLengthCount = defineModel()
|
const pageLengthCount = defineModel()
|
||||||
|
|
||||||
|
|||||||
@ -13,7 +13,7 @@
|
|||||||
}"
|
}"
|
||||||
row-key="name"
|
row-key="name"
|
||||||
>
|
>
|
||||||
<ListHeader class="mx-5" />
|
<ListHeader class="mx-5" @columnWidthUpdated="emit('columnWidthUpdated')" />
|
||||||
<ListRows id="list-rows">
|
<ListRows id="list-rows">
|
||||||
<ListRow
|
<ListRow
|
||||||
class="mx-5"
|
class="mx-5"
|
||||||
@ -133,7 +133,12 @@ const props = defineProps({
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
const emit = defineEmits(['loadMore', 'updatePageCount', 'reload'])
|
const emit = defineEmits([
|
||||||
|
'loadMore',
|
||||||
|
'updatePageCount',
|
||||||
|
'reload',
|
||||||
|
'columnWidthUpdated',
|
||||||
|
])
|
||||||
|
|
||||||
const pageLengthCount = defineModel()
|
const pageLengthCount = defineModel()
|
||||||
|
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
}"
|
}"
|
||||||
row-key="name"
|
row-key="name"
|
||||||
>
|
>
|
||||||
<ListHeader class="mx-5" />
|
<ListHeader class="mx-5" @columnWidthUpdated="emit('columnWidthUpdated')" />
|
||||||
<ListRows id="list-rows">
|
<ListRows id="list-rows">
|
||||||
<ListRow
|
<ListRow
|
||||||
class="mx-5"
|
class="mx-5"
|
||||||
@ -129,6 +129,7 @@ const emit = defineEmits([
|
|||||||
'updatePageCount',
|
'updatePageCount',
|
||||||
'showEmailTemplate',
|
'showEmailTemplate',
|
||||||
'reload',
|
'reload',
|
||||||
|
'columnWidthUpdated',
|
||||||
])
|
])
|
||||||
|
|
||||||
const pageLengthCount = defineModel()
|
const pageLengthCount = defineModel()
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
}"
|
}"
|
||||||
row-key="name"
|
row-key="name"
|
||||||
>
|
>
|
||||||
<ListHeader class="mx-5" />
|
<ListHeader class="mx-5" @columnWidthUpdated="emit('columnWidthUpdated')" />
|
||||||
<ListRows id="list-rows">
|
<ListRows id="list-rows">
|
||||||
<ListRow
|
<ListRow
|
||||||
class="mx-5"
|
class="mx-5"
|
||||||
@ -173,7 +173,7 @@ const props = defineProps({
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
const emit = defineEmits(['loadMore', 'updatePageCount'])
|
const emit = defineEmits(['loadMore', 'updatePageCount', 'columnWidthUpdated'])
|
||||||
|
|
||||||
const pageLengthCount = defineModel()
|
const pageLengthCount = defineModel()
|
||||||
const list = defineModel('list')
|
const list = defineModel('list')
|
||||||
|
|||||||
@ -12,7 +12,7 @@
|
|||||||
}"
|
}"
|
||||||
row-key="name"
|
row-key="name"
|
||||||
>
|
>
|
||||||
<ListHeader class="mx-5" />
|
<ListHeader class="mx-5" @columnWidthUpdated="emit('columnWidthUpdated')" />
|
||||||
<ListRows id="list-rows">
|
<ListRows id="list-rows">
|
||||||
<ListRow
|
<ListRow
|
||||||
class="mx-5"
|
class="mx-5"
|
||||||
@ -118,7 +118,12 @@ const props = defineProps({
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
const emit = defineEmits(['loadMore', 'updatePageCount', 'reload'])
|
const emit = defineEmits([
|
||||||
|
'loadMore',
|
||||||
|
'updatePageCount',
|
||||||
|
'reload',
|
||||||
|
'columnWidthUpdated',
|
||||||
|
])
|
||||||
|
|
||||||
const pageLengthCount = defineModel()
|
const pageLengthCount = defineModel()
|
||||||
|
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
}"
|
}"
|
||||||
row-key="name"
|
row-key="name"
|
||||||
>
|
>
|
||||||
<ListHeader class="mx-5" />
|
<ListHeader class="mx-5" @columnWidthUpdated="emit('columnWidthUpdated')" />
|
||||||
<ListRows id="list-rows">
|
<ListRows id="list-rows">
|
||||||
<ListRow
|
<ListRow
|
||||||
class="mx-5"
|
class="mx-5"
|
||||||
@ -147,7 +147,13 @@ const props = defineProps({
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
const emit = defineEmits(['loadMore', 'updatePageCount', 'showTask', 'reload'])
|
const emit = defineEmits([
|
||||||
|
'loadMore',
|
||||||
|
'updatePageCount',
|
||||||
|
'showTask',
|
||||||
|
'reload',
|
||||||
|
'columnWidthUpdated',
|
||||||
|
])
|
||||||
|
|
||||||
const pageLengthCount = defineModel()
|
const pageLengthCount = defineModel()
|
||||||
|
|
||||||
|
|||||||
@ -7,6 +7,7 @@
|
|||||||
<ViewControls
|
<ViewControls
|
||||||
v-model="callLogs"
|
v-model="callLogs"
|
||||||
v-model:loadMore="loadMore"
|
v-model:loadMore="loadMore"
|
||||||
|
v-model:resizeColumn="triggerResize"
|
||||||
v-model:updatedPageCount="updatedPageCount"
|
v-model:updatedPageCount="updatedPageCount"
|
||||||
doctype="CRM Call Log"
|
doctype="CRM Call Log"
|
||||||
/>
|
/>
|
||||||
@ -21,6 +22,7 @@
|
|||||||
totalCount: callLogs.data.total_count,
|
totalCount: callLogs.data.total_count,
|
||||||
}"
|
}"
|
||||||
@loadMore="() => loadMore++"
|
@loadMore="() => loadMore++"
|
||||||
|
@columnWidthUpdated="() => triggerResize++"
|
||||||
@updatePageCount="(count) => (updatedPageCount = count)"
|
@updatePageCount="(count) => (updatedPageCount = count)"
|
||||||
@reload="callLogs.reload()"
|
@reload="callLogs.reload()"
|
||||||
/>
|
/>
|
||||||
@ -61,6 +63,7 @@ const breadcrumbs = [{ label: 'Call Logs', route: { name: 'Call Logs' } }]
|
|||||||
// callLogs data is loaded in the ViewControls component
|
// callLogs data is loaded in the ViewControls component
|
||||||
const callLogs = ref({})
|
const callLogs = ref({})
|
||||||
const loadMore = ref(1)
|
const loadMore = ref(1)
|
||||||
|
const triggerResize = ref(1)
|
||||||
const updatedPageCount = ref(20)
|
const updatedPageCount = ref(20)
|
||||||
|
|
||||||
const rows = computed(() => {
|
const rows = computed(() => {
|
||||||
|
|||||||
@ -12,6 +12,7 @@
|
|||||||
<ViewControls
|
<ViewControls
|
||||||
v-model="contacts"
|
v-model="contacts"
|
||||||
v-model:loadMore="loadMore"
|
v-model:loadMore="loadMore"
|
||||||
|
v-model:resizeColumn="triggerResize"
|
||||||
v-model:updatedPageCount="updatedPageCount"
|
v-model:updatedPageCount="updatedPageCount"
|
||||||
doctype="Contact"
|
doctype="Contact"
|
||||||
/>
|
/>
|
||||||
@ -26,6 +27,7 @@
|
|||||||
totalCount: contacts.data.total_count,
|
totalCount: contacts.data.total_count,
|
||||||
}"
|
}"
|
||||||
@loadMore="() => loadMore++"
|
@loadMore="() => loadMore++"
|
||||||
|
@columnWidthUpdated="() => triggerResize++"
|
||||||
@updatePageCount="(count) => (updatedPageCount = count)"
|
@updatePageCount="(count) => (updatedPageCount = count)"
|
||||||
@reload="contacts.reload()"
|
@reload="contacts.reload()"
|
||||||
/>
|
/>
|
||||||
@ -85,6 +87,7 @@ const breadcrumbs = computed(() => {
|
|||||||
// contacts data is loaded in the ViewControls component
|
// contacts data is loaded in the ViewControls component
|
||||||
const contacts = ref({})
|
const contacts = ref({})
|
||||||
const loadMore = ref(1)
|
const loadMore = ref(1)
|
||||||
|
const triggerResize = ref(1)
|
||||||
const updatedPageCount = ref(20)
|
const updatedPageCount = ref(20)
|
||||||
|
|
||||||
const rows = computed(() => {
|
const rows = computed(() => {
|
||||||
|
|||||||
@ -12,6 +12,7 @@
|
|||||||
<ViewControls
|
<ViewControls
|
||||||
v-model="emailTemplates"
|
v-model="emailTemplates"
|
||||||
v-model:loadMore="loadMore"
|
v-model:loadMore="loadMore"
|
||||||
|
v-model:resizeColumn="triggerResize"
|
||||||
v-model:updatedPageCount="updatedPageCount"
|
v-model:updatedPageCount="updatedPageCount"
|
||||||
doctype="Email Template"
|
doctype="Email Template"
|
||||||
/>
|
/>
|
||||||
@ -26,6 +27,7 @@
|
|||||||
totalCount: emailTemplates.data.total_count,
|
totalCount: emailTemplates.data.total_count,
|
||||||
}"
|
}"
|
||||||
@loadMore="() => loadMore++"
|
@loadMore="() => loadMore++"
|
||||||
|
@columnWidthUpdated="() => triggerResize++"
|
||||||
@updatePageCount="(count) => (updatedPageCount = count)"
|
@updatePageCount="(count) => (updatedPageCount = count)"
|
||||||
@showEmailTemplate="showEmailTemplate"
|
@showEmailTemplate="showEmailTemplate"
|
||||||
@reload="emailTemplates.reload()"
|
@reload="emailTemplates.reload()"
|
||||||
@ -65,6 +67,7 @@ const breadcrumbs = [
|
|||||||
// emailTemplates data is loaded in the ViewControls component
|
// emailTemplates data is loaded in the ViewControls component
|
||||||
const emailTemplates = ref({})
|
const emailTemplates = ref({})
|
||||||
const loadMore = ref(1)
|
const loadMore = ref(1)
|
||||||
|
const triggerResize = ref(1)
|
||||||
const updatedPageCount = ref(20)
|
const updatedPageCount = ref(20)
|
||||||
|
|
||||||
const rows = computed(() => {
|
const rows = computed(() => {
|
||||||
|
|||||||
@ -12,6 +12,7 @@
|
|||||||
<ViewControls
|
<ViewControls
|
||||||
v-model="leads"
|
v-model="leads"
|
||||||
v-model:loadMore="loadMore"
|
v-model:loadMore="loadMore"
|
||||||
|
v-model:resizeColumn="triggerResize"
|
||||||
v-model:updatedPageCount="updatedPageCount"
|
v-model:updatedPageCount="updatedPageCount"
|
||||||
doctype="CRM Lead"
|
doctype="CRM Lead"
|
||||||
:filters="{ converted: 0 }"
|
:filters="{ converted: 0 }"
|
||||||
@ -28,6 +29,7 @@
|
|||||||
totalCount: leads.data.total_count,
|
totalCount: leads.data.total_count,
|
||||||
}"
|
}"
|
||||||
@loadMore="() => loadMore++"
|
@loadMore="() => loadMore++"
|
||||||
|
@columnWidthUpdated="() => triggerResize++"
|
||||||
@updatePageCount="(count) => (updatedPageCount = count)"
|
@updatePageCount="(count) => (updatedPageCount = count)"
|
||||||
/>
|
/>
|
||||||
<div v-else-if="leads.data" class="flex h-full items-center justify-center">
|
<div v-else-if="leads.data" class="flex h-full items-center justify-center">
|
||||||
@ -85,6 +87,7 @@ const router = useRouter()
|
|||||||
// leads data is loaded in the ViewControls component
|
// leads data is loaded in the ViewControls component
|
||||||
const leads = ref({})
|
const leads = ref({})
|
||||||
const loadMore = ref(1)
|
const loadMore = ref(1)
|
||||||
|
const triggerResize = ref(1)
|
||||||
const updatedPageCount = ref(20)
|
const updatedPageCount = ref(20)
|
||||||
|
|
||||||
// Rows
|
// Rows
|
||||||
|
|||||||
@ -16,6 +16,7 @@
|
|||||||
<ViewControls
|
<ViewControls
|
||||||
v-model="organizations"
|
v-model="organizations"
|
||||||
v-model:loadMore="loadMore"
|
v-model:loadMore="loadMore"
|
||||||
|
v-model:resizeColumn="triggerResize"
|
||||||
v-model:updatedPageCount="updatedPageCount"
|
v-model:updatedPageCount="updatedPageCount"
|
||||||
doctype="CRM Organization"
|
doctype="CRM Organization"
|
||||||
/>
|
/>
|
||||||
@ -30,6 +31,7 @@
|
|||||||
totalCount: organizations.data.total_count,
|
totalCount: organizations.data.total_count,
|
||||||
}"
|
}"
|
||||||
@loadMore="() => loadMore++"
|
@loadMore="() => loadMore++"
|
||||||
|
@columnWidthUpdated="() => triggerResize++"
|
||||||
@updatePageCount="(count) => (updatedPageCount = count)"
|
@updatePageCount="(count) => (updatedPageCount = count)"
|
||||||
@reload="organizations.reload()"
|
@reload="organizations.reload()"
|
||||||
/>
|
/>
|
||||||
@ -91,6 +93,7 @@ const breadcrumbs = computed(() => {
|
|||||||
// organizations data is loaded in the ViewControls component
|
// organizations data is loaded in the ViewControls component
|
||||||
const organizations = ref({})
|
const organizations = ref({})
|
||||||
const loadMore = ref(1)
|
const loadMore = ref(1)
|
||||||
|
const triggerResize = ref(1)
|
||||||
const updatedPageCount = ref(20)
|
const updatedPageCount = ref(20)
|
||||||
|
|
||||||
const rows = computed(() => {
|
const rows = computed(() => {
|
||||||
|
|||||||
@ -12,6 +12,7 @@
|
|||||||
<ViewControls
|
<ViewControls
|
||||||
v-model="tasks"
|
v-model="tasks"
|
||||||
v-model:loadMore="loadMore"
|
v-model:loadMore="loadMore"
|
||||||
|
v-model:resizeColumn="triggerResize"
|
||||||
v-model:updatedPageCount="updatedPageCount"
|
v-model:updatedPageCount="updatedPageCount"
|
||||||
doctype="CRM Task"
|
doctype="CRM Task"
|
||||||
/>
|
/>
|
||||||
@ -26,6 +27,7 @@
|
|||||||
totalCount: tasks.data.total_count,
|
totalCount: tasks.data.total_count,
|
||||||
}"
|
}"
|
||||||
@loadMore="() => loadMore++"
|
@loadMore="() => loadMore++"
|
||||||
|
@columnWidthUpdated="() => triggerResize++"
|
||||||
@updatePageCount="(count) => (updatedPageCount = count)"
|
@updatePageCount="(count) => (updatedPageCount = count)"
|
||||||
@showTask="showTask"
|
@showTask="showTask"
|
||||||
@reload="tasks.reload()"
|
@reload="tasks.reload()"
|
||||||
@ -59,6 +61,7 @@ const { getUser } = usersStore()
|
|||||||
// tasks data is loaded in the ViewControls component
|
// tasks data is loaded in the ViewControls component
|
||||||
const tasks = ref({})
|
const tasks = ref({})
|
||||||
const loadMore = ref(1)
|
const loadMore = ref(1)
|
||||||
|
const triggerResize = ref(1)
|
||||||
const updatedPageCount = ref(20)
|
const updatedPageCount = ref(20)
|
||||||
|
|
||||||
const rows = computed(() => {
|
const rows = computed(() => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user