|
@ -13,7 +13,7 @@ |
|
|
separator="cell" |
|
|
separator="cell" |
|
|
:rows="table.rows" |
|
|
:rows="table.rows" |
|
|
:columns="extractTableColumns" |
|
|
:columns="extractTableColumns" |
|
|
:rows-per-page-options="pageable && table.refHeightWidth.middleWidth > 600 ? table.pagination.rowsPerPageOptions : []" |
|
|
:rows-per-page-options="pageable && !tree && table.refHeightWidth.middleWidth > 600 ? table.pagination.rowsPerPageOptions : []" |
|
|
:loading="table.loading" |
|
|
:loading="table.loading" |
|
|
:class="tableClassComputed" |
|
|
:class="tableClassComputed" |
|
|
:table-style="tableHeightComputed" |
|
|
:table-style="tableHeightComputed" |
|
@ -148,7 +148,7 @@ |
|
|
</q-inner-loading> |
|
|
</q-inner-loading> |
|
|
</template> |
|
|
</template> |
|
|
<template #pagination="scope"> |
|
|
<template #pagination="scope"> |
|
|
<template v-if="pageable"> |
|
|
<template v-if="pageable && !tree"> |
|
|
<template v-if="table.refHeightWidth.middleWidth > 600"> |
|
|
<template v-if="table.refHeightWidth.middleWidth > 600"> |
|
|
<q-pagination |
|
|
<q-pagination |
|
|
v-model="table.pagination.page" |
|
|
v-model="table.pagination.page" |
|
@ -206,6 +206,7 @@ import { useQuasar, getCssVar, exportFile } from 'quasar'; |
|
|
import { IconEnum } from '@/platform/enums'; |
|
|
import { IconEnum } from '@/platform/enums'; |
|
|
import { extractTableColumnsProps, arrayToMap, OperatorTypeEnum, isEmpty, PageStatusEnum } from '@/platform/components/utils'; |
|
|
import { extractTableColumnsProps, arrayToMap, OperatorTypeEnum, isEmpty, PageStatusEnum } from '@/platform/components/utils'; |
|
|
import TreeGridRow from './TreeGridRow.vue'; |
|
|
import TreeGridRow from './TreeGridRow.vue'; |
|
|
|
|
|
import { mergeProps } from 'vue'; |
|
|
|
|
|
|
|
|
const attrs = useAttrs(); |
|
|
const attrs = useAttrs(); |
|
|
const gc = Environment.getConfigure(); |
|
|
const gc = Environment.getConfigure(); |
|
@ -1005,7 +1006,7 @@ const pageChange = (value) => { |
|
|
}; |
|
|
}; |
|
|
const requestHandler = async (ops) => { |
|
|
const requestHandler = async (ops) => { |
|
|
const reqParams: any = {}; |
|
|
const reqParams: any = {}; |
|
|
if (props.pageable) { |
|
|
if (props.pageable && !props.tree) { |
|
|
reqParams.page = ops.pagination.page; |
|
|
reqParams.page = ops.pagination.page; |
|
|
reqParams.size = ops.pagination.rowsPerPage; |
|
|
reqParams.size = ops.pagination.rowsPerPage; |
|
|
} |
|
|
} |
|
|