(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0a2e6f27"],{1854:function(t,e,o){"use strict";o.r(e);var r=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("el-dialog",{attrs:{title:"",visible:t.show,width:"600px"},on:{"update:visible":function(e){t.show=e}}},[o("el-form",{ref:"form",attrs:{model:t.form,"label-width":"110px",rules:t.rules}},[o("el-form-item",{attrs:{label:"",prop:"id"}},[o("el-input",{model:{value:t.form.id,callback:function(e){t.$set(t.form,"id",e)},expression:"form.id"}})],1),t._v(" "),o("el-form-item",{attrs:{label:"卖方",prop:"fromId"}},[o("el-input",{model:{value:t.form.fromId,callback:function(e){t.$set(t.form,"fromId",e)},expression:"form.fromId"}})],1),t._v(" "),o("el-form-item",{attrs:{label:"买方",prop:"toId"}},[o("el-input",{model:{value:t.form.toId,callback:function(e){t.$set(t.form,"toId",e)},expression:"form.toId"}})],1),t._v(" "),o("el-form-item",{attrs:{label:"NFT",prop:"nftId"}},[o("el-input",{model:{value:t.form.nftId,callback:function(e){t.$set(t.form,"nftId",e)},expression:"form.nftId"}})],1),t._v(" "),o("el-form-item",{attrs:{label:"",prop:"tradehash"}},[o("el-input",{model:{value:t.form.tradehash,callback:function(e){t.$set(t.form,"tradehash",e)},expression:"form.tradehash"}})],1),t._v(" "),o("el-form-item",{attrs:{label:"",prop:"creationTime"}},[o("el-input",{model:{value:t.form.creationTime,callback:function(e){t.$set(t.form,"creationTime",e)},expression:"form.creationTime"}})],1),t._v(" "),o("el-form-item",{attrs:{label:"",prop:"updateTime"}},[o("el-input",{model:{value:t.form.updateTime,callback:function(e){t.$set(t.form,"updateTime",e)},expression:"form.updateTime"}})],1),t._v(" "),o("el-form-item",{attrs:{label:"",prop:"status"}},[o("el-input",{model:{value:t.form.status,callback:function(e){t.$set(t.form,"status",e)},expression:"form.status"}})],1),t._v(" "),o("el-form-item",{attrs:{label:"",prop:"blockaddr"}},[o("el-input",{model:{value:t.form.blockaddr,callback:function(e){t.$set(t.form,"blockaddr",e)},expression:"form.blockaddr"}})],1)],1),t._v(" "),o("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{type:"primary"},on:{click:t.saveHandler}},[t._v(t._s(t.btn_title))]),t._v(" "),o("el-button",{on:{click:t.close}},[t._v("取消")])],1)],1)},n=[],a=o("7814"),i=o("e1c8"),l={components:{customSelect:i["default"]},name:"zTransferForm",data:function(){return{form:{},show:!1,loading:!1,rules:{}}},computed:{formState:function(){return!this.form.zTransferId},btn_title:function(){return this.formState?"新建":"保存"}},methods:{open:function(t){if(t){var e=Object.assign({},t);this.form=e}else this.form={};this.show=!0},close:function(){this.show=!1},saveHandler:function(){var t=this;this.$refs.form.validate((function(e){e&&(t.loading=!0,t.formState?t.createHandler():t.editHandler())}))},createHandler:function(){var t=this;Object(a["a"])(this.form).then((function(e){"success"===e.code&&t.finish()})).finally((function(){t.loading=!1}))},editHandler:function(){var t=this;Object(a["d"])(this.form).then((function(e){"success"===e.code&&t.finish()})).finally((function(){t.loading=!1}))},finish:function(){this.close(),this.$emit("reloadTable")}}},s=l,f=o("2877"),m=Object(f["a"])(s,r,n,!1,null,null,null);e["default"]=m.exports},7814:function(t,e,o){"use strict";o.d(e,"c",(function(){return n})),o.d(e,"a",(function(){return a})),o.d(e,"d",(function(){return i})),o.d(e,"b",(function(){return l}));var r=o("b775");function n(t){return Object(r["a"])({url:"/admin/ztransfer/page",method:"get",params:t})}function a(t){return Object(r["a"])({url:"/admin/ztransfer",method:"post",data:t})}function i(t){return Object(r["a"])({url:"/admin/ztransfer",method:"put",data:t})}function l(t){return Object(r["a"])({url:"/admin/ztransfer/"+t,method:"delete"})}}}]);