zxl
2025-11-28 43af77c06d2ad50137f33dfd2fc610ee3033d304
首页
1个文件已修改
1个文件已添加
24 ■■■■■ 已修改文件
src/api/index/index.js 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/index-nongtou.vue 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/index/index.js
New file
@@ -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"
  })
}
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();