|
|
@@ -1,9 +1,10 @@
|
|
|
import { login, logout, getInfo } from '@/api/login'
|
|
|
import { getToken, setToken, removeToken } from '@/utils/auth'
|
|
|
import { getReviewNumber,getApprovalNumber,getInvestigateNumber,getDecisionNumber } from '@/api/invest/pool'
|
|
|
-import { getMyTaskInvestOppNumber } from '@/api/project/investOpp/pool'
|
|
|
-import { getMyTaskApprovalNumber } from '@/api/project/approval/pool'
|
|
|
-import { getMyTaskDecisionNumber } from '@/api/project/decision/pool'
|
|
|
+import { getMyTaskInvestOppNumber } from '@/api/project/investOpp/pool';
|
|
|
+import { getMyTaskApprovalNumber } from '@/api/project/approval/pool';
|
|
|
+import { getMyTaskInvestigateNumber } from '@/api/project/investigate/pool';
|
|
|
+import { getMyTaskDecisionNumber } from '@/api/project/decision/pool';
|
|
|
import { getMyTaskTerminationNumber } from "@/api/project/termination/pool";
|
|
|
|
|
|
const user = {
|
|
|
@@ -102,6 +103,7 @@ const user = {
|
|
|
// 我的任务-各项代办数量
|
|
|
investOppNum: 0,//投资机会
|
|
|
approvalNum: 0,//项目立项
|
|
|
+ investigateNum: 0,//尽职背调
|
|
|
decisionNum: 0,//项目投决
|
|
|
terminationNum: 0,//项目终止
|
|
|
|
|
|
@@ -157,6 +159,9 @@ const user = {
|
|
|
SET_APPROVALNUM: (state, approvalNum) => {
|
|
|
state.approvalNum = approvalNum
|
|
|
},
|
|
|
+ SET_INVESTIGATENUM: (state, investigateNum) => {
|
|
|
+ state.investigateNum = investigateNum
|
|
|
+ },
|
|
|
SET_DECISIONNUM: (state, decisionNum) => {
|
|
|
state.decisionNum = decisionNum
|
|
|
},
|
|
|
@@ -296,6 +301,15 @@ const user = {
|
|
|
})
|
|
|
},
|
|
|
//更新项目投决待办
|
|
|
+ getMyTaskInvestigateNumber({ commit, state }) {
|
|
|
+ return new Promise(resolve => {
|
|
|
+ getMyTaskInvestigateNumber().then(res => {
|
|
|
+ const investigateNum = parseInt(res.total);//项目投决
|
|
|
+ commit('SET_INVESTIGATENUM', investigateNum);
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+ //更新项目投决待办
|
|
|
getMyTaskDecisionNumber({ commit, state }) {
|
|
|
return new Promise(resolve => {
|
|
|
getMyTaskDecisionNumber().then(res => {
|