Commit 9edf10e3 authored by chenshouchao's avatar chenshouchao

feat: 项目剩余预算提醒临界判断逻辑修改

parent 1349567e
...@@ -243,7 +243,6 @@ const QueueSelect = (props: IQueueSelectProps) => { ...@@ -243,7 +243,6 @@ const QueueSelect = (props: IQueueSelectProps) => {
const getTotal = () => { const getTotal = () => {
let total = 0; let total = 0;
// activeId
idInfoMap.forEach((item) => { idInfoMap.forEach((item) => {
if (item.id === activeId) { if (item.id === activeId) {
total = item.total; total = item.total;
...@@ -254,7 +253,6 @@ const QueueSelect = (props: IQueueSelectProps) => { ...@@ -254,7 +253,6 @@ const QueueSelect = (props: IQueueSelectProps) => {
const getTitle = () => { const getTitle = () => {
let title = ""; let title = "";
// activeId
idInfoMap.forEach((item) => { idInfoMap.forEach((item) => {
if (item.id === value) { if (item.id === value) {
title = item.title; title = item.title;
......
...@@ -119,7 +119,7 @@ const ProjectMembers = observer(() => { ...@@ -119,7 +119,7 @@ const ProjectMembers = observer(() => {
// 获取概览基本信息 用于获取项目剩余预算 projectRemainingBudget // 获取概览基本信息 用于获取项目剩余预算 projectRemainingBudget
const { run: getOverview } = useMyRequest(getOverviewInfo, { const { run: getOverview } = useMyRequest(getOverviewInfo, {
onSuccess: (result: any) => { onSuccess: (result: any) => {
if (result.data.projectRemainingBudget > 100) { if (result.data.projectRemainingBudget >= 100) {
setGreaterThan100(true); setGreaterThan100(true);
} else { } else {
setGreaterThan100(false); setGreaterThan100(false);
......
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