Commit bca25418 authored by Sixiang_Zzb's avatar Sixiang_Zzb

提交冲突

parent 4ef109a0
...@@ -66,7 +66,7 @@ const ChargeDetail = (props: any) => { ...@@ -66,7 +66,7 @@ const ChargeDetail = (props: any) => {
<Pagination simple defaultCurrent={curpage} total={pages * 10} onChange={pageChange} /> <Pagination simple defaultCurrent={curpage} total={pages * 10} onChange={pageChange} />
</div> </div>
<> <>
<Tooltip title={scale == 1.3 ? '点击放大查看' + CurData.billFileUrl : '还原视图'}> <Tooltip title={scale == 1.3 ? '点击放大查看' : '还原视图'}>
<div className={scale == 1.3 ? styles.box3out : null}> <div className={scale == 1.3 ? styles.box3out : null}>
<div className={scale == 1.3 ? styles.box3 : styles.box3of} onClick={lookup}> <div className={scale == 1.3 ? styles.box3 : styles.box3of} onClick={lookup}>
<PDF <PDF
......
...@@ -10,7 +10,7 @@ import SearchOptionsCommnity from '../../../components/SearchOptions/SearchOptio ...@@ -10,7 +10,7 @@ import SearchOptionsCommnity from '../../../components/SearchOptions/SearchOptio
import { checkParam, RA } from '../../../utils/method' import { checkParam, RA } from '../../../utils/method'
import { validateMessages } from '@/utils/params'; import { validateMessages } from '@/utils/params';
import "./UsersAddInput.less" // import "./UsersAddInput.less"
const module = "User" const module = "User"
...@@ -22,8 +22,9 @@ const UsersAdd = (props: any) => { ...@@ -22,8 +22,9 @@ const UsersAdd = (props: any) => {
const formRef = useRef(null as any); const formRef = useRef(null as any);
const [loading, setLoading] = useState(false) const [loading, setLoading] = useState(false)
const onFinish = (values: any) => {
const onFinish = (values: any) => {
console.log(values)
if (postman.extend != null) { if (postman.extend != null) {
values.communityName = postman.extend values.communityName = postman.extend
} else { } else {
...@@ -57,6 +58,7 @@ const UsersAdd = (props: any) => { ...@@ -57,6 +58,7 @@ const UsersAdd = (props: any) => {
}, [communityInfo]) }, [communityInfo])
const checkData = (rule: any, value: any, callback: any) => { const checkData = (rule: any, value: any, callback: any) => {
console.log(rule, value)
if (value) { if (value) {
if (/^[a-zA-Z0-9]+$/g.test(value)) { if (/^[a-zA-Z0-9]+$/g.test(value)) {
callback(); callback();
...@@ -79,10 +81,10 @@ const UsersAdd = (props: any) => { ...@@ -79,10 +81,10 @@ const UsersAdd = (props: any) => {
</div> </div>
{/* <div className={styles.box4}> {/* <div className={styles.box4}>
<div className={styles.box4item0}>Contact Details</div> <div className={styles.box4item0}>Contact Details</div>
<div className={styles.box4item1}><Form.Item name="owerPhone" ><Input placeholder="Phone Number" /></Form.Item></div> <div className={styles.box4item1}><Form.Item name="owerPhone" ><Input placeholder="Phone Number" /></Form.Item></div>
<div className={styles.box4item2}><Form.Item name="owerEmail" ><Input placeholder="Email" /></Form.Item></div> <div className={styles.box4item2}><Form.Item name="owerEmail" ><Input placeholder="Email" /></Form.Item></div>
</div> */} </div> */}
<div className={styles.box2}> <div className={styles.box2}>
<div className={styles.box2item1}>Contact Details</div> <div className={styles.box2item1}>Contact Details</div>
......
.box2item3___3VsZz .ant-form-item-explain { /* .box2item3___3VsZz .ant-form-item-explain {
margin-left: -80px; margin-left: -80px;
} }
.box2item5___2AZ2K .ant-form-item-explain { .box2item5___2AZ2K .ant-form-item-explain {
...@@ -9,4 +9,4 @@ ...@@ -9,4 +9,4 @@
} }
.box2item7___ePaor .ant-form-item-explain { .box2item7___ePaor .ant-form-item-explain {
margin-left: -30px; margin-left: -30px;
} } */
...@@ -108,22 +108,16 @@ const ServiceProviderManagement = (props: any) => { ...@@ -108,22 +108,16 @@ const ServiceProviderManagement = (props: any) => {
}, [Data]) }, [Data])
useEffect(() => { useEffect(() => {
//分页设置
// if (location.query.pageNum != null) {
// setPageNum(parseInt(location.query.pageNum))
// } else {
// }
setPageNum(1) setPageNum(1)
setLoading(true) setLoading(true)
//获取数据
TosTosServiceProviderGet({ TosTosServiceProviderGet({
...location.query, ...location.query,
serviceCommunityList: (testData === null || testData.length === 0) ? CommunityList : testData, serviceCommunityList: (testData === null || testData.length === 0) ? CommunityList : testData,
pageNum: 1 pageNum: 1
}) })
}, [location]) }, [location])
const CallBackTitleSearch = (comment: any) => { const CallBackTitleSearch = (comment: any) => {
......
...@@ -32,9 +32,6 @@ const Login: React.FC<LoginProps> = (props) => { ...@@ -32,9 +32,6 @@ const Login: React.FC<LoginProps> = (props) => {
const handleSubmit = (values: LoginParamsType) => { const handleSubmit = (values: LoginParamsType) => {
const { dispatch } = props; const { dispatch } = props;
console.log({ ...values, type, userName, password });
console.log(props);
console.log(dispatch, 'dispatch');
dispatch({ dispatch({
type: 'login/login', type: 'login/login',
payload: { userName, password }, payload: { userName, password },
...@@ -84,8 +81,8 @@ const Login: React.FC<LoginProps> = (props) => { ...@@ -84,8 +81,8 @@ const Login: React.FC<LoginProps> = (props) => {
<ArrowLeftOutlined style={{ fontSize: '28px' }} /> <ArrowLeftOutlined style={{ fontSize: '28px' }} />
</div> </div>
) : ( ) : (
<div /> <div />
)} )}
<LoginForm activeKey={type} onTabChange={setType} onSubmit={handleSubmit}> <LoginForm activeKey={type} onTabChange={setType} onSubmit={handleSubmit}>
<div className={styles.box1}>Account Number</div> <div className={styles.box1}>Account Number</div>
<input className={styles.input} onChange={usernameHandle} /> <input className={styles.input} onChange={usernameHandle} />
...@@ -98,20 +95,20 @@ const Login: React.FC<LoginProps> = (props) => { ...@@ -98,20 +95,20 @@ const Login: React.FC<LoginProps> = (props) => {
</div> </div>
</div> </div>
) : ( ) : (
<div>
<input className={styles.input2} onChange={passwdHandle} type="password" />
<div> <div>
<div className={styles.input3} onClick={gotoForgetHandle}> <input className={styles.input2} onChange={passwdHandle} type="password" />
Forget Password <div>
<div className={styles.input3} onClick={gotoForgetHandle}>
Forget Password
</div> </div>
<div className={styles.input4}> <div className={styles.input4}>
{status === 'error' && loginType === 'account' && !submitting && ( {status === 'error' && loginType === 'account' && !submitting && (
<div>Wrong account or password</div> <div>Wrong account or password</div>
)} )}
</div>
</div> </div>
</div> </div>
</div> )}
)}
<Submit className={styles.button} loading={submitting} style={{ width: 330 }}> <Submit className={styles.button} loading={submitting} style={{ width: 330 }}>
{forgetflag ? 'Next' : '登录'} {forgetflag ? 'Next' : '登录'}
</Submit> </Submit>
......
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