webpackJsonp([16],{Z3Aa:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var s=t("3E4D"),o=t("Ch4/"),i=t("PI0u"),m=t("P9l9"),n={name:"app-detail",props:{brandId:{type:String,default:function(){return""}},tabType:{type:String,default:function(){return"1"}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{projectName:"",myCustomData:{searchFlag:!1},activeId:"1"}},methods:{submit:Object(i.a)(function(e){this.setData(e)},500),setData:function(e){var a=this,t={brandId:a.brandId,enterpriseId:JSON.parse(localStorage.getItem("userInfo")).enterpriseId},i=void 0;"showFlag"!=e?(t[e]=a.myCustomData[e]?1:0,i="/haoban-app-member-web/customer/save-online-chat-setting","searchFlag"===e&&(i="/haoban-app-member-web/customer/save-customer-setting")):(t.mainStoreFlag=a.myCustomData.mainStoreFlag?1:0,t.minorStoreFlag=a.myCustomData.minorStoreFlag?1:0,t.openCardStoreFlag=a.myCustomData.openCardStoreFlag?1:0,t.clerkSeeOtherFlag=a.myCustomData.clerkSeeOtherFlag?1:0,t.allowGuideContact=a.myCustomData.allowGuideContact?1:0,t.allowGuideMobile=a.myCustomData.allowGuideMobile?1:0,t.allowGuideMessage=a.myCustomData.allowGuideMessage?1:0,t.allowGuideOnlineChat=a.myCustomData.allowGuideOnlineChat?1:0,t.isSeeAuthMember=a.myCustomData.isSeeAuthMember?1:0,t.chatFlag=a.myCustomData.chatFlag,t.isMessageRemind=a.myCustomData.isMessageRemind,t.messageRemindTime=a.myCustomData.messageRemindTime,t.isTemplateMessage=a.myCustomData.isTemplateMessage,t.isImgMessage=a.myCustomData.isImgMessage,t.isGoodMessage=a.myCustomData.isGoodMessage,t.isIntegralGoodMessage=a.myCustomData.isIntegralGoodMessage,i="/haoban-app-member-web/customer/save-member-show-setting"),Object(m.b)(i,t).then(function(e){var a=e.data;1!=a.errorCode?o.a.errorMsg(a):s.a.showmsg("保存成功","success")}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},changeAllowGuide:function(e){this.myCustomData.allowGuideMobile=e,this.myCustomData.allowGuideMessage=e,this.myCustomData.allowGuideOnlineChat=e},changeContact:function(){this.myCustomData.allowGuideMobile||this.myCustomData.allowGuideMessage||this.myCustomData.allowGuideOnlineChat||(this.myCustomData.allowGuideContact=!1)},getCustomerSet:function(e){var a=this,t={brandId:e};Object(m.b)("/haoban-app-member-web/customer/find-customer-setting",t).then(function(e){var t=e.data;1!=t.errorCode?o.a.errorMsg(t):t.result&&(a.myCustomData.searchFlag=!!t.result.searchFlag)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})}},watch:{},mounted:function(){this.$emit("showTab","13"),this.getCustomerSet(this.brandId)},components:{}},r={render:function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"app-detail-wrap"},[t("div",{staticClass:"app-detail-pane border-box p-20"},[t("el-checkbox",{model:{value:e.myCustomData.searchFlag,callback:function(a){e.$set(e.myCustomData,"searchFlag",a)},expression:"myCustomData.searchFlag"}},[e._v("允许全品牌搜索")]),e._v(" "),t("div",{staticClass:"m-t-46"},[t("el-button",{attrs:{type:"primary"},on:{click:function(a){return e.submit("searchFlag")}}},[e._v("保 存")])],1)],1)])},staticRenderFns:[]};var u=t("VU/8")(n,r,!1,function(e){t("kMf0")},"data-v-215f2191",null);a.default=u.exports},kMf0:function(e,a){}});