|
@@ -559,10 +559,10 @@ function MyLPPageContent() {
|
|
|
<span className="text-green-500 mr-2">新开</span>
|
|
<span className="text-green-500 mr-2">新开</span>
|
|
|
)}
|
|
)}
|
|
|
{record?.bonusInfo?.fromCreatorPosition ? (
|
|
{record?.bonusInfo?.fromCreatorPosition ? (
|
|
|
- !record?.isParentPositionClosed ? (
|
|
|
|
|
- <span className="text-green-500">上级未关仓</span>
|
|
|
|
|
- ) : (
|
|
|
|
|
|
|
+ record?.isParentPositionClosed ? (
|
|
|
<span className="text-red-500">上级已关仓</span>
|
|
<span className="text-red-500">上级已关仓</span>
|
|
|
|
|
+ ) : (
|
|
|
|
|
+ <span className="text-green-500">上级未关仓</span>
|
|
|
)
|
|
)
|
|
|
) : (
|
|
) : (
|
|
|
''
|
|
''
|
|
@@ -620,7 +620,7 @@ function MyLPPageContent() {
|
|
|
const allPositions = lpList.filter(
|
|
const allPositions = lpList.filter(
|
|
|
(item) =>
|
|
(item) =>
|
|
|
item.bonusInfo?.fromCreatorPosition &&
|
|
item.bonusInfo?.fromCreatorPosition &&
|
|
|
- !item.isParentPositionClosed
|
|
|
|
|
|
|
+ item.isParentPositionClosed
|
|
|
)
|
|
)
|
|
|
if (allPositions.length === 0) {
|
|
if (allPositions.length === 0) {
|
|
|
message.info('没有需要关闭的仓位')
|
|
message.info('没有需要关闭的仓位')
|