webpackJsonp([71],{GLu7:function(e,t){},upTI:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("l46T"),s=a("Kkt8"),o=a("PI0u"),n=a("Ch4/"),i=a("3E4D"),d=a("P9l9"),l={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:"1",activeId:"1",activeBrand:this.brandId,wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",createName:localStorage.getItem("userInfos")&&JSON.parse(localStorage.getItem("userInfos")).staffDTO?JSON.parse(localStorage.getItem("userInfos")).staffDTO.staffName:"",formData:{taskTitle:"",taskContent:"",addTimeType:"1"},rules:{taskTitle:[{required:!0,message:"请输入任务标题",trigger:"blur"}],taskContent:[{required:!0,message:"请输入任务内容",trigger:"blur"}]}}},computed:{},methods:{submitForm:Object(o.a)(function(e){var t=this;t.$refs[e].validate(function(e){e&&t.postSave()})},500),postSave:function(){var e=this,t={taskTitle:e.formData.taskTitle,taskContent:e.formData.taskContent,addTimeType:e.formData.addTimeType,wxEnterpriseId:e.wxEnterpriseId,createName:e.createName};Object(d.d)("/haoban-app-tel-task-three-web/create-session-task",t).then(function(t){var a=t.data;if(1==a.errorCode)return i.a.showmsg("保存成功","success"),void e.$router.push("/taskList");n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getData:function(){var e=this,t={enterpriseId:e.activeBrand,taskType:1};Object(d.d)("/haoban-app-tel-task-three-web/find-task-setting",t).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.relaxTaskJudge=1==a.result.relaxTaskJudge,void(e.setObj=a.result);n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e)}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","3"),this.brandId},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{limitInput:r.a,limitTextarea:s.a}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"task-set-content boder-box"},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.formData,rules:e.rules,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"任务标题",prop:"taskTitle"}},[a("limitInput",{attrs:{inputWidth:372,disflag:!!e.$route.query.sessionTaskId,inputValue:e.formData.taskTitle,getByType:"word",holder:"请输入任务标题",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.formData,"taskTitle",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"任务内容",prop:"taskContent"}},[a("limit-textarea",{attrs:{inputWidth:372,inputValue:e.formData.taskContent,holder:"请输入任务内容",getByType:"word",maxLength:200},on:{"update:inputValue":function(t){e.$set(e.formData,"taskContent",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"添加好友时间",prop:"addTimeType"}},[a("el-radio",{attrs:{label:"1"},model:{value:e.formData.addTimeType,callback:function(t){e.$set(e.formData,"addTimeType",t)},expression:"formData.addTimeType"}},[e._v("近一个月")]),e._v(" "),a("el-radio",{attrs:{label:"2"},model:{value:e.formData.addTimeType,callback:function(t){e.$set(e.formData,"addTimeType",t)},expression:"formData.addTimeType"}},[e._v("近一周")])],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("确认"+e._s(e.$route.query.sessionTaskId?"编辑":"新建"))])],1)],1)],1)])},staticRenderFns:[]};var m=a("VU/8")(l,u,!1,function(e){a("GLu7")},"data-v-0bdda65c",null);t.default=m.exports}});