fix: bug#11174、11227
This commit is contained in:
parent
6c24474de2
commit
8239b2c308
|
@ -652,7 +652,13 @@ const saveData = () => {
|
||||||
|
|
||||||
if (resp?.status === 200) {
|
if (resp?.status === 200) {
|
||||||
onlyMessage('操作成功', 'success');
|
onlyMessage('操作成功', 'success');
|
||||||
history.back();
|
if (route.query.save) {
|
||||||
|
// @ts-ignore
|
||||||
|
window?.onSaveSuccess(resp.result);
|
||||||
|
window.close();
|
||||||
|
} else {
|
||||||
|
history.back();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
total: dataSource.length,
|
total: dataSource.length,
|
||||||
current: current,
|
current: current,
|
||||||
pageSize: pageSize,
|
pageSize: pageSize,
|
||||||
pageSizeOptions: ['5', '10', '20', '50', '100'],
|
pageSizeOptions: ['10', '20', '50', '100'],
|
||||||
showSizeChanger: true,
|
showSizeChanger: true,
|
||||||
hideOnSinglePage: false,
|
hideOnSinglePage: false,
|
||||||
showTotal: (total: number, range: number) => `第 ${range[0]} - ${range[1]} 条/总共 ${total} 条`,
|
showTotal: (total: number, range: number) => `第 ${range[0]} - ${range[1]} 条/总共 ${total} 条`,
|
||||||
|
@ -399,7 +399,7 @@ const getTableData = (terms?: any) => {
|
||||||
* 前端分页
|
* 前端分页
|
||||||
*/
|
*/
|
||||||
const current = ref(1);
|
const current = ref(1);
|
||||||
const pageSize = ref(5);
|
const pageSize = ref(10);
|
||||||
const handleTableChange = (pagination: any) => {
|
const handleTableChange = (pagination: any) => {
|
||||||
current.value = pagination.current;
|
current.value = pagination.current;
|
||||||
pageSize.value = pagination.pageSize;
|
pageSize.value = pagination.pageSize;
|
||||||
|
|
Loading…
Reference in New Issue