From 43af77c06d2ad50137f33dfd2fc610ee3033d304 Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期五, 28 十一月 2025 11:38:35 +0800
Subject: [PATCH] 首页
---
src/api/index/index.js | 15 +++++++++++++++
src/views/index-nongtou.vue | 9 ++++++++-
2 files changed, 23 insertions(+), 1 deletions(-)
diff --git a/src/api/index/index.js b/src/api/index/index.js
new file mode 100644
index 0000000..8671789
--- /dev/null
+++ b/src/api/index/index.js
@@ -0,0 +1,15 @@
+import request from '@/utils/request'
+
+export const getCodingCount = () => {
+ return request({
+ url: "/index/codingCount",
+ method: "GET",
+ })
+}
+
+export const getFundingStatus = () =>{
+ return request({
+ url:"/index/fundingStatus",
+ method:"GET"
+ })
+}
diff --git a/src/views/index-nongtou.vue b/src/views/index-nongtou.vue
index a5fe75b..2850d36 100644
--- a/src/views/index-nongtou.vue
+++ b/src/views/index-nongtou.vue
@@ -164,7 +164,7 @@
<script>
import * as echarts from 'echarts';
-
+import {getCodingCount ,getFundingStatus } from '@/api/index/index.js'
export default {
name: 'ProjectManagement',
data() {
@@ -350,6 +350,13 @@
};
},
mounted() {
+ getCodingCount().then(res =>{
+
+ })
+ getFundingStatus().then(res=>{
+
+ })
+
this.selectedProjects = this.allProjects.map(p => p.id); // 榛樿鍏ㄩ��
this.fundSelectedProjects = this.allProjects.map(p => p.id); // 榛樿鍏ㄩ��
this.initCharts();
--
Gitblit v1.8.0