Commit 52cbeca3 authored by 张伯涛's avatar 张伯涛

修改

parent 38753bcf
...@@ -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) {
......
...@@ -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() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment