Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
szse
Overview
Overview
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
zhaochengxiang
szse
Commits
9acce670
Commit
9acce670
authored
Nov 08, 2023
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
统计默认选中7天
parent
ada1cc40
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
index.jsx
src/view/Manage/AssetOperation/index.jsx
+5
-0
No files found.
src/view/Manage/AssetOperation/index.jsx
View file @
9acce670
...
...
@@ -3,6 +3,7 @@ import * as echarts from 'echarts'
import
ResizeObserver
from
'rc-resize-observer'
import
{
Row
,
Col
,
Card
,
Space
,
Divider
,
Badge
,
Select
,
DatePicker
,
Spin
,
Tabs
}
from
'antd'
import
produce
from
'immer'
import
moment
from
'moment'
import
Table
from
'../../../util/Component/Table'
import
{
dispatch
}
from
'../../../model'
...
...
@@ -198,6 +199,8 @@ const Statistic = ({ type = 'dataAsset' }) => {
})
}
var
today
=
new
Date
();
// 获取当前日期
var
beforeYesterday
=
new
Date
(
new
Date
().
getTime
()
-
2
*
24
*
60
*
60
*
1000
);
//
return
(
<
Card
size=
'small'
>
<
Header
title=
{
type
===
'dataAsset'
?
'数据资产统计'
:
'数据资源统计'
}
/>
...
...
@@ -224,7 +227,9 @@ const Statistic = ({ type = 'dataAsset' }) => {
}
</
Select
>
<
DatePicker
.
RangePicker
allowClear=
{
false
}
format=
"YYYY-MM-DD"
defaultValue=
{
[
moment
(
new
Date
(
new
Date
().
getTime
()
-
7
*
24
*
60
*
60
*
1000
)),
moment
(
new
Date
(
new
Date
().
getTime
()
-
24
*
60
*
60
*
1000
))]
}
onChange=
{
(
values
)
=>
{
setStartTime
((
values
??[]).
length
>
0
?
values
[
0
].
valueOf
():
''
)
setEndTime
((
values
??[]).
length
>
1
?
values
[
1
].
valueOf
():
''
)
...
...
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