From 6c64449f4162732180e3c6b85ef6c7c06533b437 Mon Sep 17 00:00:00 2001 From: aBin Date: Thu, 27 Jan 2022 11:46:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=B6=E9=97=B4=E8=B4=A2=E5=8A=A1=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apis/projectFinance.js | 4 + components/BarEcharts.vue | 211 +++++++++++++++++++++---------------- components/Expenditure.vue | 6 +- pages/index.vue | 2 +- 4 files changed, 130 insertions(+), 93 deletions(-) diff --git a/apis/projectFinance.js b/apis/projectFinance.js index f4d354b..9ad2de1 100644 --- a/apis/projectFinance.js +++ b/apis/projectFinance.js @@ -27,3 +27,7 @@ export const queryProjectFinance = params => // 修改任务或项目的预算和奖金信息 export const updateFinance = params => http.post(`${projectFinance}/updateFinance`, params); + +// 时间财务图统计 +export const timeFinancialChart = params => + http.post(`${projectFinance}/timeFinancialChart`, params); diff --git a/components/BarEcharts.vue b/components/BarEcharts.vue index ced2ee3..12d74c7 100644 --- a/components/BarEcharts.vue +++ b/components/BarEcharts.vue @@ -1,113 +1,144 @@ diff --git a/components/Expenditure.vue b/components/Expenditure.vue index 08cf6e6..2251aa7 100644 --- a/components/Expenditure.vue +++ b/components/Expenditure.vue @@ -27,7 +27,7 @@ /> - + @@ -110,9 +110,11 @@ async function handleUpdateBudget(item) { } // 操作,跳转到发起申请界面 -function toApplication() { +function toApplication(item) { const routeValue = router.currentRoute.value; const query = routeValue.query; + query.tn = item.taskName; + // console.log('query: ', query); router.push({ path: '/Initiate-application', query }); } diff --git a/pages/index.vue b/pages/index.vue index 1dd6d91..8ac80ef 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -111,7 +111,7 @@ -
+