Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
bkunyun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bkunyun
Commits
9edf10e3
Commit
9edf10e3
authored
Oct 11, 2022
by
chenshouchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 项目剩余预算提醒临界判断逻辑修改
parent
1349567e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
index.tsx
src/components/BusinessComponents/QueueSelect/index.tsx
+0
-2
index.tsx
...iews/Project/ProjectWorkbench/workbenchTemplate/index.tsx
+1
-1
No files found.
src/components/BusinessComponents/QueueSelect/index.tsx
View file @
9edf10e3
...
@@ -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
;
...
...
src/views/Project/ProjectWorkbench/workbenchTemplate/index.tsx
View file @
9edf10e3
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment