UI及bug修改

hwork-master
zhangkaiios 2025-11-04 15:15:46 +08:00
parent eec9baf4b1
commit d1c6668f59
49 changed files with 152 additions and 102 deletions

View File

@ -341,7 +341,7 @@ html {
.fixedHeader.muiltTab { .fixedHeader.muiltTab {
z-index: 600; z-index: 600;
#content { #content {
height: calc(~"(100% - 51px)"); height: calc(~"(100% - 38px)");
-ms-overflow-style: none; -ms-overflow-style: none;
overflow: -moz-scrollbars-none; overflow: -moz-scrollbars-none;
} }
@ -433,4 +433,4 @@ html {
overflow: hidden; overflow: hidden;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }

View File

@ -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);
},
});

View File

@ -71,7 +71,7 @@ export default defineComponent({
const generateFormState = array => { const generateFormState = array => {
array.length > 0 && array.forEach(it => { array.length > 0 && array.forEach(it => {
const {key, rules = [], value,defaultValue} = 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 formRules[key] = rules
}) })
} }

View File

@ -95,7 +95,7 @@
</a-table> </a-table>
<!-- 表格组件 --> <!-- 表格组件 -->
<a-table id="table" :rowKey="rowKey" @change="fetch" :columns="columns" :loading="loading" :pagination="pagination" <a-table id="table" :rowKey="rowKey" @change="fetch" :columns="columns" :loading="loading" :pagination="pagination"
:dataSource="datasource" :row-selection="rowSelection" :dataSource="datasource" :row-selection="rowSelection"
:row-height="100" :customRow="rowClick" :sortDirections="['descend', 'ascend', '']" :row-height="100" :customRow="rowClick" :sortDirections="['descend', 'ascend', '']"
:rowClassName="setRowClassName" @resizeColumn="handleResizeColumn" bordered> :rowClassName="setRowClassName" @resizeColumn="handleResizeColumn" bordered>
<!--列搜索组件封装--> <!--列搜索组件封装-->
@ -155,12 +155,12 @@
<template #filterIcon="filtered"> <template #filterIcon="filtered">
<search-outlined :style="{ color: filtered ? '#108ee9' : undefined }" /> <search-outlined :style="{ color: filtered ? '#108ee9' : undefined }" />
</template> </template>
<!-- 表格头部单元格插槽 --> <!-- 表格头部单元格插槽 -->
<template #headerCell="{ column }"> <template #headerCell="{ column }">
<span>{{ column.title }}</span> <span>{{ column.title }}</span>
</template> </template>
<!-- 表格内容单元格插槽 --> <!-- 表格内容单元格插槽 -->
<template #bodyCell="{ column, record }"> <template #bodyCell="{ column, record }">
<!-- 行操作 --> <!-- 行操作 -->
@ -246,8 +246,13 @@
</template> </template>
<!--分页插件--> <!--分页插件-->
<template> <template>
<a-pagination v-model:current="current" :page-size-options="pageSizeOptions" :total="total" show-size-changer <a-pagination v-if="pagination"
:page-size="pageSize" @showSizeChange="onShowSizeChange"> 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"> <template #buildOptionText="props">
<span v-if="props.value !== '50'">{{ props.value }}/</span> <span v-if="props.value !== '50'">{{ props.value }}/</span>
<span v-else></span> <span v-else></span>
@ -460,7 +465,7 @@
return dict; return dict;
} catch (error) { } catch (error) {
console.error('获取字典数据失败:', error); console.error('获取字典数据失败:', error);
throw error; throw error;
} }
}; };
@ -503,7 +508,7 @@
state.filterColumnsIndex.push(column.index); state.filterColumnsIndex.push(column.index);
column.filters = dict; column.filters = dict;
column.filterSearch = true; column.filterSearch = true;
} }
// column.slots // column.slots
} }
// column.slots // column.slots
@ -624,6 +629,18 @@
/// ///
const fetchData = async (pagination, filters, sorter) => { const fetchData = async (pagination, filters, sorter) => {
console.log("filters 列过滤条件", filters) 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;
}
}
}
//queryTypequeryType = 'like'使 //queryTypequeryType = 'like'使
const pageInfo = await getPageInfo(pagination); const pageInfo = await getPageInfo(pagination);
state.loading = true; state.loading = true;
@ -670,6 +687,16 @@
return pageInfo; 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() { const reload = function() {
console.log("刷新方法") console.log("刷新方法")
@ -814,7 +841,8 @@
handleReset, handleReset,
handleSearch, handleSearch,
setSelectedKeysOnChange, setSelectedKeysOnChange,
changeFilteredStatus changeFilteredStatus,
onShowSizeChange
}; };
}, },

View File

@ -7,6 +7,7 @@ import Pear from './component/index.js';
import i18n from './locale/index.js'; import i18n from './locale/index.js';
import * as antIcons from '@ant-design/icons-vue'; import * as antIcons from '@ant-design/icons-vue';
import { Select, Input, Table } from '@hwork/ant-design-vue' import { Select, Input, Table } from '@hwork/ant-design-vue'
import ATableEllipsisDefault from './component/lib/ATableEllipsisDefault.js'
import "./assets/css/index.less"; import "./assets/css/index.less";
import "@hwork/ant-design-vue/dist/reset.css"; 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) const app = createApp(App)
app.use(i18n) app.use(i18n)
app.use(Antd) app.use(Antd)
// 覆盖全局 ATable使 columns.ellipsis 默认开启
app.component('ATable', ATableEllipsisDefault)
app.use(Pear) app.use(Pear)
app.use(Store) app.use(Store)
app.use(Router) app.use(Router)

View File

@ -263,9 +263,9 @@
/// ///
const pagination = { const pagination = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 20,
showSizeChanger: true, // showSizeChanger: true, //
pageSizeOptions: ["5", "10", "20", "50"], // pageSizeOptions: ["10", "20", "50", "100"], //
showTotal: total => `${total} 条记录`, // showTotal: total => `${total} 条记录`, //
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // showSizeChange: (current, pageSize) => (this.pageSize = pageSize) //
}; };

View File

@ -237,7 +237,7 @@
/// ///
const pagination = { const pagination = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 20,
} }
/// - , fetch /// - , fetch

View File

@ -223,7 +223,7 @@
/// ///
const pagination = { const pagination = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 20,
} }
/// - , fetch /// - , fetch

View File

@ -88,7 +88,7 @@
/// ///
const pagination = { const pagination = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 20,
showSizeChanger: true, // showSizeChanger: true, //
pageSizeOptions: ["10","50", "100", "150", "200", "500"], // pageSizeOptions: ["10","50", "100", "150", "200", "500"], //
showTotal: total => `${total} 条记录`, // showTotal: total => `${total} 条记录`, //

View File

@ -254,9 +254,9 @@
/// ///
const pagination = { const pagination = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 20,
showSizeChanger: true, // showSizeChanger: true, //
pageSizeOptions: ["5", "10", "20", "50"], // pageSizeOptions: ["10", "20", "50", "100"], //
showTotal: total => `${total} 条记录`, // showTotal: total => `${total} 条记录`, //
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // showSizeChange: (current, pageSize) => (this.pageSize = pageSize) //
} }

View File

@ -288,9 +288,9 @@
/// ///
const pagination = { const pagination = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 20,
showSizeChanger: true, // showSizeChanger: true, //
pageSizeOptions: ["5", "10", "20", "50"], // pageSizeOptions: ["10", "20", "50", "100"], //
showTotal: total => `${total} 条记录`, // showTotal: total => `${total} 条记录`, //
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // showSizeChange: (current, pageSize) => (this.pageSize = pageSize) //
} }

View File

@ -356,9 +356,9 @@
const pagination = { const pagination = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 20,
showSizeChanger: true, // showSizeChanger: true, //
pageSizeOptions: ["5", "10", "20", "50"], // pageSizeOptions: ["10", "20", "50", "100"], //
showTotal: total => `${total} 条记录`, // showTotal: total => `${total} 条记录`, //
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // showSizeChange: (current, pageSize) => (this.pageSize = pageSize) //
}; };

View File

@ -346,9 +346,9 @@
/// ///
const pagination = { const pagination = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 20,
showSizeChanger: true, // showSizeChanger: true, //
pageSizeOptions: ["5", "10", "20", "50"], // pageSizeOptions: ["10", "20", "50", "100"], //
showTotal: total => `${total} 条记录`, // showTotal: total => `${total} 条记录`, //
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // showSizeChange: (current, pageSize) => (this.pageSize = pageSize) //
} }

View File

@ -255,9 +255,9 @@
/// ///
const pagination = { const pagination = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 20,
showSizeChanger: true, // showSizeChanger: true, //
pageSizeOptions: ["5", "10", "20", "50"], // pageSizeOptions: ["10", "20", "50", "100"], //
showTotal: total => `${total} 条记录`, // showTotal: total => `${total} 条记录`, //
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // showSizeChange: (current, pageSize) => (this.pageSize = pageSize) //
} }

View File

@ -407,7 +407,7 @@
const pagination = { const pagination = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 20,
showSizeChanger: true, // showSizeChanger: true, //
pageSizeOptions: ["5", "10", "50", "100", "200"], // pageSizeOptions: ["5", "10", "50", "100", "200"], //
showTotal: total => `${total} 条记录`, // showTotal: total => `${total} 条记录`, //

View File

@ -293,7 +293,7 @@
const pagination = { const pagination = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 20,
showSizeChanger: true, // showSizeChanger: true, //
pageSizeOptions: ["10", "50", "100", "200"], // pageSizeOptions: ["10", "50", "100", "200"], //
showTotal: total => `${total} 条记录`, // showTotal: total => `${total} 条记录`, //
@ -453,4 +453,4 @@
flex: 1; flex: 1;
} }
} }
</style> */ </style> */

View File

@ -260,9 +260,9 @@
const pagination = { const pagination = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 20,
showSizeChanger: true, // showSizeChanger: true, //
pageSizeOptions: ["5", "10", "20", "50"], // pageSizeOptions: ["10", "20", "50", "100"], //
showTotal: total => `${total} 条记录`, // showTotal: total => `${total} 条记录`, //
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // showSizeChange: (current, pageSize) => (this.pageSize = pageSize) //
}; };

View File

@ -332,9 +332,9 @@
const pagination = { const pagination = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 20,
showSizeChanger: true, // showSizeChanger: true, //
pageSizeOptions: ["5", "10", "20", "50"], // pageSizeOptions: ["10", "20", "50", "100"], //
showTotal: total => `${total} 条记录`, // showTotal: total => `${total} 条记录`, //
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // showSizeChange: (current, pageSize) => (this.pageSize = pageSize) //
}; };

View File

@ -406,7 +406,7 @@
customRender: 'producer', customRender: 'producer',
}, },
}, */ }, */
{ {
dataIndex: 'operation', dataIndex: 'operation',
title: '操作', title: '操作',
@ -864,7 +864,7 @@
const pagination = { const pagination = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 20,
showSizeChanger: true, // showSizeChanger: true, //
pageSizeOptions: ["5", "10", "50", "100", "200"], // pageSizeOptions: ["5", "10", "50", "100", "200"], //
showTotal: total => `${total} 条记录`, // showTotal: total => `${total} 条记录`, //

View File

@ -333,9 +333,9 @@
const pagination = { const pagination = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 20,
showSizeChanger: true, // showSizeChanger: true, //
pageSizeOptions: ["5", "10", "20", "50"], // pageSizeOptions: ["10", "20", "50", "100"], //
showTotal: total => `${total} 条记录`, // showTotal: total => `${total} 条记录`, //
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // showSizeChange: (current, pageSize) => (this.pageSize = pageSize) //
}; };

View File

@ -413,9 +413,9 @@
const pagination = { const pagination = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 20,
showSizeChanger: true, // showSizeChanger: true, //
pageSizeOptions: ["5", "10", "20", "50"], // pageSizeOptions: ["10", "20", "50", "100"], //
showTotal: total => `${total} 条记录`, // showTotal: total => `${total} 条记录`, //
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // showSizeChange: (current, pageSize) => (this.pageSize = pageSize) //
}; };

View File

@ -873,7 +873,7 @@
const pagination = { const pagination = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 20,
showSizeChanger: true, // showSizeChanger: true, //
pageSizeOptions: ["5", "10", "50", "100", "200"], // pageSizeOptions: ["5", "10", "50", "100", "200"], //
showTotal: total => `${total} 条记录`, // showTotal: total => `${total} 条记录`, //

View File

@ -525,9 +525,9 @@
const pagination = { const pagination = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 20,
showSizeChanger: true, // showSizeChanger: true, //
pageSizeOptions: ["5", "10", "20", "50"], // pageSizeOptions: ["10", "20", "50", "100"], //
showTotal: total => `${total} 条记录`, // showTotal: total => `${total} 条记录`, //
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // showSizeChange: (current, pageSize) => (this.pageSize = pageSize) //
}; };

View File

@ -450,9 +450,9 @@
const pagination = { const pagination = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 20,
showSizeChanger: true, // showSizeChanger: true, //
pageSizeOptions: ["5", "10", "20", "50"], // pageSizeOptions: ["10", "20", "50", "100"], //
showTotal: total => `${total} 条记录`, // showTotal: total => `${total} 条记录`, //
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // showSizeChange: (current, pageSize) => (this.pageSize = pageSize) //
}; };

View File

@ -329,9 +329,9 @@
const pagination = { const pagination = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 20,
showSizeChanger: true, // showSizeChanger: true, //
pageSizeOptions: ["5", "10", "20", "50"], // pageSizeOptions: ["10", "20", "50", "100"], //
showTotal: total => `${total} 条记录`, // showTotal: total => `${total} 条记录`, //
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // showSizeChange: (current, pageSize) => (this.pageSize = pageSize) //
}; };
@ -489,4 +489,4 @@
flex: 1; flex: 1;
} }
} }
</style> */ </style> */

View File

@ -285,7 +285,7 @@
/// ///
const pagination = { const pagination = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 20,
showSizeChanger: true, // showSizeChanger: true, //
pageSizeOptions: ["10", "50", "100", "200"], // pageSizeOptions: ["10", "50", "100", "200"], //
showTotal: total => `${total} 条记录`, // showTotal: total => `${total} 条记录`, //

View File

@ -562,9 +562,9 @@
/// ///
const pagination = { const pagination = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 20,
showSizeChanger: true, // showSizeChanger: true, //
pageSizeOptions: ["5", "10", "20", "50"], // pageSizeOptions: ["10", "20", "50", "100"], //
showTotal: total => `${total} 条记录`, // showTotal: total => `${total} 条记录`, //
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // showSizeChange: (current, pageSize) => (this.pageSize = pageSize) //
} }

View File

@ -383,9 +383,9 @@
/// ///
const pagination = { const pagination = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 20,
showSizeChanger: true, // showSizeChanger: true, //
pageSizeOptions: ["5", "10", "20", "50"], // pageSizeOptions: ["10", "20", "50", "100"], //
showTotal: total => `${total} 条记录`, // showTotal: total => `${total} 条记录`, //
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // showSizeChange: (current, pageSize) => (this.pageSize = pageSize) //
} }

View File

@ -337,9 +337,9 @@
const pagination = { const pagination = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 20,
showSizeChanger: true, // showSizeChanger: true, //
pageSizeOptions: ["5", "10", "20", "50"], // pageSizeOptions: ["10", "20", "50", "100"], //
showTotal: total => `${total} 条记录`, // showTotal: total => `${total} 条记录`, //
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // showSizeChange: (current, pageSize) => (this.pageSize = pageSize) //
}; };

View File

@ -372,9 +372,9 @@ export default defineComponent({
const pagination = { const pagination = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 20,
showSizeChanger: true, // showSizeChanger: true, //
pageSizeOptions: ["5", "10", "20", "50"], // pageSizeOptions: ["10", "20", "50", "100"], //
showTotal: total => `${total} 条记录`, // showTotal: total => `${total} 条记录`, //
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // showSizeChange: (current, pageSize) => (this.pageSize = pageSize) //
}; };

View File

@ -75,7 +75,7 @@
}, },
reportCode: "InventoryInfo", reportCode: "InventoryInfo",
// showSizeChanger: true, // // showSizeChanger: true, //
// pageSizeOptions: ["5", "10", "20", "50"], // // pageSizeOptions: ["10", "20", "50", "100"], //
showTotal: total => `${total} 条记录`, // showTotal: total => `${total} 条记录`, //
showSizeChange: (current, pageSize) => (this.params.pageSize = pageSize) // showSizeChange: (current, pageSize) => (this.params.pageSize = pageSize) //
}; };

View File

@ -372,9 +372,9 @@
const pagination = { const pagination = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 20,
showSizeChanger: true, // showSizeChanger: true, //
pageSizeOptions: ["5", "10", "20", "50"], // pageSizeOptions: ["10", "20", "50", "100"], //
showTotal: total => `${total} 条记录`, // showTotal: total => `${total} 条记录`, //
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // showSizeChange: (current, pageSize) => (this.pageSize = pageSize) //
} }

View File

@ -360,9 +360,9 @@
const pagination = { const pagination = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 20,
showSizeChanger: true, // showSizeChanger: true, //
pageSizeOptions: ["5", "10", "20", "50"], // pageSizeOptions: ["10", "20", "50", "100"], //
showTotal: total => `${total} 条记录`, // showTotal: total => `${total} 条记录`, //
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // showSizeChange: (current, pageSize) => (this.pageSize = pageSize) //
}; };

View File

@ -321,7 +321,7 @@
const pagination = { const pagination = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 20,
showSizeChanger: true, // showSizeChanger: true, //
pageSizeOptions: ["10", "20", "50", "100"], // pageSizeOptions: ["10", "20", "50", "100"], //
showTotal: total => `${total} 条记录`, // showTotal: total => `${total} 条记录`, //

View File

@ -364,9 +364,9 @@
const pagination = { const pagination = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 20,
showSizeChanger: true, // showSizeChanger: true, //
pageSizeOptions: ["5", "10", "20", "50"], // pageSizeOptions: ["10", "20", "50", "100"], //
showTotal: total => `${total} 条记录`, // showTotal: total => `${total} 条记录`, //
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // showSizeChange: (current, pageSize) => (this.pageSize = pageSize) //
} }

View File

@ -379,9 +379,9 @@
const pagination = { const pagination = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 20,
showSizeChanger: true, // showSizeChanger: true, //
pageSizeOptions: ["5", "10", "20", "50"], // pageSizeOptions: ["10", "20", "50", "100"], //
showTotal: total => `${total} 条记录`, // showTotal: total => `${total} 条记录`, //
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // showSizeChange: (current, pageSize) => (this.pageSize = pageSize) //
}; };

View File

@ -246,9 +246,9 @@
/// ///
const pagination = { const pagination = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 20,
showSizeChanger: true, // showSizeChanger: true, //
pageSizeOptions: ["5", "10", "20", "50"], // pageSizeOptions: ["10", "20", "50", "100"], //
showTotal: total => `${total} 条记录`, // showTotal: total => `${total} 条记录`, //
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // showSizeChange: (current, pageSize) => (this.pageSize = pageSize) //
} }

View File

@ -263,9 +263,9 @@
/// ///
const pagination = { const pagination = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 20,
showSizeChanger: true, // showSizeChanger: true, //
pageSizeOptions: ["5", "10", "20", "50"], // pageSizeOptions: ["10", "20", "50", "100"], //
showTotal: total => `${total} 条记录`, // showTotal: total => `${total} 条记录`, //
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // showSizeChange: (current, pageSize) => (this.pageSize = pageSize) //
} }

View File

@ -395,7 +395,7 @@
/// ///
const pagination = { const pagination = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 20,
showSizeChanger: true, // showSizeChanger: true, //
pageSizeOptions: ["10", "20", "50", "100"], // pageSizeOptions: ["10", "20", "50", "100"], //
showTotal: total => `${total} 条记录`, // showTotal: total => `${total} 条记录`, //

View File

@ -296,9 +296,9 @@
/// ///
const pagination = { const pagination = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 20,
showSizeChanger: true, // showSizeChanger: true, //
pageSizeOptions: ["5", "10", "20", "50"], // pageSizeOptions: ["10", "20", "50", "100"], //
showTotal: total => `${total} 条记录`, // showTotal: total => `${total} 条记录`, //
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // showSizeChange: (current, pageSize) => (this.pageSize = pageSize) //
} }

View File

@ -322,9 +322,9 @@
/// ///
const pagination = { const pagination = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 20,
showSizeChanger: true, // showSizeChanger: true, //
pageSizeOptions: ["5", "10", "20", "50"], // pageSizeOptions: ["10", "20", "50", "100"], //
showTotal: total => `${total} 条记录`, // showTotal: total => `${total} 条记录`, //
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // showSizeChange: (current, pageSize) => (this.pageSize = pageSize) //
} }

View File

@ -214,9 +214,9 @@
/// ///
const pagination = { const pagination = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 20,
showSizeChanger: true, // showSizeChanger: true, //
pageSizeOptions: ["5", "10", "20", "50"], // pageSizeOptions: ["10", "20", "50", "100"], //
showTotal: total => `${total} 条记录`, // showTotal: total => `${total} 条记录`, //
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // showSizeChange: (current, pageSize) => (this.pageSize = pageSize) //
} }

View File

@ -271,9 +271,9 @@
/// ///
const pagination = { const pagination = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 20,
showSizeChanger: true, // showSizeChanger: true, //
pageSizeOptions: ["5", "10", "20", "50"], // pageSizeOptions: ["10", "20", "50", "100"], //
showTotal: total => `${total} 条记录`, // showTotal: total => `${total} 条记录`, //
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // showSizeChange: (current, pageSize) => (this.pageSize = pageSize) //
} }

View File

@ -214,9 +214,9 @@
/// ///
const pagination = { const pagination = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 20,
showSizeChanger: true, // showSizeChanger: true, //
pageSizeOptions: ["5", "10", "20", "50"], // pageSizeOptions: ["10", "20", "50", "100"], //
showTotal: total => `${total} 条记录`, // showTotal: total => `${total} 条记录`, //
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // showSizeChange: (current, pageSize) => (this.pageSize = pageSize) //
} }

View File

@ -221,9 +221,9 @@
/// ///
const pagination = { const pagination = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 20,
showSizeChanger: true, // showSizeChanger: true, //
pageSizeOptions: ["5", "10", "20", "50"], // pageSizeOptions: ["10", "20", "50", "100"], //
showTotal: total => `${total} 条记录`, // showTotal: total => `${total} 条记录`, //
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // showSizeChange: (current, pageSize) => (this.pageSize = pageSize) //
} }

View File

@ -221,9 +221,9 @@
/// ///
const pagination = { const pagination = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 20,
showSizeChanger: true, // showSizeChanger: true, //
pageSizeOptions: ["5", "10", "20", "50"], // pageSizeOptions: ["10", "20", "50", "100"], //
showTotal: total => `${total} 条记录`, // showTotal: total => `${total} 条记录`, //
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // showSizeChange: (current, pageSize) => (this.pageSize = pageSize) //
} }

View File

@ -47,27 +47,23 @@
dataIndex: "skuType", dataIndex: "skuType",
key: "skuType", key: "skuType",
title: "物料类别", title: "物料类别",
width: 60
}, },
{ {
dataIndex: "skuCode", dataIndex: "skuCode",
key: "skuCode", key: "skuCode",
title: "物料编号", title: "物料编号",
showSearch: true, showSearch: true,
width: 80
}, },
{ {
dataIndex: "skuName", dataIndex: "skuName",
key: "skuName", key: "skuName",
title: "物料名称", title: "物料名称",
showSearch: true, showSearch: true,
width: 150,
}, },
{ {
dataIndex: "skuQty", dataIndex: "skuQty",
key: "skuQty", key: "skuQty",
title: "物料库存", title: "物料库存",
width: 80
} }
]; ];
@ -80,23 +76,23 @@
}; };
}; };
/// ///
const toolbar = [ const toolbar = [
]; ];
/// ///
const operate = [ const operate = [
]; ];
/// ///
const pagination = { const pagination = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 20,
showSizeChanger: true, // showSizeChanger: true, //
pageSizeOptions: ["5", "10", "20", "50"], // pageSizeOptions: ["10", "20", "50", "100"], //
showTotal: total => `${total} 条记录`, // showTotal: total => `${total} 条记录`, //
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // showSizeChange: (current, pageSize) => (this.pageSize = pageSize) //
} }

View File

@ -102,23 +102,23 @@
}; };
}; };
/// ///
const toolbar = [ const toolbar = [
]; ];
/// ///
const operate = [ const operate = [
]; ];
/// ///
const pagination = { const pagination = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 20,
showSizeChanger: true, // showSizeChanger: true, //
pageSizeOptions: ["5", "10", "20", "50"], // pageSizeOptions: ["10", "20", "50", "100"], //
showTotal: total => `${total} 条记录`, // showTotal: total => `${total} 条记录`, //
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // showSizeChange: (current, pageSize) => (this.pageSize = pageSize) //
} }
@ -169,7 +169,7 @@
// value: 'KTP001', // value: 'KTP001',
// text: '', // text: '',
// }] // }]
// }, // },
] ]
const search = function(value) { const search = function(value) {

View File

@ -238,9 +238,9 @@
/// ///
const pagination = { const pagination = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 20,
showSizeChanger: true, // showSizeChanger: true, //
pageSizeOptions: ["5", "10", "20", "50"], // pageSizeOptions: ["10", "20", "50", "100"], //
showTotal: total => `${total} 条记录`, // showTotal: total => `${total} 条记录`, //
showSizeChange: (current, pageSize) => (this.pageSize = pageSize) // showSizeChange: (current, pageSize) => (this.pageSize = pageSize) //
} }