webpackJsonp([10],{"/h6+":function(e,t){},fZsz:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("3Xzz"),l=a("l46T"),i=a("Mk6G"),r={name:"limittextarea",props:{inputValue:{type:String,default:""},maxLength:{type:Number,default:10},inputWidth:{type:Number,default:500},getByType:{type:String,default:"word"},holder:{type:String,default:"请输入"}},data:function(){return{inputNum:0,limitLength:10,itemValue:""}},methods:{inputFocus:function(e){console.log(e)},toInput:function(e){console.log(e);var t="";"word"==this.getByType?(t=i.a.getByteVal(e.target.value,this.limitLength),this.itemValue=t.trim(),this.inputNum=i.a.getZhLen(this.itemValue)):(t=i.a.getCharVal(e.target.value,this.limitLength),this.itemValue=t.trim(),this.inputNum=i.a.getByteLen(this.itemValue)),this.$emit("update:inputValue",this.itemValue)}},watch:{maxLength:function(e,t){this.limitLength=e},inputValue:function(e,t){this.itemValue=e,this.inputNum=i.a.getZhLen(this.itemValue)}},mounted:function(){this.limitLength=this.maxLength,this.itemValue=this.inputValue||"",this.inputNum=i.a.getZhLen(this.inputValue)}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"input-line-cell",style:{width:e.inputWidth+"px"}},[a("el-input",{style:{width:e.inputWidth+"px"},attrs:{placeholder:e.holder,type:"textarea",rows:3},on:{focus:function(t){e.inputFocus()}},nativeOn:{keyup:function(t){return a=t,e.toInput(a);var a}},model:{value:e.itemValue,callback:function(t){e.itemValue=t},expression:"itemValue"}}),e._v(" "),a("span",{staticClass:"tip"},[a("span",{staticClass:"len_span"},[e._v(e._s(e.inputNum))]),e._v("/"+e._s(e.limitLength))])],1)},staticRenderFns:[]};var o=a("VU/8")(r,u,!1,function(e){a("/h6+")},"data-v-3198daa6",null).exports,s=(a("3E4D"),a("Ch4/"),a("PI0u")),h=(a("P9l9"),{name:"addAdminRole",data:function(){return{navpath:[{name:"首页",path:"/index",relocation:!0},{name:"设置",path:"/companyAddress"},{name:"设置子管理员",path:"/setChildAdmin"},{name:"新增管理员",path:""}],ruleForm:{name:"企业管理员",leftChecked:[],left:[{key:"index",label:"首页"},{key:"center",label:"审核中心"},{key:"set",label:"设置"}],rightChecked:[],right:[{key:"index",label:"首页"},{key:"center",label:"审核中心"},{key:"set",label:"设置"}],leftCheckedApp:[],leftApp:[{key:"index",label:"首页"},{key:"center",label:"审核中心"},{key:"set",label:"设置"}],rightCheckedApp:[],rightApp:[{key:"index",label:"首页"},{key:"center",label:"审核中心"},{key:"set",label:"设置"}]},rules:{}}},computed:{},methods:{submitForm:Object(s.a)(function(e){this.$refs[e].validate(function(e){if(console.log(e),!e)return!1})},500),postSave:function(){},leftChange:function(e,t){console.log(e,t)},rightChange:function(e,t){console.log(e,t)},leftChangeApp:function(e,t){console.log(e,t)},rightChangeApp:function(e,t){console.log(e,t)}},mounted:function(){},components:{navCrumb:n.a,limitInput:l.a,limitTextarea:o}}),c={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"companyAddress-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"角色名称",prop:"name"}},[a("limitInput",{attrs:{inputWidth:500,inputValue:e.ruleForm.name,holder:"请输入角色名称",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.ruleForm,"name",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"角色说明",prop:""}},[a("limitTextarea",{attrs:{inputWidth:500,inputValue:e.ruleForm.name,holder:"请输入角色说明",maxLength:50},on:{"update:inputValue":function(t){e.$set(e.ruleForm,"name",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"菜单权限",prop:""}},[a("el-transfer",{attrs:{titles:["一级权限","二级权限"],"left-default-checked":e.ruleForm.leftChecked,data:e.ruleForm.left},on:{"left-check-change":e.leftChange}}),e._v(" "),a("el-transfer",{attrs:{titles:["二级权限","二级权限"],"left-default-checked":e.ruleForm.rightChecked,data:e.ruleForm.right},on:{"left-check-change":e.rightChange}})],1),e._v(" "),a("el-form-item",{attrs:{label:"应用权限",prop:""}},[a("el-transfer",{attrs:{titles:["一级权限","二级权限"],"left-default-checked":e.ruleForm.leftCheckedApp,data:e.ruleForm.leftApp},on:{"left-check-change":e.leftChangeApp}}),e._v(" "),a("el-transfer",{attrs:{titles:["二级权限","二级权限"],"left-default-checked":e.ruleForm.rightCheckedApp,data:e.ruleForm.rightApp},on:{"left-check-change":e.rightChangeApp}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("保存")])],1)],1)],1)]),e._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var p=a("VU/8")(h,c,!1,function(e){a("tfQF")},"data-v-be6ecd1c",null);t.default=p.exports},tfQF:function(e,t){}});
//# sourceMappingURL=10.efd234e03eae1fa9f9a2.js.map