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
c292964a
Commit
c292964a
authored
Nov 13, 2020
by
Sixiang_Zzb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
装修申请和住户卡测试问题修复
parent
160cecc8
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
188 additions
and
194 deletions
+188
-194
CommunityService.ts
src/models/CommunityManagement/CommunityService.ts
+1
-0
CardDetail.tsx
src/pages/CommercialService/CardDetail.tsx
+153
-159
Renovation.tsx
src/pages/CommercialService/Renovation.tsx
+11
-10
RenovationDetail.tsx
src/pages/CommercialService/RenovationDetail.tsx
+22
-24
login2.tsx
src/pages/user/login/login2.tsx
+1
-1
No files found.
src/models/CommunityManagement/CommunityService.ts
View file @
c292964a
...
...
@@ -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 @
c292964a
import
React
,
{
useState
,
useEffect
,
useRef
}
from
'react'
;
import
{
Input
,
Tabs
,
Row
,
Col
,
Button
,
Form
,
Radio
,
message
}
from
'antd'
;
import
{
Spin
,
Tabs
,
Row
,
Col
,
Button
,
Form
,
Radio
,
message
}
from
'antd'
;
const
{
TabPane
}
=
Tabs
;
import
{
connect
,
history
}
from
'umi'
;
...
...
@@ -25,13 +25,7 @@ const apply_relation_owner = ['Oneself', 'Family Members', 'Tenant '];
const
CardDetail
=
(
props
:
any
)
=>
{
const
{
dispatch
,
Data
,
DataSave
,
DataSaveDetail
}
=
props
;
const
formRef
=
useRef
(
null
);
// useEffect(() => {
// if (DataSaveDetail != null) {
// console.log(DataSaveDetail);
// }
// }, [DataSaveDetail]);
const
[
loading
,
setLoading
]
=
useState
(
false
);
useEffect
(()
=>
{
if
(
DataSave
!=
null
)
{
console
.
log
(
DataSave
);
...
...
@@ -58,12 +52,11 @@ const CardDetail = (props: any) => {
type
:
'7'
,
};
RA
(
34
,
tmp
,
module
,
dispatch
);
// message.success('Success Operation!');
// history.push('/CommercialService/AccessCardApplication');
// history.go(-1);
setLoading
(
true
);
};
return
(
<
Spin
size=
"large"
spinning=
{
loading
}
>
<
div
style=
{
{
width
:
'100%'
,
minWidth
:
1020
,
padding
:
34
,
backgroundColor
:
'#ffffff'
}
}
>
{
DataSave
!=
null
?
(
<>
...
...
@@ -222,6 +215,7 @@ const CardDetail = (props: any) => {
</>
)
:
null
}
</
div
>
</
Spin
>
);
};
...
...
src/pages/CommercialService/Renovation.tsx
View file @
c292964a
...
...
@@ -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 @
c292964a
...
...
@@ -51,9 +51,7 @@ const RenovationDetail = (props: any) => {
};
RA
(
33
,
tmp
,
module
,
dispatch
);
// message.success('Success Operation!');
// history.push('/CommercialService/RenovationApplication');
// history.go(-1);
setLoading
(
true
);
};
return
(
...
...
@@ -63,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=
{
DataSave
.
decoration
_s
tatus
===
0
?
'Renovation Reply'
:
'Renovation Detail'
}
title=
{
DataSave
.
decoration
S
tatus
===
0
?
'Renovation Reply'
:
'Renovation Detail'
}
></
TitleBack
>
<
Row
gutter=
{
8
}
>
<
Col
>
Community:
</
Col
>
<
Col
span=
{
3
}
>
{
DataSave
.
community
_n
ame
}
</
Col
>
<
Col
span=
{
3
}
>
{
DataSave
.
community
N
ame
}
</
Col
>
<
Col
>
Unit:
</
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
.
contact
_p
hone
}
</
Col
>
<
Col
>
{
DataSave
.
contact
P
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
span=
{
3
}
>
{
DataSave
.
contact
N
ame
}
</
Col
>
<
Col
span=
{
3
}
>
Phone:
</
Col
>
<
Col
>
{
DataSave
.
contact
_p
hone
}
</
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
>
...
...
@@ -109,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
}
}
>
...
...
@@ -155,17 +153,17 @@ const RenovationDetail = (props: any) => {
<>
<
Row
>
<
Col
span=
{
3
}
>
replier:
</
Col
>
<
Col
span=
{
3
}
>
{
DataSave
.
reply
_n
ame
}
</
Col
>
<
Col
span=
{
3
}
>
{
DataSave
.
reply
N
ame
}
</
Col
>
<
Col
span=
{
3
}
>
Phone:
</
Col
>
<
Col
>
{
DataSave
.
reply
_p
hone
}
</
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
>
...
...
@@ -178,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/login2.tsx
View file @
c292964a
...
...
@@ -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
)
=>
{
...
...
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