text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0cf191"],{"61ee":function(e,a,r){"use strict";r.r(a);var t=function(){var e=this,a=e.$createElement,r=e._self._c||a;return r("div",{staticClass:"app-container"},[r("el-form",{ref:"form",attrs:{model:e.config,rules:e.rules,"label-position":"right","label-width":"150px"}},[r("el-form-item",{attrs:{label:e.$t("table.gen.config.author"),prop:"author"}},[r("el-input",{model:{value:e.config.author,callback:function(a){e.$set(e.config,"author",a)},expression:"config.author"}})],1),e._v(" "),r("el-form-item",{attrs:{label:e.$t("table.gen.config.basePackage"),prop:"basePackage"}},[r("el-input",{model:{value:e.config.basePackage,callback:function(a){e.$set(e.config,"basePackage",a)},expression:"config.basePackage"}})],1),e._v(" "),r("el-form-item",{attrs:{label:e.$t("table.gen.config.entityPackage"),prop:"entityPackage"}},[r("el-input",{model:{value:e.config.entityPackage,callback:function(a){e.$set(e.config,"entityPackage",a)},expression:"config.entityPackage"}})],1),e._v(" "),r("el-form-item",{attrs:{label:e.$t("table.gen.config.mapperPackage"),prop:"mapperPackage"}},[r("el-input",{model:{value:e.config.mapperPackage,callback:function(a){e.$set(e.config,"mapperPackage",a)},expression:"config.mapperPackage"}})],1),e._v(" "),r("el-form-item",{attrs:{label:e.$t("table.gen.config.mapperXmlPackage"),prop:"mapperXmlPackage"}},[r("el-input",{model:{value:e.config.mapperXmlPackage,callback:function(a){e.$set(e.config,"mapperXmlPackage",a)},expression:"config.mapperXmlPackage"}})],1),e._v(" "),r("el-form-item",{attrs:{label:e.$t("table.gen.config.servicePackage"),prop:"servicePackage"}},[r("el-input",{model:{value:e.config.servicePackage,callback:function(a){e.$set(e.config,"servicePackage",a)},expression:"config.servicePackage"}})],1),e._v(" "),r("el-form-item",{attrs:{label:e.$t("table.gen.config.serviceImplPackage"),prop:"serviceImplPackage"}},[r("el-input",{model:{value:e.config.serviceImplPackage,callback:function(a){e.$set(e.config,"serviceImplPackage",a)},expression:"config.serviceImplPackage"}})],1),e._v(" "),r("el-form-item",{attrs:{label:e.$t("table.gen.config.controllerPackage"),prop:"controllerPackage"}},[r("el-input",{model:{value:e.config.controllerPackage,callback:function(a){e.$set(e.config,"controllerPackage",a)},expression:"config.controllerPackage"}})],1),e._v(" "),r("el-form-item",{attrs:{label:e.$t("table.gen.config.isTrim"),prop:"isTrim"}},[r("el-radio-group",{model:{value:e.config.isTrim,callback:function(a){e.$set(e.config,"isTrim",a)},expression:"config.isTrim"}},[r("el-radio",{attrs:{label:"1"}},[e._v(e._s(e.$t("common.yes")))]),e._v(" "),r("el-radio",{attrs:{label:"0"}},[e._v(e._s(e.$t("common.no")))])],1)],1),e._v(" "),r("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"1"===e.config.isTrim,expression:"config.isTrim === '1'"}],attrs:{label:e.$t("table.gen.config.trimValue"),prop:"trimValue"}},[r("el-input",{model:{value:e.config.trimValue,callback:function(a){e.$set(e.config,"trimValue",a)},expression:"config.trimValue"}})],1),e._v(" "),r("el-form-item",{directives:[{name:"has-permission",rawName:"v-has-permission",value:["gen:config:update"],expression:"['gen:config:update']"}]},[r("el-button",{attrs:{type:"primary",plain:""},on:{click:e.submit}},[e._v(e._s(e.$t("common.edit")))])],1)],1)],1)},i=[],s=r("db72"),n={name:"GeneratorConfig",data:function(){var e=this;return{config:this.initConfig(),rules:{author:[{required:!0,message:this.$t("rules.require"),trigger:"blur"},{max:20,message:this.$t("rules.noMoreThan20"),trigger:"blur"}],basePackage:[{required:!0,message:this.$t("rules.require"),trigger:"blur"},{max:50,message:this.$t("rules.noMoreThan50"),trigger:"blur"}],entityPackage:[{required:!0,message:this.$t("rules.require"),trigger:"blur"},{max:20,message:this.$t("rules.noMoreThan20"),trigger:"blur"}],mapperPackage:[{required:!0,message:this.$t("rules.require"),trigger:"blur"},{max:20,message:this.$t("rules.noMoreThan20"),trigger:"blur"}],mapperXmlPackage:[{required:!0,message:this.$t("rules.require"),trigger:"blur"},{max:20,message:this.$t("rules.noMoreThan20"),trigger:"blur"}],servicePackage:[{required:!0,message:this.$t("rules.require"),trigger:"blur"},{max:20,message:this.$t("rules.noMoreThan20"),trigger:"blur"}],serviceImplPackage:[{required:!0,message:this.$t("rules.require"),trigger:"blur"},{max:20,message:this.$t("rules.noMoreThan20"),trigger:"blur"}],controllerPackage:[{required:!0,message:this.$t("rules.require"),trigger:"blur"},{max:20,message:this.$t("rules.noMoreThan20"),trigger:"blur"}],trimValue:[{validator:function(a,r,t){"1"!==e.config.isTrim||r.trim().length?t():t(e.$t("rules.require"))},trigger:"blur"},{max:10,message:this.$t("rules.noMoreThan10"),trigger:"blur"}]}}},mounted:function(){this.getConfig()},methods:{initConfig:function(){return{id:"",author:"",basePackage:"",entityPackage:"",mapperPackage:"",mapperXmlPackage:"",servicePackage:"",serviceImplPackage:"",controllerPackage:"",isTrim:"",trimValue:""}},getConfig:function(){var e=this;this.$get("system/generatorConfig").then((function(a){var r=a.data.data;e.config=Object(s["a"])({},r)}))},submit:function(){var e=this;this.$refs.form.validate((function(a){if(!a)return!1;e.$post("system/generatorConfig",Object(s["a"])({},e.config)).then((function(){e.$message({message:e.$t("tips.updateSuccess"),type:"success"})}))}))}}},l=n,o=r("2877"),c=Object(o["a"])(l,t,i,!1,null,null,null);a["default"]=c.exports}}]);