test table

This commit is contained in:
Theluyuan 2023-08-03 14:22:42 +08:00
parent 4d54333ad1
commit 85769bf2a8
4 changed files with 101 additions and 110 deletions

View File

@ -1131,18 +1131,13 @@ const _sfc_main = defineComponent({
tmp.total = tableDataSource.value.length;
emit("update:page", tmp);
sxlist.value = {};
change({
limit: props.page.limit,
current: pagecurrent || props.page.current
});
}
});
let pagecurrent;
const change = function(page) {
if (props.serverpage) {
emit("change", page);
} else {
pagecurrent = page.current;
page.current;
datalist.value = tableDataSource.value.slice(page.limit * (page.current - 1), page.limit * page.current);
}
};
@ -1513,7 +1508,7 @@ const _sfc_main = defineComponent({
tableDataSource.value = endlist;
change({
limit: props.page.limit,
current: pagecurrent || props.page.current,
current: props.page.current,
isReload: true
});
}

View File

@ -19578,18 +19578,13 @@ const _sfc_main$D = defineComponent({
tmp.total = tableDataSource.value.length;
emit("update:page", tmp);
sxlist.value = {};
change3({
limit: props.page.limit,
current: pagecurrent || props.page.current
});
}
});
let pagecurrent;
const change3 = function(page) {
if (props.serverpage) {
emit("change", page);
} else {
pagecurrent = page.current;
page.current;
datalist.value = tableDataSource.value.slice(page.limit * (page.current - 1), page.limit * page.current);
}
};
@ -19960,7 +19955,7 @@ const _sfc_main$D = defineComponent({
tableDataSource.value = endlist;
change3({
limit: props.page.limit,
current: pagecurrent || props.page.current,
current: props.page.current,
isReload: true
});
}

View File

@ -347,10 +347,10 @@ watch(tableDataSource, () => {
emit("update:page", tmp);
// tableDataSource.value = endlist
sxlist.value = {};
change({
limit: props.page.limit,
current: pagecurrent || props.page.current,
});
// change({
// limit: props.page.limit,
// current: pagecurrent || props.page.current,
// });
}
});
let pagecurrent: number;
@ -817,9 +817,10 @@ watch(
});
} else {
tableDataSource.value = endlist;
// pagecurrent ||
change({
limit: props.page.limit,
current: pagecurrent || props.page.current,
current: props.page.current,
isReload: true,
});
}

File diff suppressed because one or more lines are too long