webpackJsonp([20],{"E+Vc":function(e,t){},"rs/A":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("3Xzz"),s=(a("Mk6G"),a("3E4D")),n=a("Ch4/"),l=a("PI0u"),i=a("P9l9"),r={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:{changeRoute:function(e){this.$router.push(e)},submitForm:Object(l.a)(function(e){this.$refs[e].validate(function(e){if(console.log(e),!e)return!1})},500),postSave:function(){var e=this;Object(i.b)("/haoban-manage-web/",{}).then(function(e){var t=e.data;1!=t.errorCode?n.a.errorMsg(t):s.a.showmsg("操作成功","success")}).catch(function(t){console.log(t),e.$message.error({duration:1e3,message:t.message})})},delField:function(e,t,a){this.$alert("确定要删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(function(t){t.value;a.splice(e,1)}).catch(function(){})},showDialogLayer:function(){console.log(1)}},mounted:function(){},components:{navCrumb:o.a}},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("el-input",{staticClass:"w-380",attrs:{disabled:"",placeholder:""},model:{value:e.ruleForm.name,callback:function(t){e.$set(e.ruleForm,"name",t)},expression:"ruleForm.name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"选择人员",prop:"name"}},[a("div",{staticClass:"flex w-380 flex-wrap"},[e._l(e.ruleForm.peopleList,function(t,o){return[a("div",{staticClass:"people-cell"},[a("img",{attrs:{src:t.img}}),e._v(" "),a("p",[e._v(e._s(t.name))]),e._v(" "),a("i",{staticClass:"el-icon-circle-close",on:{click:function(a){a.stopPropagation(),e.delField(o,t,e.ruleForm.peopleList)}}})])]}),e._v(" "),a("div",{staticClass:"people-cell"},[a("span",{staticClass:"add-icon",on:{click:function(t){t.stopPropagation(),e.showDialogLayer("people")}}},[a("i",{staticClass:"el-icon-plus"})])])],2)]),e._v(" "),a("el-form-item",{staticClass:"m-b-0",attrs:{label:"选择管理范围",prop:"name"}},[a("div",{staticClass:"flex w-380 flex-wrap"},[e._l(e.ruleForm.departList,function(t,o){return[a("el-tag",{staticClass:"depart-cell"},[e._v(e._s(t.name)+" "),a("i",{staticClass:"el-icon-circle-close",on:{click:function(a){a.stopPropagation(),e.delField(o,t,e.ruleForm.departList)}}})])]}),e._v(" "),a("el-button",{staticClass:"el-tag m-l-8 depart-cell",on:{click:function(t){t.stopPropagation(),e.showDialogLayer("depart")}}},[a("i",{staticClass:"el-icon-plus"}),e._v("添加字段")])],2)]),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 m=a("VU/8")(r,c,!1,function(e){a("E+Vc")},"data-v-73addc78",null);t.default=m.exports}});
//# sourceMappingURL=20.28a9d2aedbef1df7779d.js.map