1"use strict";(self["webpackChunkGlobbs"]=self["webpackChunkGlobbs"]||[]).push([[451],{98158:function(t,e,a){a.r(e),a.d(e,{default:function(){return E}});var s=function(){var t=this,e=t._self._c;return e("base-layout",[e("el-main",{staticClass:"trade-page mt-16"},[e("div",{staticClass:"container"},[e("div",{staticClass:"top-section flex-row justify-between p-16"},[e("div",{staticClass:"top-left flex-1"},[e("div",{staticClass:"label"},[t._v(t._s(t.$t("index.gassercount"))+"ï¼")]),e("div",{staticClass:"amount flex-row"},[e("span",{staticClass:"margin-right-sm"},[t._v(" "+t._s(t._f("dpFormat")(0==t.apply_state?t.assetdata.count:t.availableFollowAmount,4))+" ")]),e("span",{staticClass:"unit"},[t._v("USD")])])]),0==t.apply_state?e("button",{staticClass:"stop-btn"},[t._v(" "+t._s(t.$t("index.waitreview"))+" ")]):t._e()]),e("div",{staticClass:"divider"}),e("div",{staticClass:"trader-section p-16"},[e("span",{staticClass:"margin-bottom-sm font-500"},[t._v(t._s(t.$t("index.tranuser")))]),e("div",{staticClass:"trader-header flex-row"},[e("image",{staticClass:"avatar",attrs:{src:t.orderdata.avatar,mode:"aspectFill"}}),e("span",{staticClass:"name"},[t._v(t._s(t.orderdata.trader_name))])]),e("div",{staticClass:"info-grid"},[e("div",{staticClass:"info-item"},[e("div",{staticClass:"info-title"},[t._v(t._s(t.$t("index.assetscale"))+"/USD")]),e("div",{staticClass:"info-value"},[t._v(t._s(t._f("toNumber")(t.orderdata.asset_scale)))])]),e("div",{staticClass:"info-item"},[e("div",{staticClass:"info-title"},[t._v(t._s(t.$t("index.sharerate")))]),e("div",{staticClass:"info-value"},[t._v(t._s(t._f("toNumber")(t.orderdata.share_rate))+"%")])]),e("div",{staticClass:"info-item"},[e("div",{staticClass:"info-title"},[t._v(t._s(t.$t("index.safemoney"))+"/USD")]),e("div",{staticClass:"info-value"},[t._v(t._s(t._f("toNumber")(t.orderdata.safe_money)))])]),e("div",{staticClass:"info-item"},[e("div",{staticClass:"info-title"},[t._v(t._s(t.$t("index.saferate")))]),e("div",{staticClass:"info-value"},[t._v(t._s(t._f("toNumber")(t.orderdata.safe_rate))+"%")])]),e("div",{staticClass:"info-item"},[e("div",{staticClass:"info-title"},[t._v(t._s(t.$t("index.gdannum")))]),e("div",{staticClass:"info-value"},[t._v(" "+t._s(t._f("toNumber")(t.orderdata.process_peopel))+"/"+t._s(t._f("toNumber")(t.orderdata.peopel_limit))+" ")])])])]),e("div",{staticClass:"trade-record-content dark-box"},[e("follow-record",{ref:"record",attrs:{plan_uid:t.plan_uid},on:{reload:t.reload}})],1)])])],1)},i=[],o=a(33443),r=a(1910),l=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"flex-row record-header"},[e("g-tabs",{staticClass:"flex-1",attrs:{"no-border":!0,"use-disabled":!0,tabs:t.recordTab},on:{"tab-click":t.selectRecord},model:{value:t.activeRecord,callback:function(e){t.activeRecord=e},expression:"activeRecord"}}),e("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.$emit("reload")}}},[t._v(t._s(t.$t("index.reload")))])],1),e("div",{staticClass:"mt-24"},[t.showFilter?e("div",{staticClass:"filter-box"},[e("el-form",{ref:"filter",attrs:{model:t.filter,"label-position":"top",inline:!0}},[e("el-form-item",{attrs:{label:t.$t("index.coin_code"),prop:"coin"}},[e("coin-suggest",{model:{value:t.filter.coin,callback:function(e){t.$set(t.filter,"coin",e)},expression:"filter.coin"}})],1)],1),e("div",{staticClass:"filter-btn"},[e("el-button",{staticClass:"round",attrs:{type:"light"},on:{click:t.resetFilter}},[t._v(t._s(t.$t("index.reset")))]),e("el-button",{staticClass:"round",attrs:{type:"secondary"},on:{click:t.refreshData}},[t._v(t._s(t.$t("index.filter")))])],1)],1):t._e(),e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},["hold"===t.activeRecord?e("follow-record-hold",{attrs:{"table-data":t.tableData}}):t._e(),"close"===t.activeRecord?e("follow-record-close",{attrs:{"table-data":t.tableData}}):t._e()],1)]),e("g-pager",{attrs:{"page-count":t.pageTotal,"page-num":t.page},on:{"update:pageNum":function(e){t.page=e},"update:page-num":function(e){t.page=e},change:t.getData}})],1)},n=[],d=a(18186),c=a(43498),u=(a(76874),a(43240),a(57936),a(44049)),p=function(){var t=this,e=t._self._c;return e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.holdData}
1},[e("el-table-column",{attrs:{label:t.$t("index.coin_code")},scopedSlots:t._u([{key:"default",fn:function(a){return[a.row.coininfo?e("img",{staticClass:"coin-logo",attrs:{src:a.row.coininfo.logo}}):t._e(),e("span",{staticClass:"font-500"},[t._v(t._s(a.row.name)+"/USDT")])]}}])}),e("el-table-column",{attrs:{label:t.$t("index.contract_open_type")},scopedSlots:t._u([{key:"default",fn:function(a){return[1==a.row.flag?e("span",{staticClass:"text-price-up"},[t._v(t._s(t.$t("index.trade_up")))]):t._e(),2==a.row.flag?e("span",{staticClass:"text-price-down"},[t._v(t._s(t.$t("index.trade_down")))]):t._e()]}}])}),e("el-table-column",{attrs:{label:t.$t("index.contract_lever")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.ganggan)+"x ")]}}])}),e("el-table-column",{attrs:{label:t.$t("index.cost_price")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t._f("toNumber")(e.row.openprice))+" USDT ")]}}])}),e("el-table-column",{attrs:{label:t.$t("index.trade_amount")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t._f("toNumber")(e.row.credit))+" ")]}}])}),e("el-table-column",{attrs:{label:t.$t("index.expected_profit")},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",{directives:[{name:"price-color",rawName:"v-price-color",value:a.row.profit,expression:"scope.row.profit"}]},[t._v(" "+t._s(t._f("formatNumberSign")(a.row.profit))+"("+t._s(t._f("formatNumberSign")(a.row.profitPercent))+"%) ")])]}}])}),e("el-table-column",{attrs:{width:"150",label:t.$t("index.trade_time")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t._f("toDatetime")(e.row.createtime))+" ")]}}])})],1)},_=[],f=a(69321),m=a(2531),b={name:"TradeLeverageRecordHold",mixins:[f.Q],computed:{...(0,r.aH)("trade",["quoteMap"]),holdData(){return this.tableData.map((t=>{const e=this.quoteMap[t.coinpair];let a=0,s="";if(e?.close){let i=(0,m.A)(e.close).minus(t.openprice).dividedBy(t.openprice).multipliedBy(t.ganggan);2==t.flag&&(i=i.times(-1)),a=i.multipliedBy(t.credit).toFixed(3),s=i.multipliedBy(100).toFixed(3)}return{...t,profit:a,profitPercent:s}}))}},watch:{tableData(t){const e=t.map((t=>t.coin_symbol));this.addExtendCoins(e)}},methods:{...(0,r.PY)("trade",["addExtendCoins"]),showClose(t){this.$emit("showClose",t)}}},v=b,h=a(81656),g=(0,h.A)(v,p,_,!1,null,"a700384e",null),x=g.exports,w=function(){var t=this,e=t._self._c;return e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.closeData}},[e("el-table-column",{attrs:{label:t.$t("index.coin_code")},scopedSlots:t._u([{key:"default",fn:function(a){return[a.row.coininfo?e("img",{staticClass:"coin-logo",attrs:{src:a.row.coininfo.logo}}):t._e(),e("span",{staticClass:"font-500"},[t._v(t._s(a.row.name)+"/USDT")])]}}])}),e("el-table-column",{attrs:{label:t.$t("index.contract_close_type")},scopedSlots:t._u([{key:"default",fn:function(a){return[1==a.row.flag?e("span",{staticClass:"text-price-up"},[t._v(t._s(t.$t("index.close_up")))]):t._e(),2==a.row.flag?e("span",{staticClass:"text-price-down"},[t._v(t._s(t.$t("index.close_down")))]):t._e()]}}])}),e("el-table-column",{attrs:{label:t.$t("index.contract_lever")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.ganggan)+"x ")]}}])}),e("el-table-column",{attrs:{label:t.$t("index.trade_amount")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t._f("dpFormat")(e.row.allprice,2))+" ")]}}])}),e("el-table-column",{attrs:{label:t.$t("index.contract_open_price")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t._f("toNumber")(e.row.o_price))+" USDT ")]}}])}),e("el-table-column",{attrs:{label:t.$t("index.contract_close_price")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t._f("toNumber")(e.row.close_price))+" USDT ")]}}])}),e("el-table-column",{attrs:{label:t.$t("index.trade_profit")},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",{directives:[{name:"price-color",rawName:"v-price-color",value:a.row.profit,expression:"scope.row.profit"}]},[t._v(" "+t._s(t._f("formatNumberSign")(a.row.profit))+"("+t._s(t._f("formatNumberSign")(a.row.profitPercent))+"%) ")])]}}])}),e("el-table-column",{attrs:{align:"right",width:"150",label:t.$t("index.trade_time")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t._f("toDatetime")(e.row.createtime))+" ")]}}])})],1)},C=[];const y={0:{title:"index.delegate_status_wait",status:"wait"},1:{title:"index.delegate_status_success",status:"success"},2:{title:"index.delegate_status_cancel",status:"cancel"}},$={inject:["_gVars","tradeSuccess"],props:{tableData:{type:Array,default:()=>[]}},data(){return{delegateStatus:y}}};var S={name:"FollowRecordClose",mixins:[$],computed:{closeData(){return this.tableData.map((t=>{let e=(0,m.A)(t.profit).multipliedBy(100).div(t.allprice).toFixed(3);return{...t,profitPercent:e}}))}}},k=S,D=(0,h.A)(k,w,C,!1,null,"78102852",null),T=D.exports,A={name:"FollowRecord",inject:["tradeSuccess"],components:{FollowRecordClose:T,FollowRecordHold:x,CoinSuggest:u.A},mixins:[c.A],props:{showFilter:{type:Boolean,default:!1},plan_uid:{default:null}},data(){return{autoTop:!1,recordTab:[{name:"hold",label:this.$t("index.current_holding"),api:d.ns,query:{}},{name:"close",label:this.$t("index.history_close"),api:d.N2,query:{}}],activeRecord:"hold",stopFormVisible:!1,stopFrom:{stop_up_price:null,stop_down_price:null},cancelVisible:!1,submitLoading:!1,currentItem:{},filter:{coin:void 0}}},computed:{...(0,r.aH)("user",["hasLogin"])},methods:{canGetList(){return this.hasLogin},getList(t){return new Promise(((e,a)=>
1{const s=this.activeTab.api;t.plan_id=this.plan_uid,t.tradetype=1,s(t).then((t=>{t.data&&t.data.list.forEach((t=>{t.name=t.coin_symbol.toUpperCase()})),e(t)})).catch((t=>{a(t)}))}))}}},N=A,F=(0,h.A)(N,l,n,!1,null,"6f115c1a",null),U=F.exports,R=a(82893),P=a(30013),L={name:"trade-delivery",mixins:[R.A],components:{FollowRecord:U},props:{tradetype:{type:Number,default:1}},provide(){return{tradeSuccess:this.tradeSuccess}},data(){return{orderdata:{},assetdata:{count:0},apply_state:1,plan_uid:null,tradeType:P.G.contract}},computed:{...(0,r.L8)("assets",["availableFollowAmount"])},mounted(){this.getdata(),this.startTimer()},beforeDestroy(){this.destroyTimer()},created(){this.$base.refreshAllAssets(),this.plan_uid=Number(this.$route.query.id)},methods:{startTimer(){this.destroyTimer(),this.timer=setInterval((()=>{this.$base.refreshAllAssets()}),3e3)},destroyTimer(){this.timer&&(clearInterval(this.timer),this.timer=null)},tradeSuccess(){this.$base.refreshAllAssets(),this.$refs.record.refreshData()},getdata(){(0,o.ye)().then((t=>{t.data&&t.data.code>0?this.$message.error(this.$t("api.follow_"+t.data.code)):(this.orderdata=t.data.plan,this.apply_state=t.data.order.apply_state,this.assetdata=t.data.asset)}))},reload(){this.getdata(),this.$base.refreshAllAssets(),this.$refs.record.refreshData()}}},V=L,B=(0,h.A)(V,s,i,!1,null,"8a2b9dc8",null),E=B.exports},69321:function(t,e,a){a.d(e,{Q:function(){return i}});const s={0:{title:"index.delegate_status_wait",status:"wait"},1:{title:"index.delegate_status_success",status:"success"},2:{title:"index.delegate_status_cancel",status:"cancel"}},i={inject:["_gVars","tradeSuccess"],props:{tableData:{type:Array,default:()=>[]}},data(){return{delegateStatus:s}}}},82893:function(t,e,a){var s=a(1910),i=a(1964),o=a(30013);e.A={data(){return{tradeType:o.G.spot,klinePeriod:"30m"}},computed:{...(0,s.L8)("trade",["pageCoins"]),priceDepends(){return{coins:this.pageCoins,tradeType:this.tradeType}}},watch:{priceDepends(t){this.debounceUpdateCoins(t.coins,this,t.tradeType),this.debounceUpdateKlines(t.coins,this.klinePeriod,this,t.tradeType)}},mounted(){this.debounceUpdateCoins=(0,i.sg)(this.$coin.coinTimer.updateCoins.bind(this.$coin.coinTimer),1e3),this.debounceUpdateKlines=(0,i.sg)(this.$coin.klineTimer.updateCoins.bind(this.$coin.klineTimer),1e3)},beforeDestroy(){this.clearVisibleCoins(),this.clearExtendCoins(),this.debounceUpdateCoins=null,this.debounceUpdateKlines=null},methods:{...(0,s.PY)("trade",["clearVisibleCoins","clearExtendCoins","addExtendCoins","setVisibleCoins"])}}}}]);
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.