cpop_nftmeta_sdm/web/admin-web/static/js/chunk-5a7b9e17.da096f87.js
2024-10-25 16:17:26 +08:00

1 line
4.8 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5a7b9e17"],{"9e75":function(e,t,o){"use strict";o.r(t);var n=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("el-dialog",{attrs:{title:"Midjourney优质绘画作品",visible:e.show,width:"600px"},on:{"update:visible":function(t){e.show=t}}},[o("el-form",{ref:"form",attrs:{model:e.form,"label-width":"90px",rules:e.rules}},[o("el-form-item",{attrs:{label:"编号",prop:"nftId"}},[o("el-input",{model:{value:e.form.nftId,callback:function(t){e.$set(e.form,"nftId",t)},expression:"form.nftId"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"主标题",prop:"name"}},[o("el-input",{model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"主图",prop:"mainphoto"}},[o("el-input",{model:{value:e.form.mainphoto,callback:function(t){e.$set(e.form,"mainphoto",t)},expression:"form.mainphoto"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"类别Id会员手机号",prop:"categoryId"}},[o("el-input",{model:{value:e.form.categoryId,callback:function(t){e.$set(e.form,"categoryId",t)},expression:"form.categoryId"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"作者",prop:"author"}},[o("el-input",{model:{value:e.form.author,callback:function(t){e.$set(e.form,"author",t)},expression:"form.author"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"",prop:"blockaddr"}},[o("el-input",{model:{value:e.form.blockaddr,callback:function(t){e.$set(e.form,"blockaddr",t)},expression:"form.blockaddr"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"藏品文件",prop:"file"}},[o("el-input",{model:{value:e.form.file,callback:function(t){e.$set(e.form,"file",t)},expression:"form.file"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"藏品类型 1 图片 2视频 3音乐",prop:"type"}},[o("el-input",{model:{value:e.form.type,callback:function(t){e.$set(e.form,"type",t)},expression:"form.type"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"大图",prop:"bigphoto"}},[o("el-input",{model:{value:e.form.bigphoto,callback:function(t){e.$set(e.form,"bigphoto",t)},expression:"form.bigphoto"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"是否上链",prop:"chainflag"}},[o("el-input",{model:{value:e.form.chainflag,callback:function(t){e.$set(e.form,"chainflag",t)},expression:"form.chainflag"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"",prop:"creationTime"}},[o("el-input",{model:{value:e.form.creationTime,callback:function(t){e.$set(e.form,"creationTime",t)},expression:"form.creationTime"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"",prop:"updateTime"}},[o("el-input",{model:{value:e.form.updateTime,callback:function(t){e.$set(e.form,"updateTime",t)},expression:"form.updateTime"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"",prop:"deleted"}},[o("el-input",{model:{value:e.form.deleted,callback:function(t){e.$set(e.form,"deleted",t)},expression:"form.deleted"}})],1)],1),e._v(" "),o("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("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(" "),o("el-button",{on:{click:e.close}},[e._v("取消")])],1)],1)},l=[],r=o("b626"),a=o("e1c8"),i={components:{customSelect:a["default"]},name:"zExcellentPaintingForm",data:function(){return{form:{},show:!1,loading:!1,rules:{}}},computed:{formState:function(){return!this.form.zExcellentPaintingId},btn_title:function(){return this.formState?"新建":"保存"}},methods:{open:function(e){if(e){var t=Object.assign({},e);this.form=t}else this.form={};this.show=!0},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["a"])(this.form).then((function(t){"success"===t.code&&e.finish()})).finally((function(){e.loading=!1}))},editHandler:function(){var e=this;Object(r["d"])(this.form).then((function(t){"success"===t.code&&e.finish()})).finally((function(){e.loading=!1}))},finish:function(){this.close(),this.$emit("reloadTable")}}},f=i,m=o("2877"),c=Object(m["a"])(f,n,l,!1,null,null,null);t["default"]=c.exports},b626:function(e,t,o){"use strict";o.d(t,"c",(function(){return l})),o.d(t,"a",(function(){return r})),o.d(t,"d",(function(){return a})),o.d(t,"b",(function(){return i}));var n=o("b775");function l(e){return Object(n["a"])({url:"/admin/zexcellentpainting/page",method:"get",params:e})}function r(e){return Object(n["a"])({url:"/admin/zexcellentpainting",method:"post",data:e})}function a(e){return Object(n["a"])({url:"/admin/zexcellentpainting",method:"put",data:e})}function i(e){return Object(n["a"])({url:"/admin/zexcellentpainting/"+e,method:"delete"})}}}]);