Browse Source

chore: 修复tsc错误

pull/207/head
zhaowei 9 months ago
parent
commit
c371fa97ad
6 changed files with 8 additions and 9 deletions
  1. +1
    -1
      react-ui/src/pages/Monitor/Job/edit.tsx
  2. +2
    -3
      react-ui/src/pages/System/Role/components/DataScope.tsx
  3. +1
    -1
      react-ui/src/pages/System/User/components/ResetPwd.tsx
  4. +2
    -2
      react-ui/src/pages/Tool/Gen/components/ColumnInfo.tsx
  5. +1
    -1
      react-ui/src/pages/Tool/Gen/components/GenInfo.tsx
  6. +1
    -1
      react-ui/src/pages/User/Center/components/ResetPassword/index.tsx

+ 1
- 1
react-ui/src/pages/Monitor/Job/edit.tsx View File

@@ -168,7 +168,7 @@ const JobForm: React.FC<JobFormProps> = (props) => {
captchaTextRender={() => '生成表达式'}
onGetCaptcha={() => {
// form.setFieldValue('cronExpression', '0/20 * * * * ?');
return new Promise((resolve, reject) => {
return new Promise((_resolve, reject) => {
reject();
});
}}


+ 2
- 3
react-ui/src/pages/System/Role/components/DataScope.tsx View File

@@ -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<DataScopeFormProps> = (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<DataScopeFormProps> = (props) => {
]}
fieldProps={{
onChange: (value) => {
setDataScopeType(value);
setDataScopeType(value as any);
},
}}
/>


+ 1
- 1
react-ui/src/pages/System/User/components/ResetPwd.tsx View File

@@ -30,7 +30,7 @@ const UpdateForm: React.FC<UpdateFormProps> = (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();


+ 2
- 2
react-ui/src/pages/Tool/Gen/components/ColumnInfo.tsx View File

@@ -252,10 +252,10 @@ const ColumnInfo: React.FC<ColumnInfoProps> = (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);
},
}}


+ 1
- 1
react-ui/src/pages/Tool/Gen/components/GenInfo.tsx View File

@@ -105,7 +105,7 @@ const GenInfo: React.FC<GenInfoProps> = (props) => {
<ProFormSelect
fieldProps={{
onChange: (val) => {
setTlpType(val);
setTlpType(val as string);
},
}}
valueEnum={{


+ 1
- 1
react-ui/src/pages/User/Center/components/ResetPassword/index.tsx View File

@@ -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();


Loading…
Cancel
Save