Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
罗超
SuperMan
Commits
3faf9628
Commit
3faf9628
authored
Mar 21, 2025
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
072a0322
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
+15
-4
dataCount.vue
src/components/rank/dataCount.vue
+15
-4
No files found.
src/components/rank/dataCount.vue
View file @
3faf9628
...
...
@@ -894,10 +894,21 @@ export default {
var
CStartTime
=
""
;
var
CEndDate
=
""
;
if
(
type
==
2
){
var
CStartTime
=
this
.
parameters
.
dateRange
[
0
];
var
CEndDate
=
this
.
parameters
.
dateRange
[
1
];
}
if
(
type
==
2
){
// 创建当前日期对象
const
today
=
new
Date
();
// 获取年份、月份和日期,并补零处理
const
year
=
today
.
getFullYear
();
const
month
=
String
(
today
.
getMonth
()
+
1
).
padStart
(
2
,
'0'
);
// 月份从0开始,需加1
const
day
=
String
(
today
.
getDate
()).
padStart
(
2
,
'0'
);
// 组合成YYYY-MM-DD格式
const
formattedDate
=
`
${
year
}
-
${
month
}
-
${
day
}
`
;
console
.
log
(
this
.
parameters
.
dateRange
[
0
],
"66666"
);
// 输出例如:2023-10-05
var
CStartTime
=
formattedDate
;
//this.parameters.dateRange[0];
var
CEndDate
=
formattedDate
;
//this.parameters.dateRange[1];
}
let
query
=
{
CStartTime
:
CStartTime
,
CEndDate
:
CEndDate
,
...
...
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