1 line
4.8 KiB
JavaScript
1 line
4.8 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9cb42332"],{"101b":function(e,t,n){"use strict";n.r(t);var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-dialog",{attrs:{title:"合成计划",visible:e.show,width:"52.5rem","append-to-body":""},on:{"update:visible":function(t){e.show=t}}},[n("el-form",{ref:"form",attrs:{model:e.form,"label-width":"110px",rules:e.rules}},[n("el-form-item",{attrs:{label:"合成计划",prop:"code"}},[n("el-input",{model:{value:e.form.compoundName,callback:function(t){e.$set(e.form,"compoundName",t)},expression:"form.compoundName"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"合成编号",prop:"name"}},[n("el-input",{model:{value:e.form.compoundCode,callback:function(t){e.$set(e.form,"compoundCode",t)},expression:"form.compoundCode"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"开始时间",prop:"subname"}},[n("SelectDateTime",{model:{value:e.form.startTime,callback:function(t){e.$set(e.form,"startTime",t)},expression:"form.startTime"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"结束时间",prop:"branderId"}},[n("SelectDateTime",{model:{value:e.form.endTime,callback:function(t){e.$set(e.form,"endTime",t)},expression:"form.endTime"}})],1)],1),e._v(" "),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{type:"primary"},on:{click:e.saveHandler}},[e._v(e._s(e.btn_title))]),e._v(" "),n("el-button",{on:{click:e.close}},[e._v("取消")])],1)],1)},a=[],r=n("5c31"),l=n("d9a9"),u=n("f6fb"),i={components:{SelectDateTime:u["default"]},name:"zNftForm",data:function(){return{status:l["g"],blindflagType:l["a"],form:{},show:!1,loading:!1,rules:{}}},props:{branderList:{typeof:Array,default:function(){return[]}},publishList:{typeof:Array,default:function(){return[]}},categoryList:{typeof:Array,default:function(){return[]}}},computed:{formState:function(){return!this.form.compoundId},btn_title:function(){return this.formState?"新建计划":"保存计划"}},methods:{open:function(e){e&&e.nftId?(e&&(this.form=Object.assign({},e)),this.show=!0):this.$message.error("未知藏品")},close:function(){this.show=!1},saveHandler:function(){var e=this;this.$refs.form.validate((function(t){t&&(e.loading=!0,e.formState?e.createHandler():e.editHandler())}))},createHandler:function(){var e=this;Object(r["b"])(this.form).then((function(t){"success"===t.code&&(e.$message.success(t.msg),e.finish())})).finally((function(){e.loading=!1}))},editHandler:function(){var e=this;Object(r["g"])(this.form).then((function(t){"success"===t.code?(e.finish(),e.$message.success(t.msg)):e.$message.error(t.msg)})).finally((function(){e.loading=!1}))},finish:function(){this.close(),this.$emit("reloadTable")}}},c=i,s=n("2877"),d=Object(s["a"])(c,o,a,!1,null,null,null);t["default"]=d.exports},"5c31":function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"g",(function(){return r})),n.d(t,"e",(function(){return l})),n.d(t,"d",(function(){return u})),n.d(t,"h",(function(){return i})),n.d(t,"a",(function(){return c})),n.d(t,"f",(function(){return s})),n.d(t,"c",(function(){return d}));var o=n("b775");function a(e){return Object(o["a"])({url:"/admin/znftcompound",method:"post",data:e})}function r(e){return Object(o["a"])({url:"/admin/znftcompound",method:"put",data:e})}function l(e){return Object(o["a"])({url:"/admin/znftcompounddetails/list/"+e,method:"get"})}function u(e){return Object(o["a"])({url:"/admin/znftcompound/"+e,method:"delete"})}function i(e){return Object(o["a"])({url:"/admin/znftcompound/nft/list/"+e,method:"get"})}function c(e){return Object(o["a"])({url:"/admin/znftcompounddetails",method:"post",data:e})}function s(e){return Object(o["a"])({url:"/admin/znftcompounddetails",method:"put",data:e})}function d(e){return Object(o["a"])({url:"/admin/znftcompounddetails/"+e,method:"delete"})}},d9a9:function(e,t,n){"use strict";n.d(t,"g",(function(){return o})),n.d(t,"i",(function(){return a})),n.d(t,"f",(function(){return r})),n.d(t,"a",(function(){return l})),n.d(t,"e",(function(){return u})),n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return s})),n.d(t,"h",(function(){return d}));var o=[{label:"禁用",value:0},{label:"启用",value:1}],a=[{label:"待销毁",value:0},{label:"正在销毁",value:1},{label:"销毁完成",value:2}],r=[{label:"预售",value:1},{label:"盲盒",value:2}],l=[{label:"盲盒",value:0},{label:"合成材料",value:1}],u=[{label:"普通藏品",value:"NFT"},{label:"DIY",value:"DIYNFT"},{label:"核销藏品",value:"VERIFICATION"},{label:"优惠券",value:"INTERESTS"}],i=[{label:"图片",value:1},{label:"视频",value:2}],c=[{label:"兑换券",value:1}],s=[{label:"启用",value:"ENABLE"},{label:"禁用",value:"DISABLE"}],d=[{label:"免费",value:"FREE"},{label:"折扣",value:"DISCOUNT"}]}}]); |