Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mp_estate_client
Project
Project
Details
Activity
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
mp_estate_backstage
mp_estate_client
Commits
36f8e28a
Commit
36f8e28a
authored
Sep 07, 2020
by
成旭东
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
66008740
Pipeline
#27968
passed with stage
in 2 minutes 23 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
18 deletions
+19
-18
index.tsx
src/pages/mpEstate/estateList/index.tsx
+19
-18
No files found.
src/pages/mpEstate/estateList/index.tsx
View file @
36f8e28a
...
...
@@ -159,28 +159,29 @@ const EstateList: React.FC<any> = (props) => {
render
:
(
text
:
any
)
=>
(
text
||
'-'
)
},
{
title
:
'最新预售证时间'
,
dataIndex
:
'license_date'
,
key
:
'license_date'
,
dataIndex
:
'l
ast_l
icense_date'
,
key
:
'l
ast_l
icense_date'
,
width
:
150
,
render
:
(
_
:
any
,
record
:
any
)
=>
{
const
dataMap
=
{
house
:
'houseInfo'
,
business
:
'businessInfo'
,
office
:
'officeInfo'
,
}
render
:
(
text
:
any
)
=>
(
text
||
'-'
)
// render: (_: any, record: any) => {
// const dataMap = {
// house: 'houseInfo',
// business: 'businessInfo',
// office: 'officeInfo',
// }
if
(
record
[
dataMap
[
record
.
type
]]
&&
record
[
dataMap
[
record
.
type
]].
length
)
{
const
sortData
=
record
[
dataMap
[
record
.
type
]].
sort
((
a
:
any
,
b
:
any
)
=>
{
const
aDate
:
any
=
moment
(
a
.
license_date
).
format
(
'YYYY/MM/DD HH:mm:ss'
);
const
bDate
:
any
=
moment
(
b
.
license_date
).
format
(
'YYYY/MM/DD HH:mm:ss'
);
return
new
Date
(
bDate
).
getTime
()
-
new
Date
(
aDate
).
getTime
()
})
//
if (record[dataMap[record.type]] && record[dataMap[record.type]].length) {
//
const sortData = record[dataMap[record.type]].sort((a: any, b: any) => {
//
const aDate: any = moment(a.license_date).format('YYYY/MM/DD HH:mm:ss');
//
const bDate: any = moment(b.license_date).format('YYYY/MM/DD HH:mm:ss');
//
return new Date(bDate).getTime() - new Date(aDate).getTime()
//
})
return
sortData
[
0
].
license_date
;
}
//
return sortData[0].license_date;
//
}
return
'-'
;
}
//
return '-';
//
}
},
{
title
:
'更新时间'
,
dataIndex
:
'updated_at'
,
...
...
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