webpackJsonp([25],{"rs/A":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=a("3Xzz"),i=(a("Mk6G"),a("3E4D"),a("Ch4/"),a("PI0u")),o=(a("P9l9"),{name:"addAdminRole",data:function(){return{navpath:[{name:"首页",path:"/index",relocation:!0},{name:"设置",path:"/companyAddress"},{name:"设置子管理员",path:"/setChildAdmin"},{name:"添加成员",path:""}],ruleForm:{name:"企业管理员",peopleList:[{id:"1",name:"张三",img:"http://thirdwx.qlogo.cn/mmopen/j7nX4OeBsXRNyvh6micCywssVEYCaWiaicUZq5Vn2zWktWLAyRvEAH7icQmUhLze8rrQYpM5ptwZ2RL7cX0icyBbiavhYFNTIZhibKu/0"}],departList:[{id:"1",name:"张三"}]},rules:{}}},computed:{},methods:{submitForm:Object(i.a)(function(t){this.$refs[t].validate(function(t){if(console.log(t),!t)return!1})},500),postSave:function(){},delField:function(t,e,a){this.$alert("确定要删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(function(e){e.value;a.splice(t,1)}).catch(function(){})},showDialogLayer:function(){console.log(1)}},mounted:function(){},components:{navCrumb:l.a}}),s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"companyAddress-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleForm,rules:t.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"管理员角色",prop:"name"}},[a("el-input",{staticClass:"w-380",attrs:{disabled:"",placeholder:""},model:{value:t.ruleForm.name,callback:function(e){t.$set(t.ruleForm,"name",e)},expression:"ruleForm.name"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"选择人员",prop:"name"}},[a("div",{staticClass:"flex w-380 flex-wrap"},[t._l(t.ruleForm.peopleList,function(e,l){return[a("div",{staticClass:"people-cell"},[a("img",{attrs:{src:e.img}}),t._v(" "),a("p",[t._v(t._s(e.name))]),t._v(" "),a("i",{staticClass:"el-icon-circle-close",on:{click:function(a){a.stopPropagation(),t.delField(l,e,t.ruleForm.peopleList)}}})])]}),t._v(" "),a("div",{staticClass:"people-cell"},[a("span",{staticClass:"add-icon",on:{click:function(e){e.stopPropagation(),t.showDialogLayer("people")}}},[a("i",{staticClass:"el-icon-plus"})])])],2)]),t._v(" "),a("el-form-item",{staticClass:"m-b-0",attrs:{label:"选择管理范围",prop:"name"}},[a("div",{staticClass:"flex w-380 flex-wrap"},[t._l(t.ruleForm.departList,function(e,l){return[a("el-tag",{staticClass:"depart-cell"},[t._v(t._s(e.name)+" "),a("i",{staticClass:"el-icon-circle-close",on:{click:function(a){a.stopPropagation(),t.delField(l,e,t.ruleForm.departList)}}})])]}),t._v(" "),a("el-button",{staticClass:"el-tag m-l-8 depart-cell",on:{click:function(e){e.stopPropagation(),t.showDialogLayer("depart")}}},[a("i",{staticClass:"el-icon-plus"}),t._v("添加字段")])],2)]),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.submitForm("ruleForm")}}},[t._v("保存")])],1)],1)],1)]),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var n=a("VU/8")(o,s,!1,function(t){a("stWC")},"data-v-33f79e44",null);e.default=n.exports},stWC:function(t,e){}});
//# sourceMappingURL=25.83f6e6474efbc9530a16.js.map