PageSourceSearch

https://www.zbit.com/_nuxt/CQEpUDe0.js

js zbit.com collected 2026-10-01 15:54:36 UTC 5,210 bytes, 1 lines download raw bytes

1import{_ as e}from"./sp0eyRAr.js";import r from"./DpUrIesP.js";import{u as s}from"./R_gTApYK.js";import{u as a}from"./CdxCeMe4.js";import{c as t,R as o,f as u}from"./C1Hzqj9L.js";import{ae as d,Z as l,l as n,af as i,ao as c,aH as f,g as p,aL as _,b4 as m,b5 as v,aj as k,e as y,aE as g,ah as w,ag as O,aG as P,r as h,aN as x}from"./Dtay3aFs.js";import{u as F}from"./BX_SwlLW.js";import"./kBfzdtP8.js";import"./Bq4o-MZg.js";import"./DHRZEVTu.js";const b={class:"futures-order__name-level"},T={class:"futures-order__name-line"},C={class:"futures-order__meta"},j={key:1,class:"futures-order__cards-wrap"},L={key:0,class:"futures-order__loading"},W={key:0,class:"futures-order__card-empty"},z={key:1,class:"futures-order__cards"},A={class:"futures-order__name-level"},N={class:"futures-order__name-line"},B={class:"futures-order__meta"},I={class:"futures-order__card-kv"},D={class:"futures-order__card-row"},H={class:"futures-order__card-k"},V={class:"futures-order__card-v"},E={class:"futures-order__card-row"},G={class:"futures-order__card-k"},R={class:"futures-order__card-v"},Z={class:"futures-order__card-row"},q={class:"futures-order__card-k"},J={class:"futures-order__tip-text"},K={class:"futures-order__card-v"},M={class:"futures-order__card-row"},Q={class:"futures-order__card-k"},S={class:"futures-order__tip-text"},U={class:"futures-order__card-v"},X={class:"futures-order__card-row"},Y={class:"futures-order__card-k"},$={class:"futures-order__tip-text"},ee={class:"futures-order__card-v"},re={class:"futures-order__card-row"},se={class:"futures-order__card-k"},ae={class:"futures-order__tip-text"},te={class:"futures-order__card-row"},oe={class:"futures-order__card-k"},ue={class:"futures-order__card-v"},de=x(d({__name:"profitLoss",props:{cardLayout:{type:Boolean,default:!1}},setup(d){const{t:x}=l(),de=n(),le=y(()=>de.token),{contractInfo:ne}=F(),ie=g("userConfig",h({})),{loading:ce,rows:fe}=s({tabType:"profit",contractInfo:ne,userConfig:ie,token:le}),{tableHeight:pe}=a();function _e(e){const r=e?.raw||{};return u(r.closeProfit,Number(r.marginCoinPrecision)||4,r.marginCoin||"",!0)}const me=y(()=>[{key:"nameLevel",label:x("futuresOrder.contract"),width:"200px",minWidth:"110px"},{key:"openPrice",label:x("futuresOrder.openAvgPrice"),minWidth:"160px"},{key:"volume",label:x("futuresOrder.positionVolume"),minWidth:"130px"},{key:"realizedAmount",label:x("futuresOrder.realizedPnl"),tooltipContent:x("futuresOrder.realizedPnlTip"),minWidth:"140px"},{key:"tradeFee",label:x("futuresOrder.tradeFee"),tooltipContent:x("futuresOrder.tradeFeeTip"),minWidth:"120px"},{key:"capitalFee",label:x("futuresOrder.fundingFee"),tooltipContent:x("futuresOrder.fundingFeeTip"),minWidth:"130px"},{key:"closeProfit",label:x("trialFund.exitPnl"),tooltipContent:x("futuresOrder.positionPnlTip"),minWidth:"140px"},{key:"time",label:x("futuresOrder.closeTime"),width:"160px",minWidth:"170px"}]);return(s,a)=>{const u=e,l=r;return w(),i("div",{class:k(["futures-order",{"futures-order--card":d.cardLayout}])},[d.cardLayout?(w(),i("div",j,[p(ce)?(w(),i("div",L,_(p(x)("common.loading")),1)):(w(),i(m,{key:1},[p(fe).length?(w(),i("div",z,[(w(!0),i(m,null,v(p(fe),e=>(w(),i("div",{key:e.id,class:"futures-order__card"},[O("div",A,[O("div",N,[O("span",{class:k(["futures-order__side-dot",e.sideBgClass])},null,2),O("span",{class:k(e.sideClass)},_(e.contractName),3)]),O("div",B,_(e.posType)+" "+_(e.leverageLevel),1)]),O("div",I,[O("div",D,[O("span",H,_(p(x)("futuresOrder.openAvgPrice")),1),O("span",V,_(e.openPrice),1)]),O("div",E,[O("span",G,_(p(x)("futuresOrder.positionVolume")),1),O("span",R,_(e.volume),1)]),O("div",Z,[O("span",q,[P(l,{teleport:"",content:p(x)("futuresOrder.realizedPnlFormulaTip")},{default:f(()=>[O("span",J,_(p(x)("futuresOrder.realizedPnl")),1)]),_:1},8,["content"])]),O("span",K,[P(o,{row:e},null,8,["row"])])]),O("div",M,[O("span",Q,[P(l,{teleport:"",content:p(x)("futuresOrder.tradeFeeTip")},{default:f(()=>[O("span",S,_(p(x)("futuresOrder.tradeFee")),1)]),_:1},8,["content"])]),O("span",U,_(e.tradeFee),1)]),O("div",X,[O("span",Y,[P(l,{teleport:"",content:p(x)("futuresOrder.fundingFeeTip")},{default:f(()=>[O("span",$,_(p(x)("futuresOrder.fundingFee")),1)]),_:1},8,["content"])]),O("span",ee,_(e.capitalFee),1)]),O("div",re,[O("span",se,[P(l,{teleport:"",content:p(x)("futuresOrder.positionPnlTip")},{default:f(()=>[O("span",ae,_(p(x)("trialFund.exitPnl")),1)]),_:1},8,["content"])]),O("span",{class:k(["futures-order__card-v",p(t)(e.raw?.closeProfit)])},_(_e(e)),3)]),O("div",te,[O("span",oe,_(p(x)("futuresOrder.closeTime")),1),O("span",ue,_(e.time),1)])])]))),128))])):(w(),i("div",W,_(p(x)("common.noData")),1))],64))])):(w(),c(u,{key:0,height:p(pe),columns:me.value,data:p(fe),"row-key":"id"},{"cell-nameLevel":f(({row:e})=>[O("div",b,[O("div",T,[O("span",{class:k(["futures-order__side-dot",e.sideBgClass])},null,2),O("span",{class:k(e.sideClass)},_(e.contractName),3)]),O("div",C,_(e.posType)+" "+_(e.leverageLevel),1)])]),"cell-realizedAmount":f(({row:e})=>[P(o,{row:e},null,8,["row"])]),"cell-closeProfit":f(({row:e})=>[O("span",{class:k(p(t)(e.raw?.closeProfit))},_(_e(e)),3)]),_:1},8,["height","columns","data"]))],2)}}}),[["__scopeId","data-v-089aacee"]]);export{de as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.