Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
data_management_system
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
张伯涛
data_management_system
Commits
52cbeca3
Commit
52cbeca3
authored
Dec 02, 2022
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
38753bcf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
yxry.js
ruoyi-ui/src/api/system/yxry.js
+7
-0
index.vue
ruoyi-ui/src/views/index.vue
+9
-0
No files found.
ruoyi-ui/src/api/system/yxry.js
View file @
52cbeca3
...
@@ -16,6 +16,13 @@ export function cardGetInfo(query) {
...
@@ -16,6 +16,13 @@ export function cardGetInfo(query) {
params
:
query
params
:
query
})
})
}
}
// 首页数据
export
function
homePageStatistics
()
{
return
request
({
url
:
'/system/yxry/statistics'
,
method
:
'get'
})
}
// 下载导入模板
// 下载导入模板
export
function
importTemplate
(
params
)
{
export
function
importTemplate
(
params
)
{
...
...
ruoyi-ui/src/views/index.vue
View file @
52cbeca3
...
@@ -74,6 +74,7 @@
...
@@ -74,6 +74,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
homePageStatistics
}
from
"@/api/system/yxry"
;
export
default
{
export
default
{
name
:
"Index"
,
name
:
"Index"
,
data
()
{
data
()
{
...
@@ -87,10 +88,18 @@ export default {
...
@@ -87,10 +88,18 @@ export default {
};
};
},
},
created
()
{
created
()
{
this
.
getList
()
},
},
mounted
()
{
mounted
()
{
},
},
methods
:
{
methods
:
{
getList
()
{
homePageStatistics
().
then
(
res
=>
{
this
.
todayData
=
res
.
data
.
todayData
this
.
currentData
=
res
.
data
.
currentData
this
.
CumulativeData
=
res
.
data
.
CumulativeData
})
},
/** 查询*/
/** 查询*/
handleQuery
()
{
handleQuery
()
{
...
...
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