| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1bcc6b62"],{"24e5":function(t,e,r){"use strict";var n=r("4e9e"),u=r.n(n);u.a},"4e9e":function(t,e,r){},b0ff: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",{staticClass:"app-container layout-vertical"},[r("YMTableSearch",{attrs:{"search-form":t.searchForm},on:{submit:t.onSubmit}}),r("YMTable",{ref:"table",attrs:{selection:!1,columns:t.columns,"rows-actions":[{key:"edit",label:"编辑"},{key:"delete",label:"删除"}],"edit-form":t.editForm,"table-options":t.tableOptions,"detail-format":t.detailFormat,apis:t.apis}})],1)},u=[],o=(r("4160"),r("159b"),r("f201")),a=[];function i(){Object(o["D"])({page_size:100}).then((function(t){t.data.list.forEach((function(t){a.push({label:t.coin,value:t.coin})}))}))}i();var c={data:function(){return{listLoading:!0,searchForm:[{label:"币种名称",type:"select",prop:"keyword",options:a}],editForm:[{header:"主要信息",body:[{label:"币种",type:"select",prop:"coin",options:a,rules:[{required:!0,message:"币种不能为空"}]},{label:"年化收益率",type:"input",prop:"annualized_rate_of_return",rules:[{required:!0,message:"年化收益率不能为空"}]},{label:"最低购买金额",type:"number",prop:"min_amount",rules:[{required:!0,message:"最低购买金额不能为空"}]},{label:"最高购买金额",type:"number",prop:"max_amount",rules:[{required:!0,message:"最高购买金额不能为空"}]},{label:"虚拟购买人数",type:"input-number",prop:"fake_purchase_count",required:!0,rules:[{required:!0,message:"虚拟购买人数不能为空"}]},{label:"状态",type:"radio",options:[{label:"启用",value:"1"},{label:"停用",value:"0"}],prop:"status",rules:[{required:!0,message:"状态不能为空"}]},{label:"产品类型",type:"radio",options:[{label:"活期",value:"flexible"},{label:"定期",value:"fixed"}],prop:"type",rules:[{required:!0,message:"产品类型不能为空"}]},{label:"日收益率(%)",type:"number",vIf:function(t){return"flexible"===t.type},prop:"daily_rate",rules:[{required:!0,message:"日收益率(%)不能为空"},{pattern:/^(0\.0[1-9]|0\.[1-9]\d*|[1-9]\d*(\.\d+)?)$/,message:"数字不能低于0.01"}]},{label:"理财天数",type:"input-number",prop:"term_days",min:1,vIf:function(t){return"fixed"===t.type},rules:[{required:!0,message:"理财天数不能为空"},{type:"number",message:"理财天数必须为数字值"}]},{label:"总收益率(%)",type:"number",vIf:function(t){return"fixed"===t.type},prop:"total_rate",rules:[{required:!0,message:"总收益率(%)不能为空"},{pattern:/^(0\.0[1-9]|0\.[1-9]\d*|[1-9]\d*(\.\d+)?)$/,message:"数字不能低于0.01"}]}]},{header:"主要详情",body:[{label:"中文详情",type:"editor",prop:"description"},{label:"英文详情",type:"editor2",prop:"description_en"}]}],detailFormat:[],columns:[{label:"币种",prop:"coin"},{label:"年化收益率",prop:"annualized_rate_of_return"},{label:"产品类型",prop:"type",method:function(t){return"flexible"===t.type?"活期":"定期"}},{label:"日收益率(%)",prop:"daily_rate"},{label:"最低购买金额",prop:"min_amount"},{label:"最高购买金额",prop:"max_amount"},{label:"状态",prop:"status",method:function(t){return"1"===t.status?"启用":"停用"}},{label:"理财天数",prop:"term_days"},{label:"总收益率(%)",prop:"total_rate"}],tableOptions:{add:{show:!0}},apis:{list:{url:"finance/product/index",dataParam:"data.list",resultParam:"data",pageSize:"page_size"},edit:{url:"finance/product/update",additionParam:["id"],method:"put"},add:{url:"finance/product/create"},delete:{url:"finance/product/delete",method:"delete",additionParam:["id"]}}}},created:function(){},methods:{onSubmit:function(t){this.$refs.table.getList(t)}}},d=c,l=(r("24e5"),r("2877")),b=Object(l["a"])(d,n,u,!1,null,"d59aca6a",null);e["default"]=b.exports},f201:function(t,e,r){"use strict";r.d(e,"U",(function(){return u})),r.d(e,"j",(function(){return o})),r.d(e,"zb",(function(){return a})),r.d(e,"B",(function(){return i})),r.d(e,"k",(function(){return c})),r.d(e,"vb",(function(){return d})),r.d(e,"c",(function(){return l})),r.d(e,"i",(function(){return b})),r.d(e,"f",(function(){return p})),r.d(e,"g",(function(){return f})),r.d(e,"e",(function(){return s})),r.d(e,"h",(function(){return m})),r.d(e,"b",(function(){return h})),r.d(e,"v",(function(){return O})),r.d(e,"u",(function(){return j})),r.d(e,"x",(function(){return g})),r.d(e,"w",(function(){return y})),r.d(e,"y",(function(){return w})),r.d(e,"sb",(function(){return x})),r.d(e,"fb",(function(){return v})),r.d(e,"ob",(function(){return T})),r.d(e,"o",(function(){return _})),r.d(e,"xb",(function(){return P})),r.d(e,"wb",(function(){return S})),r.d(e,"yb",(function(){return k})),r.d(e,"rb",(function(){return q})),r.d(e,"qb",(function(){return z})),r.d(e,"pb",(function(){return F})),r.d(e,"T",(function(){return E})),r.d(e,"tb",(function(){return I})),r.d(e,"R",(function(){return L})),r.d(e,"Q",(function(){return $})),r.d(e,"S",(function(){return C})),r.d(e,"A",(function(){return D})),r.d(e,"z",(function(){return J})),r.d(e,"t",(function(){return M})),r.d(e,"N",(function(){return Y})),r.d(e,"P",(function(){return A})),r.d(e,"eb",(function(){return H})),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 N})),r.d(e,"m",(function(){return Q})),r.d(e,"O",(function(){return R})),r.d(e,"ib",(function(){return U})),r.d(e,"nb",(function(){return V})),r.d(e,"jb",(function(){return W})),r.d(e,"lb",(function(){return X})),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 ut})),r.d(e,"Z",(function(){return ot})),r.d(e,"ab",(function(){return at})),r.d(e,"bb",(function(){return it})),r.d(e,"H",(function(){return ct})),r.d(e,"D",(function(){return dt})),r.d(e,"C",(function(){return lt})),r.d(e,"G",(function(){return bt})),r.d(e,"F",(function(){return pt})),r.d(e,"E",(function(){return ft})),r.d(e,"I",(function(){return st})),r.d(e,"L",(function(){return mt})),r.d(e,"K",(function(){return ht})),r.d(e,"J",(function(){return Ot})),r.d(e,"M",(function(){return jt})),r.d(e,"r",(function(){return gt})),r.d(e,"p",(function(){return yt})),r.d(e,"s",(function(){return wt})),r.d(e,"q",(function(){return xt})),r.d(e,"V",(function(){return vt})),r.d(e,"Y",(function(){return Tt})),r.d(e,"X",(function(){return _t})),r.d(e,"W",(function(){return Pt})),r.d(e,"ub",(function(){return St}));var n=r("b775");function u(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 a(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 c(t){return Object(n["b"])({url:"/common-dic/index2",method:"get",params:t})}function d(t){return Object(n["b"])({url:"/withdrawal-net/delete",method:"delete",params:t})}function l(t){return Object(n["b"])({url:"/coin/index",method:"get",params:t})}function b(t,e){return Object(n["b"])({url:"/coin/update",method:"put",params:t,data:e})}function p(t){return Object(n["b"])({url:"/coin-recharge-net",method:"get",params:t})}function f(t){return Object(n["b"])({url:"/coin-recharge-net/delete",method:"delete",params:t})}function s(t){return Object(n["b"])({url:"/coin/net",method:"get",params:t})}function m(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 O(t,e){return Object(n["b"])({url:"/invite-level/update",method:"put",params:t,data:e})}function j(t){return Object(n["b"])({url:"/invite-level/create",method:"POST",data:t})}function g(t){return Object(n["b"])({url:"/invite-profit-static/index",method:"get",params:t})}function y(t){return Object(n["b"])({url:"/invite-profit-static/detail",method:"get",params:t})}function w(t){return Object(n["b"])({url:"/invite-profit-static/profit",method:"get",params:t})}function x(t){return Object(n["b"])({url:"/wallet/transfer-log",method:"get",params:t})}function v(t){return Object(n["b"])({url:"/wallet/transfer-export",method:"get",responseType:"blob",params:t})}function T(t){return Object(n["b"])({url:"/wallet/flash-exchange-log",method:"get",params:t})}function _(t){return Object(n["b"])({url:"/wallet/flash-exchange-export",method:"get",responseType:"blob",params:t})}function P(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 k(t,e){return Object(n["b"])({url:"/withdraw/update",method:"put",params:t,data:e})}function q(t){return Object(n["b"])({url:"/wallet/operate-log",method:"get",params:t})}function z(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 E(t){return Object(n["b"])({url:"/wallet/operate-export",method:"get",responseType:"blob",params:t})}function I(t){return Object(n["b"])({url:"/withdraw/abandon",method:"POST",data:t})}function L(t){return Object(n["b"])({url:"/recharge/confirm",method:"POST",data:t})}function $(t){return Object(n["b"])({url:"/recharge/abandon",method:"POST",data:t})}function C(t){return Object(n["b"])({url:"/recharge/export",method:"get",responseType:"blob",params:t})}function D(t){return Object(n["b"])({url:"/invite-profit-static/log",method:"get",params:t})}function J(t){return Object(n["b"])({url:"/invite-profit-static/change-type",method:"get",params:t})}function M(t){return Object(n["b"])({url:"/futures-order/index",method:"get",params:t})}function Y(t){return Object(n["b"])({url:"/futures-order/close",method:"POST",data:t})}function A(t){return Object(n["b"])({url:"/futures-order/cancel-close",method:"POST",data:t})}function H(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 N(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 U(t){return Object(n["b"])({url:"/tutorial/index",method:"get",params:t})}function V(t){return Object(n["b"])({url:"/tutorial-type/index",method:"get",params:t})}function W(t){return Object(n["b"])({url:"/tutorial-type/create",method:"POST",data:t})}function X(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 ut(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 at(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 ct(t){return Object(n["b"])({url:"/option-order/index",method:"get",params:t})}function dt(t){return Object(n["b"])({url:"/option-coin/index",method:"get",params:t})}function lt(t){return Object(n["b"])({url:"/option-coin/coin",method:"get",params:t})}function bt(t,e){return Object(n["b"])({url:"/option-coin/update",method:"put",params:t,data:e})}function pt(t){return Object(n["b"])({url:"/option-coin/delete",method:"delete",params:t})}function ft(t){return Object(n["b"])({url:"/option-coin/create",method:"post",data:t})}function st(t){return Object(n["b"])({url:"/option-rule/index",method:"get",params:t})}function mt(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 Ot(t){return Object(n["b"])({url:"/option-rule/create",method:"post",data:t})}function jt(t){return Object(n["b"])({url:"/option-order/statistics",method:"get"})}function gt(t){return Object(n["b"])({url:"/footer/index",method:"get",params:t})}function yt(t){return Object(n["b"])({url:"/footer/create",method:"post",data:t})}function wt(t,e){return Object(n["b"])({url:"/footer/update",method:"put",params:t,data:e})}function xt(t){return Object(n["b"])({url:"/footer/delete",method:"delete",params:t})}function vt(t){return Object(n["b"])({url:"/spread-level/index",method:"get",params:t})}function Tt(t,e){return Object(n["b"])({url:"/spread-level/update",method:"put",params:t,data:e})}function _t(t){return Object(n["b"])({url:"/spread-level/delete",method:"delete",params:t})}function Pt(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})}}}]);
|