Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TOSTUMI
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Maple
TOSTUMI
Commits
598f4ac7
Commit
598f4ac7
authored
Nov 13, 2020
by
cellee
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'final' of
http://120.77.240.215:9701/Maple/tostumi.git
into final
parents
8a8364cb
c292964a
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
213 additions
and
215 deletions
+213
-215
CommunityService.ts
src/models/CommunityManagement/CommunityService.ts
+1
-0
CardDetail.tsx
src/pages/CommercialService/CardDetail.tsx
+157
-166
Renovation.tsx
src/pages/CommercialService/Renovation.tsx
+11
-10
RenovationDetail.tsx
src/pages/CommercialService/RenovationDetail.tsx
+26
-26
index.tsx
src/pages/user/login/index.tsx
+16
-12
login2.tsx
src/pages/user/login/login2.tsx
+1
-1
login.ts
src/services/login.ts
+1
-0
No files found.
src/models/CommunityManagement/CommunityService.ts
View file @
598f4ac7
...
...
@@ -92,6 +92,7 @@ export default {
}
break
;
case
33
:
case
34
:
case
22
:
{
message
.
success
(
'Success Operation!'
,
3
);
...
...
src/pages/CommercialService/CardDetail.tsx
View file @
598f4ac7
This diff is collapsed.
Click to expand it.
src/pages/CommercialService/Renovation.tsx
View file @
598f4ac7
...
...
@@ -22,32 +22,35 @@ const Renovation = (props: any) => {
[
2
,
'Rejected'
],
];
const
{
dispatch
,
Data8
,
location
}
=
props
;
const
[
loading
,
setLoading
]
=
useState
(
false
);
const
[
readyData
,
setReadyData
]
=
useState
(
null
);
console
.
log
(
Data8
);
const
columns
=
objectColumns
([
[
'Community'
,
'community
_n
ame'
],
[
'Applicant'
,
'applyfor
_n
ame'
],
[
'Community'
,
'community
N
ame'
],
[
'Applicant'
,
'applyfor
N
ame'
],
[
'Unit'
,
null
,
(
text
:
any
,
record
:
any
)
=>
(
<
div
>
{
record
.
community
_build_decorate
}
#
{
record
.
community_floor_d
ecorate
}
-
{
record
.
community
_room_d
ecoate
}
{
record
.
community
BuildDecorate
}
#
{
record
.
communityFloorD
ecorate
}
-
{
record
.
community
RoomD
ecoate
}
</
div
>
),
],
[
'Content'
,
'decoration
_c
ontent'
,
(
text
:
any
)
=>
<
div
>
{
stringTab
(
text
)
}
</
div
>],
[
'Request Time'
,
'create
_t
ime'
,
(
text
:
any
)
=>
<
div
>
{
timestampToTime
(
text
.
time
)
}
</
div
>],
[
'Content'
,
'decoration
C
ontent'
,
(
text
:
any
)
=>
<
div
>
{
stringTab
(
text
)
}
</
div
>],
[
'Request Time'
,
'create
T
ime'
,
(
text
:
any
)
=>
<
div
>
{
timestampToTime
(
text
.
time
)
}
</
div
>],
[
'status'
,
'decoration
_s
tatus'
,
'decoration
S
tatus'
,
(
text
:
any
)
=>
<
div
>
{
decoration_status
[
parseInt
(
text
)][
1
]
}
</
div
>,
],
[
'Actions'
,
'decoration
_s
tatus'
,
'decoration
S
tatus'
,
(
text
:
any
,
record
:
any
)
=>
(
<
Space
size=
"middle"
>
{
' '
}
...
...
@@ -56,8 +59,6 @@ const Renovation = (props: any) => {
),
],
]);
const
{
dispatch
,
Data8
,
location
}
=
props
;
useEffect
(()
=>
{
pageNum
=
1
;
//分页设置
...
...
src/pages/CommercialService/RenovationDetail.tsx
View file @
598f4ac7
...
...
@@ -27,6 +27,7 @@ const RenovationDetail = (props: any) => {
if
(
!
DataSave
)
{
history
.
go
(
-
1
);
}
console
.
log
(
DataSave
);
},
[]);
const
onFinish
=
(
values
:
any
)
=>
{
...
...
@@ -50,8 +51,7 @@ const RenovationDetail = (props: any) => {
};
RA
(
33
,
tmp
,
module
,
dispatch
);
message
.
success
(
'Success Operation!'
);
history
.
push
(
'/CommercialService/RenovationApplication'
);
setLoading
(
true
);
};
return
(
...
...
@@ -61,45 +61,45 @@ const RenovationDetail = (props: any) => {
<>
<
TitleBack
sublist=
{
[
'Status : '
+
decoration_status
[
DataSave
.
decoration
_s
tatus
][
1
],
'Time : '
+
timestampToTime
(
DataSave
.
create
_t
ime
.
time
),
'Status : '
+
decoration_status
[
DataSave
.
decoration
S
tatus
][
1
],
'Time : '
+
timestampToTime
(
DataSave
.
create
T
ime
.
time
),
]
}
title=
{
'Renovation Detail'
}
title=
{
DataSave
.
decorationStatus
===
0
?
'Renovation Reply'
:
'Renovation Detail'
}
></
TitleBack
>
<
Row
gutter=
{
8
}
>
<
Col
>
Community:
</
Col
>
<
Col
span=
{
3
}
>
{
DataSave
.
community
_n
ame
}
</
Col
>
<
Col
>
u
nit:
</
Col
>
<
Col
span=
{
3
}
>
{
DataSave
.
community
N
ame
}
</
Col
>
<
Col
>
U
nit:
</
Col
>
<
Col
>
{
DataSave
.
community
_build_decorate
}
#
{
DataSave
.
community_floor_d
ecorate
}
-
{
DataSave
.
community
_room_d
ecoate
}
{
DataSave
.
community
BuildDecorate
}
#
{
DataSave
.
communityFloorD
ecorate
}
-
{
DataSave
.
community
RoomD
ecoate
}
</
Col
>
</
Row
>
<
Row
gutter=
{
8
}
style=
{
{
marginTop
:
16
}
}
>
<
Col
>
Address:
</
Col
>
<
Col
>
{
DataSave
.
owner
Address
}
</
Col
>
<
Col
>
{
DataSave
.
tosCommunityModel
.
residential
Address
}
</
Col
>
</
Row
>
<
Row
gutter=
{
8
}
style=
{
{
marginTop
:
16
}
}
>
<
Col
>
Owner Name:
</
Col
>
<
Col
span=
{
3
}
>
{
DataSave
.
applyfor
_n
ame
}
</
Col
>
<
Col
span=
{
3
}
>
{
DataSave
.
applyfor
N
ame
}
</
Col
>
<
Col
>
Phone:
</
Col
>
<
Col
>
{
DataSave
.
applyfor_p
hone
}
</
Col
>
<
Col
>
{
DataSave
.
contactP
hone
}
</
Col
>
</
Row
>
<
Line
></
Line
>
<
Row
gutter=
{
8
}
style=
{
{
marginTop
:
16
}
}
>
<
Col
span=
{
3
}
>
Contract Name:
</
Col
>
<
Col
span=
{
3
}
>
{
DataSave
.
contact
_n
ame
}
</
Col
>
<
Col
>
Phone:
</
Col
>
<
Col
>
{
DataSave
.
contact
_p
hone
}
</
Col
>
<
Col
span=
{
3
}
>
{
DataSave
.
contact
N
ame
}
</
Col
>
<
Col
span=
{
3
}
>
Phone:
</
Col
>
<
Col
>
{
DataSave
.
contact
P
hone
}
</
Col
>
</
Row
>
<
Row
gutter=
{
8
}
style=
{
{
marginTop
:
16
}
}
>
<
Col
span=
{
3
}
>
Time:
</
Col
>
<
Col
span=
{
3
}
>
{
timestampToTime
(
DataSave
.
decorationBegin
_time
.
t
ime
)
}
</
Col
>
<
Col
>
{
timestampToTime
(
DataSave
.
decorationEnd
_time
.
t
ime
)
}
</
Col
>
<
Col
span=
{
3
}
>
{
timestampToTime
(
DataSave
.
decorationBegin
T
ime
)
}
</
Col
>
<
Col
>
{
timestampToTime
(
DataSave
.
decorationEnd
T
ime
)
}
</
Col
>
</
Row
>
<
Row
gutter=
{
8
}
style=
{
{
marginTop
:
16
}
}
>
<
Col
span=
{
3
}
>
Reason:
</
Col
>
...
...
@@ -107,14 +107,14 @@ const RenovationDetail = (props: any) => {
<
TextArea
autoSize
disabled
value=
{
DataSave
.
decoration
_c
ontent
}
value=
{
DataSave
.
decoration
C
ontent
}
style=
{
{
width
:
300
,
minHeight
:
100
,
padding
:
8
,
resize
:
'none'
}
}
></
TextArea
>
</
Col
>
</
Row
>
<
Line
></
Line
>
{
DataSave
.
decoration
_status
===
0
?
(
{
DataSave
.
decoration
Status
===
'0'
?
(
<>
<
Form
ref=
{
formRef
}
name=
"basic"
onFinish=
{
onFinish
}
>
<
Row
gutter=
{
8
}
style=
{
{
marginTop
:
16
}
}
>
...
...
@@ -153,17 +153,17 @@ const RenovationDetail = (props: any) => {
<>
<
Row
>
<
Col
span=
{
3
}
>
replier:
</
Col
>
<
Col
span=
{
3
}
>
{
DataSave
.
reply
_n
ame
}
</
Col
>
<
Col
>
Phone:
</
Col
>
<
Col
>
{
DataSave
.
reply
_p
hone
}
</
Col
>
<
Col
span=
{
3
}
>
{
DataSave
.
reply
N
ame
}
</
Col
>
<
Col
span=
{
3
}
>
Phone:
</
Col
>
<
Col
>
{
DataSave
.
reply
P
hone
}
</
Col
>
</
Row
>
<
Row
gutter=
{
8
}
style=
{
{
marginTop
:
16
}
}
>
<
Col
span=
{
3
}
>
Approval For Application:
</
Col
>
<
Col
>
<
Radio
.
Group
value=
{
DataSave
.
decoration
_s
tatus
}
>
<
Radio
.
Button
value=
{
1
}
>
Agree
</
Radio
.
Button
>
{
' '
}
<
Radio
.
Button
style=
{
{
marginLeft
:
10
}
}
value=
{
2
}
>
<
Radio
.
Group
value=
{
DataSave
.
decoration
S
tatus
}
>
<
Radio
.
Button
value=
{
'1'
}
>
Agree
</
Radio
.
Button
>
{
' '
}
<
Radio
.
Button
style=
{
{
marginLeft
:
10
}
}
value=
{
'2'
}
>
Reject
</
Radio
.
Button
>
</
Radio
.
Group
>
...
...
@@ -176,7 +176,7 @@ const RenovationDetail = (props: any) => {
<
TextArea
style=
{
{
width
:
300
,
minHeight
:
100
,
padding
:
8
,
resize
:
'none'
}
}
disabled
value=
{
DataSave
.
reply
_v
iew
}
value=
{
DataSave
.
reply
V
iew
}
></
TextArea
>
</
Col
>
</
Row
>
...
...
src/pages/user/login/index.tsx
View file @
598f4ac7
...
...
@@ -24,14 +24,20 @@ const Login: React.FC<LoginProps> = (props) => {
const
[
timing
,
setTiming
]
=
useState
(
false
);
// 提交按钮
const
handleSubmit
=
(
values
:
LoginParamsType
)
=>
{
const
handleSubmit
=
async
(
values
:
LoginParamsType
)
=>
{
console
.
log
(
values
);
if
(
forgetflag
)
{
console
.
log
(
'校验验证码!'
);
// ValidateCaptcha({account,code})
if
(
true
)
{
console
.
log
(
userName
);
console
.
log
(
values
);
const
res
=
await
ValidateCaptcha
({
account
:
values
.
userName
,
code
:
values
.
code
});
console
.
log
(
res
);
if
(
res
.
error_code
===
'0000'
)
{
console
.
log
(
'通过跳转到修改密码页面'
);
history
.
push
(
'login2'
);
}
else
{
message
.
error
(
'membercode!'
);
}
}
else
{
if
(
values
.
userName
&&
values
.
password
)
{
...
...
@@ -85,16 +91,12 @@ const Login: React.FC<LoginProps> = (props) => {
const
onGetCaptcha
=
useCallback
(
async
(
email
:
string
)
=>
{
// getFakeCaptcha
// getCaptcha
message
.
success
(
'Has Been Sent!'
);
setTiming
(
true
);
const
result
=
await
getCaptcha
({
account
:
email
});
console
.
log
(
result
);
return
;
if
(
result
===
false
)
{
return
;
if
(
result
.
error_code
===
'0000'
)
{
message
.
success
(
'Has Been Sent!'
);
}
setTiming
(
true
);
},
[]);
useEffect
(()
=>
{
...
...
@@ -138,14 +140,16 @@ const Login: React.FC<LoginProps> = (props) => {
</
div
>
{
forgetflag
?
(
<
div
className=
{
styles
.
box2
}
>
<
input
className=
{
styles
.
input5
}
/>
<
Form
.
Item
name=
"code"
initialValue=
""
>
<
input
className=
{
styles
.
input5
}
/>
</
Form
.
Item
>
<
div
className=
{
styles
.
button2
}
style=
{
{
float
:
'right'
}
}
onClick=
{
handleSend
}
>
{
timing
?
`${count} 秒`
:
'Send'
}
</
div
>
</
div
>
)
:
(
<
div
>
<
Form
.
Item
name=
"password"
initialValue=
{
userName
||
''
}
>
<
Form
.
Item
name=
"password"
initialValue=
""
>
<
input
className=
{
styles
.
input2
}
type=
"password"
/>
</
Form
.
Item
>
<
div
>
...
...
src/pages/user/login/login2.tsx
View file @
598f4ac7
...
...
@@ -3,7 +3,7 @@ import { message, Form, Input, Button } from 'antd';
import
styles
from
'./style.less'
;
interface
Password
{
password
:
st
ir
ng
;
password
:
st
ri
ng
;
}
const
Login2
=
(
props
:
any
)
=>
{
...
...
src/services/login.ts
View file @
598f4ac7
...
...
@@ -3,6 +3,7 @@ import request from '@/utils/request';
export
interface
LoginParamsType
{
userName
:
string
;
password
:
string
;
code
:
string
;
}
export
interface
CodeType
{
account
:
string
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment