Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
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
shenshaokai
jinfa-platform
Commits
22e04fa1
Commit
22e04fa1
authored
Apr 14, 2022
by
wzy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 处理时间戳长度问题
parent
01d79fb9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
detailLibrary.tsx
src/pages/priceManage/priceLibrary/detailLibrary.tsx
+8
-2
index.tsx
src/pages/priceManage/priceLibrary/index.tsx
+8
-2
No files found.
src/pages/priceManage/priceLibrary/detailLibrary.tsx
View file @
22e04fa1
...
...
@@ -103,7 +103,10 @@ const DetailLibrary: React.FC<{}> = () => {
dataIndex
:
'effectiveStartTime'
,
key
:
'effectiveStartTime'
,
render
:
text
=>
{
return
text
?
moment
(
text
).
format
(
'YYYY-MM-DD'
)
:
undefined
;
if
(
text
)
{
const
t
=
text
*
Math
.
pow
(
10
,
13
-
text
.
toString
().
length
);
return
moment
(
t
).
format
(
'YYYY-MM-DD'
);
}
},
},
{
...
...
@@ -113,7 +116,10 @@ const DetailLibrary: React.FC<{}> = () => {
dataIndex
:
'effectiveEndTime'
,
key
:
'effectiveEndTime'
,
render
:
text
=>
{
return
text
?
moment
(
text
).
format
(
'YYYY-MM-DD'
)
:
undefined
;
if
(
text
)
{
const
t
=
text
*
Math
.
pow
(
10
,
13
-
text
.
toString
().
length
);
return
moment
(
t
).
format
(
'YYYY-MM-DD'
);
}
},
},
];
...
...
src/pages/priceManage/priceLibrary/index.tsx
View file @
22e04fa1
...
...
@@ -128,7 +128,10 @@ const PriceLibrary: React.FC<{}> = () => {
dataIndex
:
'effectiveStartTime'
,
key
:
'effectiveStartTime'
,
render
:
text
=>
{
return
text
?
moment
(
text
).
format
(
'YYYY-MM-DD'
)
:
undefined
;
if
(
text
)
{
const
t
=
text
*
Math
.
pow
(
10
,
13
-
text
.
toString
().
length
);
return
moment
(
t
).
format
(
'YYYY-MM-DD'
);
}
},
},
{
...
...
@@ -138,7 +141,10 @@ const PriceLibrary: React.FC<{}> = () => {
dataIndex
:
'effectiveEndTime'
,
key
:
'effectiveEndTime'
,
render
:
text
=>
{
return
text
?
moment
(
text
).
format
(
'YYYY-MM-DD'
)
:
undefined
;
if
(
text
)
{
const
t
=
text
*
Math
.
pow
(
10
,
13
-
text
.
toString
().
length
);
return
moment
(
t
).
format
(
'YYYY-MM-DD'
);
}
},
},
{
...
...
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