yxk-20260612-默认分页显示数据为12条
This commit is contained in:
@@ -4,17 +4,17 @@
|
||||
<div class="jeecg-basic-table-form-container">
|
||||
<a-form ref="formRef" @keyup.enter="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
|
||||
<a-row :gutter="24">
|
||||
<a-col :lg="4" :md="6" :sm="8">
|
||||
<a-col :lg="3" :md="6" :sm="8">
|
||||
<a-form-item label="年份" name="year">
|
||||
<JDictSelectTag v-model:value="queryParam.year" dictCode="super_year" placeholder="请选择年份" allow-clear @change="searchQuery" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="5" :md="8" :sm="12">
|
||||
<a-col :lg="6" :md="8" :sm="12">
|
||||
<a-form-item label="事项名称" name="title">
|
||||
<JInput v-model:value="queryParam.title" type="like" placeholder="请输入事项名称" allow-clear trim />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="5" :md="8" :sm="12">
|
||||
<a-col :lg="6" :md="8" :sm="12">
|
||||
<a-form-item label="会议决议" name="content">
|
||||
<JInput v-model:value="queryParam.content" type="like" placeholder="请输入会议决议" allow-clear trim />
|
||||
</a-form-item>
|
||||
@@ -24,12 +24,12 @@
|
||||
<!-- <JInput v-model:value="queryParam.matterCode" type="like" placeholder="请输入事项目录编码" allow-clear trim />-->
|
||||
<!-- </a-form-item>-->
|
||||
<!-- </a-col>-->
|
||||
<a-col :lg="5" :md="6" :sm="8">
|
||||
<a-col :lg="6" :md="6" :sm="8">
|
||||
<a-form-item label="完成状态" name="bpmStatus">
|
||||
<JDictSelectTag v-model:value="queryParam.bpmStatus" dictCode="super_status" placeholder="请选择完成状态" allow-clear @change="searchQuery" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="4" :md="8" :sm="12">
|
||||
<a-col :lg="3" :md="8" :sm="12">
|
||||
<span class="table-page-search-submitButtons">
|
||||
<a-button type="primary" preIcon="ant-design:search-outlined" @click="searchQuery">查询</a-button>
|
||||
<a-button preIcon="ant-design:reload-outlined" style="margin-left: 8px" @click="searchReset">重置</a-button>
|
||||
@@ -216,8 +216,8 @@
|
||||
},
|
||||
pagination: {
|
||||
current: 1,
|
||||
pageSize: 10,
|
||||
pageSizeOptions: ['10', '20', '30'],
|
||||
pageSize: 12,
|
||||
pageSizeOptions: ['12', '24', '36'],
|
||||
},
|
||||
},
|
||||
exportConfig: {
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
tableProps: {
|
||||
api: list,
|
||||
columns: columns,
|
||||
pagination: { pageSize: 12, defaultPageSize: 12 },
|
||||
showIndexColumn: true,
|
||||
showTableSetting: true,
|
||||
canResize: false,
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
TaskHandleModal,
|
||||
},
|
||||
setup() {
|
||||
const { registerTable, getHistoryTaskInfo } = useTaskList('history');
|
||||
const { registerTable, getHistoryTaskInfo } = useTaskList('history', { pageSize: 12 });
|
||||
|
||||
const [registerModal, { openModal }] = useModal();
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
},
|
||||
|
||||
setup() {
|
||||
const { registerTable, reload, getTaskNodeInfo } = useTaskList('run');
|
||||
const { registerTable, reload, getTaskNodeInfo } = useTaskList('run', { pageSize: 12 });
|
||||
const userStore = useUserStore();
|
||||
const { createMessage } = useMessage();
|
||||
//催办
|
||||
|
||||
@@ -2,11 +2,16 @@ import { useListPage } from '/@/hooks/system/useListPage';
|
||||
import { columns, columns_group, columns_history, TaskType, searchFormSchema } from './task.handle.data';
|
||||
import { list, taskNodeInfo } from './task.handle.api';
|
||||
|
||||
interface TaskListOptions {
|
||||
pageSize?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* 用于列表渲染
|
||||
* @param urlObject
|
||||
*/
|
||||
export function useTaskList(type) {
|
||||
export function useTaskList(type: string, options: TaskListOptions = {}) {
|
||||
const pagination = options.pageSize ? { pageSize: options.pageSize, defaultPageSize: options.pageSize } : undefined;
|
||||
const { tableContext } = useListPage({
|
||||
designScope: 'process-design',
|
||||
pagination: true,
|
||||
@@ -14,6 +19,7 @@ export function useTaskList(type) {
|
||||
title: '',
|
||||
api: getDataList,
|
||||
columns: getColumns(),
|
||||
pagination,
|
||||
showIndexColumn: true,
|
||||
showTableSetting: false,
|
||||
canResize: false,
|
||||
|
||||
Reference in New Issue
Block a user