(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-5dcf30c2"],{"0ab0":function(e,t,a){"use strict";a.d(t,"h",(function(){return s})),a.d(t,"k",(function(){return n})),a.d(t,"l",(function(){return i})),a.d(t,"j",(function(){return o})),a.d(t,"i",(function(){return c})),a.d(t,"a",(function(){return u})),a.d(t,"d",(function(){return d})),a.d(t,"c",(function(){return f})),a.d(t,"e",(function(){return m})),a.d(t,"b",(function(){return l})),a.d(t,"f",(function(){return p})),a.d(t,"g",(function(){return h})),a.d(t,"m",(function(){return g})),a.d(t,"n",(function(){return k}));var r=a("6b2d");const s=e=>r.a.post("/fakeUserName/create",e),n=e=>r.a.get("/fakeUserName/list",{params:e}),i=e=>r.a.post("/fakeUserName/update",e),o=e=>r.a.get("/fakeUserName/detail",{params:e}),c=e=>r.a.get("/fakeUserName/del",{params:e}),u=e=>r.a.post("/fakeUserAvatar/create",e),d=e=>r.a.get("/fakeUserAvatar/list",{params:e}),f=e=>r.a.get("/fakeUserAvatar/detail",{params:e}),m=e=>r.a.post("/fakeUserAvatar/update",e),l=e=>r.a.get("/fakeUserAvatar/del",{params:e}),p=e=>r.a.post("/fakeUser/create",e),h=e=>r.a.get("/fakeUser/list",{params:e}),g=e=>r.a.post("/fakeUserText/create",e),k=e=>r.a.get("/fakeUserText/list",{params:e})},"2fc8":function(e,t,a){"use strict";a.r(t);var r=a("0ab0"),s=a("b3ad"),n=(a("b6c4"),{data:()=>({form:{name:""}}),components:{MaterialSelect:s.a},methods:{submitForm(e){this.$refs[e].validate(e=>{if(!e)return!1;this.updateMajia()})},addMajia(){Object(r.h)(this.form).then(e=>{1==e.code?(this.$message.success("添加成功!"),this.form.name=""):this.$message.error(e.msg)})},updateMajia(){Object(r.l)(this.form).then(e=>{1==e.code?(this.$message.success("修改成功!"),setTimeout(()=>this.$router.go(-1),500)):this.$message.error(e.msg)})},getMajiaDetail(){Object(r.j)({id:this.form.id}).then(e=>{1==e.code?this.form=e.data:this.$message.error(e.msg)})}},mounted(){this.getMajiaDetail()},created(){const e=this.$route.query;this.form.id=e.id}}),i=a("2877"),o=Object(i.a)(n,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"ls-card"},[a("el-page-header",{attrs:{content:"编辑马甲名称"},on:{back:function(t){return e.$router.go(-1)}}})],1),a("div",{staticClass:"ls-card m-t-16"},[a("div",{staticClass:"card-title"},[e._v("编辑马甲名称")]),a("div",{staticClass:"card-content m-t-24"},[a("el-form",{ref:"form",attrs:{model:e.form,"label-width":"80px"}},[a("el-form-item",{attrs:{required:"",prop:"name",label:"马甲名称"}},[a("el-input",{model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1)],1)],1)]),a("div",{staticClass:"bg-white ls-fixed-footer"},[a("div",{staticClass:"row-center flex",staticStyle:{height:"100%"}},[a("el-button",{attrs:{size:"small"},on:{click:function(t){return e.$router.go(-1)}}},[e._v("取消")]),a("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.submitForm("form")}}},[e._v("编辑")])],1)])])}),[],!1,null,null,null);t.default=o.exports}}]);