(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2a9e5114"],{"56b0":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"app-form"},[a("el-form",{ref:"dataForm",attrs:{rules:t.rules,model:t.form,"label-position":"right","label-width":"200px"}},[a("div",{staticClass:"app-form-group"},[a("div",{staticClass:"app-form-ti"},[t._v("基础配置")]),a("div",{staticClass:"padding-top-lg"},[a("el-form-item",{attrs:{label:"名称",prop:"name"}},[a("el-input",{staticClass:"form-input",model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1),a("el-form-item",{attrs:{label:"编码",prop:"coding"}},[a("el-input",{staticClass:"form-input",model:{value:t.form.coding,callback:function(e){t.$set(t.form,"coding",e)},expression:"form.coding"}}),a("el-alert",{staticClass:"margin-top-sm",staticStyle:{width:"300px"},attrs:{type:"info",closable:!1}},[a("div",{attrs:{slot:"title"},slot:"title"},[a("a",{staticStyle:{color:"#409EFF"},attrs:{href:"https://www.yuque.com/kdnjishuzhichi/dfcrg1/mza2ln",target:"_blank"}},[t._v("点击查看编码")])])])],1),a("el-form-item",{attrs:{label:"状态",prop:"status"}},[a("el-radio-group",{model:{value:t.form.status,callback:function(e){t.$set(t.form,"status",e)},expression:"form.status"}},[a("el-radio",{attrs:{label:1}},[t._v("启用")]),a("el-radio",{attrs:{label:0}},[t._v("禁用")])],1)],1)],1)]),a("div",{staticClass:"padding-xl flex justify-center"},[a("el-button",{on:{click:t.onBack}},[t._v("返回")]),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submit()}}},[t._v("提交")])],1)])],1),a("copyright")],1)},s=[],o=a("7f70"),r=a("8327"),n=a("c7f0"),l=a("1fe5"),c={name:"LevelEdit",components:{uploadImage:n["a"],selgoods:l["a"]},data:function(){return{activeIndex:"1",levels:[],isDialog:!1,rules:{name:[{required:!0,message:"请输入名称",trigger:"blur"}],coding:[{required:!0,message:"请输入编码",trigger:"blur"}]},form:{id:"",name:"",coding:"",status:1}}},computed:Object(o["a"])({},Object(r["b"])(["config"])),created:function(){this.id=this.$route.params.id,this.init()},methods:{onBack:function(){this.$router.go(-1)},init:function(){var t=this;this.api.get("express/detail",{id:this.id}).then((function(e){1==e.code&&(e.data.info?t.form=e.data.info:t.form.content=e.data.content)}))},submit:function(){var t=this;this.form,this.$refs["dataForm"].validate((function(e){e&&t.api.post("express/post",t.form).then((function(e){1==e.code?(t.$util.success(e.message),t.onBack()):t.$util.error(e.message)}))}))},resetForm:function(){this.form={name:"",type:"",content:{}}}}},u=c,m=(a("bca2"),a("3d7a")),d=Object(m["a"])(u,i,s,!1,null,null,null);e["default"]=d.exports},bca2:function(t,e,a){"use strict";a("de6c")},de6c:function(t,e,a){}}]);