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