chunk-c3f2c724.d27adabe0e4d37fb8b27.js 19 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c3f2c724"],{2616:function(t,e,n){"use strict";var r=n("5179"),a=n.n(r);a.a},"367d":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h5",[t._v("新手任务")]),n("div",{staticStyle:{"margin-bottom":"15px","text-align":"right"}},[n("el-button",{staticClass:"demand",attrs:{type:"primary"},on:{click:t.addItemize}},[t._v("添加新手任务")])],1),n("div",[n("el-table",{staticStyle:{width:"100%"},attrs:{data:t.serviceList,border:"","cell-style":{textAlign:"center"},"header-cell-style":{textAlign:"center"},"min-height":"150"}},[t._v(" > "),n("el-table-column",{attrs:{prop:"title",label:"英文标题"}}),n("el-table-column",{attrs:{prop:"title_cn",label:"中文标题"}}),n("el-table-column",{attrs:{prop:"biz",label:"类型"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(" "+t._s("1"==e.row.biz?"合约":"现货")+" ")])]}}])}),n("el-table-column",{attrs:{prop:"mode",label:"模式"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(" "+t._s("1"==e.row.mode?"入金与交易量":"2"==e.row.mode?"开仓金额":"3"==e.row.mode?"盈利":"4"==e.row.mode?"亏损":"交易")+" ")])]}}])}),n("el-table-column",{attrs:{prop:"detail",label:"详情"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.mode?n("div",[n("p",[t._v("充值金额: "+t._s(e.row.detail.recharge_amount))]),n("p",[t._v(" 交易金额:"+t._s(e.row.detail.trade_amount))])]):t._e(),2==e.row.mode?n("div",[n("p",[t._v(" 交易金额:"+t._s(e.row.detail.trade_amount))])]):t._e(),3==e.row.mode?n("div",[n("p",[t._v(" 收益金额:"+t._s(e.row.detail.profit_amount))])]):t._e(),4==e.row.mode?n("div",[n("p",[t._v(" 亏损金额:"+t._s(e.row.detail.loss_amount))])]):t._e()]}}])}),n("el-table-column",{attrs:{prop:"bonus",label:"奖金"}}),n("el-table-column",{attrs:{prop:"status",label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(" "+t._s("0"==e.row.status?"未启用":"启用")+" ")])]}}])}),n("el-table-column",{attrs:{prop:"updated_at",label:"更新时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(" "+t._s(t.timestampToDatetime(e.row.updated_at))+" ")])]}}])}),n("el-table-column",{attrs:{label:"操作",width:"300px"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"handleIcon"},[n("el-button",{staticClass:"demand",attrs:{type:"primary"},on:{click:function(n){return t.editClick(e.row)}}},[t._v("编辑")]),n("el-button",{staticClass:"demand",attrs:{type:"primary"},on:{click:function(n){return t.deleteClick(e.row)}}},[t._v("删除")])],1)]}}])})],1),n("Paginate",{attrs:{page:t.params.page,total:t.total},on:{currentChange:t.handleCurrentChange,sizeChange:t.handleSizeChange}}),n("el-dialog",{attrs:{title:t.title,visible:t.addPopup,width:"30%","before-close":t.addClose},on:{"update:visible":function(e){t.addPopup=e}}},[n("div",{staticClass:"addList"},[n("el-form",{ref:"addList",staticClass:"addList",attrs:{model:t.addList,"label-width":"120px"}},[n("el-form-item",{attrs:{label:"类型"}},[n("el-select",{attrs:{placeholder:"请选择模式"},model:{value:t.addList.biz,callback:function(e){t.$set(t.addList,"biz",e)},expression:"addList.biz"}},t._l(t.bizlist,(function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),n("el-form-item",{attrs:{label:"英文标题"}},[n("el-input",{attrs:{placeholder:"请输入英文标题"},model:{value:t.addList.title,callback:function(e){t.$set(t.addList,"title",e)},expression:"addList.title"}})],1),n("el-form-item",{attrs:{label:"中文标题"}},[n("el-input",{attrs:{placeholder:"请输入中文标题"},model:{value:t.addList.title_cn,callback:function(e){t.$set(t.addList,"title_cn",e)},expression:"addList.title_cn"}})],1),n("el-form-item",{attrs:{label:"奖金"}},[n("el-input",{attrs:{placeholder:"请输入奖金"},model:{value:t.addList.bonus,callback:function(e){t.$set(t.addList,"bonus",e)},expression:"addList.bonus"}})],1),n("el-form-item",{attrs:{label:"模式"}},[n("el-select",{attrs:{placeholder:"请选择模式"},model:{value:t.addList.mode,callback:function(e){t.$set(t.addList,"mode",e)},expression:"addList.mode"}},t._l(t.modelist,(function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),n("el-form-item",{attrs:{label:"详情"}},[n("div",{staticClass:"ended"},[1==t.addList.mode?n("div",[n("el-input",{attrs:{placeholder:"请输入充值金额"},model:{value:t.addList.detail.recharge_amount,callback:function(e){t.$set(t.addList.detail,"recharge_amount",e)},expression:"addList.detail.recharge_amount"}}),n("el-input",{attrs:{placeholder:"请输入交易金额"},model:{value:t.addList.detail.trade_amount,callback:function(e){t.$set(t.addList.detail,"trade_amount",e)},expression:"addList.detail.trade_amount"}})],1):t._e(),2==t.addList.mode?n("div",[n("el-input",{attrs:{placeholder:"请输入交易金额"},model:{value:t.addList.detail.trade_amount,callback:function(e){t.$set(t.addList.detail,"trade_amount",e)},expression:"addList.detail.trade_amount"}})],1):t._e(),3==t.addList.mode?n("div",[n("el-input",{attrs:{placeholder:"请输入收益金额"},model:{value:t.addList.detail.profit_amount,callback:function(e){t.$set(t.addList.detail,"profit_amount",e)},expression:"addList.detail.profit_amount"}})],1):t._e(),4==t.addList.mode?n("div",[n("el-input",{attrs:{placeholder:"请输入亏损金额"},model:{value:t.addList.detail.loss_amount,callback:function(e){t.$set(t.addList.detail,"loss_amount",e)},expression:"addList.detail.loss_amount"}})],1):t._e()])]),n("el-form-item",{attrs:{label:"是否启用"}},[n("el-select",{model:{value:t.addList.status,callback:function(e){t.$set(t.addList,"status",e)},expression:"addList.status"}},[n("el-option",{attrs:{label:"是",value:"1"}}),n("el-option",{attrs:{label:"否",value:"0"}})],1)],1)],1)],1),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){return t.addClose()}}},[t._v("取 消")]),t.editshow?n("el-button",{attrs:{type:"primary"},on:{click:t.editorSubmit}},[t._v("确定修改")]):n("el-button",{attrs:{type:"primary"},on:{click:t.addSubmit}},[t._v("确定新增")])],1)])],1)])},a=[],o=(n("365c"),n("f201")),i=n("0238"),u=n("c466"),d={name:"newbieTask",components:{Paginate:i["a"]},data:function(){return{params:{type:"2",page:1,page_size:this.$store.state.attr.pageSize},serviceList:[],total:0,loading:!1,title:"新增任务",addList:{biz:"",title:"",title_cn:"",bonus:"",detail:{recharge_amount:"",trade_amount:"",profit_amount:"",loss_amount:""},status:"1"},addPopup:!1,editshow:!1,bizlist:[{value:"1",label:"合约"},{value:"2",label:"现货"}],modelist:[{value:"1",label:"入金与交易量"},{value:"2",label:"开仓金额"},{value:"3",label:"盈利"},{value:"4",label:"亏损"},{value:"5",label:"交易"}]}},computed:{},watch:{},mounted:function(){this.install()},methods:{install:function(){var t=this,e={page:this.cal.accSub(this.params.page,1),page_size:this.params.page_size,type:this.params.type};Object(o["db"])(e).then((function(e){console.log(e),t.serviceList=e.data.list}))},addItemize:function(){this.addPopup=!0},addClose:function(){this.addList={biz:"",title:"",title_cn:"",bonus:"",detail:{recharge_amount:"",trade_amount:"",profit_amount:"",loss_amount:""},status:1},this.addPopup=!1,this.editshow=!1},addSubmit:function(){var t=this,e={};1==this.addList.mode?e={recharge_amount:this.addList.detail.recharge_amount,trade_amount:this.addList.detail.trade_amount}:2==this.addList.mode?e={trade_amount:this.addList.detail.trade_amount}:3==this.addList.mode?e={profit_amount:this.addList.detail.profit_amount}:4==this.addList.mode&&(e={loss_amount:this.addList.detail.loss_amount});var n={type:"2",mode:this.addList.mode,biz:this.addList.biz,title:this.addList.title,title_cn:this.addList.title_cn,bonus:this.addList.bonus,detail:JSON.stringify(e),status:this.addList.status};Object(o["Z"])(n).then((function(e){console.log(e),200===e.code?(t.addClose(),t.install()):t.$message.error(e.message),t.loading=!1}))},editClick:function(t){t=JSON.stringify(t),this.title="修改任务信息",this.addList=JSON.parse(t),this.addPopup=!0,this.editshow=!0},editorSubmit:function(){var t=this,e={};1==this.addList.mode?e={recharge_amount:this.addList.detail.recharge_amount,trade_amount:this.addList.detail.trade_amount}:2==this.addList.mode?e={trade_amount:this.addList.detail.trade_amount}:3==this.addList.mode?e={profit_amount:this.addList.detail.profit_amount}:4==this.addList.mode&&(e={loss_amount:this.addList.detail.loss_amount});var n={type:"2",mode:this.addList.mode,biz:this.addList.biz,title:this.addList.title,title_cn:this.addList.title_cn,bonus:this.addList.bonus,detail:JSON.stringify(e),status:this.addList.status},r={id:this.addList.id};Object(o["cb"])(r,n).then((function(e){200===e.code?(t.addClose(),t.install()):t.$message.error(e.message),t.loading=!1}))},deleteClick:function(t){var e=this;console.log(t),this.$confirm("确认删除该数据?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(o["ab"])({id:t.id}).then((function(t){200===t.code?(e.$message.success("删除成功"),e.params.page=1,e.install()):e.$message.error(t.message)}))})).catch((function(){}))},handleCurrentChange:function(t){this.params.page=t,this.install()},handleSizeChange:function(t){this.params.page_size=t,this.install()},timestampToDatetime:function(t){return Object(u["a"])(t,!0)}},beforeCreate:function(){},created:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},l=d,s=(n("2616"),n("2877")),c=Object(s["a"])(l,r,a,!1,null,"7e101314",null);e["default"]=c.exports},5179:function(t,e,n){},f201:function(t,e,n){"use strict";n.d(e,"U",(function(){return a})),n.d(e,"j",(function(){return o})),n.d(e,"zb",(function(){return i})),n.d(e,"B",(function(){return u})),n.d(e,"k",(function(){return d})),n.d(e,"vb",(function(){return l})),n.d(e,"c",(function(){return s})),n.d(e,"i",(function(){return c})),n.d(e,"f",(function(){return m})),n.d(e,"g",(function(){return b})),n.d(e,"e",(function(){return f})),n.d(e,"h",(function(){return p})),n.d(e,"b",(function(){return h})),n.d(e,"v",(function(){return _})),n.d(e,"u",(function(){return g})),n.d(e,"x",(function(){return O})),n.d(e,"w",(function(){return v})),n.d(e,"y",(function(){return j})),n.d(e,"sb",(function(){return L})),n.d(e,"fb",(function(){return w})),n.d(e,"ob",(function(){return x})),n.d(e,"o",(function(){return y})),n.d(e,"xb",(function(){return k})),n.d(e,"wb",(function(){return S})),n.d(e,"yb",(function(){return C})),n.d(e,"rb",(function(){return T})),n.d(e,"qb",(function(){return z})),n.d(e,"pb",(function(){return P})),n.d(e,"T",(function(){return $})),n.d(e,"tb",(function(){return J})),n.d(e,"R",(function(){return D})),n.d(e,"Q",(function(){return E})),n.d(e,"S",(function(){return N})),n.d(e,"A",(function(){return A})),n.d(e,"z",(function(){return I})),n.d(e,"t",(function(){return B})),n.d(e,"N",(function(){return q})),n.d(e,"P",(function(){return H})),n.d(e,"eb",(function(){return M})),n.d(e,"n",(function(){return U})),n.d(e,"a",(function(){return Z})),n.d(e,"l",(function(){return F})),n.d(e,"d",(function(){return G})),n.d(e,"m",(function(){return K})),n.d(e,"O",(function(){return Q})),n.d(e,"ib",(function(){return R})),n.d(e,"nb",(function(){return V})),n.d(e,"jb",(function(){return W})),n.d(e,"lb",(function(){return X})),n.d(e,"kb",(function(){return Y})),n.d(e,"gb",(function(){return tt})),n.d(e,"mb",(function(){return et})),n.d(e,"hb",(function(){return nt})),n.d(e,"db",(function(){return rt})),n.d(e,"cb",(function(){return at})),n.d(e,"Z",(function(){return ot})),n.d(e,"ab",(function(){return it})),n.d(e,"bb",(function(){return ut})),n.d(e,"H",(function(){return dt})),n.d(e,"D",(function(){return lt})),n.d(e,"C",(function(){return st})),n.d(e,"G",(function(){return ct})),n.d(e,"F",(function(){return mt})),n.d(e,"E",(function(){return bt})),n.d(e,"I",(function(){return ft})),n.d(e,"L",(function(){return pt})),n.d(e,"K",(function(){return ht})),n.d(e,"J",(function(){return _t})),n.d(e,"M",(function(){return gt})),n.d(e,"r",(function(){return Ot})),n.d(e,"p",(function(){return vt})),n.d(e,"s",(function(){return jt})),n.d(e,"q",(function(){return Lt})),n.d(e,"V",(function(){return wt})),n.d(e,"Y",(function(){return xt})),n.d(e,"X",(function(){return yt})),n.d(e,"W",(function(){return kt})),n.d(e,"ub",(function(){return St}));var r=n("b775");function a(t){return Object(r["b"])({url:"/common-dic/update2",method:"POST",data:t})}function o(t){return Object(r["b"])({url:"/withdrawal-net/index",method:"get",params:t})}function i(t){return Object(r["b"])({url:"/withdrawal-net/create",method:"POST",data:t})}function u(t,e){return Object(r["b"])({url:"/withdrawal-net/update",method:"put",params:t,data:e})}function d(t){return Object(r["b"])({url:"/common-dic/index2",method:"get",params:t})}function l(t){return Object(r["b"])({url:"/withdrawal-net/delete",method:"delete",params:t})}function s(t){return Object(r["b"])({url:"/coin/index",method:"get",params:t})}function c(t,e){return Object(r["b"])({url:"/coin/update",method:"put",params:t,data:e})}function m(t){return Object(r["b"])({url:"/coin-recharge-net",method:"get",params:t})}function b(t){return Object(r["b"])({url:"/coin-recharge-net/delete",method:"delete",params:t})}function f(t){return Object(r["b"])({url:"/coin/net",method:"get",params:t})}function p(t){return Object(r["b"])({url:"/coin-recharge-net/create",method:"POST",data:t})}function h(t){return Object(r["b"])({url:"/invite-level/index",method:"get",params:t})}function _(t,e){return Object(r["b"])({url:"/invite-level/update",method:"put",params:t,data:e})}function g(t){return Object(r["b"])({url:"/invite-level/create",method:"POST",data:t})}function O(t){return Object(r["b"])({url:"/invite-profit-static/index",method:"get",params:t})}function v(t){return Object(r["b"])({url:"/invite-profit-static/detail",method:"get",params:t})}function j(t){return Object(r["b"])({url:"/invite-profit-static/profit",method:"get",params:t})}function L(t){return Object(r["b"])({url:"/wallet/transfer-log",method:"get",params:t})}function w(t){return Object(r["b"])({url:"/wallet/transfer-export",method:"get",responseType:"blob",params:t})}function x(t){return Object(r["b"])({url:"/wallet/flash-exchange-log",method:"get",params:t})}function y(t){return Object(r["b"])({url:"/wallet/flash-exchange-export",method:"get",responseType:"blob",params:t})}function k(t){return Object(r["b"])({url:"/withdraw/index",method:"get",params:t})}function S(t){return Object(r["b"])({url:"/withdraw/export",method:"get",responseType:"blob",params:t})}function C(t,e){return Object(r["b"])({url:"/withdraw/update",method:"put",params:t,data:e})}function T(t){return Object(r["b"])({url:"/wallet/operate-log",method:"get",params:t})}function z(t){return Object(r["b"])({url:"/wallet/operate",method:"POST",data:t})}function P(t){return Object(r["b"])({url:"/wallet/modify-wallet-operate-remark",method:"PATCH",data:t})}function $(t){return Object(r["b"])({url:"/wallet/operate-export",method:"get",responseType:"blob",params:t})}function J(t){return Object(r["b"])({url:"/withdraw/abandon",method:"POST",data:t})}function D(t){return Object(r["b"])({url:"/recharge/confirm",method:"POST",data:t})}function E(t){return Object(r["b"])({url:"/recharge/abandon",method:"POST",data:t})}function N(t){return Object(r["b"])({url:"/recharge/export",method:"get",responseType:"blob",params:t})}function A(t){return Object(r["b"])({url:"/invite-profit-static/log",method:"get",params:t})}function I(t){return Object(r["b"])({url:"/invite-profit-static/change-type",method:"get",params:t})}function B(t){return Object(r["b"])({url:"/futures-order/index",method:"get",params:t})}function q(t){return Object(r["b"])({url:"/futures-order/close",method:"POST",data:t})}function H(t){return Object(r["b"])({url:"/futures-order/cancel-close",method:"POST",data:t})}function M(t){return Object(r["b"])({url:"/coin-control/index",method:"get",params:t})}function U(t,e){return Object(r["b"])({url:"/coin-control/update",method:"put",params:t,data:e})}function Z(t){return Object(r["b"])({url:"/coin-control/create",method:"post",data:t})}function F(t,e){return Object(r["b"])({url:"/coin-control/delete",method:"DELETE",params:t,data:e})}function G(t){return Object(r["b"])({url:"/coin-control/coin",method:"get",params:t})}function K(t){return Object(r["b"])({url:"/futures-order/close-fee",method:"get",params:t})}function Q(t){return Object(r["b"])({url:"/futures-order/close-all",method:"POST",params:t})}function R(t){return Object(r["b"])({url:"/tutorial/index",method:"get",params:t})}function V(t){return Object(r["b"])({url:"/tutorial-type/index",method:"get",params:t})}function W(t){return Object(r["b"])({url:"/tutorial-type/create",method:"POST",data:t})}function X(t,e){return Object(r["b"])({url:"/tutorial-type/update",method:"put",params:t,data:e})}function Y(t){return Object(r["b"])({url:"/tutorial-type/delete",method:"delete",params:t})}function tt(t){return Object(r["b"])({url:"/tutorial/create",method:"POST",data:t})}function et(t,e){return Object(r["b"])({url:"/tutorial/update",method:"put",params:t,data:e})}function nt(t){return Object(r["b"])({url:"/tutorial/delete",method:"delete",params:t})}function rt(t){return Object(r["b"])({url:"/task/index",method:"get",params:t})}function at(t,e){return Object(r["b"])({url:"/task/update",method:"put",params:t,data:e})}function ot(t){return Object(r["b"])({url:"/task/create",method:"POST",data:t})}function it(t){return Object(r["b"])({url:"/task/delete",method:"delete",params:t})}function ut(t){return Object(r["b"])({url:"/task-member/index",method:"get",params:t})}function dt(t){return Object(r["b"])({url:"/option-order/index",method:"get",params:t})}function lt(t){return Object(r["b"])({url:"/option-coin/index",method:"get",params:t})}function st(t){return Object(r["b"])({url:"/option-coin/coin",method:"get",params:t})}function ct(t,e){return Object(r["b"])({url:"/option-coin/update",method:"put",params:t,data:e})}function mt(t){return Object(r["b"])({url:"/option-coin/delete",method:"delete",params:t})}function bt(t){return Object(r["b"])({url:"/option-coin/create",method:"post",data:t})}function ft(t){return Object(r["b"])({url:"/option-rule/index",method:"get",params:t})}function pt(t,e){return Object(r["b"])({url:"/option-rule/update",method:"put",params:t,data:e})}function ht(t){return Object(r["b"])({url:"/option-rule/delete",method:"delete",params:t})}function _t(t){return Object(r["b"])({url:"/option-rule/create",method:"post",data:t})}function gt(t){return Object(r["b"])({url:"/option-order/statistics",method:"get"})}function Ot(t){return Object(r["b"])({url:"/footer/index",method:"get",params:t})}function vt(t){return Object(r["b"])({url:"/footer/create",method:"post",data:t})}function jt(t,e){return Object(r["b"])({url:"/footer/update",method:"put",params:t,data:e})}function Lt(t){return Object(r["b"])({url:"/footer/delete",method:"delete",params:t})}function wt(t){return Object(r["b"])({url:"/spread-level/index",method:"get",params:t})}function xt(t,e){return Object(r["b"])({url:"/spread-level/update",method:"put",params:t,data:e})}function yt(t){return Object(r["b"])({url:"/spread-level/delete",method:"delete",params:t})}function kt(t){return Object(r["b"])({url:"/spread-level/create",method:"post",data:t})}function St(t){return Object(r["b"])({url:"/withdraw-account/index",method:"get",params:t})}}}]);