1 line
7.1 KiB
JavaScript
1 line
7.1 KiB
JavaScript
webpackJsonp([9,52],{"/asC":function(n,t,e){var a=e("arFg");"string"==typeof a&&(a=[[n.i,a,""]]),a.locals&&(n.exports=a.locals);e("Xatw")("70660963",a,!0)},"0o00":function(n,t,e){(n.exports=e("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\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",""])},"2OpK":function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("pafL"),r=e("JFZm"),s={mixins:[e("Z4qH").a],data:function(){return{select:r.a,dialogTitle:"新建创新交易配置",rules:{name:[{required:!0,message:"请输入名称"}],title:[{required:!0,message:"请输入标题"}],sort:[{required:!0,message:"请输入排序"}],status:[{required:!0,message:"请选择状态"}]},ruleForm:{name:"",title:"",sort:"",status:""}}},watch:{dialogType:function(n){this.dialogTitle=1===n?"新建创新交易币种配置":"编辑创新交易币种配置"}},methods:{createCallback:function(){return a.b.addForexCoin(this.ruleForm)},updateCallback:function(){return a.b.editForexCoin(this.ruleForm)}}},l={render:function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("el-dialog",{attrs:{title:n.dialogTitle,visible:n.dialogVisible,width:"50%"},on:{"update:visible":function(t){n.dialogVisible=t},close:n.closeDialog}},[e("el-form",{ref:"ruleForm",attrs:{model:n.ruleForm,rules:n.rules,"label-width":"100px"}},[e("el-form-item",{attrs:{label:"名称",prop:"name"}},[e("el-input",{staticClass:"form-input",attrs:{disabled:2==n.dialogType},model:{value:n.ruleForm.name,callback:function(t){n.$set(n.ruleForm,"name",t)},expression:"ruleForm.name"}})],1),n._v(" "),e("el-form-item",{attrs:{label:"标题",prop:"title"}},[e("el-input",{staticClass:"form-input",attrs:{disabled:2==n.dialogType},model:{value:n.ruleForm.title,callback:function(t){n.$set(n.ruleForm,"title",t)},expression:"ruleForm.title"}})],1),n._v(" "),e("el-form-item",{attrs:{label:"排序",prop:"sort"}},[e("el-input-number",{staticClass:"form-input",model:{value:n.ruleForm.sort,callback:function(t){n.$set(n.ruleForm,"sort",t)},expression:"ruleForm.sort"}})],1),n._v(" "),e("el-form-item",{attrs:{label:"状态",prop:"status"}},[e("el-select",{staticClass:"form-input",model:{value:n.ruleForm.status,callback:function(t){n.$set(n.ruleForm,"status",t)},expression:"ruleForm.status"}},n._l(n.select.status,function(n,t){return e("el-option",{key:t,attrs:{label:n,value:t}})}))],1)],1),n._v(" "),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(t){n.dialogVisible=!1}}},[n._v("取 消")]),n._v(" "),e("el-button",{attrs:{type:"primary"},on:{click:function(t){n.submitForm("ruleForm")}}},[n._v("确 定")])],1)],1)},staticRenderFns:[]};var o=e("Iim3")(s,l,!1,function(n){e("/asC")},"data-v-685b62aa",null);t.default=o.exports},JxAO:function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("vvmr"),r=e.n(a),s=e("s/F+"),l=e.n(s),o=e("yrbl"),i=e.n(o),u=e("2OpK"),c=e("pafL"),m=e("JFZm"),d=e("Swn3"),p={components:{coinConfigDialog:u.default},mixins:[d.a],data:function(){return{select:m.a,searchForm:{status:""}}},methods:{listCallback:function(){return c.b.getForexCoinList(this.searchForm,this.listQuery.current,this.listQuery.size)},changeStatusCallback:function(n,t){var e=this;return i()(l.a.mark(function a(){return l.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c.b.setStatus({id:n,status:t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},a,e)}))()},handleCreate:function(){this.$refs.coinConfigDialog.showDialog(1)},handleEdit:function(n,t){var e=r()({},t,{status:t.status+""});this.$refs.coinConfigDialog.showDialog(2,e)}}},f={render:function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("div",{staticClass:"common-main"},[e("el-form",{ref:"searchForm",staticClass:"demo-form-inline",attrs:{inline:!0,model:n.searchForm,"label-position":"right","label-width":"80px"}},[e("el-form-item",{attrs:{label:"状态",prop:"status"}},[e("el-select",{staticClass:"form-input",attrs:{clearable:""},model:{value:n.searchForm.status,callback:function(t){n.$set(n.searchForm,"status",t)},expression:"searchForm.status"}},n._l(n.select.status,function(n,t){return e("el-option",{key:t,attrs:{label:n,value:t}})}))],1),n._v(" "),e("el-form-item",[e("el-button",{attrs:{icon:"el-icon-search"},on:{click:function(t){n.submitForm("searchForm")}}},[n._v("搜索\n ")]),n._v(" "),e("el-button",{attrs:{type:"primary",icon:"el-icon-edit"},on:{click:n.handleCreate}},[n._v("新建")])],1)],1),n._v(" "),e("div",{staticClass:"table"},[e("el-table",{staticStyle:{width:"100%"},attrs:{data:n.listData}},[e("el-table-column",{attrs:{prop:"id",label:"ID",width:"200"}}),n._v(" "),e("el-table-column",{attrs:{prop:"name",label:"名称",width:"150"}}),n._v(" "),e("el-table-column",{attrs:{prop:"title",label:"标题",width:"150"}}),n._v(" "),e("el-table-column",{attrs:{prop:"sort",label:"排序",width:"150"}}),n._v(" "),e("el-table-column",{attrs:{prop:"status",render:"renderHeader",label:"状态",width:"100"},scopedSlots:n._u([{key:"default",fn:function(t){return[e("el-tag",{attrs:{type:n._f("elTagFilter")(t.row.status)}},[n._v("\n "+n._s(n.select.status[t.row.status])+"\n ")])]}}])}),n._v(" "),e("el-table-column",{attrs:{width:"775",label:"操作"},scopedSlots:n._u([{key:"default",fn:function(t){return[e("el-button",{attrs:{size:"mini",type:"primary",icon:"el-icon-edit"},on:{click:function(e){n.handleEdit(t.$index,t.row)}}},[n._v("编辑\n ")]),n._v(" "),e("el-button",{directives:[{name:"show",rawName:"v-show",value:0===t.row.status,expression:"scope.row.status===0"}],attrs:{size:"mini",icon:"el-icon-edit"},on:{click:function(e){n.handleChangeStatus(t.$index,t.row)}}},[n._v("启用\n ")]),n._v(" "),e("el-button",{directives:[{name:"show",rawName:"v-show",value:1===t.row.status,expression:"scope.row.status===1"}],attrs:{size:"mini",type:"danger",icon:"el-icon-edit"},on:{click:function(e){n.handleChangeStatus(t.$index,t.row)}}},[n._v("禁用\n ")])]}}])})],1),n._v(" "),e("el-pagination",{staticClass:"pagination-container",attrs:{background:"",layout:"total,prev, pager, next","current-page":n.listQuery.current,"page-size":n.listQuery.size,total:n.listQuery.total},on:{"update:currentPage":function(t){n.$set(n.listQuery,"current",t)},"current-change":n.handlePageChange}})],1),n._v(" "),e("coin-config-dialog",{ref:"coinConfigDialog",on:{refreshList:n._getList}})],1)},staticRenderFns:[]};var b=e("Iim3")(p,f,!1,function(n){e("aRgo")},"data-v-3ee09b04",null);t.default=b.exports},aRgo:function(n,t,e){var a=e("0o00");"string"==typeof a&&(a=[[n.i,a,""]]),a.locals&&(n.exports=a.locals);e("Xatw")("bdbfa8a4",a,!0)},arFg:function(n,t,e){(n.exports=e("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",""])}}); |