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

修改

parent 38753bcf
......@@ -16,6 +16,13 @@ export function cardGetInfo(query) {
params: query
})
}
// 首页数据
export function homePageStatistics() {
return request({
url: '/system/yxry/statistics',
method: 'get'
})
}
// 下载导入模板
export function importTemplate(params) {
......
......@@ -74,6 +74,7 @@
</template>
<script>
import { homePageStatistics } from "@/api/system/yxry";
export default {
name: "Index",
data() {
......@@ -87,10 +88,18 @@ export default {
};
},
created() {
this.getList()
},
mounted() {
},
methods: {
getList() {
homePageStatistics().then(res=>{
this.todayData = res.data.todayData
this.currentData = res.data.currentData
this.CumulativeData = res.data.CumulativeData
})
},
/** 查询*/
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