feat: 用户联调

This commit is contained in:
xuziqiang
2024-06-04 10:54:02 +08:00
parent 31479608c0
commit e1b0d817fe
12 changed files with 373 additions and 250 deletions

View File

@@ -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;

View File

@@ -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,