webpackJsonp([16],{"4N6W":function(t,e){},Xwfy:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("3Xzz"),s=(a("Mk6G"),a("3E4D"),a("Ch4/"),a("PI0u")),l=(a("P9l9"),{name:"",props:{imgSrc:{type:String,default:""},field:{type:String,default:""},uploadLimit:{type:Number,default:2}},data:function(){return{projectName:"",imgShowFlag:!1,imgUrl:"",ruleForm:{radio:"0",visibleAll:[{id:"1",type:"people",name:"张三",img:"http://thirdwx.qlogo.cn/mmopen/j7nX4OeBsXRNyvh6micCywssVEYCaWiaicUZq5Vn2zWktWLAyRvEAH7icQmUhLze8rrQYpM5ptwZ2RL7cX0icyBbiavhYFNTIZhibKu/0"},{id:"1",type:"store",name:"张三"}],storeVisibleAll:[],storeOwnBrand:[],storeOwnStore:[]}}},beforeMount:function(){var t=window.location.origin;console.log("当前host:",t),"-1"!=t.indexOf("localhost")?this.baseUrl="http://gicdev.demogic.com":this.baseUrl=t},methods:{submitForm:Object(s.a)(function(t){this.$refs[t].validate(function(t){if(console.log(t),!t)return!1})},500)},mounted:function(){}}),r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"permiss-wrap"},[a("el-form",{attrs:{"label-width":"110px",model:t.ruleForm}},[a("el-form-item",{attrs:{label:"店员可见权限"}},[a("el-radio",{attrs:{label:"0"},model:{value:t.ruleForm.radio,callback:function(e){t.$set(t.ruleForm,"radio",e)},expression:"ruleForm.radio"}},[t._v("可见所有品牌门店架构和行政架构")])],1),t._v(" "),a("div",{staticClass:"permiss-child-cell"},[a("p",[t._v("允许指定部门/人员可见:")])]),t._v(" "),a("el-form-item",{attrs:{label:" "}},[a("el-radio",{attrs:{label:"1"},model:{value:t.ruleForm.radio,callback:function(e){t.$set(t.ruleForm,"radio",e)},expression:"ruleForm.radio"}},[t._v("可见所在品牌门店架构和行政架构")])],1),t._v(" "),a("el-form-item",{attrs:{label:" "}},[a("el-radio",{attrs:{label:"2"},model:{value:t.ruleForm.radio,callback:function(e){t.$set(t.ruleForm,"radio",e)},expression:"ruleForm.radio"}},[t._v("门店仅可见所有品牌门店架构")])],1),t._v(" "),a("el-form-item",{attrs:{label:" "}},[a("el-radio",{attrs:{label:"3"},model:{value:t.ruleForm.radio,callback:function(e){t.$set(t.ruleForm,"radio",e)},expression:"ruleForm.radio"}},[t._v(" 门店仅可见自己品牌门店架构")])],1),t._v(" "),a("el-form-item",{attrs:{label:" "}},[a("el-radio",{attrs:{label:"4"},model:{value:t.ruleForm.radio,callback:function(e){t.$set(t.ruleForm,"radio",e)},expression:"ruleForm.radio"}},[t._v("门店仅可见自己门店")])],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.submitForm("ruleForm")}}},[t._v("保存")])],1)],1)],1)},staticRenderFns:[]};var o=a("VU/8")(l,r,!1,function(t){a("4N6W")},"data-v-44d0531d",null).exports,n={name:"storePermission",data:function(){return{navpath:[{name:"首页",path:"/index",relocation:!0},{name:"设置",path:"/companyAddress"},{name:"通讯录信息",path:"/staffDetails"},{name:"门店权限设置",path:""}],activeName:"a",brandList:[{id:"a",name:"A 品牌"},{id:"b",name:"B 品牌"},{id:"c",name:"C 品牌"},{id:"d",name:"D 品牌"}],switchList:{addName:"新增门店成员",addStatus:!1,delName:"删除门店成员",delStatus:!1,modName:"门店信息变更",modStatus:!1}}},computed:{},methods:{handleClick:function(t,e){console.log(t,e)},saveSwitch:function(){console.log(this.switchList)}},mounted:function(){},components:{navCrumb:i.a,setPermiss:o}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"storePermission-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-tabs",{on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[t._l(t.brandList,function(e,i){return[a("el-tab-pane",{attrs:{label:e.name,name:e.id}},[t._v("\n            "+t._s(e.name)+"\n            "),a("set-permiss")],1)]})],2),t._v(" "),a("div",{staticClass:"storePermission-wrap-switch m-t-24"},[a("div",{staticClass:"storePermission-switch-title"},[t._v("\n          门店信息变更是否需要审核\n        ")]),t._v(" "),a("div",{staticClass:"storePermission-switch-body"},[a("div",{staticClass:"switch-cell"},[a("el-switch",{attrs:{"inactive-text":t.switchList.addName},model:{value:t.switchList.addStatus,callback:function(e){t.$set(t.switchList,"addStatus",e)},expression:"switchList.addStatus"}})],1),t._v(" "),a("div",{staticClass:"switch-cell"},[a("el-switch",{attrs:{"inactive-text":t.switchList.delName},model:{value:t.switchList.delStatus,callback:function(e){t.$set(t.switchList,"delStatus",e)},expression:"switchList.delStatus"}})],1),t._v(" "),a("div",{staticClass:"switch-cell"},[a("el-switch",{attrs:{"inactive-text":t.switchList.modName},model:{value:t.switchList.modStatus,callback:function(e){t.$set(t.switchList,"modStatus",e)},expression:"switchList.modStatus"}})],1),t._v(" "),a("div",{staticClass:"switch-cell p-l-94"},[a("el-button",{attrs:{type:"primary"},on:{click:t.saveSwitch}},[t._v("保存")])],1)])])],1)]),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var d=a("VU/8")(n,c,!1,function(t){a("alq2")},"data-v-32112f96",null);e.default=d.exports},alq2:function(t,e){}});
//# sourceMappingURL=16.6058c431e3f901d06525.js.map