webpackJsonp([55],{"00lZ":function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=t("vvmr"),r=t.n(l),o=t("Vw3y"),a=t("Z4qH"),i=t("xSh0"),s={mixins:[a.a],data:function(){return{dialogTitle:"新建配置",coinAll:"",rules:{code:[{required:!0,message:"请输入代码",trigger:"blur"}],name:[{required:!0,message:"请输入名称",trigger:"blur"}],baseCoin:[{required:!0,message:"请输入资产统计标识",trigger:"blur"}],status:[{required:!0,message:"请输入状态",trigger:"blur"}],coinId:[{required:!0,message:"请输入结算币种",trigger:"blur"}]},ruleForm:{status:"",type:""}}},computed:r()({},Object(i.b)(["getCoinAll"])),created:function(){this.coinAll=this.getCoinAll},watch:{dialogType:function(n){this.dialogTitle=1===n?"新建配置":"编辑配置"}},methods:{createCallback:function(){var n=this;return this.coinAll.forEach(function(e,t){e.id==n.ruleForm.coinId&&(n.ruleForm.coinName=e.title)}),o.a.createdTradeArea(this.ruleForm)},updateCallback:function(){return o.a.updateTradeArea(this.ruleForm)}}},u={render:function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("el-dialog",{attrs:{title:n.dialogTitle,visible:n.dialogVisible},on:{"update:visible":function(e){n.dialogVisible=e},close:n.closeDialog}},[t("el-form",{ref:"ruleForm",attrs:{model:n.ruleForm,rules:n.rules,"label-width":"150px"}},[t("el-form-item",{attrs:{label:"名称",prop:"name"}},[t("el-input",{staticClass:"form-input",model:{value:n.ruleForm.name,callback:function(e){n.$set(n.ruleForm,"name",e)},expression:"ruleForm.name"}})],1),n._v(" "),t("el-form-item",{attrs:{label:"代码",prop:"code"}},[t("el-input",{staticClass:"form-input",model:{value:n.ruleForm.code,callback:function(e){n.$set(n.ruleForm,"code",e)},expression:"ruleForm.code"}})],1),n._v(" "),t("el-form-item",{attrs:{label:"结算币种",prop:"coinId"}},[t("el-select",{attrs:{placeholder:"结算币种"},model:{value:n.ruleForm.coinId,callback:function(e){n.$set(n.ruleForm,"coinId",e)},expression:"ruleForm.coinId"}},n._l(n.coinAll,function(n){return t("el-option",{key:n.id,attrs:{label:n.name,value:n.id}})}))],1),n._v(" "),t("el-form-item",{attrs:{label:"资产统计标识",prop:"baseCoin"}},[t("el-select",{attrs:{placeholder:"资产统计标识"},model:{value:n.ruleForm.baseCoin,callback:function(e){n.$set(n.ruleForm,"baseCoin",e)},expression:"ruleForm.baseCoin"}},[t("el-option",{attrs:{label:"否",value:"0"}}),n._v(" "),t("el-option",{attrs:{label:"是",value:"1"}})],1),n._v(" "),t("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"币币交易统计用户资产的单位，一般结算币种为USDT时设置为是，结算币种不是USDT请设置为否",placement:"top"}},[t("i",{staticClass:"el-icon-question",staticStyle:{color:"#E6A23C"}})])],1),n._v(" "),t("el-form-item",{attrs:{label:"状态",prop:"status"}},[t("el-select",{attrs:{placeholder:"状态"},model:{value:n.ruleForm.status,callback:function(e){n.$set(n.ruleForm,"status",e)},expression:"ruleForm.status"}},[t("el-option",{attrs:{label:"禁用",value:0}}),n._v(" "),t("el-option",{attrs:{label:"启用",value:1}})],1)],1)],1),n._v(" "),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:function(e){n.dialogVisible=!1}}},[n._v("取 消")]),n._v(" "),t("el-button",{attrs:{type:"primary"},on:{click:function(e){n.submitForm("ruleForm")}}},[n._v("确 定")])],1)],1)},staticRenderFns:[]};var c=t("rCDr")(s,u,!1,function(n){t("0wBd")},"data-v-55ccae4c",null);e.default=c.exports},"0wBd":function(n,e,t){var l=t("3l0X");"string"==typeof l&&(l=[[n.i,l,""]]),l.locals&&(n.exports=l.locals);t("Xatw")("63e59e8b",l,!0)},"3l0X":function(n,e,t){(n.exports=t("uszS")(!1)).push([n.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",""])}});