|
@@ -136,7 +136,7 @@ const rowSelection: any = ref({
|
|
|
(key) => !origin.value.list.some((item) => key === item.id)
|
|
|
);
|
|
|
const newKeys = Array.from(new Set([...otherPageKeys, ...ids]));
|
|
|
- if (typeof props.count === "number" && props.count >= newKeys.length) {
|
|
|
+ if (typeof props.count !== "number" || props.count >= newKeys.length) {
|
|
|
selectKeys.value = newKeys;
|
|
|
} else {
|
|
|
Message.error(`最多选择${props.count}项`);
|
|
@@ -193,6 +193,10 @@ const refresh = debounceStack(
|
|
|
groups.value = group;
|
|
|
origin.value = pag;
|
|
|
pag.list.forEach((item) => (allData[item.id] = item));
|
|
|
+ if (pag.pageNum > 1 && pag.pageNum > Math.ceil(pag.total / pag.pageSize)) {
|
|
|
+ params.pageNum = Math.ceil(pag.total / pag.pageSize);
|
|
|
+ refresh();
|
|
|
+ }
|
|
|
},
|
|
|
160
|
|
|
);
|
|
@@ -261,4 +265,8 @@ const handleTableChange: TableProps["onChange"] = (pag, filters) => {
|
|
|
.ant-modal-root .ant-table-tbody > tr > td {
|
|
|
word-break: break-all;
|
|
|
}
|
|
|
+
|
|
|
+.content-header-search {
|
|
|
+ flex: 1;
|
|
|
+}
|
|
|
</style>
|