|
@@ -1,8 +1,8 @@
|
|
import { LockOutlined, UserOutlined } from '@ant-design/icons'
|
|
import { LockOutlined, UserOutlined } from '@ant-design/icons'
|
|
import { Alert, message, Tabs } from 'antd'
|
|
import { Alert, message, Tabs } from 'antd'
|
|
import React, { useState } from 'react'
|
|
import React, { useState } from 'react'
|
|
-import ProForm, { ProFormCheckbox, ProFormText, LoginForm } from '@ant-design/pro-form'
|
|
|
|
-import { useIntl, history, FormattedMessage, SelectLang, useModel, useRequest } from 'umi'
|
|
|
|
|
|
+import ProForm, { ProFormCheckbox, ProFormText } from '@ant-design/pro-form'
|
|
|
|
+import { useIntl, Link, history, FormattedMessage, SelectLang, useModel, useRequest } from 'umi'
|
|
// import { login } from '@/services/ant-design-pro/api'
|
|
// import { login } from '@/services/ant-design-pro/api'
|
|
import { queryAcountList } from '@/services/api/institution'
|
|
import { queryAcountList } from '@/services/api/institution'
|
|
|
|
|
|
@@ -26,7 +26,7 @@ const Login: React.FC = () => {
|
|
const [type, setType] = useState<string>('account')
|
|
const [type, setType] = useState<string>('account')
|
|
const { initialState, setInitialState } = useModel('@@initialState')
|
|
const { initialState, setInitialState } = useModel('@@initialState')
|
|
|
|
|
|
- const { run, loading } = useRequest(queryCurrentUser, {
|
|
|
|
|
|
+ const { run, loading } = useRequest(queryAcountList, {
|
|
manual: true,
|
|
manual: true,
|
|
onSuccess: async result => {
|
|
onSuccess: async result => {
|
|
setInitialState({
|
|
setInitialState({
|
|
@@ -88,7 +88,18 @@ const Login: React.FC = () => {
|
|
{SelectLang && <SelectLang />}
|
|
{SelectLang && <SelectLang />}
|
|
</div>
|
|
</div>
|
|
<div className={styles.content}>
|
|
<div className={styles.content}>
|
|
- <div
|
|
|
|
|
|
+ <div className={styles.top}>
|
|
|
|
+ <div className={styles.header}>
|
|
|
|
+ <Link to="/" className="flex justify-center">
|
|
|
|
+ <img alt="logo" className={styles.logo} src="/logo.svg" />
|
|
|
|
+ <span className={styles.title}>财审管理系统</span>
|
|
|
|
+ </Link>
|
|
|
|
+ </div>
|
|
|
|
+ <div className={styles.desc}>
|
|
|
|
+ {intl.formatMessage({ id: 'pages.layouts.userLayout.title' })}
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ {/* <div
|
|
logo={<img alt="logo" src="/logo.svg" />}
|
|
logo={<img alt="logo" src="/logo.svg" />}
|
|
title="财审管理系统"
|
|
title="财审管理系统"
|
|
subTitle={intl.formatMessage({ id: 'pages.layouts.userLayout.title' })}
|
|
subTitle={intl.formatMessage({ id: 'pages.layouts.userLayout.title' })}
|
|
@@ -98,7 +109,8 @@ const Login: React.FC = () => {
|
|
actions={[]}
|
|
actions={[]}
|
|
onFinish={async values => {
|
|
onFinish={async values => {
|
|
await handleSubmit(values as API.LoginParams)
|
|
await handleSubmit(values as API.LoginParams)
|
|
- }}>
|
|
|
|
|
|
+ }}> */}
|
|
|
|
+ <div className={styles.main}>
|
|
<ProForm
|
|
<ProForm
|
|
initialValues={{
|
|
initialValues={{
|
|
autoLogin: true
|
|
autoLogin: true
|