chunk-7ca06cd6.d27adabe0e4d37fb8b27.js 17 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7ca06cd6"],{4907:function(t,e,n){"use strict";var r=n("5ce3"),a=n.n(r);a.a},"5ce3":function(t,e,n){},aced: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("div",{staticClass:"presentForm"},[n("div",{staticClass:"leftFrom"},[n("el-form",{ref:"params",staticClass:"formList",attrs:{model:t.params,"label-width":"120px"}},[n("el-form-item",{attrs:{label:"选择语言",prop:"default_language"}},[n("el-select",{attrs:{placeholder:"请选择语言"},model:{value:t.params.lang,callback:function(e){t.$set(t.params,"lang","string"===typeof e?e.trim():e)},expression:"params.lang"}},t._l(t.langs,(function(t,e){return n("el-option",{key:e,attrs:{label:t,value:e}})})),1)],1)],1)],1),n("div",{staticClass:"inquire"},[n("el-button",{staticClass:"demand",attrs:{type:"primary"},on:{click:t.inquire}},[t._v("查询")]),n("el-button",{staticClass:"demand",attrs:{type:"primary"},on:{click:t.addItemize}},[t._v("添加教程分类")])],1)]),n("div",[n("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"}}},[n("el-table-column",{attrs:{prop:"id",label:"ID",width:"80"}}),n("el-table-column",{attrs:{prop:"type_name",label:"分类名称"}}),n("el-table-column",{attrs:{prop:"sort",label:"排序"}}),n("el-table-column",{attrs:{prop:"status",label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(" "+t._s("-1"==e.row.status?"删除":"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:"360px"},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}})],1),n("el-dialog",{attrs:{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.lang,callback:function(e){t.$set(t.addList,"lang","string"===typeof e?e.trim():e)},expression:"addList.lang"}},t._l(t.langs,(function(t,e){return n("el-option",{key:e,attrs:{label:t,value:e}})})),1)],1),n("el-form-item",{attrs:{label:"分类名字"}},[n("el-input",{attrs:{placeholder:"请输入分类名字"},model:{value:t.addList.type_name,callback:function(e){t.$set(t.addList,"type_name",e)},expression:"addList.type_name"}})],1),n("el-form-item",{attrs:{label:"排序"}},[n("el-input",{attrs:{placeholder:"请输入排序号(数字越大,越靠前)",onkeyup:"this.value=this.value.replace(/[, ]/g,'')"},model:{value:t.addList.sort,callback:function(e){t.$set(t.addList,"sort",e)},expression:"addList.sort"}})],1),n("el-form-item",{attrs:{label:"状态"}},[n("el-select",{attrs:{placeholder:"请选择"},model:{value:t.addList.status,callback:function(e){t.$set(t.addList,"status",e)},expression:"addList.status"}},t._l(t.options,(function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),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=[],u=(n("a9e3"),n("f201")),o=n("0238"),i=n("c466"),d=n("d223"),c={name:"courseItemize",components:{Paginate:o["a"]},data:function(){return{params:{page:1,page_size:this.$store.state.attr.pageSize,lang:"zh-hk"},timeData:[],tableData:[],loading:!1,total:0,langs:d["a"],addPopup:!1,editshow:!1,addList:{lang:"zh-hk",type_name:"",sort:0,status:""},options:[{value:"0",label:"禁用"},{value:"1",label:"启用"}]}},computed:{},watch:{},mounted:function(){this.install()},methods:{install:function(){var t=this;this.loading=!0;var e={lang:this.params.lang,page:Number(this.cal.accSub(this.params.page,1)),page_size:this.params.page_size};Object(u["nb"])(e).then((function(e){200===e.code?(t.total=parseInt(e.data.listTotalCount),t.tableData=e.data.list):t.$message.error(e.message),t.loading=!1}))},inquire:function(){this.params.page=1,this.install()},addItemize:function(){this.addPopup=!0},addClose:function(){this.addList={lang:"",type_name:"",sort:"",status:""},this.addPopup=!1,this.editshow=!1},addSubmit:function(){var t=this,e={lang:this.addList.lang,type_name:this.addList.type_name,sort:this.addList.sort,status:this.addList.status};Object(u["jb"])(e).then((function(e){200===e.code?(t.addClose(),t.install()):t.$message.error(e.message),t.loading=!1}))},editClick:function(t){this.addList=t,this.addPopup=!0,this.editshow=!0},editorSubmit:function(){var t=this,e={id:this.addList.id},n={lang:this.addList.lang,type_name:this.addList.type_name,sort:this.addList.sort,status:this.addList.status};Object(u["lb"])(e,n).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(u["kb"])({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,e){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(){}},l=c,s=(n("4907"),n("2877")),b=Object(s["a"])(l,r,a,!1,null,"196b5388",null);e["default"]=b.exports},d223:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r={en:"英语","zh-hk":"中文繁体","zh-CN":"中文简体",ko:"한국어","ja-jp":"日本",ar:"عربي",fr:"Français",de:"Deutsch",es:"español",it:"Italiano",hi:"हिन्दी",id:"Indonesia",th:"ไทย",tr:"Türk",vi:"Tiếng Việt",ru:"Pусский язык"}},f201:function(t,e,n){"use strict";n.d(e,"U",(function(){return a})),n.d(e,"j",(function(){return u})),n.d(e,"zb",(function(){return o})),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 p})),n.d(e,"h",(function(){return m})),n.d(e,"b",(function(){return h})),n.d(e,"v",(function(){return g})),n.d(e,"u",(function(){return O})),n.d(e,"x",(function(){return j})),n.d(e,"w",(function(){return v})),n.d(e,"y",(function(){return w})),n.d(e,"sb",(function(){return y})),n.d(e,"fb",(function(){return x})),n.d(e,"ob",(function(){return k})),n.d(e,"o",(function(){return _})),n.d(e,"xb",(function(){return C})),n.d(e,"wb",(function(){return L})),n.d(e,"yb",(function(){return T})),n.d(e,"rb",(function(){return S})),n.d(e,"qb",(function(){return P})),n.d(e,"pb",(function(){return z})),n.d(e,"T",(function(){return $})),n.d(e,"tb",(function(){return D})),n.d(e,"R",(function(){return I})),n.d(e,"Q",(function(){return q})),n.d(e,"S",(function(){return E})),n.d(e,"A",(function(){return A})),n.d(e,"z",(function(){return F})),n.d(e,"t",(function(){return N})),n.d(e,"N",(function(){return B})),n.d(e,"P",(function(){return J})),n.d(e,"eb",(function(){return H})),n.d(e,"n",(function(){return M})),n.d(e,"a",(function(){return U})),n.d(e,"l",(function(){return V})),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 W})),n.d(e,"jb",(function(){return X})),n.d(e,"lb",(function(){return Y})),n.d(e,"kb",(function(){return Z})),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 ut})),n.d(e,"ab",(function(){return ot})),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 pt})),n.d(e,"L",(function(){return mt})),n.d(e,"K",(function(){return ht})),n.d(e,"J",(function(){return gt})),n.d(e,"M",(function(){return Ot})),n.d(e,"r",(function(){return jt})),n.d(e,"p",(function(){return vt})),n.d(e,"s",(function(){return wt})),n.d(e,"q",(function(){return yt})),n.d(e,"V",(function(){return xt})),n.d(e,"Y",(function(){return kt})),n.d(e,"X",(function(){return _t})),n.d(e,"W",(function(){return Ct})),n.d(e,"ub",(function(){return Lt}));var r=n("b775");function a(t){return Object(r["b"])({url:"/common-dic/update2",method:"POST",data:t})}function u(t){return Object(r["b"])({url:"/withdrawal-net/index",method:"get",params:t})}function o(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 p(t){return Object(r["b"])({url:"/coin/net",method:"get",params:t})}function m(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 g(t,e){return Object(r["b"])({url:"/invite-level/update",method:"put",params:t,data:e})}function O(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 w(t){return Object(r["b"])({url:"/invite-profit-static/profit",method:"get",params:t})}function y(t){return Object(r["b"])({url:"/wallet/transfer-log",method:"get",params:t})}function x(t){return Object(r["b"])({url:"/wallet/transfer-export",method:"get",responseType:"blob",params:t})}function k(t){return Object(r["b"])({url:"/wallet/flash-exchange-log",method:"get",params:t})}function _(t){return Object(r["b"])({url:"/wallet/flash-exchange-export",method:"get",responseType:"blob",params:t})}function C(t){return Object(r["b"])({url:"/withdraw/index",method:"get",params:t})}function L(t){return Object(r["b"])({url:"/withdraw/export",method:"get",responseType:"blob",params:t})}function T(t,e){return Object(r["b"])({url:"/withdraw/update",method:"put",params:t,data:e})}function S(t){return Object(r["b"])({url:"/wallet/operate-log",method:"get",params:t})}function P(t){return Object(r["b"])({url:"/wallet/operate",method:"POST",data:t})}function z(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 D(t){return Object(r["b"])({url:"/withdraw/abandon",method:"POST",data:t})}function I(t){return Object(r["b"])({url:"/recharge/confirm",method:"POST",data:t})}function q(t){return Object(r["b"])({url:"/recharge/abandon",method:"POST",data:t})}function E(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 F(t){return Object(r["b"])({url:"/invite-profit-static/change-type",method:"get",params:t})}function N(t){return Object(r["b"])({url:"/futures-order/index",method:"get",params:t})}function B(t){return Object(r["b"])({url:"/futures-order/close",method:"POST",data:t})}function J(t){return Object(r["b"])({url:"/futures-order/cancel-close",method:"POST",data:t})}function H(t){return Object(r["b"])({url:"/coin-control/index",method:"get",params:t})}function M(t,e){return Object(r["b"])({url:"/coin-control/update",method:"put",params:t,data:e})}function U(t){return Object(r["b"])({url:"/coin-control/create",method:"post",data:t})}function V(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 W(t){return Object(r["b"])({url:"/tutorial-type/index",method:"get",params:t})}function X(t){return Object(r["b"])({url:"/tutorial-type/create",method:"POST",data:t})}function Y(t,e){return Object(r["b"])({url:"/tutorial-type/update",method:"put",params:t,data:e})}function Z(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 ut(t){return Object(r["b"])({url:"/task/create",method:"POST",data:t})}function ot(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 pt(t){return Object(r["b"])({url:"/option-rule/index",method:"get",params:t})}function mt(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 gt(t){return Object(r["b"])({url:"/option-rule/create",method:"post",data:t})}function Ot(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 wt(t,e){return Object(r["b"])({url:"/footer/update",method:"put",params:t,data:e})}function yt(t){return Object(r["b"])({url:"/footer/delete",method:"delete",params:t})}function xt(t){return Object(r["b"])({url:"/spread-level/index",method:"get",params:t})}function kt(t,e){return Object(r["b"])({url:"/spread-level/update",method:"put",params:t,data:e})}function _t(t){return Object(r["b"])({url:"/spread-level/delete",method:"delete",params:t})}function Ct(t){return Object(r["b"])({url:"/spread-level/create",method:"post",data:t})}function Lt(t){return Object(r["b"])({url:"/withdraw-account/index",method:"get",params:t})}}}]);