Amy0104 commented on code in PR #10706:
URL: https://github.com/apache/dolphinscheduler/pull/10706#discussion_r912854169
##########
dolphinscheduler-ui/src/views/projects/workflow/definition/use-table.ts:
##########
@@ -257,6 +257,20 @@ export function useTable() {
variables.page -= 1
}
+ variables.checkedRowKeys = []
+ getTableData({
+ pageSize: variables.pageSize,
+ pageNo: variables.page,
+ searchVal: variables.searchVal
+ })
+ }).catch(() => {
+ if (
+ Math.ceil((variables.columns.length -
variables.checkedRowKeys.length) / variables.pageSize) < variables.page
+ && variables.page > 1
+ ) {
+ variables.page -= 1;
+ }
+
Review Comment:
There are still some problems.
- Such as the current page is 1.
- Why using columns length divide checkedRowKeys length ?
- It's better to set a common function to handle refresh table.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]