From c371fa97ad0cf78f06c092685cf17a6a3d56a609 Mon Sep 17 00:00:00 2001 From: zhaowei Date: Fri, 25 Apr 2025 09:40:38 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BF=AE=E5=A4=8Dtsc=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- react-ui/src/pages/Monitor/Job/edit.tsx | 2 +- react-ui/src/pages/System/Role/components/DataScope.tsx | 5 ++--- react-ui/src/pages/System/User/components/ResetPwd.tsx | 2 +- react-ui/src/pages/Tool/Gen/components/ColumnInfo.tsx | 4 ++-- react-ui/src/pages/Tool/Gen/components/GenInfo.tsx | 2 +- .../src/pages/User/Center/components/ResetPassword/index.tsx | 2 +- 6 files changed, 8 insertions(+), 9 deletions(-) diff --git a/react-ui/src/pages/Monitor/Job/edit.tsx b/react-ui/src/pages/Monitor/Job/edit.tsx index 88b1b2e9..bcc48606 100644 --- a/react-ui/src/pages/Monitor/Job/edit.tsx +++ b/react-ui/src/pages/Monitor/Job/edit.tsx @@ -168,7 +168,7 @@ const JobForm: React.FC = (props) => { captchaTextRender={() => '生成表达式'} onGetCaptcha={() => { // form.setFieldValue('cronExpression', '0/20 * * * * ?'); - return new Promise((resolve, reject) => { + return new Promise((_resolve, reject) => { reject(); }); }} diff --git a/react-ui/src/pages/System/Role/components/DataScope.tsx b/react-ui/src/pages/System/Role/components/DataScope.tsx index 8bc3cc7a..8ea6bc43 100644 --- a/react-ui/src/pages/System/Role/components/DataScope.tsx +++ b/react-ui/src/pages/System/Role/components/DataScope.tsx @@ -2,7 +2,6 @@ import KFModal from '@/components/KFModal'; import { Key, ProForm, ProFormDigit, ProFormSelect, ProFormText } from '@ant-design/pro-components'; import { FormattedMessage, useIntl } from '@umijs/max'; import { Checkbox, Col, Form, Row, Tree } from 'antd'; -import { CheckboxValueType } from 'antd/es/checkbox/Group'; import { DataNode } from 'antd/es/tree'; import React, { useEffect, useState } from 'react'; /* * @@ -74,7 +73,7 @@ const DataScopeForm: React.FC = (props) => { const deptAllNodes = getAllDeptNode(deptTree); - const onDeptOptionChange = (checkedValues: CheckboxValueType[]) => { + const onDeptOptionChange = (checkedValues: any[]) => { if (checkedValues.includes('deptExpand')) { setDeptTreeExpandKey(deptAllNodes); } else { @@ -188,7 +187,7 @@ const DataScopeForm: React.FC = (props) => { ]} fieldProps={{ onChange: (value) => { - setDataScopeType(value); + setDataScopeType(value as any); }, }} /> diff --git a/react-ui/src/pages/System/User/components/ResetPwd.tsx b/react-ui/src/pages/System/User/components/ResetPwd.tsx index 33581242..3f4f65bc 100644 --- a/react-ui/src/pages/System/User/components/ResetPwd.tsx +++ b/react-ui/src/pages/System/User/components/ResetPwd.tsx @@ -30,7 +30,7 @@ const UpdateForm: React.FC = (props) => { props.onSubmit({ password: values.password, userId, originPassword } as FormValueType); }; - const checkPassword = (rule: any, value: string) => { + const checkPassword = (_rule: any, value: string) => { if (value === loginPassword) { // 校验条件自定义 return Promise.resolve(); diff --git a/react-ui/src/pages/Tool/Gen/components/ColumnInfo.tsx b/react-ui/src/pages/Tool/Gen/components/ColumnInfo.tsx index a9e89a4e..ea2e18be 100644 --- a/react-ui/src/pages/Tool/Gen/components/ColumnInfo.tsx +++ b/react-ui/src/pages/Tool/Gen/components/ColumnInfo.tsx @@ -252,10 +252,10 @@ const ColumnInfo: React.FC = (props) => { type: 'multiple', editableKeys, onChange: setEditableRowKeys, - actionRender: (row, config, defaultDoms) => { + actionRender: (_row, _config, defaultDoms) => { return [defaultDoms.delete]; }, - onValuesChange: (record, recordList) => { + onValuesChange: (_record, recordList) => { setDataSource(recordList); }, }} diff --git a/react-ui/src/pages/Tool/Gen/components/GenInfo.tsx b/react-ui/src/pages/Tool/Gen/components/GenInfo.tsx index 11eab6c0..b34d3bf1 100644 --- a/react-ui/src/pages/Tool/Gen/components/GenInfo.tsx +++ b/react-ui/src/pages/Tool/Gen/components/GenInfo.tsx @@ -105,7 +105,7 @@ const GenInfo: React.FC = (props) => { { - setTlpType(val); + setTlpType(val as string); }, }} valueEnum={{ diff --git a/react-ui/src/pages/User/Center/components/ResetPassword/index.tsx b/react-ui/src/pages/User/Center/components/ResetPassword/index.tsx index 66f3934c..bdc4da5f 100644 --- a/react-ui/src/pages/User/Center/components/ResetPassword/index.tsx +++ b/react-ui/src/pages/User/Center/components/ResetPassword/index.tsx @@ -17,7 +17,7 @@ const ResetPassword: React.FC = () => { } }; - const checkPassword = (rule: any, value: string) => { + const checkPassword = (_rule: any, value: string) => { const login_password = form.getFieldValue('newPassword'); if (value === login_password) { return Promise.resolve();