| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-26ffc5ed"],{"2c77":function(t,e,n){},"87e2":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"tabs"},[n("div"),n("div",{staticClass:"tabs_btn"},[n("el-button",{staticClass:"greenbg",on:{click:function(e){return t.refresh()}}},[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"}}),n("el-table-column",{attrs:{prop:"icon",label:"图标"},scopedSlots:t._u([{key:"default",fn:function(t){return[n("img",{staticStyle:{width:"30px",height:"30px"},attrs:{src:t.row.icon,alt:""}})]}}])}),n("el-table-column",{attrs:{prop:"symbol",label:"符号"}}),n("el-table-column",{attrs:{prop:"currency",label:"法币"}}),n("el-table-column",{attrs:{prop:"name_local",label:"名字"}}),n("el-table-column",{attrs:{prop:"status",label:"赠送比例"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[n("p",[t._v(t._s(e.row.gift_ratio)+"%")])])]}}])}),n("el-table-column",{attrs:{prop:"status",label:"所需打码量"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[n("p",[t._v(t._s(e.row.damaliang)+"倍")])])]}}])}),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",[n("p",[t._v(t._s("1"==e.row.status?"开启":"关闭"))])])]}}])}),n("el-table-column",{attrs:{prop:"updated_by",label:"更新人"}}),n("el-table-column",{attrs:{prop:"updated_at",label:"更新时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[n("p",[t._v(t._s(t.timestampToDatetime(e.row.updated_at)))])])]}}])}),n("el-table-column",{attrs:{prop:"closing_at",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{staticClass:"greenbg",on:{click:function(n){return t.edit(e.row)}}},[t._v("编辑")])]}}])})],1)],1),n("el-dialog",{attrs:{title:"编辑",visible:t.editPopup,width:"60%","before-close":t.editClose},on:{"update:visible":function(e){t.editPopup=e}}},[n("div",[n("p",[t._v("排序(数字越大越靠前)")]),n("el-input",{attrs:{type:"number",placeholder:"请输入数字"},model:{value:t.sortVal,callback:function(e){t.sortVal=e},expression:"sortVal"}}),n("p",[t._v("状态")]),n("el-switch",{attrs:{"active-text":"开启法币","inactive-text":"关闭法币"},model:{value:t.openVal,callback:function(e){t.openVal=e},expression:"openVal"}})],1),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){t.editPopup=!1}}},[t._v("取消")]),n("el-button",{attrs:{type:"primary"},on:{click:t.editSubmit}},[t._v("确认")])],1)])],1)},o=[],r=n("b0bd"),i=n("c466"),l={name:"fabi",components:{},data:function(){return{coinList:[],tableData:[],loading:!1,editPopup:!1,editInfo:{},openVal:!0,sortVal:""}},computed:{},watch:{},mounted:function(){this.finstall()},methods:{finstall:function(){var t=this;Object(r["e"])().then((function(e){t.tableData=e.data,t.coinList=e.data}))},refresh:function(){this.tableData=[],this.coinList=[],this.finstall()},edit:function(t){1==t.status?this.openVal=!0:this.openVal=!1,this.sortVal=t.sort,this.editInfo=t,this.editPopup=!0},editSubmit:function(){var t=this,e={id:this.editInfo.id,sort:this.sortVal};this.openVal?e.status="1":e.status="0",Object(r["a"])(e,e).then((function(e){t.$message({type:"success",message:e.message}),t.refresh(),t.editClose()})).catch((function(){t.$message({type:"info",message:result.message})}))},editClose:function(){this.editPopup=!1},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(){}},u=l,s=(n("a447"),n("2877")),c=Object(s["a"])(u,a,o,!1,null,"32eb8508",null);e["default"]=c.exports},a447:function(t,e,n){"use strict";var a=n("2c77"),o=n.n(a);o.a},b0bd:function(t,e,n){"use strict";n.d(e,"e",(function(){return o})),n.d(e,"f",(function(){return r})),n.d(e,"g",(function(){return i})),n.d(e,"l",(function(){return l})),n.d(e,"a",(function(){return u})),n.d(e,"k",(function(){return s})),n.d(e,"h",(function(){return c})),n.d(e,"j",(function(){return d})),n.d(e,"i",(function(){return f})),n.d(e,"d",(function(){return p})),n.d(e,"c",(function(){return b})),n.d(e,"b",(function(){return m}));var a=n("b775");function o(){return Object(a["b"])({url:"/fabi/index",method:"get"})}function r(t){return Object(a["b"])({url:"/fabi/recharge",method:"get",params:t})}function i(t){return Object(a["b"])({url:"/fabi/withdraw",method:"get",params:t})}function l(t,e){return Object(a["b"])({url:"/fabi/withdraw-update",method:"put",params:t,data:e})}function u(t,e){return Object(a["b"])({url:"/fabi/update",method:"put",params:t,data:e})}function s(t){return Object(a["b"])({url:"/gate/index",method:"get",params:t})}function c(t,e){return Object(a["b"])({url:"/gate/create",method:"post",params:t,data:e})}function d(t,e){return Object(a["b"])({url:"/gate/update",method:"put",params:t,data:e})}function f(t,e){return Object(a["b"])({url:"/gate/delete",method:"delete",params:t,data:e})}function p(t){return Object(a["b"])({url:"/fabi/bank",method:"get",params:t})}function b(t){return Object(a["b"])({url:"/fabi/confirm",method:"post",data:t})}function m(t){return Object(a["b"])({url:"/fabi/cancel",method:"post",data:t})}}}]);
|