webpackJsonp([47],{IwMv:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a("mvHQ"),o=a.n(r),n=(a("ftAF"),{created:function(){var t=this;this.$route.query.id&&this.$http.get({url:"/companyInfo/getOne",data:{id:this.$route.query.id}}).then(function(e){e.success&&(t.formData=e.data)})},data:function(){return{saving:!1,formData:{},rules:{title:[{required:!0,message:"请输入 标题",trigger:"blur"}],remark:[{required:!0,message:"请输入 介绍",trigger:"blur"}]}}},methods:{onSave:function(){var t=this;this.$refs.form.validate(function(e){if(!e)return!1;t.submit()})},submit:function(){var t=this,e=JSON.parse(o()(this.formData));this.$http.post({url:this.formData.id?"/companyInfo/update":"/companyInfo/save",data:e}).then(function(e){e.success?(t.$message.success("成功"),t.$router.go(-1)):t.$message.warning("失败")})}}}),i={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-form",{ref:"form",staticStyle:{"max-width":"500px"},attrs:{model:t.formData,rules:t.rules,"label-width":"80px","label-position":"right",size:"small"}},[a("el-form-item",{attrs:{prop:"title",label:"标题"}},[a("el-input",{model:{value:t.formData.title,callback:function(e){t.$set(t.formData,"title",e)},expression:"formData.title"}})],1),t._v(" "),a("el-form-item",{attrs:{prop:"remark",label:"介绍"}},[a("el-input",{attrs:{type:"textarea",rows:"5"},model:{value:t.formData.remark,callback:function(e){t.$set(t.formData,"remark",e)},expression:"formData.remark"}})],1),t._v(" "),a("el-form-item",{attrs:{prop:"rank",label:"排序"}},[a("el-input",{model:{value:t.formData.rank,callback:function(e){t.$set(t.formData,"rank",e)},expression:"formData.rank"}})],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{loading:t.$store.state.fetchingData,type:"primary"},on:{click:t.onSave}},[t._v("保存")]),t._v(" "),a("el-button",{on:{click:function(e){t.$router.go(-1)}}},[t._v("取消")])],1)],1)],1)},staticRenderFns:[]};var s=a("VU/8")(n,i,!1,function(t){a("MTs+")},"data-v-3c55eb10",null);e.default=s.exports},"MTs+":function(t,e){}});
//# sourceMappingURL=47.8fb6bff3690879fd91e9.js.map