webpackJsonp([33],{Zqfg:function(t,e){},xk7v:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("2eFk"),s=a("Ke24"),i=a("PI0u"),o=a("Ch4/"),r=a("3E4D"),d=a("P9l9"),c={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:"1",activeBrand:this.brandId,topMenuData:[{id:"1",name:"指标管理",path:"/monthList"},{id:"2",name:"月指标",path:"/monthList"},{id:"3",name:"商户统一日权重",path:""}],activeId:"3",setData:{status:!1,time:"12:00"}}},computed:{},methods:{saveSet:Object(i.a)(function(){this.postSave()},500),postSave:function(){var t=this,e={brandId:t.activeBrand,status:t.setData.status?"1":"0",time:t.setData.time};Object(d.c)("/haoban-app-daily-web/daily/create-setting",e).then(function(t){var e=t.data;1!=e.errorCode?o.a.errorMsg(e):r.a.showmsg("保存成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getData:function(){var t=this,e={brandId:t.activeBrand};Object(d.c)("/haoban-app-daily-web/daily/get-setting",e).then(function(e){var a=e.data;if(1==a.errorCode)return t.setData.status=1==a.result.status,void(t.setData.time=a.result.time);o.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getData())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","22"),this.brandId&&this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonDetailTop:s.a}},u={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"app-detail-wrap"},[e("common-detail-top",{attrs:{topMenuData:this.topMenuData,activeId:this.activeId}}),this._v(" "),e("div",{staticClass:"day-set-content boder-box"})],1)},staticRenderFns:[]};var m=a("VU/8")(c,u,!1,function(t){a("Zqfg")},"data-v-bfdfd276",null);e.default=m.exports}});