chunk-2cb0c0bc.bd01afae9a2e2fe6fb2b.js 20 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2cb0c0bc"],{"2dc5":function(t,e,r){},"482b":function(t,e,r){"use strict";r.d(e,"a",(function(){return a})),r.d(e,"d",(function(){return o})),r.d(e,"e",(function(){return u})),r.d(e,"c",(function(){return i})),r.d(e,"b",(function(){return l}));var n=r("b775");function a(t){return Object(n["b"])({url:"/option-control/index",method:"get",params:t})}function o(t,e){return Object(n["b"])({url:"/option-control/update",method:"put",params:t,data:e})}function u(t,e){return Object(n["b"])({url:"/option-order/update",method:"put",params:t,data:e})}function i(t){return Object(n["b"])({url:"/option-control/delete",method:"delete",params:t})}function l(t){return Object(n["b"])({url:"/option-control/create",method:"post",data:t})}},"82b4":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("div",{staticClass:"presentForm"},[r("div",{staticClass:"leftFrom"},[r("el-form",{ref:"params",staticClass:"formList",attrs:{model:t.params,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"用户ID"}},[r("el-input",{attrs:{placeholder:"请输入用户ID",onkeyup:"this.value=this.value.replace(/[, ]/g,'')"},model:{value:t.params.member_id,callback:function(e){t.$set(t.params,"member_id","string"===typeof e?e.trim():e)},expression:"params.member_id"}})],1),r("el-form-item",{attrs:{label:"用户名称"}},[r("el-input",{attrs:{placeholder:"请输入用户名称",onkeyup:"this.value=this.value.replace(/[, ]/g,'')"},model:{value:t.params.username,callback:function(e){t.$set(t.params,"username","string"===typeof e?e.trim():e)},expression:"params.username"}})],1),r("el-form-item",{attrs:{label:"币种"}},[r("el-select",{attrs:{clearable:"",placeholder:"请选择币种"},model:{value:t.params.coin,callback:function(e){t.$set(t.params,"coin",e)},expression:"params.coin"}},t._l(t.coinList,(function(t){return r("el-option",{key:t.coin,attrs:{label:t.coin,value:t.coin}})})),1)],1),r("el-form-item",{attrs:{label:"秒数"}},[r("el-input",{attrs:{placeholder:"请输入秒数",onkeyup:"this.value=this.value.replace(/[, ]/g,'')"},model:{value:t.params.seconds,callback:function(e){t.$set(t.params,"seconds","string"===typeof e?e.trim():e)},expression:"params.seconds"}})],1),r("el-form-item",{attrs:{label:"交易类型"}},[r("el-select",{attrs:{clearable:"",placeholder:"请选择交易类型"},model:{value:t.params.type,callback:function(e){t.$set(t.params,"type",e)},expression:"params.type"}},[r("el-option",{attrs:{label:"看涨",value:"up"}}),r("el-option",{attrs:{label:"看跌",value:"down"}})],1)],1),r("el-form-item",{attrs:{label:"订单状态"}},[r("el-select",{attrs:{clearable:"",placeholder:"请选择订单状态"},model:{value:t.params.status,callback:function(e){t.$set(t.params,"status",e)},expression:"params.status"}},[r("el-option",{attrs:{label:"已结算",value:"closed"}}),r("el-option",{attrs:{label:"未结算",value:"waiting"}})],1)],1),r("el-form-item",{attrs:{label:"开仓时间"}},[r("el-date-picker",{attrs:{type:"datetimerange","value-format":"timestamp","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","default-time":["00:00:00","23:59:59"]},on:{change:t.changeOrderTime},model:{value:t.orderTimeData,callback:function(e){t.orderTimeData=e},expression:"orderTimeData"}})],1),r("el-form-item",{attrs:{label:"平仓时间"}},[r("el-date-picker",{attrs:{type:"datetimerange","value-format":"timestamp","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","default-time":["00:00:00","23:59:59"]},on:{change:t.changeClosedTime},model:{value:t.closedTimeData,callback:function(e){t.closedTimeData=e},expression:"closedTimeData"}})],1)],1)],1),r("div",{staticClass:"inquire"},[r("el-button",{staticClass:"demand",attrs:{type:"primary"},on:{click:t.inquire}},[t._v("查询")])],1)]),r("div",[r("p",[t._v("本页,客户盈亏总额:"+t._s(t.statistics.page.profit_and_loss)+" USDT,总金额:"+t._s(t.statistics.page.amount)+" USDT")])]),r("div",[r("p",[t._v("所有,客户盈亏总额:"+t._s(t.statistics.all.profit_and_loss)+" USDT,总金额:"+t._s(t.statistics.all.amount)+" USDT")])]),r("div",[r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData,border:"","cell-style":{textAlign:"center"},"header-cell-style":{textAlign:"center"},height:"600"}},[r("el-table-column",{attrs:{prop:"id",label:"序号"}}),r("el-table-column",{attrs:{prop:"member_id",label:"用户ID"}}),r("el-table-column",{attrs:{prop:"username",label:"用户名称"}}),r("el-table-column",{attrs:{prop:"count",label:"第几次购买"}}),r("el-table-column",{attrs:{prop:"ordernum",label:"订单号"}}),r("el-table-column",{attrs:{prop:"coin",label:"币种"}}),r("el-table-column",{attrs:{prop:"seconds",label:"秒数"}}),r("el-table-column",{attrs:{prop:"is_pending",label:"交易类型"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[t._v(" "+t._s("up"===e.row.type?"买涨":"买跌")+" ")])]}}])}),r("el-table-column",{attrs:{prop:"amount",label:"买入数量"}}),r("el-table-column",{attrs:{prop:"income_price",label:"买入价格"}}),r("el-table-column",{attrs:{prop:"closed_at",label:"订单状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.closed_at?"已结算":"待结算")+" ")]}}])}),r("el-table-column",{attrs:{prop:"closed_price",label:"结算价格"}}),r("el-table-column",{attrs:{prop:"created_at",label:"开仓时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t.timestampToDatetime(e.row.created_at))+" ")]}}])}),r("el-table-column",{attrs:{prop:"closed_at",label:"平仓时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t.timestampToDatetime(e.row.closed_at))+" ")]}}])}),r("el-table-column",{attrs:{prop:"profit_and_loss",label:"盈亏"}}),r("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-button",{staticClass:"greenbg",on:{click:function(r){return t.detail(e.row)}}},[t._v("明细")]),null==e.row.closed_at?r("el-button",{staticClass:"greenbg",attrs:{type:"primary"},on:{click:function(r){return t.showDataEditForm(e.row)}}},[t._v("修改")]):t._e()]}}])})],1),r("Paginate",{attrs:{page:t.params.page,total:t.total},on:{currentChange:t.handleCurrentChange,sizeChange:t.handleSizeChange}}),r("el-dialog",{staticClass:"info-dialog",attrs:{visible:t.isShowEditDialog,width:"800px",title:"编辑期权控制"},on:{"update:visible":function(e){t.isShowEditDialog=e}}},[r("div",[r("el-form",{ref:"editForm",staticClass:"ruleForm",attrs:{model:t.editForm,rules:t.rules,"label-width":"140px"}},[r("el-form-item",{attrs:{label:"模式",prop:"status"}},[r("el-select",{staticStyle:{width:"118px"},model:{value:t.editForm.mode,callback:function(e){t.$set(t.editForm,"mode",e)},expression:"editForm.mode"}},t._l(t.controls,(function(t){return r("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1)],1)],1),r("template",{slot:"footer"},[r("span",{staticClass:"dialog-footer"},[r("el-button",{staticClass:"dialog-cancel-btn",on:{click:function(e){t.isShowEditDialog=!1}}},[t._v("取 消")]),r("el-button",{staticClass:"dialog-confirm-btn",attrs:{type:"primary"},on:{click:t.submitEdit}},[t._v("确 定")])],1)])],2)],1)])},a=[],o=r("f201"),u=r("0238"),i=r("c466"),l=r("482b"),c={name:"contractIndex",components:{Paginate:u["a"]},data:function(){return{id:"",editForm:{mode:""},isShowEditDialog:!1,controls:[{label:"正常",value:"normal"},{label:"赢",value:"win"},{label:"平",value:"draw"},{label:"输",value:"lose"}],rules:{mode:[{required:!0,message:"请选择模式",trigger:"blur"}]},profit:0,profitFee:0,profitFlag:!1,params:{page:1,page_size:this.$store.state.attr.pageSize,username:"",member_id:"",order_num:"",coin:"",seconds:"",type:"",status:"",created_at_start:"",created_at_end:"",closed_at_start:"",closed_at_end:""},statistics:{page:{profit_and_loss:0,amount:0},all:{profit_and_loss:0,amount:0}},orderTimeData:[],closedTimeData:[],coinList:[],tableData:[],loading:!1,total:0,btnLoading:!1}},computed:{},mounted:function(){this.$route.query.ordernum&&(this.params.ordernum=this.$route.query.ordernum),this.finstall(),this.install()},methods:{showDataEditForm:function(t){this.isShowEditDialog=!0,this.editForm={mode:t.mode},this.id=t.id,console.log(this.id)},submitEdit:function(){var t=this;this.$refs["editForm"].validate((function(e){if(!e)return console.log("error submit!!"),!1;console.log(t.id),Object(l["e"])({id:t.id},{mode:t.editForm.mode}).then((function(e){200===e.code?(t.$message.success("编辑成功"),t.install(),t.isShowEditDialog=!1):t.$message.error(e.message)}))}))},finstall:function(){var t=this;Object(o["C"])().then((function(e){t.coinList=e.data}))},install:function(){var t=this,e={page:this.cal.accSub(this.params.page,1),page_size:this.params.page_size,username:this.params.username,member_id:this.params.member_id,coin:this.params.coin,seconds:this.params.seconds,type:this.params.type,status:this.params.status,created_at_start:this.params.created_at_start,created_at_end:this.params.created_at_end,closed_at_start:this.params.closed_at_start,closed_at_end:this.params.closed_at_end,ordernum:this.params.ordernum};Object(o["H"])(e).then((function(e){200===e.code?(t.total=parseInt(e.data.listTotalCount),t.tableData=e.data.list,t.statistics=e.data.statistics):t.$message.error(e.message),t.loading=!1}))},inquire:function(){this.params.page=1,this.tableData=[],this.install()},changeOrderTime:function(t){t?(this.params.created_at_start=t[0]/1e3,this.params.created_at_end=t[1]/1e3):(this.params.created_at_start="",this.params.created_at_end="")},changeClosedTime:function(t){t?(this.params.closed_at_start=t[0]/1e3,this.params.closed_at_end=t[1]/1e3):(this.params.closed_at_start="",this.params.closed_at_end="")},detail:function(t){this.$router.push({path:"/member/moneybag",query:{ordernum:t.ordernum}})},handleCurrentChange:function(t){this.params.page=t,this.install()},handleSizeChange:function(t,e){this.params.page_size=t,this.install()},timestampToDatetime:function(t){return Object(i["a"])(t,!0)}}},s=c,d=(r("d3b1"),r("2877")),m=Object(d["a"])(s,n,a,!1,null,"e9805260",null);e["default"]=m.exports},d3b1:function(t,e,r){"use strict";var n=r("2dc5"),a=r.n(n);a.a},f201:function(t,e,r){"use strict";r.d(e,"U",(function(){return a})),r.d(e,"j",(function(){return o})),r.d(e,"zb",(function(){return u})),r.d(e,"B",(function(){return i})),r.d(e,"k",(function(){return l})),r.d(e,"vb",(function(){return c})),r.d(e,"c",(function(){return s})),r.d(e,"i",(function(){return d})),r.d(e,"f",(function(){return m})),r.d(e,"g",(function(){return p})),r.d(e,"e",(function(){return b})),r.d(e,"h",(function(){return f})),r.d(e,"b",(function(){return h})),r.d(e,"v",(function(){return g})),r.d(e,"u",(function(){return O})),r.d(e,"x",(function(){return _})),r.d(e,"w",(function(){return j})),r.d(e,"y",(function(){return v})),r.d(e,"sb",(function(){return w})),r.d(e,"fb",(function(){return y})),r.d(e,"ob",(function(){return x})),r.d(e,"o",(function(){return T})),r.d(e,"xb",(function(){return k})),r.d(e,"wb",(function(){return S})),r.d(e,"yb",(function(){return D})),r.d(e,"rb",(function(){return C})),r.d(e,"qb",(function(){return P})),r.d(e,"pb",(function(){return F})),r.d(e,"T",(function(){return $})),r.d(e,"tb",(function(){return E})),r.d(e,"R",(function(){return z})),r.d(e,"Q",(function(){return q})),r.d(e,"S",(function(){return L})),r.d(e,"A",(function(){return I})),r.d(e,"z",(function(){return U})),r.d(e,"t",(function(){return A})),r.d(e,"N",(function(){return H})),r.d(e,"P",(function(){return J})),r.d(e,"eb",(function(){return N})),r.d(e,"n",(function(){return B})),r.d(e,"a",(function(){return G})),r.d(e,"l",(function(){return K})),r.d(e,"d",(function(){return M})),r.d(e,"m",(function(){return Q})),r.d(e,"O",(function(){return R})),r.d(e,"ib",(function(){return V})),r.d(e,"nb",(function(){return W})),r.d(e,"jb",(function(){return X})),r.d(e,"lb",(function(){return Y})),r.d(e,"kb",(function(){return Z})),r.d(e,"gb",(function(){return tt})),r.d(e,"mb",(function(){return et})),r.d(e,"hb",(function(){return rt})),r.d(e,"db",(function(){return nt})),r.d(e,"cb",(function(){return at})),r.d(e,"Z",(function(){return ot})),r.d(e,"ab",(function(){return ut})),r.d(e,"bb",(function(){return it})),r.d(e,"H",(function(){return lt})),r.d(e,"D",(function(){return ct})),r.d(e,"C",(function(){return st})),r.d(e,"G",(function(){return dt})),r.d(e,"F",(function(){return mt})),r.d(e,"E",(function(){return pt})),r.d(e,"I",(function(){return bt})),r.d(e,"L",(function(){return ft})),r.d(e,"K",(function(){return ht})),r.d(e,"J",(function(){return gt})),r.d(e,"M",(function(){return Ot})),r.d(e,"r",(function(){return _t})),r.d(e,"p",(function(){return jt})),r.d(e,"s",(function(){return vt})),r.d(e,"q",(function(){return wt})),r.d(e,"V",(function(){return yt})),r.d(e,"Y",(function(){return xt})),r.d(e,"X",(function(){return Tt})),r.d(e,"W",(function(){return kt})),r.d(e,"ub",(function(){return St}));var n=r("b775");function a(t){return Object(n["b"])({url:"/common-dic/update2",method:"POST",data:t})}function o(t){return Object(n["b"])({url:"/withdrawal-net/index",method:"get",params:t})}function u(t){return Object(n["b"])({url:"/withdrawal-net/create",method:"POST",data:t})}function i(t,e){return Object(n["b"])({url:"/withdrawal-net/update",method:"put",params:t,data:e})}function l(t){return Object(n["b"])({url:"/common-dic/index2",method:"get",params:t})}function c(t){return Object(n["b"])({url:"/withdrawal-net/delete",method:"delete",params:t})}function s(t){return Object(n["b"])({url:"/coin/index",method:"get",params:t})}function d(t,e){return Object(n["b"])({url:"/coin/update",method:"put",params:t,data:e})}function m(t){return Object(n["b"])({url:"/coin-recharge-net",method:"get",params:t})}function p(t){return Object(n["b"])({url:"/coin-recharge-net/delete",method:"delete",params:t})}function b(t){return Object(n["b"])({url:"/coin/net",method:"get",params:t})}function f(t){return Object(n["b"])({url:"/coin-recharge-net/create",method:"POST",data:t})}function h(t){return Object(n["b"])({url:"/invite-level/index",method:"get",params:t})}function g(t,e){return Object(n["b"])({url:"/invite-level/update",method:"put",params:t,data:e})}function O(t){return Object(n["b"])({url:"/invite-level/create",method:"POST",data:t})}function _(t){return Object(n["b"])({url:"/invite-profit-static/index",method:"get",params:t})}function j(t){return Object(n["b"])({url:"/invite-profit-static/detail",method:"get",params:t})}function v(t){return Object(n["b"])({url:"/invite-profit-static/profit",method:"get",params:t})}function w(t){return Object(n["b"])({url:"/wallet/transfer-log",method:"get",params:t})}function y(t){return Object(n["b"])({url:"/wallet/transfer-export",method:"get",responseType:"blob",params:t})}function x(t){return Object(n["b"])({url:"/wallet/flash-exchange-log",method:"get",params:t})}function T(t){return Object(n["b"])({url:"/wallet/flash-exchange-export",method:"get",responseType:"blob",params:t})}function k(t){return Object(n["b"])({url:"/withdraw/index",method:"get",params:t})}function S(t){return Object(n["b"])({url:"/withdraw/export",method:"get",responseType:"blob",params:t})}function D(t,e){return Object(n["b"])({url:"/withdraw/update",method:"put",params:t,data:e})}function C(t){return Object(n["b"])({url:"/wallet/operate-log",method:"get",params:t})}function P(t){return Object(n["b"])({url:"/wallet/operate",method:"POST",data:t})}function F(t){return Object(n["b"])({url:"/wallet/modify-wallet-operate-remark",method:"PATCH",data:t})}function $(t){return Object(n["b"])({url:"/wallet/operate-export",method:"get",responseType:"blob",params:t})}function E(t){return Object(n["b"])({url:"/withdraw/abandon",method:"POST",data:t})}function z(t){return Object(n["b"])({url:"/recharge/confirm",method:"POST",data:t})}function q(t){return Object(n["b"])({url:"/recharge/abandon",method:"POST",data:t})}function L(t){return Object(n["b"])({url:"/recharge/export",method:"get",responseType:"blob",params:t})}function I(t){return Object(n["b"])({url:"/invite-profit-static/log",method:"get",params:t})}function U(t){return Object(n["b"])({url:"/invite-profit-static/change-type",method:"get",params:t})}function A(t){return Object(n["b"])({url:"/futures-order/index",method:"get",params:t})}function H(t){return Object(n["b"])({url:"/futures-order/close",method:"POST",data:t})}function J(t){return Object(n["b"])({url:"/futures-order/cancel-close",method:"POST",data:t})}function N(t){return Object(n["b"])({url:"/coin-control/index",method:"get",params:t})}function B(t,e){return Object(n["b"])({url:"/coin-control/update",method:"put",params:t,data:e})}function G(t){return Object(n["b"])({url:"/coin-control/create",method:"post",data:t})}function K(t,e){return Object(n["b"])({url:"/coin-control/delete",method:"DELETE",params:t,data:e})}function M(t){return Object(n["b"])({url:"/coin-control/coin",method:"get",params:t})}function Q(t){return Object(n["b"])({url:"/futures-order/close-fee",method:"get",params:t})}function R(t){return Object(n["b"])({url:"/futures-order/close-all",method:"POST",params:t})}function V(t){return Object(n["b"])({url:"/tutorial/index",method:"get",params:t})}function W(t){return Object(n["b"])({url:"/tutorial-type/index",method:"get",params:t})}function X(t){return Object(n["b"])({url:"/tutorial-type/create",method:"POST",data:t})}function Y(t,e){return Object(n["b"])({url:"/tutorial-type/update",method:"put",params:t,data:e})}function Z(t){return Object(n["b"])({url:"/tutorial-type/delete",method:"delete",params:t})}function tt(t){return Object(n["b"])({url:"/tutorial/create",method:"POST",data:t})}function et(t,e){return Object(n["b"])({url:"/tutorial/update",method:"put",params:t,data:e})}function rt(t){return Object(n["b"])({url:"/tutorial/delete",method:"delete",params:t})}function nt(t){return Object(n["b"])({url:"/task/index",method:"get",params:t})}function at(t,e){return Object(n["b"])({url:"/task/update",method:"put",params:t,data:e})}function ot(t){return Object(n["b"])({url:"/task/create",method:"POST",data:t})}function ut(t){return Object(n["b"])({url:"/task/delete",method:"delete",params:t})}function it(t){return Object(n["b"])({url:"/task-member/index",method:"get",params:t})}function lt(t){return Object(n["b"])({url:"/option-order/index",method:"get",params:t})}function ct(t){return Object(n["b"])({url:"/option-coin/index",method:"get",params:t})}function st(t){return Object(n["b"])({url:"/option-coin/coin",method:"get",params:t})}function dt(t,e){return Object(n["b"])({url:"/option-coin/update",method:"put",params:t,data:e})}function mt(t){return Object(n["b"])({url:"/option-coin/delete",method:"delete",params:t})}function pt(t){return Object(n["b"])({url:"/option-coin/create",method:"post",data:t})}function bt(t){return Object(n["b"])({url:"/option-rule/index",method:"get",params:t})}function ft(t,e){return Object(n["b"])({url:"/option-rule/update",method:"put",params:t,data:e})}function ht(t){return Object(n["b"])({url:"/option-rule/delete",method:"delete",params:t})}function gt(t){return Object(n["b"])({url:"/option-rule/create",method:"post",data:t})}function Ot(t){return Object(n["b"])({url:"/option-order/statistics",method:"get"})}function _t(t){return Object(n["b"])({url:"/footer/index",method:"get",params:t})}function jt(t){return Object(n["b"])({url:"/footer/create",method:"post",data:t})}function vt(t,e){return Object(n["b"])({url:"/footer/update",method:"put",params:t,data:e})}function wt(t){return Object(n["b"])({url:"/footer/delete",method:"delete",params:t})}function yt(t){return Object(n["b"])({url:"/spread-level/index",method:"get",params:t})}function xt(t,e){return Object(n["b"])({url:"/spread-level/update",method:"put",params:t,data:e})}function Tt(t){return Object(n["b"])({url:"/spread-level/delete",method:"delete",params:t})}function kt(t){return Object(n["b"])({url:"/spread-level/create",method:"post",data:t})}function St(t){return Object(n["b"])({url:"/withdraw-account/index",method:"get",params:t})}}}]);