Skip to content

Commit

Permalink
fix: 项目管理列表排序处理
Browse files Browse the repository at this point in the history
  • Loading branch information
youngster-yj committed Dec 3, 2024
1 parent 015f92a commit 974d08f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export const YakRunnerProjectManager: React.FC<YakRunnerProjectManagerProps> = (
setShowCompileModal(true)
}}
refresh={refresh}
setRefresh={setRefresh}
/>
{isShowCompileModal && (
<AuditModalFormModal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1027,7 +1027,6 @@ export const AuditModalForm: React.FC<AuditModalFormProps> = (props) => {
Value: JSON.stringify(item.value)
})
})
console.log("requestParams---", requestParams)
onStartAudit(value["programName"], requestParams)
})
.catch(() => {})
Expand Down Expand Up @@ -1383,7 +1382,11 @@ export const AuditHistoryTable: React.FC<AuditHistoryTableProps> = memo((props)
const {pageType, onClose, onExecuteAudit, warrpId} = props
const {projectName} = useStore()
const [afreshName, setAfreshName] = useState<string>()
const [refresh, setRefresh] = useControllableValue<boolean>(props)
const [refresh, setRefresh] = useControllableValue<boolean>(props, {
defaultValue: false,
valuePropName: "refresh",
trigger: "setRefresh"
})
const [params, setParams] = useState<QuerySSAProgramsProps>({
Keyword: ""
})
Expand Down Expand Up @@ -1426,8 +1429,9 @@ export const AuditHistoryTable: React.FC<AuditHistoryTableProps> = memo((props)
if (isGrpcRef.current) return
isGrpcRef.current = true
const paginationProps = {
...pagination,
Page: page || 1,
Limit: limit || pagination.Limit
Limit: limit || pagination.Limit,
}
if (reload) {
afterId.current = undefined
Expand Down Expand Up @@ -1467,8 +1471,9 @@ export const AuditHistoryTable: React.FC<AuditHistoryTableProps> = memo((props)

const getTotalFun = useMemoizedFn(() => {
const paginationProps = {
...pagination,
Page: 1,
Limit: pagination.Limit
Limit: pagination.Limit,
}
ipcRenderer
.invoke("QuerySSAPrograms", {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ export interface AuditHistoryTableProps {
onClose?: () => void
onExecuteAudit?: () => void
refresh?: boolean
setRefresh?: (v: boolean) => void
warrpId?: HTMLElement | null
}

Expand Down

0 comments on commit 974d08f

Please sign in to comment.