Commit e2a09c8a authored by Sixiang_Zzb's avatar Sixiang_Zzb

服务商模块测试问题处理

parent b883be92
......@@ -149,10 +149,6 @@ export default defineConfig({
{},
],
},
{
path: 'UploadAccount',
component: './UserManagement/ServiceProviderManagement/UploadAccount',
},
{
path: '/PropertyManagement',
name: 'propertymanagement',
......
......@@ -66,8 +66,8 @@ const AccoutingContent = (props: {
Back
</button>
</div>
{SaveChooseData.enable}
{SaveChooseData.enable === 'normal' ? (
{SaveChooseData.enable === 'Normal' ? (
<div className={styles.writeOff}>
<Button
icon={<PoweroffOutlined />}
......
......@@ -22,6 +22,7 @@ const Detail = (props: any) => {
};
useEffect(() => {
console.log(SaveChooseData);
if (SaveChooseData) {
TosSecurityGuarderGet({ companyName: SaveChooseData.providerName });
} else {
......@@ -88,7 +89,7 @@ const Detail = (props: any) => {
{SaveChooseData !== null ? (
<>
<TitleBack title="Service Provider Details" />
{SaveChooseData.enable === 'normal' ? (
{SaveChooseData.enable === 'Normal' ? (
<div className={styles.writeOff}>
<Button
icon={<PoweroffOutlined />}
......
.container {
width: 100vw;
height: 100vh;
}
.box {
position: absolute;
top: 40%;
left: 50%;
transform: translate(-50%, -50%);
}
.btn {
position: absolute;
right: 0px;
bottom: -50px;
}
.ant-btn {
width: 100px;
}
.container {
width: 100vw;
height: 100vh;
}
.box {
position: absolute;
top: 40%;
left: 50%;
transform: translate(-50%, -50%);
}
.btn {
position: absolute;
right: 0px;
bottom: -50px;
}
.ant-btn {
width: 100px;
}
import React from 'react';
import { Form, Input, Button, Divider } from 'antd';
import styles from './UploadAccount.less';
const UploadAccount = () => {
const handleLogin = (value: string) => {
console.log(value);
};
return (
<div className={styles.container}>
<Form className={styles.box} onFinish={handleLogin}>
<Form.Item name={'password'}>
<Input.Password
style={{ width: 220 }}
placeholder={'Please enter your password'}
></Input.Password>
</Form.Item>
<Divider />
<Form.Item className={styles.btn}>
<Button htmlType={'submit'}>登录</Button>
</Form.Item>
</Form>
</div>
);
};
export default UploadAccount;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment