webpackJsonp([15],{Z3Aa:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var s=e("3E4D"),n=e("Ch4/"),o=e("PI0u"),r=e("P9l9"),i={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(o.a)(function(t){this.setData(t)},500),setData:function(t){var a=this,e={brandId:a.brandId},o=void 0;"showFlag"!=t&&(e[t]=a.myCustomData[t]?1:0,o="/haoban-app-customer-web/customer/save-online-chat-setting","searchFlag"===t&&(o="/haoban-app-customer-web/customer/save-customer-setting")),Object(r.b)(o,e).then(function(t){var a=t.data;1!=a.errorCode?n.a.errorMsg(a):s.a.showmsg("保存成功","success")}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},changeAllowGuide:function(t){this.myCustomData.allowGuideMobile=t,this.myCustomData.allowGuideMessage=t,this.myCustomData.allowGuideOnlineChat=t},changeContact:function(){this.myCustomData.allowGuideMobile||this.myCustomData.allowGuideMessage||this.myCustomData.allowGuideOnlineChat||(this.myCustomData.allowGuideContact=!1)},getCustomerSet:function(t){var a=this,e={brandId:t};Object(r.b)("/haoban-app-customer-web/customer/find-customer-setting",e).then(function(t){var e=t.data;1!=e.errorCode?n.a.errorMsg(e):e.result&&(a.myCustomData.searchFlag=!!e.result.searchFlag)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})}},watch:{},mounted:function(){this.$emit("showTab","13"),this.getCustomerSet(this.brandId)},components:{}},u={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"app-detail-wrap"},[e("div",{staticClass:"app-detail-pane border-box p-20"},[e("el-checkbox",{model:{value:t.myCustomData.searchFlag,callback:function(a){t.$set(t.myCustomData,"searchFlag",a)},expression:"myCustomData.searchFlag"}},[t._v("允许全品牌搜索")]),t._v(" "),e("div",{staticClass:"m-t-46"},[e("el-button",{attrs:{type:"primary"},on:{click:function(a){return t.submit("searchFlag")}}},[t._v("保 存")])],1)],1)])},staticRenderFns:[]};var c=e("VU/8")(i,u,!1,function(t){e("g+qn")},"data-v-52e059e9",null);a.default=c.exports},"g+qn":function(t,a){}});