(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-028aaea5","chunk-63cf388e","chunk-00cdb888"],{"20ca":function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));const s=(e,t)=>{let a,s=t||300;return function(){let t=arguments;a&&clearTimeout(a);let i=!a;a=setTimeout(()=>{a=null},s),i&&e.apply(this,t)}}},"2ae1":function(e,t,a){},"335c":function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));const s={searchMenuSpan:6,columnBtn:!1,border:!0,selection:!1,index:!1,indexLabel:"序号",stripe:!0,menuAlign:"center",menuWidth:250,align:"center",refreshBtn:!0,searchSize:"mini",addBtn:!1,editBtn:!1,delBtn:!1,viewBtn:!1,props:{label:"label",value:"value"},column:[{label:"用户名",prop:"userName",search:!0,hide:!0},{label:"用户名",prop:"userNamesolt",solt:!0},{label:"UID",prop:"userCode",search:!0},{label:"开始时间",prop:"startTime",type:"datetime",search:!0,viewDisplay:!1,hide:!0,format:"yyyy-MM-dd HH:mm:ss",valueFormat:"yyyy-MM-dd HH:mm:ss"},{label:"结束时间",prop:"endTime",type:"datetime",format:"yyyy-MM-dd HH:mm:ss",valueFormat:"yyyy-MM-dd HH:mm:ss",hide:!0,searchClearble:!1,search:!0,viewDisplay:!1},{type:"select",label:"账户类型",prop:"roleName",searchFilterable:!0,search:!0,searchValue:"",filterable:!0,multiple:!1,dicData:[{label:"所有账号",value:""},{label:"正式账号",value:"MEMBER"},{label:"演示账号",value:"GUEST"},{label:"试用账号",value:"TEST"}]},{label:"品种",prop:"symbol"},{label:"合约方向",prop:"direction",type:"select",dicData:[{label:"多",value:"buy"},{label:"空",value:"sell"}]},{label:"成交均价",prop:"tradeAvgPrice"},{label:"平仓价格",prop:"closeAvgPrice"},{label:"当前价格",prop:"mark_price"},{label:"强平价格",prop:"forceClosePrice"},{label:"止盈止损",prop:"stopProfitLoss"},{width:"150",label:"剩余/委托金额",prop:"vove",solt:!0},{width:"150",label:"剩余/委托保证金",prop:"depo",solt:!0},{label:"用户钱包余额",prop:"money"},{label:"盈亏",prop:"profit"},{label:"状态",prop:"state",type:"select",dicData:[{label:"持仓",value:"submitted"},{label:"已撤销",value:"canceled"},{label:"已平仓",value:"created"}]},{label:"创建时间",prop:"createTime"},{label:"平仓时间",prop:"closTime",slot:!0}]}},4818:function(e,t,a){"use strict";a("2ae1")},"5cc6":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"mod-cryptos-spots-transport"},[a("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"当前单",name:"1"}}),a("el-tab-pane",{attrs:{label:"历史单",name:"2"}})],1),a("avue-crud",{ref:"crud",attrs:{page:e.page,data:e.dataList,option:e.tableOption,"cell-class-name":e.addClasscolor},on:{"update:page":function(t){e.page=t},"search-change":e.searchChange,"selection-change":e.selectionChange,"refresh-change":e.refreshChange,"on-load":e.getDataList},scopedSlots:e._u([{key:"userNamesolt",fn:function(t){return[a("span",{staticClass:"seachButton",on:{click:function(a){return e.searchName(t.row.userName)}}},[e._v(e._s(t.row.userName))])]}},{key:"vove",fn:function(t){return[a("span",{staticClass:"green"},[e._v(e._s(t.row.volumeUnitAmount))]),e._v("/"),a("span",[e._v(e._s(t.row.volumeOpenUnitAmount))])]}},{key:"depo",fn:function(t){return[a("span",{staticClass:"green"},[e._v(e._s(t.row.deposit))]),e._v("/"),a("span",[e._v(e._s(t.row.depositOpen))])]}},{key:"closTime",fn:function(t){return[t.row.closeTime?a("span",[e._v(e._s(new Date(1e3*t.row.closeTime).toLocaleString()))]):e._e()]}},{key:"menu",fn:function(t){return"submitted"==t.row.state?[e.isAuth("sys:user:delete")?a("el-button",{attrs:{type:"primary",icon:"el-icon-edit",size:"small"},on:{click:function(a){return a.stopPropagation(),e.deleteHandle(t.row.orderNo)}}},[e._v("平仓")]):e._e(),a("el-button",{attrs:{type:"primary",icon:"el-icon-edit",size:"small"},on:{click:function(a){return a.stopPropagation(),e.UpdateHandle(t.row)}}},[e._v("盈亏控制")])]:void 0}}],null,!0)},[a("template",{slot:"menuLeft"},[1==e.activeName?a("div",{staticClass:"cheBoxMain"},[a("div",{staticStyle:{"margin-bottom":"10px"}},[e._v("调整行情")]),a("div",{staticClass:"chekClect"},[a("el-select",{attrs:{clearable:"",placeholder:"请选择币种"},model:{value:e.dataForm.symbol,callback:function(t){e.$set(e.dataForm,"symbol",t)},expression:"dataForm.symbol"}},e._l(e.option,(function(e){return a("el-option",{key:e.symbol,attrs:{label:e.name,value:e.symbol}})})),1)],1),a("div",{staticClass:"chekClect",staticStyle:{"margin-top":"3px"}},[a("el-button",{attrs:{type:"primary",icon:"el-icon-edit",size:"small"},on:{click:function(t){return e.addOrUpdateHandle(e.dataForm.symbol)}}},[e._v("调整")])],1)]):e._e()]),a("template",{slot:"menuLeft"},[a("div",{staticClass:"main"},["2"==e.activeName?a("el-tabs",{on:{"tab-click":e.handleClick2},model:{value:e.activeName2,callback:function(t){e.activeName2=t},expression:"activeName2"}},[a("el-tab-pane",{attrs:{label:"全部",name:"1"}}),a("el-tab-pane",{attrs:{label:"持仓",name:"2"}}),a("el-tab-pane",{attrs:{label:"已平仓",name:"3"}})],1):e._e()],1)])],2),e.UpdateVisibles?a("add-or-updates",{ref:"Updates",on:{refreshDataList:e.getDataList}}):e._e(),e.addOrUpdateVisible?a("add-or-update",{ref:"addOrUpdate",on:{refreshDataList:e.refreshChange}}):e._e(),a("el-dialog",{attrs:{title:"完整用户名(完整钱包地址)","close-on-click-modal":!1,visible:e.userNamevisible},on:{"update:visible":function(t){e.userNamevisible=t}}},[a("el-form",{ref:"dataForm",attrs:{model:e.dataForm}},[a("el-form-item",{attrs:{label:"",prop:""}},[a("div",{staticStyle:{"font-size":"20px"}},[a("span",[e._v(e._s(e.username))]),a("a",{staticClass:"seachButton",attrs:{target:"_blank",href:"https://etherscan.io/address/"+e.username}},[e._v("在Etherscan上查看")])])])],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.userNamevisible=!1}}},[e._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.userNamevisible=!1}}},[e._v("确定")])],1)],1)],1)},i=[],r=a("335c"),l=a("b587"),o=a("a280"),n={data(){return{dateRange:[],option:[{symbol:1,name:"DOGE/USTD"}],dataForm:{transName:""},state:"submitted",activeName:"1",activeName2:"1",dataList:[],dataListLoading:!1,dataListSelections:[],username:"",userNamevisible:!1,addOrUpdateVisible:!1,UpdateVisibles:!1,page:{total:0,currentPage:1,pageSize:10},searchParams:{},tableOption:r["a"]}},components:{AddOrUpdate:l["default"],"add-or-updates":o["default"]},created(){this.getAction()},mounted(){},computed:{},methods:{addClasscolor({column:e,row:t}){return"direction"===e.property&&"buy"==t.direction||"profit"===e.property&&1*t.profit>0||"roleName"===e.property&&"MEMBER"==t.roleName||"volume"===e.property&&1*t.volume>=0||"vnvu"===e.property&&t.vnvu||"dd"===e.property&&t.dd?"green":"direction"===e.property&&"sell"==t.direction||"profit"===e.property&&1*t.profit<0?"red":"roleName"===e.property&&"GUEST"==t.roleName?"yellow":void 0},getDataList(e,t){e=void 0===e?this.page:e,this.dataListLoading=!0,this.$http({url:this.$http.adornUrl("/normal/adminContractOrderAction!/list.action"),method:"get",params:this.$http.adornParams(Object.assign({type:"cryptos",current:null==e?this.page.currentPage:e.currentPage,size:null==e?this.page.pageSize:e.pageSize,userName:this.dataForm.orderNumber2,orderNo:this.dataForm.orderNumber,roleName:this.dataForm.value,state:this.state},this.searchParams),!1)}).then(({data:e})=>{this.dataList=e.data.records,this.page.total=e.data.total,this.dataListLoading=!1,t&&t()})},searchName(e){this.username=e,this.userNamevisible=!0},clearDatas(){this.dataForm={},this.dateRange=[]},sizeChangeHandle(e){this.page.pageSize=e,this.page.currentPage=1,this.getDataList(this.page)},currentChangeHandle(e){this.page.currentPage=e,this.getDataList(this.page)},handleClick(e,t){1==this.activeName?this.state="submitted":this.state="created",this.getDataList()},handleClick2(e,t){1==this.activeName2?this.state="":2==this.activeName2?this.state="submitted":this.state="created",this.getDataList()},UpdateHandle(e){this.UpdateVisibles=!0,this.$nextTick(()=>{this.$refs.Updates.init(e)})},addOrUpdateHandle(e){this.dataForm.symbol?(this.addOrUpdateVisible=!0,this.$nextTick(()=>{this.$refs.addOrUpdate.init(e)})):this.$message({message:"请先选择币种",type:"error"})},deleteHandle(e){this.$confirm("您确定要进行平仓操作吗","是否确认平仓",{distinguishCancelAndClose:!0,confirmButtonText:"取消",cancelButtonText:"平仓",type:"success"}).then(()=>{}).catch(t=>{"cancel"===t&&this.$http({url:this.$http.adornUrl("/normal/adminContractOrderAction!/close.action"),method:"get",params:this.$http.adornParams({orderNo:e})}).then(({data:e})=>{this.$message({message:"平仓成功",type:"success",duration:1500,onClose:()=>{this.visible=!1,this.getDataList()}})})})},getAction(){this.$http({url:this.$http.adornUrl("/normal/adminItemAction!/list"),method:"get",params:this.$http.adornParams({type:"cryptos"})}).then(({data:e})=>{e.data.records&&(this.option=e.data.records.map((e,t)=>Object.assign({},{symbol:e.symbol,name:e.name})))})},searchChange(e,t){this.page.currentPage=1,this.searchParams=e,this.getDataList(this.page,t)},refreshChange(){this.page=this.$refs.crud.$refs.tablePage.defaultPage,this.getDataList(this.page),this.dataListSelections=[],this.$refs.crud.selectClear()},selectionChange(e){console.log("val: ",e),this.dataListSelections=e}}},d=n,c=(a("4818"),a("2877")),p=Object(c["a"])(d,s,i,!1,null,"d3361276",null);t["default"]=p.exports},"665d":function(e,t,a){},a280:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"修改","close-on-click-modal":!1,visible:e.visible},on:{"update:visible":function(t){e.visible=t}}},[a("el-form",{ref:"dataForm",attrs:{model:e.dataForm,rules:e.dataRule,"label-width":"100px"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.dataFormSubmit()}}},[a("el-form-item",{attrs:{label:"保证金",prop:"address"}},[a("el-input",{attrs:{disabled:"",placeholder:"保证金"},model:{value:e.dataForm.depositOpen,callback:function(t){e.$set(e.dataForm,"depositOpen",t)},expression:"dataForm.depositOpen"}})],1),a("el-form-item",{attrs:{label:"盈亏百分比",prop:"profitLossRatio"}},[a("el-input",{attrs:{placeholder:"盈亏百分比"},model:{value:e.dataForm.profitLossRatio,callback:function(t){e.$set(e.dataForm,"profitLossRatio",t)},expression:"dataForm.profitLossRatio"}})],1)],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.visible=!1}}},[e._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.dataFormSubmit()}}},[e._v("确定")])],1)],1)},i=[],r=(a("ed08"),a("20ca")),l={data(){return{visible:!1,menuList:[],menuListTreeProps:{label:"name",children:"children"},dataForm:{depositOpen:"",orderNo:"",profitLossRatio:""},dataRule:{depositOpen:[{required:!0,message:"保证金不能为空",trigger:"blur"},{message:"请输入保证金",trigger:"blur"}],profitLossRatio:[{required:!0,message:"盈亏百分比不能为空",trigger:"blur"},{message:"请输入正确的盈亏百分比",trigger:"blur"}]},tempKey:-666666}},methods:{init(e){this.visible=!0,this.dataForm.depositOpen=e.depositOpen,this.dataForm.orderNo=e.orderNo,this.dataForm.profitLossRatio=e.profitLossRatio},dataFormSubmit:Object(r["a"])((function(){this.$refs["dataForm"].validate(e=>{e&&this.$http({url:this.$http.adornUrl("/normal/adminContractOrderAction!/adjustProfits.action"),method:"post",data:this.$http.adornData({orderNo:this.dataForm.orderNo,profitLossRatio:this.dataForm.profitLossRatio})}).then(({data:e})=>{0==e.code?this.$message({message:"操作成功",type:"success",duration:1500,onClose:()=>{this.visible=!1,this.$emit("refreshDataList")}}):this.$message({message:e.msg,duration:1500,onClose:()=>{this.visible=!1,this.$emit("refreshDataList")}})})})}))}},o=l,n=a("2877"),d=Object(n["a"])(o,s,i,!1,null,null,null);t["default"]=d.exports},aaac:function(e,t,a){"use strict";a("665d")},b587:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{staticClass:"transport-dialog",attrs:{title:"调整"+e.title,"close-on-click-modal":!1,visible:e.visible,width:"700px"},on:{"update:visible":function(t){e.visible=t},close:e.handClose}},[a("el-form",{ref:"dataForm",attrs:{model:e.dataForm,"label-width":"0px"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.dataFormSubmit()}}},[a("el-form-item",{attrs:{label:"",prop:"transName"}},[a("span",[e._v("请输入正负调整值")]),a("el-input",{attrs:{type:"number",placeholder:"请输入正负调整值"},on:{change:function(t){return e.checkNumber()}},model:{value:e.dataForm.transName,callback:function(t){e.$set(e.dataForm,"transName",t)},expression:"dataForm.transName"}})],1),a("el-form-item",[e.isAuth("shop:transfee:update")?a("el-button",{staticClass:"el-icon-circle-plus-outline",attrs:{type:"primary",size:"middle"},on:{click:function(t){return e.addOrUpdateHandle()}}},[e._v(e._s(e.pips))]):e._e(),e.isAuth("shop:transfee:delete")?a("el-button",{staticClass:"el-icon-remove-outline",attrs:{type:"primary",size:"middle"},on:{click:function(t){return e.deleteHandle()}}},[e._v(e._s(e.pips))]):e._e()],1),a("el-form-item",{attrs:{label:"",prop:"second"}},[a("span",[e._v("生效趋势(秒,0秒为即时生效)")]),a("el-input",{attrs:{oninput:"value=value.replace('-','')",type:"number",placeholder:"0秒为即时生效"},model:{value:e.second,callback:function(t){e.second=t},expression:"second"}})],1),a("div",[e._v("调整值")]),a("el-table",{staticClass:"table-con",staticStyle:{width:"100%"},attrs:{data:e.dataForm.transfees,border:""}},[a("el-table-column",{attrs:{"header-align":"center",align:"center",width:"200",label:"原值"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e.newPrice))])]}}])}),a("el-table-column",{staticStyle:{color:"red"},attrs:{"header-align":"center",align:"center",width:"180",label:"调整后"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form-item",{attrs:{"label-width":"0px"}},[a("div",{staticClass:"spainput"},[e._v(e._s(e.afterValue))])])]}}])}),a("el-table-column",{attrs:{"header-align":"center",align:"center",label:"累计修正值"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form-item",{attrs:{"label-width":"0px"}},[a("div",[e._v(e._s(e.adjustValue))])])]}}])})],1),a("div",{staticStyle:{"margin-top":"30px"}},[e._v("生效趋势")]),a("el-table",{staticClass:"table-con",staticStyle:{width:"100%"},attrs:{data:e.dataForm.transfeeFrees,border:""}},[a("el-table-column",{attrs:{"header-align":"center",align:"center",width:"338",label:"待生效值"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e.delayValue))])]}}])}),a("el-table-column",{attrs:{"header-align":"center",align:"center",width:"320",label:"时间(秒)"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form-item",{attrs:{"label-width":"0px"}},[a("div",[e._v(e._s(e.delaySecond))])])]}}])})],1)],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.visible=!1}}},[e._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.dataFormSubmit()}}},[e._v("确定")])],1)],1)},i=[],r=(a("14d9"),a("20ca")),l={data(){return{visible:!1,title:"",pips:"",adjustValue:"",afterValue:"",delaySecond:"",delayValue:"",newPrice:"",second:0,mafterValue:0,addOrUpdateVisible:!1,dataForm:{transName:0,transfees:[{cityList:[],status:1}],transfeeFrees:[{freeCityList:[],freeType:0}]},page:{total:0,currentPage:1,pageSize:10},editVisible:!1}},created(){},components:{},watch:{visible:function(e){e||(this.addOrUpdateVisible=!1)}},computed:{tableTitle(){var e=[["调整后","累计修正值","续件(个)","续费(元)"],["首重(kg)","运费(元)","续重(kg)","续费(元)"],["首体积(m³)","运费(元)","续体积(m³)","续费(元)"]];return this.dataForm.chargeType?e[this.dataForm.chargeType]:e[0]}},methods:{init(e){this.getDataList(e),this.title=e,this.visible=!0,this.dataForm.transportId=e||0,this.$nextTick(()=>{this.$refs.dataForm.resetFields(),this.dataForm={transName:0,createTime:"",chargeType:0,transportId:0,isFreeFee:0,transfees:[{cityList:[],status:1}],transfeeFrees:[{freeCityList:[],freeType:0}]}})},handClose(){this.$data.dataForm=JSON.parse(JSON.stringify(this.$options.data().dataForm)),this.second=0,this.$nextTick(()=>{this.$refs["dataForm"].clearValidate()})},getDataList(e){this.$http({url:this.$http.adornUrl("/normal/adminMarketQuotationsManageAction!/showModal.action"),method:"get",params:this.$http.adornParams({symbol:e})}).then(({data:e})=>{e&&(e.data.afterValue?this.afterValue=e.data.afterValue:this.afterValue=e.data.newPrice,1*e.data.pips==0?this.pips=.01:this.pips=e.data.pips,this.mafterValue=this.afterValue,this.adjustValue=e.data.adjustValue,this.delaySecond=e.data.delaySecond,this.delayValue=e.data.delayValue,this.newPrice=e.data.newPrice)})},addTransfee(){this.editVisible=!0,this.dataForm.transfees.push({cityList:[],status:1})},deleteTransfeeFree(e){this.dataForm.transfeeFrees.splice(e,1)},checkNumber(){let e=this.adjustValue,t=this.afterValue;this.afterValue=(1e9*t+1e9*this.dataForm.transName)/1e9,this.adjustValue=(1e9*e+1e9*this.dataForm.transName)/1e9},addOrUpdateHandle(e){let t=this.adjustValue,a=this.afterValue,s=this.dataForm.transName;this.dataForm.transName=(1e9*s+1e9*this.pips)/1e9,this.afterValue=(1e9*a+1e9*this.pips)/1e9,this.adjustValue=(1e9*t+1e9*this.pips)/1e9},deleteHandle(e){let t=this.adjustValue,a=this.afterValue,s=this.dataForm.transName;this.dataForm.transName=(1e9*s-1e9*this.pips)/1e9,this.afterValue=(1e9*a-1e9*this.pips)/1e9,this.adjustValue=(1e9*t-1e9*this.pips)/1e9},getNumber(e){return e=Math.round(e),e<0?0:e},dataFormSubmit:Object(r["a"])((function(){this.$refs["dataForm"].validate(e=>{e&&(this.dataForm.transfees[0].cityList=[],this.$http({url:this.$http.adornUrl("/normal/adminMarketQuotationsManageAction!/adjust.action"),method:"post",data:this.$http.adornData({second:this.second,symbol:this.title,value:this.dataForm.transName})}).then(({data:e})=>{0==e.code?this.$message({message:"操作成功",type:"success",duration:1e3,onClose:()=>{this.visible=!1,this.$emit("refreshDataList",this.page)}}):this.$message({message:e.msg,type:"error",duration:1e3,onClose:()=>{this.visible=!1}})}))})}))}},o=l,n=(a("aaac"),a("2877")),d=Object(n["a"])(o,s,i,!1,null,"f49db6ea",null);t["default"]=d.exports}}]);