From 34e91ac28ceea141ac55f3bfd082514f5638a8d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E6=99=AF=E5=AD=A6?= <5412262+sun_jing_xue@user.noreply.gitee.com> Date: Fri, 18 Jul 2025 14:12:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A1=E6=89=B9=E8=AE=B0=E5=BD=95=E4=B8=8B?= =?UTF-8?q?=E7=BB=9F=E4=B8=80=E7=A4=BE=E4=BC=9A=E4=BF=A1=E7=94=A8=E4=BB=A3?= =?UTF-8?q?=E7=A0=81/=E7=A8=8E=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/login/login.tsx | 9 ++++----- .../admissionManagement/components/CreateModal.tsx | 7 ++----- .../SupplierEntryReview/components/ViewModal.tsx | 2 +- 3 files changed, 7 insertions(+), 11 deletions(-) diff --git a/src/pages/login/login.tsx b/src/pages/login/login.tsx index de0bb87..4e69680 100644 --- a/src/pages/login/login.tsx +++ b/src/pages/login/login.tsx @@ -1,12 +1,11 @@ import React, { useState, useEffect } from 'react'; import { Form, Input, Button, Checkbox, Tabs, message } from 'antd'; -import { UserOutlined, LockOutlined, EyeInvisibleOutlined, EyeTwoTone, HomeOutlined } from '@ant-design/icons'; +import { UserOutlined, LockOutlined, EyeInvisibleOutlined, EyeTwoTone } from '@ant-design/icons'; import { history, useIntl } from 'umi'; import './login.less'; -import { getCaptcha, supplierLogin, expertLogin, accountLogin, getUserinfo, findMenuList, queryUserOrgAll } from '@/servers/api/login'; +import { getCaptcha, supplierLogin, expertLogin, accountLogin, getUserinfo } from '@/servers/api/login'; import { encryptWithRsa } from '@/utils/encryptWithRsa' -import Password from 'antd/lib/input/Password'; const { TabPane } = Tabs; @@ -15,7 +14,7 @@ const LoginPage: React.FC = () => { const [form] = Form.useForm(); const [loading, setLoading] = useState(false); const [captchaImg, setCaptchaImg] = useState(''); - const [captchaKey, setCaptchaKey] = useState(''); + // const [captchaKey, setCaptchaKey] = useState(''); //切换后 走不同接口 const loginApiMap: { [key: string]: (params: any) => Promise } = { supplierLogin, @@ -111,7 +110,7 @@ const LoginPage: React.FC = () => { const res = await getCaptcha(); if (res.code === 200) { setCaptchaImg(res.data.base64Image); - setCaptchaKey(res.data.code); + // setCaptchaKey(res.data.code); } }; diff --git a/src/pages/supplier/admission/admissionManagement/components/CreateModal.tsx b/src/pages/supplier/admission/admissionManagement/components/CreateModal.tsx index def9a12..012aa3a 100644 --- a/src/pages/supplier/admission/admissionManagement/components/CreateModal.tsx +++ b/src/pages/supplier/admission/admissionManagement/components/CreateModal.tsx @@ -273,7 +273,7 @@ const CreateModal: React.FC<{ visible: boolean; onCancel: () => void; }> = ({ vi name="deptId" rules={[{ required: true, message: '请选择准入部门' }]} > - + void; }> = ({ vi label="评审分工" name="division" rules={[ - { + { required: true, - message: '请设置评审分工', - }, - { validator: (_, value) => { if (!value || !Array.isArray(value) || value.length === 0) { return Promise.reject(new Error('请设置评审分工')); diff --git a/src/pages/supplier/category/SupplierEntryReview/components/ViewModal.tsx b/src/pages/supplier/category/SupplierEntryReview/components/ViewModal.tsx index 24bfa41..aa78b9a 100644 --- a/src/pages/supplier/category/SupplierEntryReview/components/ViewModal.tsx +++ b/src/pages/supplier/category/SupplierEntryReview/components/ViewModal.tsx @@ -99,7 +99,7 @@ const ViewModal: React.FC<{ ) } }, - { title: '企业类型', dataIndex: '', align: 'center' }, + { title: '统一社会信用代码/税号', dataIndex: 'unifiedSocialCreditCode', align: 'center' }, ] return (