webpackJsonp([66],{V2oP:function(e,n,r){var t=r("cd9F");"string"==typeof t&&(t=[[e.i,t,""]]),t.locals&&(e.exports=t.locals);r("Xatw")("4c163c35",t,!0)},cd9F:function(e,n,r){(e.exports=r("uszS")(!1)).push([e.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",""])},e0CW:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=r("vvmr"),l=r.n(t),o=r("s/F+"),a=r.n(o),i=r("yrbl"),s=r.n(i),u=r("Vw3y"),c=r("pafL"),m={mixins:[r("Z4qH").a],data:function(){return{dialogTitle:"新建配置",coinAll:"",rules:{code:[{required:!0,message:"请输入代码",trigger:"blur"}],name:[{required:!0,message:"请输入名称",trigger:"blur"}],type:[{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:""}}},mounted:function(){var e=this;return s()(a.a.mark(function n(){return a.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,c.c.getCoinAll();case 2:e.coinAll=n.sent;case 3:case"end":return n.stop()}},n,e)}))()},watch:{dialogType:function(e){this.dialogTitle=1===e?"新建区域配置":"编辑区域配置"}},methods:{createCallback:function(){var e=this.ruleForm.coinId,n=this.coinAll.find(function(n){return n.id==e}).title;return u.a.createdInnovateTradeArea(l()({},this.ruleForm,{coinName:n}))},updateCallback:function(){return u.a.updateInnovateTradeArea(this.ruleForm)}}},d={render:function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("el-dialog",{attrs:{title:e.dialogTitle,visible:e.dialogVisible},on:{"update:visible":function(n){e.dialogVisible=n},close:e.closeDialog}},[r("el-form",{ref:"ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"150px"}},[r("el-form-item",{attrs:{label:"名称",prop:"name"}},[r("el-input",{staticClass:"form-input",model:{value:e.ruleForm.name,callback:function(n){e.$set(e.ruleForm,"name",n)},expression:"ruleForm.name"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"代码",prop:"code"}},[r("el-input",{staticClass:"form-input",model:{value:e.ruleForm.code,callback:function(n){e.$set(e.ruleForm,"code",n)},expression:"ruleForm.code"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"结算币种",prop:"coinId"}},[r("el-select",{attrs:{placeholder:"结算币种"},model:{value:e.ruleForm.coinId,callback:function(n){e.$set(e.ruleForm,"coinId",n)},expression:"ruleForm.coinId"}},e._l(e.coinAll,function(e){return r("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1),e._v(" "),r("el-form-item",{attrs:{label:"资产统计标识",prop:"baseCoin"}},[r("el-select",{attrs:{placeholder:"资产统计标识"},model:{value:e.ruleForm.baseCoin,callback:function(n){e.$set(e.ruleForm,"baseCoin",n)},expression:"ruleForm.baseCoin"}},[r("el-option",{attrs:{label:"否",value:"0"}}),e._v(" "),r("el-option",{attrs:{label:"是",value:"1"}})],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"状态",prop:"status"}},[r("el-select",{attrs:{placeholder:"状态"},model:{value:e.ruleForm.status,callback:function(n){e.$set(e.ruleForm,"status",n)},expression:"ruleForm.status"}},[r("el-option",{attrs:{label:"禁用",value:0}}),e._v(" "),r("el-option",{attrs:{label:"启用",value:1}})],1)],1)],1),e._v(" "),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(n){e.dialogVisible=!1}}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:function(n){e.submitForm("ruleForm")}}},[e._v("确 定")])],1)],1)},staticRenderFns:[]};var p=r("rCDr")(m,d,!1,function(e){r("V2oP")},"data-v-2bf07387",null);n.default=p.exports}});