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
c66f055c
Commit
c66f055c
authored
Oct 27, 2020
by
Sixiang_Zzb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
小区保养列表显示 bug处理
parent
0837b343
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
328 additions
and
252 deletions
+328
-252
SearchOptionsTow.tsx
src/components/SearchOptions/SearchOptionsTow.tsx
+0
-1
CommunityService.ts
src/models/CommunityManagement/CommunityService.ts
+99
-93
Detail.tsx
src/pages/CommercialService/Detail.tsx
+120
-85
PropertyServices.tsx
src/pages/CommercialService/PropertyServices.tsx
+13
-11
Renovation.tsx
src/pages/CommercialService/Renovation.tsx
+96
-62
No files found.
src/components/SearchOptions/SearchOptionsTow.tsx
View file @
c66f055c
...
@@ -13,7 +13,6 @@ const SearchOptionsTow = (porps: any) => {
...
@@ -13,7 +13,6 @@ const SearchOptionsTow = (porps: any) => {
// console.log(`selected ${value}`);
// console.log(`selected ${value}`);
extendName
(
value
);
extendName
(
value
);
}
}
console
.
log
(
def
);
return
(
return
(
<
div
>
<
div
>
<
Select
<
Select
...
...
src/models/CommunityManagement/CommunityService.ts
View file @
c66f055c
...
@@ -2,7 +2,7 @@ import * as service from '@/services/tos';
...
@@ -2,7 +2,7 @@ import * as service from '@/services/tos';
import
{
message
}
from
'antd'
;
import
{
message
}
from
'antd'
;
import
{
Link
,
useIntl
,
connect
,
Dispatch
,
history
}
from
'umi'
;
import
{
Link
,
useIntl
,
connect
,
Dispatch
,
history
}
from
'umi'
;
import
{
routerRedux
}
from
'dva/router'
import
{
routerRedux
}
from
'dva/router'
;
import
{
timestampToTime
,
timestampToTime4
}
from
'@/utils/time'
;
import
{
timestampToTime
,
timestampToTime4
}
from
'@/utils/time'
;
import
{
picFromate
,
Fromate
}
from
'@/utils/method'
;
import
{
picFromate
,
Fromate
}
from
'@/utils/method'
;
...
@@ -11,13 +11,13 @@ export default {
...
@@ -11,13 +11,13 @@ export default {
namespace
:
'CommunityService'
,
namespace
:
'CommunityService'
,
state
:
{
state
:
{
Data
:
null
,
Data
:
null
,
DataSave
:
null
,
DataSave
:
null
,
CurData
:
null
,
CurData
:
null
,
CurDataDetail
:
null
,
CurDataDetail
:
null
,
Data7
:
null
,
Data7
:
null
,
Data8
:
null
,
Data8
:
null
,
Result
:
null
,
Result
:
null
,
DataSaveDetail
:
null
,
DataSaveDetail
:
null
,
},
},
reducers
:
{
reducers
:
{
...
@@ -25,7 +25,7 @@ export default {
...
@@ -25,7 +25,7 @@ export default {
return
{
...
state
,
Data
};
return
{
...
state
,
Data
};
},
},
returnDataSave
(
state
,
{
DataSave
})
{
returnDataSave
(
state
,
{
DataSave
})
{
return
{
...
state
,
DataSave
}
return
{
...
state
,
DataSave
}
;
},
},
returnCurData
(
state
,
{
CurData
})
{
returnCurData
(
state
,
{
CurData
})
{
return
{
...
state
,
CurData
};
return
{
...
state
,
CurData
};
...
@@ -45,86 +45,94 @@ export default {
...
@@ -45,86 +45,94 @@ export default {
returnDataSaveDetail
(
state
,
{
DataSaveDetail
})
{
returnDataSaveDetail
(
state
,
{
DataSaveDetail
})
{
return
{
...
state
,
DataSaveDetail
};
return
{
...
state
,
DataSaveDetail
};
},
},
},
},
effects
:
{
effects
:
{
//预订设施查询
//预订设施查询
*
RA
({
playload
},
{
call
,
put
})
{
*
RA
({
playload
},
{
call
,
put
})
{
switch
(
playload
.
index
)
{
switch
(
playload
.
index
)
{
case
40
:
{
case
40
:
var
Data
=
null
{
yield
put
({
type
:
'returnPage'
,
Data
});
var
Data
=
null
;
}
break
;
yield
put
({
type
:
'returnPage'
,
Data
});
}
break
;
}
}
const
resp
=
yield
call
(
service
.
RA
,
playload
);
const
resp
=
yield
call
(
service
.
RA
,
playload
);
console
.
log
(
resp
)
console
.
log
(
resp
);
if
(
resp
.
code
==
500
||
resp
.
error_code
!=
"0000"
)
{
if
(
resp
.
code
==
500
||
resp
.
error_code
!=
'0000'
)
{
// window.location.href = '/500';
// window.location.href = '/500';
}
}
if
(
resp
.
error_code
!=
"0000"
)
{
if
(
resp
.
error_code
!=
'0000'
)
{
console
.
log
(
"请求错误码:"
+
"("
+
playload
.
index
+
")"
+
resp
.
error_code
)
console
.
log
(
'请求错误码:'
+
'('
+
playload
.
index
+
')'
+
resp
.
error_code
);
console
.
log
(
playload
)
console
.
log
(
playload
);
}
else
{
}
else
{
switch
(
playload
.
index
)
{
switch
(
playload
.
index
)
{
case
21
:
case
21
:
{
{
var
tmp
=
resp
.
data
.
rows
[
0
].
tosOwerModel
;
var
tmp
=
resp
.
data
.
rows
[
0
].
tosOwerModel
;
var
tmp2
=
resp
.
data
.
rows
[
0
];
var
tmp2
=
resp
.
data
.
rows
[
0
];
console
.
log
(
resp
.
data
.
rows
[
0
].
replyImgUrl
)
console
.
log
(
resp
.
data
.
rows
[
0
].
replyImgUrl
);
console
.
log
(
Fromate
(
resp
.
data
.
rows
[
0
].
replyImgUrl
,[[
"url"
,
null
]]))
console
.
log
(
Fromate
(
resp
.
data
.
rows
[
0
].
replyImgUrl
,
[[
'url'
,
null
]]));
var
CurDataDetail
=
{
var
CurDataDetail
=
{
community
:
tmp
.
communityName
,
community
:
tmp
.
communityName
,
address
:
tmp
.
addressAndpostalCode
,
address
:
tmp
.
addressAndpostalCode
,
home
:
tmp
.
buildingNumber
+
"#"
+
tmp
.
floorNumber
+
"-"
+
tmp
.
roomNumber
,
home
:
tmp
.
buildingNumber
+
'#'
+
tmp
.
floorNumber
+
'-'
+
tmp
.
roomNumber
,
name
:
tmp
.
owerName
,
name
:
tmp
.
owerName
,
phone
:
tmp
.
accountLogin
!=
null
?
tmp
.
accountLogin
:
tmp
.
owerPhone
,
phone
:
tmp
.
accountLogin
!=
null
?
tmp
.
accountLogin
:
tmp
.
owerPhone
,
email
:
tmp
.
owerEmail
,
email
:
tmp
.
owerEmail
,
content
:
resp
.
data
.
rows
[
0
].
serviceContent
,
content
:
resp
.
data
.
rows
[
0
].
serviceContent
,
replyContent
:
resp
.
data
.
rows
[
0
].
replyContent
,
replyContent
:
resp
.
data
.
rows
[
0
].
replyContent
,
replyImgUrl
:
Fromate
(
resp
.
data
.
rows
[
0
].
replyImgUrl
,[[
"url"
,
null
]]),
replyImgUrl
:
Fromate
(
resp
.
data
.
rows
[
0
].
replyImgUrl
,
[[
'url'
,
null
]]),
status
:
tmp2
.
handleStatus
,
status
:
tmp2
.
handleStatus
,
pictrues
:
picFromate
(
tmp2
.
imgUrl
),
pictrues
:
picFromate
(
tmp2
.
imgUrl
),
time
:
timestampToTime4
(
tmp2
.
createTime
.
time
)
time
:
timestampToTime4
(
tmp2
.
createTime
.
time
),
};
};
yield
put
({
type
:
'returnCurDataDetail'
,
CurDataDetail
,
});
yield
put
({
type
:
'returnCurDataDetail'
,
CurDataDetail
});
}
break
;
}
break
;
case
33
:
case
33
:
case
22
:
{
case
22
:
message
.
success
(
"Success Operation!"
,
3
)
{
history
.
go
(
-
1
)
message
.
success
(
'Success Operation!'
,
3
);
history
.
go
(
-
1
);
// history.push("/CommercialService/CommunityMaintenance")
// history.push("/CommercialService/CommunityMaintenance")
}
break
;
}
case
23
:
{
break
;
case
23
:
{
let
Data8
=
resp
;
let
Data8
=
resp
;
yield
put
({
type
:
'returnPage8'
,
Data8
,
});
yield
put
({
type
:
'returnPage8'
,
Data8
});
}
break
;
}
case
31
:
{
break
;
case
31
:
{
let
Data7
=
resp
;
let
Data7
=
resp
;
yield
put
({
type
:
'returnPage7'
,
Data7
})
yield
put
({
type
:
'returnPage7'
,
Data7
});
}
break
;
}
case
35
:
{
break
;
case
35
:
{
let
Result
=
resp
;
let
Result
=
resp
;
yield
put
({
type
:
'returnResult'
,
Result
})
yield
put
({
type
:
'returnResult'
,
Result
});
}
break
;
}
break
;
case
37
:
case
37
:
case
36
:
{
case
36
:
{
let
DataSaveDetail
=
resp
;
let
DataSaveDetail
=
resp
;
yield
put
({
type
:
'returnDataSaveDetail'
,
DataSaveDetail
,
});
yield
put
({
type
:
'returnDataSaveDetail'
,
DataSaveDetail
});
}
break
;
}
case
40
:
{
break
;
case
40
:
{
let
Data
=
resp
;
let
Data
=
resp
;
yield
put
({
type
:
'returnPage'
,
Data
,
});
yield
put
({
type
:
'returnPage'
,
Data
});
}
break
;
}
break
;
}
}
}
}
},
},
// *TosCommunityServiceGetDetail({ playload }, { call, put }) {
// *TosCommunityServiceGetDetail({ playload }, { call, put }) {
...
@@ -154,25 +162,23 @@ export default {
...
@@ -154,25 +162,23 @@ export default {
// },
// },
*
SA
({
playload
},
{
call
,
put
})
{
*
SA
({
playload
},
{
call
,
put
})
{
var
DataSave
=
playload
;
var
DataSave
=
playload
;
yield
put
({
type
:
'returnDataSave'
,
DataSave
,
});
yield
put
({
type
:
'returnDataSave'
,
DataSave
});
},
},
*
setCurData
({
playload
},
{
call
,
put
})
{
*
setCurData
({
playload
},
{
call
,
put
})
{
var
CurData
=
playload
;
var
CurData
=
playload
;
yield
put
({
type
:
'returnCurData'
,
CurData
,
});
yield
put
({
type
:
'returnCurData'
,
CurData
});
},
},
*
setCurDataDetail
({
playload
},
{
call
,
put
})
{
*
setCurDataDetail
({
playload
},
{
call
,
put
})
{
var
CurDataDetail
=
null
var
CurDataDetail
=
null
;
yield
put
({
type
:
'returnCurDataDetail'
,
CurDataDetail
,
});
yield
put
({
type
:
'returnCurDataDetail'
,
CurDataDetail
});
},
},
*
ResultClear
({},
{
put
})
{
*
ResultClear
({
},
{
put
})
{
var
Result
=
null
;
var
Result
=
null
console
.
log
(
'清除'
);
console
.
log
(
"清除"
)
yield
put
({
type
:
'returnResult'
,
Result
});
yield
put
({
type
:
'returnResult'
,
Result
}
)
},
},
},
},
};
};
src/pages/CommercialService/Detail.tsx
View file @
c66f055c
This diff is collapsed.
Click to expand it.
src/pages/CommercialService/PropertyServices.tsx
View file @
c66f055c
...
@@ -10,12 +10,13 @@ import TitleSearch from '../../components/TitleSearch/TitleSearch';
...
@@ -10,12 +10,13 @@ import TitleSearch from '../../components/TitleSearch/TitleSearch';
import
{
RA
,
urlEncode
,
filterObj
,
filterObjbyTg
}
from
'@/utils/method'
;
import
{
RA
,
urlEncode
,
filterObj
,
filterObjbyTg
}
from
'@/utils/method'
;
const
pathname
=
[
const
pathname
=
[
'CommunityMaintenance'
,
'CommunityMaintenance'
,
// 小区保养
'ShelfLifeService'
,
'ShelfLifeService'
,
// 保质期服务
'OwnerComplaints'
,
'OwnerComplaints'
,
// 业主投诉
'ReportOnline'
,
'ReportOnline'
,
// 在线报事
'ProblemFeedback'
,
'ProblemFeedback'
,
// 问题反馈
];
];
const
handle_Status
=
[
const
handle_Status
=
[
[
0
,
'Pending'
],
[
0
,
'Pending'
],
[
1
,
'Processed'
],
[
1
,
'Processed'
],
...
@@ -25,7 +26,7 @@ const goToName = ['Reply', 'Detail'];
...
@@ -25,7 +26,7 @@ const goToName = ['Reply', 'Detail'];
const
module
=
'CommunityService'
;
const
module
=
'CommunityService'
;
// 页码
// 页码
let
pageNum
=
1
;
let
pageNum
:
number
=
1
;
const
PropertyServices
=
(
props
:
any
)
=>
{
const
PropertyServices
=
(
props
:
any
)
=>
{
const
{
dispatch
,
location
,
Data
}
=
props
;
const
{
dispatch
,
location
,
Data
}
=
props
;
...
@@ -38,13 +39,15 @@ const PropertyServices = (props: any) => {
...
@@ -38,13 +39,15 @@ const PropertyServices = (props: any) => {
const
columns
=
[
const
columns
=
[
{
title
:
'Community Name'
,
dataIndex
:
'community_name'
},
{
title
:
'Community Name'
,
dataIndex
:
'community_name'
},
{
title
:
'Ower Name'
,
dataIndex
:
'ower_name'
},
{
title
:
'Ower Name'
,
dataIndex
:
'ower_name'
},
{
{
title
:
'service
Content'
,
title
:
parseInt
(
serviceTypeGobal
)
-
1
===
0
?
'Replier'
:
'
Content'
,
dataIndex
:
'service_content'
,
dataIndex
:
parseInt
(
serviceTypeGobal
)
-
1
===
0
?
'handle_name'
:
'service_content'
,
ellipsis
:
true
,
ellipsis
:
true
,
width
:
5
00
,
width
:
4
00
,
render
:
(
text
:
any
)
=>
<
Space
size=
"middle"
>
{
text
!=
null
?
text
:
'--'
}
</
Space
>,
render
:
(
text
:
any
)
=>
<
Space
size=
"middle"
>
{
text
!=
null
?
text
:
'--'
}
</
Space
>,
},
},
{
{
title
:
'Create Time'
,
title
:
'Create Time'
,
dataIndex
:
'create_time'
,
dataIndex
:
'create_time'
,
...
@@ -109,7 +112,6 @@ const PropertyServices = (props: any) => {
...
@@ -109,7 +112,6 @@ const PropertyServices = (props: any) => {
var
tmp
:
any
=
filterObjbyTg
(
location
.
query
,
[
'handleStatus'
,
'ownerName'
,
'communityName'
]);
var
tmp
:
any
=
filterObjbyTg
(
location
.
query
,
[
'handleStatus'
,
'ownerName'
,
'communityName'
]);
tmp
.
handleStatus
=
handle_Status
[
parseInt
(
tmp
.
handleStatus
)];
//特殊处理
tmp
.
handleStatus
=
handle_Status
[
parseInt
(
tmp
.
handleStatus
)];
//特殊处理
setReadyData
(
tmp
);
setReadyData
(
tmp
);
console
.
log
(
tmp
);
//获取数据
//获取数据
setLoading
(
true
);
setLoading
(
true
);
RA
(
RA
(
...
@@ -138,7 +140,7 @@ const PropertyServices = (props: any) => {
...
@@ -138,7 +140,7 @@ const PropertyServices = (props: any) => {
const
ClickTitleSearch
=
(
comment
:
any
)
=>
{
const
ClickTitleSearch
=
(
comment
:
any
)
=>
{
//页面搜索
//页面搜索
comment
.
serviceType
=
serviceTypeGobal
;
//
comment.serviceType = serviceTypeGobal;
comment
.
pageNum
=
1
;
comment
.
pageNum
=
1
;
history
.
push
(
location
.
pathname
+
urlEncode
(
filterObj
(
comment
)));
history
.
push
(
location
.
pathname
+
urlEncode
(
filterObj
(
comment
)));
};
};
...
...
src/pages/CommercialService/Renovation.tsx
View file @
c66f055c
...
@@ -10,72 +10,107 @@ import { RA, SA, urlEncode, filterObj, filterObjbyTg } from '@/utils/method';
...
@@ -10,72 +10,107 @@ import { RA, SA, urlEncode, filterObj, filterObjbyTg } from '@/utils/method';
import
{
objectColumns
,
stringTab
}
from
'@/utils/string'
;
import
{
objectColumns
,
stringTab
}
from
'@/utils/string'
;
import
{
timestampToTime
}
from
'@/utils/time'
;
import
{
timestampToTime
}
from
'@/utils/time'
;
const
module
=
"CommunityService"
const
module
=
'CommunityService'
;
const
Renovation
=
(
props
:
any
)
=>
{
const
Renovation
=
(
props
:
any
)
=>
{
// const decoration_status = [[0, "待处理"], [1, "已批准"], [2, "已拒绝"]]
// const decoration_status = [[0, "待处理"], [1, "已批准"], [2, "已拒绝"]]
const
decoration_status
=
[[
0
,
"Pending"
],
[
1
,
"Approved"
],
[
2
,
"Rejected"
]]
const
decoration_status
=
[
const
pathname
=
[
"CommunityMaintenance"
,
"ShelfLifeService"
,
"OwnerComplaints"
,
"ReportOnline"
,
"ProblemFeedback"
]
[
0
,
'Pending'
],
[
1
,
'Approved'
],
const
[
loading
,
setLoading
]
=
useState
(
false
)
[
2
,
'Rejected'
],
const
[
serviceTypeGobal
,
setServiceType
]
=
useState
(
""
)
];
const
[
pageNum
,
setPageNum
]
=
useState
(
1
)
const
pathname
=
[
const
[
readyData
,
setReadyData
]
=
useState
(
null
)
'CommunityMaintenance'
,
'ShelfLifeService'
,
'OwnerComplaints'
,
'ReportOnline'
,
'ProblemFeedback'
,
];
const
[
loading
,
setLoading
]
=
useState
(
false
);
const
[
serviceTypeGobal
,
setServiceType
]
=
useState
(
''
);
const
[
pageNum
,
setPageNum
]
=
useState
(
1
);
const
[
readyData
,
setReadyData
]
=
useState
(
null
);
const
columns
=
objectColumns
([
const
columns
=
objectColumns
([
[
"Community"
,
"community_name"
],
[
'Community'
,
'community_name'
],
[
"Applicant"
,
"applyfor_name"
],
[
'Applicant'
,
'applyfor_name'
],
[
"Unit"
,
null
,
(
text
:
any
,
record
:
any
)
=>
(<
div
>
{
record
.
community_build_decorate
}
#
{
record
.
community_floor_decorate
}
-
{
record
.
community_room_decoate
}
</
div
>)],
[
[
"Content"
,
"decoration_content"
,
(
text
:
any
)
=>
(<
div
>
{
stringTab
(
text
)
}
</
div
>)],
'Unit'
,
[
"Request Time"
,
"create_time"
,
(
text
:
any
)
=>
(<
div
>
{
timestampToTime
(
text
.
time
)
}
</
div
>)],
null
,
[
"status"
,
"decoration_status"
,
(
text
:
any
)
=>
(<
div
>
{
decoration_status
[
parseInt
(
text
)][
1
]
}
</
div
>)],
(
text
:
any
,
record
:
any
)
=>
(
[
"Actions"
,
"decoration_status"
,
(
text
:
any
,
record
:
any
)
=>
(<
Space
size=
"middle"
>
<
a
onClick=
{
goToDetail
.
bind
(
this
,
record
)
}
>
{
text
===
0
?
"Reply"
:
"Detail"
}
</
a
></
Space
>)],
<
div
>
])
{
record
.
community_build_decorate
}
#
{
record
.
community_floor_decorate
}
-
{
record
.
community_room_decoate
}
</
div
>
),
],
[
'Content'
,
'decoration_content'
,
(
text
:
any
)
=>
<
div
>
{
stringTab
(
text
)
}
</
div
>],
[
'Request Time'
,
'create_time'
,
(
text
:
any
)
=>
<
div
>
{
timestampToTime
(
text
.
time
)
}
</
div
>],
[
'status'
,
'decoration_status'
,
(
text
:
any
)
=>
<
div
>
{
decoration_status
[
parseInt
(
text
)][
1
]
}
</
div
>,
],
[
'Actions'
,
'decoration_status'
,
(
text
:
any
,
record
:
any
)
=>
(
<
Space
size=
"middle"
>
{
' '
}
<
a
onClick=
{
goToDetail
.
bind
(
this
,
record
)
}
>
{
text
===
0
?
'Reply'
:
'Detail'
}
</
a
>
</
Space
>
),
],
]);
const
{
dispatch
,
Data8
,
location
}
=
props
;
const
{
dispatch
,
Data8
,
location
}
=
props
;
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
Data8
!=
null
)
{
setLoading
(
false
)
}
},
[
Data8
]);
useEffect
(()
=>
{
if
(
location
!=
null
)
{
if
(
location
!=
null
)
{
//前置数据
//前置数据
console
.
log
(
"前置数据"
);
console
.
log
(
'前置数据'
);
let
tmp
:
any
=
filterObjbyTg
(
location
.
query
,
[
"handleStatus"
,
"ownerName"
,
"communityName"
,
"current"
])
let
tmp
:
any
=
filterObjbyTg
(
location
.
query
,
[
tmp
.
handleStatus
=
decoration_status
[
parseInt
(
tmp
.
handleStatus
)]
//特殊处理
'handleStatus'
,
'ownerName'
,
setReadyData
(
tmp
)
'communityName'
,
'current'
,
]);
tmp
.
handleStatus
=
decoration_status
[
parseInt
(
tmp
.
handleStatus
)];
//特殊处理
setReadyData
(
tmp
);
//获取数据
//获取数据
setLoading
(
true
)
setLoading
(
true
)
;
RA
(
23
,
{
serviceType
:
"6"
,
id
:
""
},
module
,
dispatch
)
RA
(
23
,
{
serviceType
:
'6'
,
id
:
''
},
module
,
dispatch
);
}
}
},
[
location
]);
},
[
location
])
useEffect
(()
=>
{
if
(
Data8
!=
null
)
{
setLoading
(
false
);
}
},
[
Data8
]);
//页面搜索
//页面搜索
const
ClickTitleSearch
=
(
comment
:
any
)
=>
{
const
ClickTitleSearch
=
(
comment
:
any
)
=>
{
let
tmp
=
filterObjbyTg
(
comment
,
[
"handleStatus"
,
"ownerName"
,
"communityName"
])
let
tmp
=
filterObjbyTg
(
comment
,
[
'handleStatus'
,
'ownerName'
,
'communityName'
]);
tmp
[
"current"
]
=
1
tmp
[
'current'
]
=
1
;
history
.
push
(
location
.
pathname
+
urlEncode
(
tmp
))
history
.
push
(
location
.
pathname
+
urlEncode
(
tmp
))
;
}
}
;
const
goToDetail
=
(
values
:
any
,
e
:
any
)
=>
{
const
goToDetail
=
(
values
:
any
,
e
:
any
)
=>
{
SA
(
values
,
module
,
dispatch
)
SA
(
values
,
module
,
dispatch
)
;
history
.
push
(
'./RenovationApplication/Detail'
)
history
.
push
(
'./RenovationApplication/Detail'
)
;
}
}
;
return
(
return
(
<
div
style=
{
{
width
:
"100%"
,
minWidth
:
1020
,
padding
:
34
,
backgroundColor
:
"#ffffff"
}
}
>
<
div
style=
{
{
width
:
'100%'
,
minWidth
:
1020
,
padding
:
34
,
backgroundColor
:
'#ffffff'
}
}
>
{
{
Data8
!=
null
?
(
Data8
!=
null
?
<>
<>
<
TitleSearch
<
TitleSearch
communitySelect=
{
true
}
communitySelect=
{
true
}
listkey=
{
[
'ownerName'
]
}
listkey=
{
[
'ownerName'
]
}
list=
{
[
'Owner Name'
]
}
list=
{
[
'Owner Name'
]
}
status=
{
[{
name
:
[
"handleStatus"
,
"Status"
],
data
:
decoration_status
}]
}
status=
{
[{
name
:
[
'handleStatus'
,
'Status'
],
data
:
decoration_status
}]
}
defaultValue=
{
readyData
}
defaultValue=
{
readyData
}
onSubmit=
{
ClickTitleSearch
}
onSubmit=
{
ClickTitleSearch
}
/>
/>
...
@@ -88,14 +123,13 @@ const Renovation = (props: any) => {
...
@@ -88,14 +123,13 @@ const Renovation = (props: any) => {
pagination=
{
{
defaultCurrent
:
1
,
total
:
Data8
.
total
}
}
pagination=
{
{
defaultCurrent
:
1
,
total
:
Data8
.
total
}
}
/>
/>
</>
</>
:
null
)
:
null
}
}
</
div
>
</
div
>
);
);
};
};
function
map
(
state
:
any
)
{
function
map
(
state
:
any
)
{
const
{
Data8
}
=
state
[
module
]
const
{
Data8
}
=
state
[
module
]
;
return
{
Data8
}
return
{
Data8
}
;
}
}
export
default
connect
(
map
)(
Renovation
);
export
default
connect
(
map
)(
Renovation
);
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