UI及bug修改
parent
eec9baf4b1
commit
d1c6668f59
|
|
@ -341,7 +341,7 @@ html {
|
|||
.fixedHeader.muiltTab {
|
||||
z-index: 600;
|
||||
#content {
|
||||
height: calc(~"(100% - 51px)");
|
||||
height: calc(~"(100% - 38px)");
|
||||
-ms-overflow-style: none;
|
||||
overflow: -moz-scrollbars-none;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,23 @@
|
|||
import { h, defineComponent } from 'vue';
|
||||
import { Table } from '@hwork/ant-design-vue';
|
||||
|
||||
function patchColumns(cols) {
|
||||
if (!Array.isArray(cols)) return cols;
|
||||
return cols.map((col) => {
|
||||
if (!col) return col;
|
||||
const next = { ...col };
|
||||
if (next.ellipsis === undefined) next.ellipsis = true;
|
||||
if (Array.isArray(next.children)) next.children = patchColumns(next.children);
|
||||
return next;
|
||||
});
|
||||
}
|
||||
|
||||
export default defineComponent({
|
||||
name: 'ATable',
|
||||
inheritAttrs: false,
|
||||
setup(_, { attrs, slots }) {
|
||||
const patchedColumns = patchColumns(attrs.columns);
|
||||
return () => h(Table, { ...attrs, columns: patchedColumns }, slots);
|
||||
},
|
||||
});
|
||||
|
||||
|
|
@ -71,7 +71,7 @@ export default defineComponent({
|
|||
const generateFormState = array => {
|
||||
array.length > 0 && array.forEach(it => {
|
||||
const {key, rules = [], value,defaultValue} = it
|
||||
formState[key] = defaultValue || (value === undefined ? "" : value);
|
||||
formState[key] = defaultValue || (it.type !== 'select' && value === undefined ? "" : value);
|
||||
formRules[key] = rules
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -246,8 +246,13 @@
|
|||
</template>
|
||||
<!--分页插件-->
|
||||
<template>
|
||||
<a-pagination v-model:current="current" :page-size-options="pageSizeOptions" :total="total" show-size-changer
|
||||
:page-size="pageSize" @showSizeChange="onShowSizeChange">
|
||||
<a-pagination v-if="pagination"
|
||||
v-model:current="pagination.current"
|
||||
:page-size-options="pagination.pageSizeOptions"
|
||||
:total="pagination.total"
|
||||
show-size-changer
|
||||
:page-size="pagination.pageSize"
|
||||
@showSizeChange="onShowSizeChange">
|
||||
<template #buildOptionText="props">
|
||||
<span v-if="props.value !== '50'">{{ props.value }}条/页</span>
|
||||
<span v-else>全部</span>
|
||||
|
|
@ -624,6 +629,18 @@
|
|||
/// 数据请求
|
||||
const fetchData = async (pagination, filters, sorter) => {
|
||||
console.log("filters 列过滤条件", filters)
|
||||
// 与 a-table 的变更同步分页状态
|
||||
if (state.pagination !== false) {
|
||||
if (pagination && typeof pagination.current !== 'undefined') {
|
||||
state.pagination.current = pagination.current;
|
||||
state.pagination.pageNum = pagination.current;
|
||||
state.pagination.pageSize = pagination.pageSize;
|
||||
} else {
|
||||
if (typeof state.pagination.current === 'undefined') {
|
||||
state.pagination.current = state.pagination.pageNum || 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
//分页信息:包含queryType,当queryType = 'like'时,配合后端使用模糊查询
|
||||
const pageInfo = await getPageInfo(pagination);
|
||||
state.loading = true;
|
||||
|
|
@ -670,6 +687,16 @@
|
|||
return pageInfo;
|
||||
};
|
||||
|
||||
// 分页器尺寸变更处理(配合自定义分页器)
|
||||
const onShowSizeChange = (current, pageSize) => {
|
||||
if (state.pagination !== false) {
|
||||
state.pagination.pageSize = pageSize;
|
||||
state.pagination.current = current;
|
||||
state.pagination.pageNum = current;
|
||||
}
|
||||
fetchData({ current, pageSize });
|
||||
};
|
||||
|
||||
/// 刷新方法
|
||||
const reload = function() {
|
||||
console.log("刷新方法")
|
||||
|
|
@ -814,7 +841,8 @@
|
|||
handleReset,
|
||||
handleSearch,
|
||||
setSelectedKeysOnChange,
|
||||
changeFilteredStatus
|
||||
changeFilteredStatus,
|
||||
onShowSizeChange
|
||||
};
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ import Pear from './component/index.js';
|
|||
import i18n from './locale/index.js';
|
||||
import * as antIcons from '@ant-design/icons-vue';
|
||||
import { Select, Input, Table } from '@hwork/ant-design-vue'
|
||||
import ATableEllipsisDefault from './component/lib/ATableEllipsisDefault.js'
|
||||
|
||||
import "./assets/css/index.less";
|
||||
import "@hwork/ant-design-vue/dist/reset.css";
|
||||
|
|
@ -18,6 +19,8 @@ Table.props.scroll.default = { x: 'max-content', y: 'flex' }
|
|||
const app = createApp(App)
|
||||
app.use(i18n)
|
||||
app.use(Antd)
|
||||
// 覆盖全局 ATable,使 columns.ellipsis 默认开启
|
||||
app.component('ATable', ATableEllipsisDefault)
|
||||
app.use(Pear)
|
||||
app.use(Store)
|
||||
app.use(Router)
|
||||
|
|
|
|||
|
|
@ -263,9 +263,9 @@
|
|||
/// 分页参数
|
||||
const pagination = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
pageSize: 20,
|
||||
showSizeChanger: true, // 显示可改变每页条数
|
||||
pageSizeOptions: ["5", "10", "20", "50"], // 每页条数选项设置
|
||||
pageSizeOptions: ["10", "20", "50", "100"], // 每页条数选项设置
|
||||
showTotal: total => `共 ${total} 条记录`, // 显示总条数
|
||||
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // 改变每页条数时更新显示
|
||||
};
|
||||
|
|
|
|||
|
|
@ -237,7 +237,7 @@
|
|||
/// 分页参数
|
||||
const pagination = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
pageSize: 20,
|
||||
}
|
||||
|
||||
/// 外置参数 - 当参数改变时, 重新触发 fetch 函数
|
||||
|
|
|
|||
|
|
@ -223,7 +223,7 @@
|
|||
/// 分页参数
|
||||
const pagination = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
pageSize: 20,
|
||||
}
|
||||
|
||||
/// 外置参数 - 当参数改变时, 重新触发 fetch 函数
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@
|
|||
/// 分页参数
|
||||
const pagination = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
pageSize: 20,
|
||||
showSizeChanger: true, // 显示可改变每页条数
|
||||
pageSizeOptions: ["10","50", "100", "150", "200", "500"], // 每页条数选项设置
|
||||
showTotal: total => `共 ${total} 条记录`, // 显示总条数
|
||||
|
|
|
|||
|
|
@ -254,9 +254,9 @@
|
|||
/// 分页参数
|
||||
const pagination = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
pageSize: 20,
|
||||
showSizeChanger: true, // 显示可改变每页条数
|
||||
pageSizeOptions: ["5", "10", "20", "50"], // 每页条数选项设置
|
||||
pageSizeOptions: ["10", "20", "50", "100"], // 每页条数选项设置
|
||||
showTotal: total => `共 ${total} 条记录`, // 显示总条数
|
||||
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // 改变每页条数时更新显示
|
||||
}
|
||||
|
|
|
|||
|
|
@ -288,9 +288,9 @@
|
|||
/// 分页参数
|
||||
const pagination = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
pageSize: 20,
|
||||
showSizeChanger: true, // 显示可改变每页条数
|
||||
pageSizeOptions: ["5", "10", "20", "50"], // 每页条数选项设置
|
||||
pageSizeOptions: ["10", "20", "50", "100"], // 每页条数选项设置
|
||||
showTotal: total => `共 ${total} 条记录`, // 显示总条数
|
||||
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // 改变每页条数时更新显示
|
||||
}
|
||||
|
|
|
|||
|
|
@ -356,9 +356,9 @@
|
|||
|
||||
const pagination = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
pageSize: 20,
|
||||
showSizeChanger: true, // 显示可改变每页条数
|
||||
pageSizeOptions: ["5", "10", "20", "50"], // 每页条数选项设置
|
||||
pageSizeOptions: ["10", "20", "50", "100"], // 每页条数选项设置
|
||||
showTotal: total => `共 ${total} 条记录`, // 显示总条数
|
||||
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // 改变每页条数时更新显示
|
||||
};
|
||||
|
|
|
|||
|
|
@ -346,9 +346,9 @@
|
|||
/// 分页参数
|
||||
const pagination = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
pageSize: 20,
|
||||
showSizeChanger: true, // 显示可改变每页条数
|
||||
pageSizeOptions: ["5", "10", "20", "50"], // 每页条数选项设置
|
||||
pageSizeOptions: ["10", "20", "50", "100"], // 每页条数选项设置
|
||||
showTotal: total => `共 ${total} 条记录`, // 显示总条数
|
||||
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // 改变每页条数时更新显示
|
||||
}
|
||||
|
|
|
|||
|
|
@ -255,9 +255,9 @@
|
|||
/// 分页参数
|
||||
const pagination = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
pageSize: 20,
|
||||
showSizeChanger: true, // 显示可改变每页条数
|
||||
pageSizeOptions: ["5", "10", "20", "50"], // 每页条数选项设置
|
||||
pageSizeOptions: ["10", "20", "50", "100"], // 每页条数选项设置
|
||||
showTotal: total => `共 ${total} 条记录`, // 显示总条数
|
||||
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // 改变每页条数时更新显示
|
||||
}
|
||||
|
|
|
|||
|
|
@ -407,7 +407,7 @@
|
|||
|
||||
const pagination = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
pageSize: 20,
|
||||
showSizeChanger: true, // 显示可改变每页条数
|
||||
pageSizeOptions: ["5", "10", "50", "100", "200"], // 每页条数选项设置
|
||||
showTotal: total => `共 ${total} 条记录`, // 显示总条数
|
||||
|
|
|
|||
|
|
@ -293,7 +293,7 @@
|
|||
|
||||
const pagination = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
pageSize: 20,
|
||||
showSizeChanger: true, // 显示可改变每页条数
|
||||
pageSizeOptions: ["10", "50", "100", "200"], // 每页条数选项设置
|
||||
showTotal: total => `共 ${total} 条记录`, // 显示总条数
|
||||
|
|
|
|||
|
|
@ -260,9 +260,9 @@
|
|||
|
||||
const pagination = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
pageSize: 20,
|
||||
showSizeChanger: true, // 显示可改变每页条数
|
||||
pageSizeOptions: ["5", "10", "20", "50"], // 每页条数选项设置
|
||||
pageSizeOptions: ["10", "20", "50", "100"], // 每页条数选项设置
|
||||
showTotal: total => `共 ${total} 条记录`, // 显示总条数
|
||||
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // 改变每页条数时更新显示
|
||||
};
|
||||
|
|
|
|||
|
|
@ -332,9 +332,9 @@
|
|||
|
||||
const pagination = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
pageSize: 20,
|
||||
showSizeChanger: true, // 显示可改变每页条数
|
||||
pageSizeOptions: ["5", "10", "20", "50"], // 每页条数选项设置
|
||||
pageSizeOptions: ["10", "20", "50", "100"], // 每页条数选项设置
|
||||
showTotal: total => `共 ${total} 条记录`, // 显示总条数
|
||||
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // 改变每页条数时更新显示
|
||||
};
|
||||
|
|
|
|||
|
|
@ -864,7 +864,7 @@
|
|||
|
||||
const pagination = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
pageSize: 20,
|
||||
showSizeChanger: true, // 显示可改变每页条数
|
||||
pageSizeOptions: ["5", "10", "50", "100", "200"], // 每页条数选项设置
|
||||
showTotal: total => `共 ${total} 条记录`, // 显示总条数
|
||||
|
|
|
|||
|
|
@ -333,9 +333,9 @@
|
|||
|
||||
const pagination = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
pageSize: 20,
|
||||
showSizeChanger: true, // 显示可改变每页条数
|
||||
pageSizeOptions: ["5", "10", "20", "50"], // 每页条数选项设置
|
||||
pageSizeOptions: ["10", "20", "50", "100"], // 每页条数选项设置
|
||||
showTotal: total => `共 ${total} 条记录`, // 显示总条数
|
||||
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // 改变每页条数时更新显示
|
||||
};
|
||||
|
|
|
|||
|
|
@ -413,9 +413,9 @@
|
|||
|
||||
const pagination = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
pageSize: 20,
|
||||
showSizeChanger: true, // 显示可改变每页条数
|
||||
pageSizeOptions: ["5", "10", "20", "50"], // 每页条数选项设置
|
||||
pageSizeOptions: ["10", "20", "50", "100"], // 每页条数选项设置
|
||||
showTotal: total => `共 ${total} 条记录`, // 显示总条数
|
||||
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // 改变每页条数时更新显示
|
||||
};
|
||||
|
|
|
|||
|
|
@ -873,7 +873,7 @@
|
|||
|
||||
const pagination = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
pageSize: 20,
|
||||
showSizeChanger: true, // 显示可改变每页条数
|
||||
pageSizeOptions: ["5", "10", "50", "100", "200"], // 每页条数选项设置
|
||||
showTotal: total => `共 ${total} 条记录`, // 显示总条数
|
||||
|
|
|
|||
|
|
@ -525,9 +525,9 @@
|
|||
|
||||
const pagination = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
pageSize: 20,
|
||||
showSizeChanger: true, // 显示可改变每页条数
|
||||
pageSizeOptions: ["5", "10", "20", "50"], // 每页条数选项设置
|
||||
pageSizeOptions: ["10", "20", "50", "100"], // 每页条数选项设置
|
||||
showTotal: total => `共 ${total} 条记录`, // 显示总条数
|
||||
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // 改变每页条数时更新显示
|
||||
};
|
||||
|
|
|
|||
|
|
@ -450,9 +450,9 @@
|
|||
|
||||
const pagination = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
pageSize: 20,
|
||||
showSizeChanger: true, // 显示可改变每页条数
|
||||
pageSizeOptions: ["5", "10", "20", "50"], // 每页条数选项设置
|
||||
pageSizeOptions: ["10", "20", "50", "100"], // 每页条数选项设置
|
||||
showTotal: total => `共 ${total} 条记录`, // 显示总条数
|
||||
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // 改变每页条数时更新显示
|
||||
};
|
||||
|
|
|
|||
|
|
@ -329,9 +329,9 @@
|
|||
|
||||
const pagination = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
pageSize: 20,
|
||||
showSizeChanger: true, // 显示可改变每页条数
|
||||
pageSizeOptions: ["5", "10", "20", "50"], // 每页条数选项设置
|
||||
pageSizeOptions: ["10", "20", "50", "100"], // 每页条数选项设置
|
||||
showTotal: total => `共 ${total} 条记录`, // 显示总条数
|
||||
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // 改变每页条数时更新显示
|
||||
};
|
||||
|
|
|
|||
|
|
@ -285,7 +285,7 @@
|
|||
/// 分页参数
|
||||
const pagination = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
pageSize: 20,
|
||||
showSizeChanger: true, // 显示可改变每页条数
|
||||
pageSizeOptions: ["10", "50", "100", "200"], // 每页条数选项设置
|
||||
showTotal: total => `共 ${total} 条记录`, // 显示总条数
|
||||
|
|
|
|||
|
|
@ -562,9 +562,9 @@
|
|||
/// 分页参数
|
||||
const pagination = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
pageSize: 20,
|
||||
showSizeChanger: true, // 显示可改变每页条数
|
||||
pageSizeOptions: ["5", "10", "20", "50"], // 每页条数选项设置
|
||||
pageSizeOptions: ["10", "20", "50", "100"], // 每页条数选项设置
|
||||
showTotal: total => `共 ${total} 条记录`, // 显示总条数
|
||||
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // 改变每页条数时更新显示
|
||||
}
|
||||
|
|
|
|||
|
|
@ -383,9 +383,9 @@
|
|||
/// 分页参数
|
||||
const pagination = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
pageSize: 20,
|
||||
showSizeChanger: true, // 显示可改变每页条数
|
||||
pageSizeOptions: ["5", "10", "20", "50"], // 每页条数选项设置
|
||||
pageSizeOptions: ["10", "20", "50", "100"], // 每页条数选项设置
|
||||
showTotal: total => `共 ${total} 条记录`, // 显示总条数
|
||||
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // 改变每页条数时更新显示
|
||||
}
|
||||
|
|
|
|||
|
|
@ -337,9 +337,9 @@
|
|||
|
||||
const pagination = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
pageSize: 20,
|
||||
showSizeChanger: true, // 显示可改变每页条数
|
||||
pageSizeOptions: ["5", "10", "20", "50"], // 每页条数选项设置
|
||||
pageSizeOptions: ["10", "20", "50", "100"], // 每页条数选项设置
|
||||
showTotal: total => `共 ${total} 条记录`, // 显示总条数
|
||||
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // 改变每页条数时更新显示
|
||||
};
|
||||
|
|
|
|||
|
|
@ -372,9 +372,9 @@ export default defineComponent({
|
|||
|
||||
const pagination = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
pageSize: 20,
|
||||
showSizeChanger: true, // 显示可改变每页条数
|
||||
pageSizeOptions: ["5", "10", "20", "50"], // 每页条数选项设置
|
||||
pageSizeOptions: ["10", "20", "50", "100"], // 每页条数选项设置
|
||||
showTotal: total => `共 ${total} 条记录`, // 显示总条数
|
||||
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // 改变每页条数时更新显示
|
||||
};
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@
|
|||
},
|
||||
reportCode: "InventoryInfo",
|
||||
// showSizeChanger: true, // 显示可改变每页条数
|
||||
// pageSizeOptions: ["5", "10", "20", "50"], // 每页条数选项设置
|
||||
// pageSizeOptions: ["10", "20", "50", "100"], // 每页条数选项设置
|
||||
showTotal: total => `共 ${total} 条记录`, // 显示总条数
|
||||
showSizeChange: (current, pageSize) => (this.params.pageSize = pageSize) // 改变每页条数时更新显示
|
||||
};
|
||||
|
|
|
|||
|
|
@ -372,9 +372,9 @@
|
|||
|
||||
const pagination = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
pageSize: 20,
|
||||
showSizeChanger: true, // 显示可改变每页条数
|
||||
pageSizeOptions: ["5", "10", "20", "50"], // 每页条数选项设置
|
||||
pageSizeOptions: ["10", "20", "50", "100"], // 每页条数选项设置
|
||||
showTotal: total => `共 ${total} 条记录`, // 显示总条数
|
||||
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // 改变每页条数时更新显示
|
||||
}
|
||||
|
|
|
|||
|
|
@ -360,9 +360,9 @@
|
|||
|
||||
const pagination = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
pageSize: 20,
|
||||
showSizeChanger: true, // 显示可改变每页条数
|
||||
pageSizeOptions: ["5", "10", "20", "50"], // 每页条数选项设置
|
||||
pageSizeOptions: ["10", "20", "50", "100"], // 每页条数选项设置
|
||||
showTotal: total => `共 ${total} 条记录`, // 显示总条数
|
||||
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // 改变每页条数时更新显示
|
||||
};
|
||||
|
|
|
|||
|
|
@ -321,7 +321,7 @@
|
|||
|
||||
const pagination = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
pageSize: 20,
|
||||
showSizeChanger: true, // 显示可改变每页条数
|
||||
pageSizeOptions: ["10", "20", "50", "100"], // 每页条数选项设置
|
||||
showTotal: total => `共 ${total} 条记录`, // 显示总条数
|
||||
|
|
|
|||
|
|
@ -364,9 +364,9 @@
|
|||
|
||||
const pagination = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
pageSize: 20,
|
||||
showSizeChanger: true, // 显示可改变每页条数
|
||||
pageSizeOptions: ["5", "10", "20", "50"], // 每页条数选项设置
|
||||
pageSizeOptions: ["10", "20", "50", "100"], // 每页条数选项设置
|
||||
showTotal: total => `共 ${total} 条记录`, // 显示总条数
|
||||
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // 改变每页条数时更新显示
|
||||
}
|
||||
|
|
|
|||
|
|
@ -379,9 +379,9 @@
|
|||
|
||||
const pagination = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
pageSize: 20,
|
||||
showSizeChanger: true, // 显示可改变每页条数
|
||||
pageSizeOptions: ["5", "10", "20", "50"], // 每页条数选项设置
|
||||
pageSizeOptions: ["10", "20", "50", "100"], // 每页条数选项设置
|
||||
showTotal: total => `共 ${total} 条记录`, // 显示总条数
|
||||
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // 改变每页条数时更新显示
|
||||
};
|
||||
|
|
|
|||
|
|
@ -246,9 +246,9 @@
|
|||
/// 分页参数
|
||||
const pagination = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
pageSize: 20,
|
||||
showSizeChanger: true, // 显示可改变每页条数
|
||||
pageSizeOptions: ["5", "10", "20", "50"], // 每页条数选项设置
|
||||
pageSizeOptions: ["10", "20", "50", "100"], // 每页条数选项设置
|
||||
showTotal: total => `共 ${total} 条记录`, // 显示总条数
|
||||
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // 改变每页条数时更新显示
|
||||
}
|
||||
|
|
|
|||
|
|
@ -263,9 +263,9 @@
|
|||
/// 分页参数
|
||||
const pagination = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
pageSize: 20,
|
||||
showSizeChanger: true, // 显示可改变每页条数
|
||||
pageSizeOptions: ["5", "10", "20", "50"], // 每页条数选项设置
|
||||
pageSizeOptions: ["10", "20", "50", "100"], // 每页条数选项设置
|
||||
showTotal: total => `共 ${total} 条记录`, // 显示总条数
|
||||
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // 改变每页条数时更新显示
|
||||
}
|
||||
|
|
|
|||
|
|
@ -395,7 +395,7 @@
|
|||
/// 分页参数
|
||||
const pagination = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
pageSize: 20,
|
||||
showSizeChanger: true, // 显示可改变每页条数
|
||||
pageSizeOptions: ["10", "20", "50", "100"], // 每页条数选项设置
|
||||
showTotal: total => `共 ${total} 条记录`, // 显示总条数
|
||||
|
|
|
|||
|
|
@ -296,9 +296,9 @@
|
|||
/// 分页参数
|
||||
const pagination = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
pageSize: 20,
|
||||
showSizeChanger: true, // 显示可改变每页条数
|
||||
pageSizeOptions: ["5", "10", "20", "50"], // 每页条数选项设置
|
||||
pageSizeOptions: ["10", "20", "50", "100"], // 每页条数选项设置
|
||||
showTotal: total => `共 ${total} 条记录`, // 显示总条数
|
||||
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // 改变每页条数时更新显示
|
||||
}
|
||||
|
|
|
|||
|
|
@ -322,9 +322,9 @@
|
|||
/// 分页参数
|
||||
const pagination = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
pageSize: 20,
|
||||
showSizeChanger: true, // 显示可改变每页条数
|
||||
pageSizeOptions: ["5", "10", "20", "50"], // 每页条数选项设置
|
||||
pageSizeOptions: ["10", "20", "50", "100"], // 每页条数选项设置
|
||||
showTotal: total => `共 ${total} 条记录`, // 显示总条数
|
||||
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // 改变每页条数时更新显示
|
||||
}
|
||||
|
|
|
|||
|
|
@ -214,9 +214,9 @@
|
|||
/// 分页参数
|
||||
const pagination = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
pageSize: 20,
|
||||
showSizeChanger: true, // 显示可改变每页条数
|
||||
pageSizeOptions: ["5", "10", "20", "50"], // 每页条数选项设置
|
||||
pageSizeOptions: ["10", "20", "50", "100"], // 每页条数选项设置
|
||||
showTotal: total => `共 ${total} 条记录`, // 显示总条数
|
||||
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // 改变每页条数时更新显示
|
||||
}
|
||||
|
|
|
|||
|
|
@ -271,9 +271,9 @@
|
|||
/// 分页参数
|
||||
const pagination = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
pageSize: 20,
|
||||
showSizeChanger: true, // 显示可改变每页条数
|
||||
pageSizeOptions: ["5", "10", "20", "50"], // 每页条数选项设置
|
||||
pageSizeOptions: ["10", "20", "50", "100"], // 每页条数选项设置
|
||||
showTotal: total => `共 ${total} 条记录`, // 显示总条数
|
||||
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // 改变每页条数时更新显示
|
||||
}
|
||||
|
|
|
|||
|
|
@ -214,9 +214,9 @@
|
|||
/// 分页参数
|
||||
const pagination = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
pageSize: 20,
|
||||
showSizeChanger: true, // 显示可改变每页条数
|
||||
pageSizeOptions: ["5", "10", "20", "50"], // 每页条数选项设置
|
||||
pageSizeOptions: ["10", "20", "50", "100"], // 每页条数选项设置
|
||||
showTotal: total => `共 ${total} 条记录`, // 显示总条数
|
||||
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // 改变每页条数时更新显示
|
||||
}
|
||||
|
|
|
|||
|
|
@ -221,9 +221,9 @@
|
|||
/// 分页参数
|
||||
const pagination = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
pageSize: 20,
|
||||
showSizeChanger: true, // 显示可改变每页条数
|
||||
pageSizeOptions: ["5", "10", "20", "50"], // 每页条数选项设置
|
||||
pageSizeOptions: ["10", "20", "50", "100"], // 每页条数选项设置
|
||||
showTotal: total => `共 ${total} 条记录`, // 显示总条数
|
||||
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // 改变每页条数时更新显示
|
||||
}
|
||||
|
|
|
|||
|
|
@ -221,9 +221,9 @@
|
|||
/// 分页参数
|
||||
const pagination = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
pageSize: 20,
|
||||
showSizeChanger: true, // 显示可改变每页条数
|
||||
pageSizeOptions: ["5", "10", "20", "50"], // 每页条数选项设置
|
||||
pageSizeOptions: ["10", "20", "50", "100"], // 每页条数选项设置
|
||||
showTotal: total => `共 ${total} 条记录`, // 显示总条数
|
||||
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // 改变每页条数时更新显示
|
||||
}
|
||||
|
|
|
|||
|
|
@ -47,27 +47,23 @@
|
|||
dataIndex: "skuType",
|
||||
key: "skuType",
|
||||
title: "物料类别",
|
||||
width: 60
|
||||
},
|
||||
{
|
||||
dataIndex: "skuCode",
|
||||
key: "skuCode",
|
||||
title: "物料编号",
|
||||
showSearch: true,
|
||||
width: 80
|
||||
},
|
||||
{
|
||||
dataIndex: "skuName",
|
||||
key: "skuName",
|
||||
title: "物料名称",
|
||||
showSearch: true,
|
||||
width: 150,
|
||||
},
|
||||
{
|
||||
dataIndex: "skuQty",
|
||||
key: "skuQty",
|
||||
title: "物料库存",
|
||||
width: 80
|
||||
}
|
||||
];
|
||||
|
||||
|
|
@ -94,9 +90,9 @@
|
|||
/// 分页参数
|
||||
const pagination = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
pageSize: 20,
|
||||
showSizeChanger: true, // 显示可改变每页条数
|
||||
pageSizeOptions: ["5", "10", "20", "50"], // 每页条数选项设置
|
||||
pageSizeOptions: ["10", "20", "50", "100"], // 每页条数选项设置
|
||||
showTotal: total => `共 ${total} 条记录`, // 显示总条数
|
||||
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // 改变每页条数时更新显示
|
||||
}
|
||||
|
|
|
|||
|
|
@ -116,9 +116,9 @@
|
|||
/// 分页参数
|
||||
const pagination = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
pageSize: 20,
|
||||
showSizeChanger: true, // 显示可改变每页条数
|
||||
pageSizeOptions: ["5", "10", "20", "50"], // 每页条数选项设置
|
||||
pageSizeOptions: ["10", "20", "50", "100"], // 每页条数选项设置
|
||||
showTotal: total => `共 ${total} 条记录`, // 显示总条数
|
||||
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // 改变每页条数时更新显示
|
||||
}
|
||||
|
|
|
|||
|
|
@ -238,9 +238,9 @@
|
|||
/// 分页参数
|
||||
const pagination = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
pageSize: 20,
|
||||
showSizeChanger: true, // 显示可改变每页条数
|
||||
pageSizeOptions: ["5", "10", "20", "50"], // 每页条数选项设置
|
||||
pageSizeOptions: ["10", "20", "50", "100"], // 每页条数选项设置
|
||||
showTotal: total => `共 ${total} 条记录`, // 显示总条数
|
||||
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // 改变每页条数时更新显示
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue