| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3773dc37"],{"62ef":function(t,e,n){"use strict";var r=n("c2f1"),a=n.n(r);a.a},b7ea: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?"亏损":"5"==e.row.mode?"交易":"合约交易挑战")+" ")])]}}])}),n("el-table-column",{attrs:{prop:"detail",label:"详情"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",t._l(e.row.detail,(function(e,r){return n("div",{key:r},[t._v(" 节点"+t._s(r+1)+":"+t._s(e.trade_amount)+" ")])})),0)]}}])}),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"},t._l(t.addList.detail,(function(e,r){return n("div",{key:r},[t._v(" 节点"+t._s(r+1)+":"),n("el-input",{attrs:{placeholder:"请输入节点"+(r+1)},model:{value:e.trade_amount,callback:function(n){t.$set(e,"trade_amount",n)},expression:"item.trade_amount"}})],1)})),0)]),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")),u=n("0238"),i=n("c466"),d={name:"challengeList",components:{Paginate:u["a"]},data:function(){return{params:{type:"3",page:1,page_size:this.$store.state.attr.pageSize},serviceList:[],total:0,loading:!1,title:"新增任务",addList:{biz:"",title:"",title_cn:"",bonus:"",detail:[{trade_amount:""},{trade_amount:""},{trade_amount:""}],status:"1"},addPopup:!1,editshow:!1,bizlist:[{value:"1",label:"合约"}],modelist:[{value:"6",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.title="添加任务",this.addPopup=!0},addClose:function(){this.addList={biz:"",title:"",title_cn:"",detail:[{trade_amount:""},{trade_amount:""},{trade_amount:""}],status:1},this.addPopup=!1,this.editshow=!1},addSubmit:function(){var t=this,e={type:"3",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(this.addList.detail),status:this.addList.status};console.log(e),Object(o["Z"])(e).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={type:"3",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(this.addList.detail),status:this.addList.status},n={id:this.addList.id};console.log(e,n),Object(o["cb"])(n,e).then((function(e){console.log(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(i["a"])(t,!0)}},beforeCreate:function(){},created:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},c=d,l=(n("62ef"),n("2877")),s=Object(l["a"])(c,r,a,!1,null,"62c0f035",null);e["default"]=s.exports},c2f1: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 u})),n.d(e,"B",(function(){return i})),n.d(e,"k",(function(){return d})),n.d(e,"vb",(function(){return c})),n.d(e,"c",(function(){return l})),n.d(e,"i",(function(){return s})),n.d(e,"f",(function(){return b})),n.d(e,"g",(function(){return f})),n.d(e,"e",(function(){return m})),n.d(e,"h",(function(){return p})),n.d(e,"b",(function(){return h})),n.d(e,"v",(function(){return O})),n.d(e,"u",(function(){return g})),n.d(e,"x",(function(){return j})),n.d(e,"w",(function(){return v})),n.d(e,"y",(function(){return _})),n.d(e,"sb",(function(){return w})),n.d(e,"fb",(function(){return y})),n.d(e,"ob",(function(){return L})),n.d(e,"o",(function(){return x})),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 ut})),n.d(e,"bb",(function(){return it})),n.d(e,"H",(function(){return dt})),n.d(e,"D",(function(){return ct})),n.d(e,"C",(function(){return lt})),n.d(e,"G",(function(){return st})),n.d(e,"F",(function(){return bt})),n.d(e,"E",(function(){return ft})),n.d(e,"I",(function(){return mt})),n.d(e,"L",(function(){return pt})),n.d(e,"K",(function(){return ht})),n.d(e,"J",(function(){return Ot})),n.d(e,"M",(function(){return gt})),n.d(e,"r",(function(){return jt})),n.d(e,"p",(function(){return vt})),n.d(e,"s",(function(){return _t})),n.d(e,"q",(function(){return wt})),n.d(e,"V",(function(){return yt})),n.d(e,"Y",(function(){return Lt})),n.d(e,"X",(function(){return xt})),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 u(t){return Object(r["b"])({url:"/withdrawal-net/create",method:"POST",data:t})}function i(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 c(t){return Object(r["b"])({url:"/withdrawal-net/delete",method:"delete",params:t})}function l(t){return Object(r["b"])({url:"/coin/index",method:"get",params:t})}function s(t,e){return Object(r["b"])({url:"/coin/update",method:"put",params:t,data:e})}function b(t){return Object(r["b"])({url:"/coin-recharge-net",method:"get",params:t})}function f(t){return Object(r["b"])({url:"/coin-recharge-net/delete",method:"delete",params:t})}function m(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 O(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 j(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 _(t){return Object(r["b"])({url:"/invite-profit-static/profit",method:"get",params:t})}function w(t){return Object(r["b"])({url:"/wallet/transfer-log",method:"get",params:t})}function y(t){return Object(r["b"])({url:"/wallet/transfer-export",method:"get",responseType:"blob",params:t})}function L(t){return Object(r["b"])({url:"/wallet/flash-exchange-log",method:"get",params:t})}function x(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 ut(t){return Object(r["b"])({url:"/task/delete",method:"delete",params:t})}function it(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 ct(t){return Object(r["b"])({url:"/option-coin/index",method:"get",params:t})}function lt(t){return Object(r["b"])({url:"/option-coin/coin",method:"get",params:t})}function st(t,e){return Object(r["b"])({url:"/option-coin/update",method:"put",params:t,data:e})}function bt(t){return Object(r["b"])({url:"/option-coin/delete",method:"delete",params:t})}function ft(t){return Object(r["b"])({url:"/option-coin/create",method:"post",data:t})}function mt(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 Ot(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 jt(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 _t(t,e){return Object(r["b"])({url:"/footer/update",method:"put",params:t,data:e})}function wt(t){return Object(r["b"])({url:"/footer/delete",method:"delete",params:t})}function yt(t){return Object(r["b"])({url:"/spread-level/index",method:"get",params:t})}function Lt(t,e){return Object(r["b"])({url:"/spread-level/update",method:"put",params:t,data:e})}function xt(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})}}}]);
|