webpackJsonp([111],{"7koN":function(t,e){},i0rV:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("woOf"),l=a.n(i),n=a("P9l9"),s=a("Ch4/"),r={name:"GuideAuthSetting",data:function(){return{loading:!1,settingData:{editClerkFlag:0,addClerkFlag:0,delClerkFlag:0}}},created:function(){this.getSetting()},methods:{getSetting:function(){var t=this;Object(n.b)("/haoban-manage3-web/application-open-close-list",{}).then(function(e){var a=e.data||{},i=a.errorCode,n=a.result;if(1!=i)return s.a.errorMsg(e.data);var r=(n||{}).clerkEditInfo;l()(t.settingData,r)})},onSave:function(){var t=this;this.loading=!0;var e=this.settingData,a={editClerkFlag:e.editClerkFlag,addClerkFlag:e.addClerkFlag,delClerkFlag:e.delClerkFlag};Object(n.g)("/haoban-manage3-web/save-clerk-edit-flag",a).then(function(e){if(1!=(e.data||{}).errorCode)return s.a.errorMsg(e.data);t.$message.success("保存成功")}).finally(function(){setTimeout(function(){return t.loading=!1},100)})}}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"guide-setting"},[a("div",{staticClass:"guide-auth-list"},[a("div",{staticClass:"guide-auth-item"},[a("span",{staticClass:"auth-item-label"},[t._v("允许编辑导购信息")]),t._v(" "),a("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:t.settingData.editClerkFlag,callback:function(e){t.$set(t.settingData,"editClerkFlag",e)},expression:"settingData.editClerkFlag"}})],1),t._v(" "),a("div",{staticClass:"guide-auth-item"},[a("span",{staticClass:"auth-item-label"},[t._v("允许店长添加导购")]),t._v(" "),a("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:t.settingData.addClerkFlag,callback:function(e){t.$set(t.settingData,"addClerkFlag",e)},expression:"settingData.addClerkFlag"}})],1),t._v(" "),a("div",{staticClass:"guide-auth-item"},[a("span",{staticClass:"auth-item-label"},[t._v("允许店长删除导购")]),t._v(" "),a("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:t.settingData.delClerkFlag,callback:function(e){t.$set(t.settingData,"delClerkFlag",e)},expression:"settingData.delClerkFlag"}})],1)]),t._v(" "),t.$getButtonLimit(t.$buttonCode.saveGuideSetting)?a("el-button",{staticClass:"save-btn",attrs:{"limit-code":t.$buttonCode.saveGuideSetting,loading:t.loading,type:"primary"},on:{click:t.onSave}},[t._v("保存")]):t._e()],1)},staticRenderFns:[]};var c=a("VU/8")(r,d,!1,function(t){a("7koN")},"data-v-18cf3981",null);e.default=c.exports}});