(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-39a2b819"],{1239:function(e,a,t){"use strict";t.r(a);var o=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("el-dialog",{attrs:{title:"修改 承兑商保证金","close-on-click-modal":!1,visible:e.visible},on:{close:e.handClose,"update:visible":function(a){e.visible=a}}},[t("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(a){e.activeName=a},expression:"activeName"}},[t("el-tab-pane",{attrs:{label:"充值",name:"recharge"}}),t("el-tab-pane",{attrs:{label:"提现",name:"withdraw"}})],1),t("el-form",{ref:"dataForm",attrs:{model:e.dataForm,rules:e.dataRule,"label-width":"130px"},nativeOn:{keyup:function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"enter",13,a.key,"Enter")?null:e.dataFormSubmit()}}},[t("el-form-item",{attrs:{label:"recharge"==e.activeName?"充值数量":"提现数量",prop:"money_change"}},[t("el-input",{attrs:{type:"number",placeholder:"数量"},scopedSlots:e._u([{key:"append",fn:function(){return[t("span",[e._v("USDT")])]},proxy:!0}]),model:{value:e.dataForm.money_change,callback:function(a){e.$set(e.dataForm,"money_change",a)},expression:"dataForm.money_change"}})],1),t("el-form-item",{attrs:{label:"当前的总保证金",prop:"deposit_open"}},[t("el-input",{attrs:{disabled:"",placeholder:"剩余保证金"},scopedSlots:e._u([{key:"append",fn:function(){return[t("span",[e._v("USDT")])]},proxy:!0}]),model:{value:e.dataForm.deposit_open,callback:function(a){e.$set(e.dataForm,"deposit_open",a)},expression:"dataForm.deposit_open"}})],1),t("el-form-item",{attrs:{label:"修改后总保证金",prop:"deposit_open_update"}},[t("el-input",{attrs:{disabled:"",placeholder:"剩余保证金"},scopedSlots:e._u([{key:"append",fn:function(){return[t("span",[e._v("USDT")])]},proxy:!0}]),model:{value:"recharge"==e.activeName?1*e.dataForm.deposit_open+1*e.dataForm.money_change:1*e.dataForm.deposit_open-1*e.dataForm.money_change,callback:function(a){e.$set("recharge"==e.activeName?1*e.dataForm.deposit_open+1*e.dataForm.money_change:1*e.dataForm.deposit_open-e.dataForm,"money_change*1",a)},expression:"activeName=='recharge'?dataForm.deposit_open*1+dataForm.money_change*1:dataForm.deposit_open*1-dataForm.money_change*1"}})],1),t("el-form-item",{attrs:{label:"当前的剩余保证金",prop:"deposit"}},[t("el-input",{attrs:{disabled:"",placeholder:"剩余保证金"},scopedSlots:e._u([{key:"append",fn:function(){return[t("span",[e._v("USDT")])]},proxy:!0}]),model:{value:e.dataForm.deposit,callback:function(a){e.$set(e.dataForm,"deposit",a)},expression:"dataForm.deposit"}})],1),t("el-form-item",{attrs:{label:"修改后剩余保证金",prop:"deposit_update"}},[t("el-input",{attrs:{disabled:"",placeholder:"剩余保证金"},scopedSlots:e._u([{key:"append",fn:function(){return[t("span",[e._v("USDT")])]},proxy:!0}]),model:{value:"recharge"==e.activeName?1*e.dataForm.deposit+1*e.dataForm.money_change:1*e.dataForm.deposit-1*e.dataForm.money_change,callback:function(a){e.$set("recharge"==e.activeName?1*e.dataForm.deposit+1*e.dataForm.money_change:1*e.dataForm.deposit-e.dataForm,"money_change*1",a)},expression:"activeName=='recharge'?dataForm.deposit*1+dataForm.money_change*1:dataForm.deposit*1-dataForm.money_change*1"}})],1),t("el-form-item",{attrs:{label:"资金密码",prop:"safe_password"}},[t("el-input",{attrs:{type:"password",placeholder:"当前登录人资金密码"},model:{value:e.dataForm.safe_password,callback:function(a){e.$set(e.dataForm,"safe_password",a)},expression:"dataForm.safe_password"}})],1)],1),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:function(a){e.visible=!1}}},[e._v("取消")]),t("el-button",{attrs:{type:"primary"},on:{click:function(a){return e.dataFormSubmit()}}},[e._v("确定")])],1)],1)},r=[],s=(t("ed08"),t("20ca")),i=t("90c5"),n={data(){return{visible:!1,menuList:[],activeName:"recharge",menuListTreeProps:{label:"name",children:"children"},dataForm:{id:"",money_change:0,recharge_withdraw:"",deposit_open:"",deposit:"",roleName:"",deposit_open_update:"",deposit_update:"",remark:"",safe_password:""},row:"",dataRule:{roleName:[{required:!0,message:"角色名称不能为空",trigger:"blur"},{pattern:/\s\S+|S+\s|\S/,message:"请输入正确的角色名称",trigger:"blur"}],safe_password:[{required:!0,message:"资金密码不能为空",trigger:"blur"}],remark:[{required:!1,pattern:/\s\S+|S+\s|\S/,message:"输入格式有误",trigger:"blur"}]},tempKey:-666666}},methods:{init(e){this.row=e||"",this.dataForm.deposit_open=e.deposit_open,this.dataForm.deposit=e.deposit,this.dataForm.id=e.id,this.visible=!0},handleClick(e,a){console.log(e,a)},handClose(){this.$data.dataForm=JSON.parse(JSON.stringify(this.$options.data().dataForm)),this.$nextTick(()=>{this.$refs["dataForm"].clearValidate()})},dataFormSubmit:Object(s["a"])((function(){this.$refs["dataForm"].validate(e=>{e&&this.$http({url:this.$http.adornUrl("/c2cUser/reset"),method:"post",data:this.$http.adornData({id:this.dataForm.id,recharge_withdraw:this.activeName,safe_password:Object(i["a"])(this.dataForm.safe_password),money_change:this.dataForm.money_change})}).then(({data:e})=>{0==e.code?this.$message({message:"操作成功",type:"success",duration:1500,onClose:()=>{this.visible=!1,this.$emit("refreshDataList")}}):this.$message({message:e.msg,type:"error",duration:1500,onClose:()=>{}})})})}))}},l=n,d=t("2877"),p=Object(d["a"])(l,o,r,!1,null,null,null);a["default"]=p.exports},"68b7":function(e,a,t){"use strict";t.r(a);var o=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"mod-role"},[t("avue-crud",{ref:"crud",attrs:{page:e.page,data:e.dataList,option:e.tableOption},on:{"update:page":function(a){e.page=a},"search-change":e.searchChange,"selection-change":e.selectionChange,"on-load":e.getDataList},scopedSlots:e._u([{key:"nth",fn:function(a){return[t("span",[e._v(e._s(a.row.deposit_open+"/"+a.row.deposit))])]}},{key:"img",fn:function(e){return[t("img",{attrs:{src:e.row.head_img,alt:"",width:"50"}})]}},{key:"menu",fn:function(a){return[e.isAuth("sys:role:update")?t("el-button",{attrs:{type:"primary",icon:"el-icon-edit",size:"small"},on:{click:function(t){return t.stopPropagation(),e.addOrUpdateHandle(a.row.id,a.row.head_img)}}},[e._v("编辑")]):e._e(),e.isAuth("sys:role:update")?t("el-button",{attrs:{type:"primary",icon:"el-icon-edit",size:"small"},on:{click:function(t){return t.stopPropagation(),e.otherHandle(a.row)}}},[e._v("修改账户保证金")]):e._e()]}}])},[t("template",{slot:"menuLeft"},[e.isAuth("sys:role:save")?t("el-button",{attrs:{type:"primary",icon:"el-icon-plus",size:"small"},on:{click:function(a){return a.stopPropagation(),e.addOrUpdateHandle()}}},[e._v("新增")]):e._e()],1)],2),e.addOrUpdateVisible?t("add-or-update",{ref:"addOrUpdate",on:{refreshDataList:e.getDataList}}):e._e(),e.otherVisible?t("otherUpdate",{ref:"otherUpdate",on:{refreshDataList:e.getDataList}}):e._e()],1)},r=[];const s={searchMenuSpan:6,columnBtn:!1,border:!0,selection:!1,searchLabelWidth:160,index:!1,indexLabel:"序号",stripe:!0,menuAlign:"center",menuWidth:240,align:"center",refreshBtn:!0,searchSize:"mini",addBtn:!1,editBtn:!1,delBtn:!1,viewBtn:!1,menu:!0,props:{label:"label",value:"value"},column:[{label:"承兑商昵称/承兑商UID",placeholder:"承兑商昵称/承兑商UID",prop:"c2cUserId",search:!0,hide:!0},{label:"承兑商类型",prop:"c2cUserType",search:!0,hide:!0,type:"select",dicData:[{label:"所有承兑商类型",value:""},{label:"后台承兑商",value:1},{label:"用户承兑商",value:2}]},{label:"承兑商用户名/用户UID",placeholder:"承兑商用户名/用户UID",prop:"c2cUserPartyId",search:!0,hide:!0},{label:"C2C管理员用户名",placeholder:"C2C管理员用户名",prop:"c2cManagerName",search:!0,hide:!0},{label:"管理员",prop:"manager_name"},{label:"昵称",prop:"nick_name"},{label:"承兑商头像",prop:"img",solt:!0},{label:"UID",prop:"c2c_user_code"},{label:"类型",prop:"c2c_user_type",type:"select",dicData:[{label:"后台承兑商",value:1},{label:"用户承兑商",value:2}]},{label:"用户",prop:"user_name"},{label:"用户UID",prop:"user_code"},{label:"保证金/剩余(USDT)",prop:"nth",solt:!0},{label:"买交易量",prop:"buy_amount"},{label:"卖交易量",prop:"sell_amount"},{label:"总交易所量",prop:"total_amount"},{label:"交易人数",prop:"exchange_users"},{label:"成单数(买)",prop:"buy_success_orders"},{label:"成单数(卖)",prop:"sell_success_orders"},{label:"总成单数",prop:"total_success_orders"},{label:"创建时间",prop:"create_time"},{label:"更新时间",prop:"update_time"},{label:"备注",prop:"remark"}]};var i=t("a928"),n=t("1239"),l={data(){return{dataForm:{},dataList:[],dataListLoading:!1,dataListSelections:[],addOrUpdateVisible:!1,otherVisible:!1,tableOption:s,page:{total:0,currentPage:1,pageSize:10}}},components:{AddOrUpdate:i["default"],otherUpdate:n["default"]},methods:{getDataList(e,a,t){this.dataListLoading=!0,this.$http({url:this.$http.adornUrl("/c2cUser/list"),method:"post",data:this.$http.adornData(Object.assign({current:null==e?this.page.currentPage:e.currentPage,size:null==e?this.page.pageSize:e.pageSize},a))}).then(({data:e})=>{this.dataList=e.data.records,this.page.total=e.data.total,this.dataListLoading=!1,t&&t()})},searchChange(e,a){this.getDataList(this.page,e,a)},selectionChange(e){this.dataListSelections=e},addOrUpdateHandle(e,a){this.addOrUpdateVisible=!0,this.$nextTick(()=>{this.$refs.addOrUpdate.init(e,a)})},otherHandle(e){this.otherVisible=!0,this.$nextTick(()=>{this.$refs.otherUpdate.init(e)})},deleteHandle(e){var a=e?[e]:this.dataListSelections.map(e=>e.roleId);this.$confirm(`确定进行[${e?"删除":"批量删除"}]操作?`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{this.$http({url:this.$http.adornUrl("/sys/role"),method:"delete",data:this.$http.adornData(a,!1)}).then(({data:e})=>{this.$message({message:"操作成功",type:"success",duration:1500,onClose:()=>{this.getDataList()}})})}).catch(()=>{})}}},d=l,p=t("2877"),c=Object(p["a"])(d,o,r,!1,null,null,null);a["default"]=c.exports}}]);