feat: 用户联调
This commit is contained in:
@@ -76,7 +76,7 @@
|
||||
|
||||
<style lang="less" scoped>
|
||||
.ns-table-header {
|
||||
min-width: 500px;
|
||||
min-width: fit-content;
|
||||
user-select: none;
|
||||
// padding: 16px 0;
|
||||
padding-top: 16px;
|
||||
|
@@ -383,7 +383,7 @@
|
||||
|
||||
if (pagination) {
|
||||
const current = get(dataRef.value, props.pageField);
|
||||
// console.log(current);
|
||||
console.log(current);
|
||||
function getTotal() {
|
||||
let total = 0;
|
||||
if (isFunction(getPageParams)) {
|
||||
@@ -406,7 +406,7 @@
|
||||
},
|
||||
...(pagination as Props),
|
||||
total: getTotal(),
|
||||
current: (current >= 0 ? current : 0) + props.pageFieldOffset, // 后端0 开始
|
||||
current: (current >= 0 ? current : 0) + props.pageFieldOffset, // 后端1 开始
|
||||
pageSize: get(dataRef.value, props.sizeField),
|
||||
};
|
||||
}
|
||||
@@ -432,7 +432,7 @@
|
||||
() => getTableBindValues.value.api,
|
||||
() => {
|
||||
// console.log(getTableBindValues.value.api);
|
||||
fetch(); //路由切换导致api切换 导致发送请求
|
||||
// fetch(); //路由切换导致api切换 导致发送请求
|
||||
},
|
||||
{
|
||||
immediate: true,
|
||||
|
@@ -5,7 +5,7 @@ export const tableConfig = {
|
||||
listField: 'data.records', // 数据集合
|
||||
totalField: 'data.total', // 数据总数
|
||||
|
||||
pageFieldOffset: 1, //前端页码1开始,后端0 偏移量 1
|
||||
pageFieldOffset: 0, //前端页码1开始,后端0 偏移量 1
|
||||
pageSizeOptions: ['10', '20', '40'], // 分页设置种类
|
||||
defaultPageSize: 10, // 默认每页数量
|
||||
paramsPageSizeField: 'pageSize',
|
||||
|
Reference in New Issue
Block a user