(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-11fd501a"],{"95a7":function(t,e,a){"use strict";var s=a("a6f5"),n=a.n(s);n.a},a6f5:function(t,e,a){},e371:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"addclass"},[a("p",[t._v("内容管理 > 栏目管理 > 新增栏目")]),a("div",{staticClass:"content"},[a("el-form",{attrs:{"label-width":"80px"}},[a("el-form-item",{attrs:{label:"栏目名称"}},[a("el-input",{attrs:{placeholder:"栏目名称"},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1),a("el-form-item",{attrs:{label:"排序字段"}},[a("el-input",{attrs:{placeholder:"排序字段"},model:{value:t.form.order,callback:function(e){t.$set(t.form,"order",e)},expression:"form.order"}})],1),a("el-form-item",{attrs:{label:" "}},[a("el-button",{attrs:{type:"primary"},on:{click:t.save}},[t._v("保存")])],1)],1)],1)])},n=[],r={components:{},data:function(){return{form:{name:""}}},methods:{getData:function(){var t=this;this.$api.getContentById({id:this.form.id}).then((function(e){t.form=e.data.data}))},save:function(){var t=this,e=this.form;e.id?this.$api.editContent(e).then((function(e){0==e.data.code?(t.$message({message:"修改成功!",type:"success"}),t.$router.push({path:"/content"})):t.$message.error(e.data.message)})):this.$api.addContent(e).then((function(e){0==e.data.code?(t.$message({message:"添加成功!",type:"success"}),t.$router.push({path:"/content"})):t.$message.error(e.data.message)}))}},created:function(){this.$route.query.id&&(this.form.id=this.$route.query.id,this.id=this.$route.query.id,this.getData())}},o=r,i=(a("95a7"),a("4023")),c=Object(i["a"])(o,s,n,!1,null,null,null);e["default"]=c.exports}}]); //# sourceMappingURL=chunk-11fd501a.023eb565.js.map