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"
|
||||
>
|
||||
<ListHeader class="mx-5" />
|
||||
<ListHeader class="mx-5" @columnWidthUpdated="emit('columnWidthUpdated')" />
|
||||
<ListRows id="list-rows">
|
||||
<ListRow
|
||||
class="mx-5"
|
||||
@ -108,7 +108,7 @@ const props = defineProps({
|
||||
},
|
||||
})
|
||||
|
||||
const emit = defineEmits(['loadMore', 'updatePageCount'])
|
||||
const emit = defineEmits(['loadMore', 'updatePageCount', 'columnWidthUpdated'])
|
||||
|
||||
const pageLengthCount = defineModel()
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
}"
|
||||
row-key="name"
|
||||
>
|
||||
<ListHeader class="mx-5" />
|
||||
<ListHeader class="mx-5" @columnWidthUpdated="emit('columnWidthUpdated')" />
|
||||
<ListRows id="list-rows">
|
||||
<ListRow
|
||||
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()
|
||||
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
}"
|
||||
row-key="name"
|
||||
>
|
||||
<ListHeader class="mx-5" />
|
||||
<ListHeader class="mx-5" @columnWidthUpdated="emit('columnWidthUpdated')" />
|
||||
<ListRows id="list-rows">
|
||||
<ListRow
|
||||
class="mx-5"
|
||||
@ -129,6 +129,7 @@ const emit = defineEmits([
|
||||
'updatePageCount',
|
||||
'showEmailTemplate',
|
||||
'reload',
|
||||
'columnWidthUpdated',
|
||||
])
|
||||
|
||||
const pageLengthCount = defineModel()
|
||||
|
||||
@ -10,7 +10,7 @@
|
||||
}"
|
||||
row-key="name"
|
||||
>
|
||||
<ListHeader class="mx-5" />
|
||||
<ListHeader class="mx-5" @columnWidthUpdated="emit('columnWidthUpdated')" />
|
||||
<ListRows id="list-rows">
|
||||
<ListRow
|
||||
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 list = defineModel('list')
|
||||
|
||||
@ -12,7 +12,7 @@
|
||||
}"
|
||||
row-key="name"
|
||||
>
|
||||
<ListHeader class="mx-5" />
|
||||
<ListHeader class="mx-5" @columnWidthUpdated="emit('columnWidthUpdated')" />
|
||||
<ListRows id="list-rows">
|
||||
<ListRow
|
||||
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()
|
||||
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
}"
|
||||
row-key="name"
|
||||
>
|
||||
<ListHeader class="mx-5" />
|
||||
<ListHeader class="mx-5" @columnWidthUpdated="emit('columnWidthUpdated')" />
|
||||
<ListRows id="list-rows">
|
||||
<ListRow
|
||||
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()
|
||||
|
||||
|
||||
@ -7,6 +7,7 @@
|
||||
<ViewControls
|
||||
v-model="callLogs"
|
||||
v-model:loadMore="loadMore"
|
||||
v-model:resizeColumn="triggerResize"
|
||||
v-model:updatedPageCount="updatedPageCount"
|
||||
doctype="CRM Call Log"
|
||||
/>
|
||||
@ -21,6 +22,7 @@
|
||||
totalCount: callLogs.data.total_count,
|
||||
}"
|
||||
@loadMore="() => loadMore++"
|
||||
@columnWidthUpdated="() => triggerResize++"
|
||||
@updatePageCount="(count) => (updatedPageCount = count)"
|
||||
@reload="callLogs.reload()"
|
||||
/>
|
||||
@ -61,6 +63,7 @@ const breadcrumbs = [{ label: 'Call Logs', route: { name: 'Call Logs' } }]
|
||||
// callLogs data is loaded in the ViewControls component
|
||||
const callLogs = ref({})
|
||||
const loadMore = ref(1)
|
||||
const triggerResize = ref(1)
|
||||
const updatedPageCount = ref(20)
|
||||
|
||||
const rows = computed(() => {
|
||||
|
||||
@ -12,6 +12,7 @@
|
||||
<ViewControls
|
||||
v-model="contacts"
|
||||
v-model:loadMore="loadMore"
|
||||
v-model:resizeColumn="triggerResize"
|
||||
v-model:updatedPageCount="updatedPageCount"
|
||||
doctype="Contact"
|
||||
/>
|
||||
@ -26,6 +27,7 @@
|
||||
totalCount: contacts.data.total_count,
|
||||
}"
|
||||
@loadMore="() => loadMore++"
|
||||
@columnWidthUpdated="() => triggerResize++"
|
||||
@updatePageCount="(count) => (updatedPageCount = count)"
|
||||
@reload="contacts.reload()"
|
||||
/>
|
||||
@ -85,6 +87,7 @@ const breadcrumbs = computed(() => {
|
||||
// contacts data is loaded in the ViewControls component
|
||||
const contacts = ref({})
|
||||
const loadMore = ref(1)
|
||||
const triggerResize = ref(1)
|
||||
const updatedPageCount = ref(20)
|
||||
|
||||
const rows = computed(() => {
|
||||
|
||||
@ -12,6 +12,7 @@
|
||||
<ViewControls
|
||||
v-model="emailTemplates"
|
||||
v-model:loadMore="loadMore"
|
||||
v-model:resizeColumn="triggerResize"
|
||||
v-model:updatedPageCount="updatedPageCount"
|
||||
doctype="Email Template"
|
||||
/>
|
||||
@ -26,6 +27,7 @@
|
||||
totalCount: emailTemplates.data.total_count,
|
||||
}"
|
||||
@loadMore="() => loadMore++"
|
||||
@columnWidthUpdated="() => triggerResize++"
|
||||
@updatePageCount="(count) => (updatedPageCount = count)"
|
||||
@showEmailTemplate="showEmailTemplate"
|
||||
@reload="emailTemplates.reload()"
|
||||
@ -65,6 +67,7 @@ const breadcrumbs = [
|
||||
// emailTemplates data is loaded in the ViewControls component
|
||||
const emailTemplates = ref({})
|
||||
const loadMore = ref(1)
|
||||
const triggerResize = ref(1)
|
||||
const updatedPageCount = ref(20)
|
||||
|
||||
const rows = computed(() => {
|
||||
|
||||
@ -12,6 +12,7 @@
|
||||
<ViewControls
|
||||
v-model="leads"
|
||||
v-model:loadMore="loadMore"
|
||||
v-model:resizeColumn="triggerResize"
|
||||
v-model:updatedPageCount="updatedPageCount"
|
||||
doctype="CRM Lead"
|
||||
:filters="{ converted: 0 }"
|
||||
@ -28,6 +29,7 @@
|
||||
totalCount: leads.data.total_count,
|
||||
}"
|
||||
@loadMore="() => loadMore++"
|
||||
@columnWidthUpdated="() => triggerResize++"
|
||||
@updatePageCount="(count) => (updatedPageCount = count)"
|
||||
/>
|
||||
<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
|
||||
const leads = ref({})
|
||||
const loadMore = ref(1)
|
||||
const triggerResize = ref(1)
|
||||
const updatedPageCount = ref(20)
|
||||
|
||||
// Rows
|
||||
|
||||
@ -16,6 +16,7 @@
|
||||
<ViewControls
|
||||
v-model="organizations"
|
||||
v-model:loadMore="loadMore"
|
||||
v-model:resizeColumn="triggerResize"
|
||||
v-model:updatedPageCount="updatedPageCount"
|
||||
doctype="CRM Organization"
|
||||
/>
|
||||
@ -30,6 +31,7 @@
|
||||
totalCount: organizations.data.total_count,
|
||||
}"
|
||||
@loadMore="() => loadMore++"
|
||||
@columnWidthUpdated="() => triggerResize++"
|
||||
@updatePageCount="(count) => (updatedPageCount = count)"
|
||||
@reload="organizations.reload()"
|
||||
/>
|
||||
@ -91,6 +93,7 @@ const breadcrumbs = computed(() => {
|
||||
// organizations data is loaded in the ViewControls component
|
||||
const organizations = ref({})
|
||||
const loadMore = ref(1)
|
||||
const triggerResize = ref(1)
|
||||
const updatedPageCount = ref(20)
|
||||
|
||||
const rows = computed(() => {
|
||||
|
||||
@ -12,6 +12,7 @@
|
||||
<ViewControls
|
||||
v-model="tasks"
|
||||
v-model:loadMore="loadMore"
|
||||
v-model:resizeColumn="triggerResize"
|
||||
v-model:updatedPageCount="updatedPageCount"
|
||||
doctype="CRM Task"
|
||||
/>
|
||||
@ -26,6 +27,7 @@
|
||||
totalCount: tasks.data.total_count,
|
||||
}"
|
||||
@loadMore="() => loadMore++"
|
||||
@columnWidthUpdated="() => triggerResize++"
|
||||
@updatePageCount="(count) => (updatedPageCount = count)"
|
||||
@showTask="showTask"
|
||||
@reload="tasks.reload()"
|
||||
@ -59,6 +61,7 @@ const { getUser } = usersStore()
|
||||
// tasks data is loaded in the ViewControls component
|
||||
const tasks = ref({})
|
||||
const loadMore = ref(1)
|
||||
const triggerResize = ref(1)
|
||||
const updatedPageCount = ref(20)
|
||||
|
||||
const rows = computed(() => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user