feat: 补充新项目hx-op
This commit is contained in:
@@ -353,7 +353,7 @@
|
||||
}
|
||||
|
||||
const tableChangeEvent = (pagination: Props, filters: [], sorter: any) => {
|
||||
// console.log('params', pagination, filters, sorter);
|
||||
console.log('params', pagination, filters, sorter);
|
||||
if (sorter?.field) {
|
||||
if (sorter.order) {
|
||||
orderRef.value = {
|
||||
@@ -383,7 +383,7 @@
|
||||
|
||||
if (pagination) {
|
||||
const current = get(dataRef.value, props.pageField);
|
||||
console.log(current);
|
||||
|
||||
function getTotal() {
|
||||
let total = 0;
|
||||
if (isFunction(getPageParams)) {
|
||||
@@ -393,7 +393,6 @@
|
||||
}
|
||||
return total;
|
||||
}
|
||||
console.log('current', (current >= 0 ? current : 0) + props.pageFieldOffset);
|
||||
|
||||
return {
|
||||
showQuickJumper: true,
|
||||
@@ -406,13 +405,15 @@
|
||||
},
|
||||
...(pagination as Props),
|
||||
total: getTotal(),
|
||||
current: (current >= 0 ? current : 0) + props.pageFieldOffset, // 后端1 开始
|
||||
current: (current >= 0 ? current : 1) + props.pageFieldOffset, // 后端1 开始
|
||||
pageSize: get(dataRef.value, props.sizeField),
|
||||
};
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
console.log(getPagination.value);
|
||||
|
||||
const getTableBindValues = computed(() => {
|
||||
const { params, dynamicParams } = props;
|
||||
return {
|
||||
|
Reference in New Issue
Block a user