webpackJsonp([44],{"Hb/M":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("PI0u"),i=a("Ch4/"),n=a("3E4D"),o=a("P9l9"),l={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:"1",activeBrand:this.brandId,topMenuData:[{id:"1",name:"任务下发设置"}],activeId:"1",setData:{status:!1,time:"12:00",releaseFlag:!1},loadingBtn:!1}},computed:{},methods:{saveSet:Object(s.a)(function(){this.loadingBtn=!0,this.postSave()},500),postSave:function(){var t=this,e={enterpriseId:t.activeBrand,status:t.setData.status?"1":"0",time:t.setData.time,releaseFlag:t.setData.releaseFlag?1:0};Object(o.d)("/haoban-app-daily-three-web/daily/create-setting",e).then(function(e){var a=e.data;t.loadingBtn=!1,1!=a.errorCode?i.a.errorMsg(a):n.a.showmsg("保存成功","success")}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},getData:function(){var t=this,e={enterpriseId:t.activeBrand};Object(o.d)("/haoban-app-daily-three-web/daily/get-setting",e).then(function(e){var a=e.data;if(1==a.errorCode)return t.setData.status=1==a.result.status,t.setData.releaseFlag=1==a.result.releaseFlag,void(t.setData.time=a.result.time);i.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","2"),this.brandId&&this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{}},r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"task-set-content border-box"},[a("div",{staticClass:"task-set-cell font-0"},[a("div",{staticClass:"inline-block font-14 color-606266 m-b-10 w-100"},[t._v("日报开关设置：")]),t._v(" "),a("div",{staticClass:"inline-block font-14 "},[a("el-switch",{attrs:{"active-text":" ","inactive-text":" "},model:{value:t.setData.status,callback:function(e){t.$set(t.setData,"status",e)},expression:"setData.status"}})],1),t._v(" "),a("div",{staticClass:"inline-block m-l-10 font-14 color-606266 m-b-16"},[t._v("开启后，日报将定时发送")])]),t._v(" "),a("div",{staticClass:"task-set-cell  font-0"},[a("div",{staticClass:"inline-block font-14 color-606266 m-b-10 w-100"}),t._v(" "),a("div",{staticClass:"inline-block m-l-10 vertical-top font-14 right-set-body"},[a("div",{staticClass:"font-14 color-606266 m-b-10 font-w-500"},[t._v("日报每日下发时间设置")]),t._v(" "),a("div",{staticClass:" font-14 color-606266 m-b-16"},[t._v("该事件设置将在次日生效，为避免影响当日日报的发送，请在日报发送后设置")]),t._v(" "),a("div",[a("el-time-select",{staticClass:"w-118",attrs:{editable:!1,clearable:!1,"picker-options":{start:"00:00",step:"00:15",end:"23:45"},placeholder:"选择时间"},model:{value:t.setData.time,callback:function(e){t.$set(t.setData,"time",e)},expression:"setData.time"}})],1)])]),t._v(" "),a("div",{staticClass:"task-set-cell font-0"},[a("div",{staticClass:"inline-block font-14 color-606266 m-b-10 w-100"}),t._v(" "),a("div",{staticClass:"inline-block m-l-10 task-set-save m-t-50 font-14"},[a("el-button",{attrs:{type:"primary",loading:t.loadingBtn},on:{click:t.saveSet}},[t._v("保 存")])],1)])])])},staticRenderFns:[]};var c=a("VU/8")(l,r,!1,function(t){a("Ka78")},"data-v-946f66d8",null);e.default=c.exports},Ka78:function(t,e){}});