Commit 9edf10e3 authored by chenshouchao's avatar chenshouchao

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

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