<!DOCTYPE html><htmllang=en><head><metacharset=utf-8><metahttp-equiv=X-UA-Compatiblecontent="IE=edge"><linkrel=iconhref=favicon.ico><title>workbook</title><linkhref=static/css/addTask.813e6ee0.cssrel=prefetch><linkhref=static/css/addTask~unpublishedTask.199b2bb0.cssrel=prefetch><linkhref=static/css/departmentTask.ab18cdd3.cssrel=prefetch><linkhref=static/css/home.24041010.cssrel=prefetch><linkhref=static/css/unpublishedTask.40a2d4bb.cssrel=prefetch><linkhref=static/css/viewTask.5e452288.cssrel=prefetch><linkhref=static/js/addTask.1d3ac18d.jsrel=prefetch><linkhref=static/js/addTask~unpublishedTask.97b49e7c.jsrel=prefetch><linkhref=static/js/departmentTask.c03e2b55.jsrel=prefetch><linkhref=static/js/home.d35a940a.jsrel=prefetch><linkhref=static/js/unpublishedTask.ff6434e5.jsrel=prefetch><linkhref=static/js/viewTask.616469ba.jsrel=prefetch><linkhref=static/css/app.f39c981a.cssrel=preloadas=style><linkhref=static/css/chunk-vendors.717c90ab.cssrel=preloadas=style><linkhref=static/js/app.99f9aa5d.jsrel=preloadas=script><linkhref=static/js/chunk-vendors.4616826d.jsrel=preloadas=script><linkhref=static/css/chunk-vendors.717c90ab.cssrel=stylesheet><linkhref=static/css/app.f39c981a.cssrel=stylesheet></head><body><noscript><strong>We're sorry but workbook doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><divid=app></div><script src=static/js/chunk-vendors.4616826d.js></script><script src=static/js/app.99f9aa5d.js></script></body></html>
<!DOCTYPE html><htmllang=en><head><metacharset=utf-8><metahttp-equiv=X-UA-Compatiblecontent="IE=edge"><linkrel=iconhref=favicon.ico><title>workbook</title><linkhref=static/css/addTask.ab04b00f.cssrel=prefetch><linkhref=static/css/addTask~unpublishedTask.199b2bb0.cssrel=prefetch><linkhref=static/css/departmentTask.ab18cdd3.cssrel=prefetch><linkhref=static/css/home.24041010.cssrel=prefetch><linkhref=static/css/unpublishedTask.40a2d4bb.cssrel=prefetch><linkhref=static/css/viewTask.5e452288.cssrel=prefetch><linkhref=static/js/addTask.853c5048.jsrel=prefetch><linkhref=static/js/addTask~unpublishedTask.97b49e7c.jsrel=prefetch><linkhref=static/js/departmentTask.c03e2b55.jsrel=prefetch><linkhref=static/js/home.d35a940a.jsrel=prefetch><linkhref=static/js/unpublishedTask.ff6434e5.jsrel=prefetch><linkhref=static/js/viewTask.616469ba.jsrel=prefetch><linkhref=static/css/app.f39c981a.cssrel=preloadas=style><linkhref=static/css/chunk-vendors.717c90ab.cssrel=preloadas=style><linkhref=static/js/app.5d266bad.jsrel=preloadas=script><linkhref=static/js/chunk-vendors.4616826d.jsrel=preloadas=script><linkhref=static/css/chunk-vendors.717c90ab.cssrel=stylesheet><linkhref=static/css/app.f39c981a.cssrel=stylesheet></head><body><noscript><strong>We're sorry but workbook doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><divid=app></div><script src=static/js/chunk-vendors.4616826d.js></script><script src=static/js/app.5d266bad.js></script></body></html>
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["addTask"],{"057f":function(t,e,r){vari=r("fc6a"),o=r("241c").f,n={}.toString,a="object"==typeofwindow&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{returno(t)}catch(e){returna.slice()}};t.exports.f=function(t){returna&&"[object Window]"==n.call(t)?s(t):o(i(t))}},"1d3c":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAARCAMAAAAMs7fIAAAAM1BMVEVHcEzy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vKDCcpAAAAAEHRSTlMAoHAQUODQYPAwIECQgMCwyoZhpgAAAHFJREFUGBkFwYcBgzAMADBlOgOK/7+2EgCgxQWAU2dmADh15hc7G7CfsUpHLbCfsUoHZqev8WzQr72w59wgsnsKeFdFZDA2cMevRQZ9ALSyMlBeAHocrAOAvZqYAOD3+ioAuOtkAwB+4wMA3AwAgAr8ARzXAzCC+YqfAAAAAElFTkSuQmCC"},2909:function(t,e,r){"use strict";functioni(t,e){(null==e||e>t.length)&&(e=t.length);for(varr=0,i=newArray(e);r<e;r++)i[r]=t[r];returni}functiono(t){if(Array.isArray(t))returni(t)}r.d(e,"a",(function(){returnc}));r("a4d3"),r("e01a"),r("d28b"),r("a630"),r("e260"),r("d3b7"),r("3ca3"),r("ddb0");functionn(t){if("undefined"!==typeofSymbol&&Symbol.iteratorinObject(t))returnArray.from(t)}r("fb6a"),r("b0c0"),r("25f0");functiona(t,e){if(t){if("string"===typeoft)returni(t,e);varr=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void0}}functions(){thrownewTypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}functionc(t){returno(t)||n(t)||a(t)||s()}},"2bb0":function(t,e,r){"use strict";r.r(e);vari=function(){vart=this,e=t.$createElement,i=t._self._c||e;returni("div",{staticClass:"addTask"},[i("div",{staticClass:"addHeader"},[i("ul",[i("li",[t._v("发布者:"+t._s(t.announcer))]),i("li",[i("el-button",{attrs:{type:"primary"},on:{click:function(e){returnt.submitForm("taskForm","unpublished")}}},[i("span",[i("img",{staticClass:"addImgs",attrs:{src:r("6fb9")}})]),t._v("保存")]),i("el-button",{staticStyle:{"margin-left":"50px"},attrs:{type:"primary"},on:{click:function(e){returnt.submitForm("taskForm","ongoing")}}},[i("span",[i("img",{staticClass:"addImgs",attrs:{src:r("1d3c")}})]),t._v("发布")])],1)])]),i("div",[i("el-form",{ref:"taskForm",staticClass:"demo-ruleForm",attrs:{model:t.taskForm,rules:t.rules,"label-width":"130px"}},[i("div",{staticStyle:{"margin-bottom":"20px"}},[i("img",{attrs:{src:r("dc71")}}),t._v("为必填项 ")]),i("el-row",{attrs:{gutter:50}},[i("el-col",{attrs:{span:8}},[i("el-form-item",{attrs:{label:"任务名称",prop:"title"}},[i("div",[i("el-input",{model:{value:t.taskForm.title,callback:function(e){t.$set(t.taskForm,"title",e)},expression:"taskForm.title"}})],1)]),i("el-form-item",{attrs:{label:"组长",prop:"executor"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择组长"},model:{value:t.taskForm.executor,callback:function(e){t.$set(t.taskForm,"executor",e)},expression:"taskForm.executor"}},t._l(t.leaderOptions,(function(e){returni("el-option",{key:e.id,attrs:{label:e.username,value:e.id}},[i("span",{staticStyle:{display:"inline-block",width:"70px"}},[t._v(t._s(e.username))]),i("span",{style:{color:t.$common.colorNum(e.status)}},[t._v("("+t._s(t.$common.personStatusName(e.status))+")")])])})),1)],1)],1),i("el-col",{attrs:{span:8}},[i("el-form-item",{attrs:{label:"任务开始时间",prop:"stateTime"}},[i("el-date-picker",{staticStyle:{width:"100%"},attrs:{editable:!1,"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetime",placeholder:"选择日期"},model:{value:t.taskForm.stateTime,callback:function(e){t.$set(t.taskForm,"stateTime",e)},expression:"taskForm.stateTime"}})],1),i("el-form-item",{attrs:{label:"任务量(天)",prop:"workload"}},[i("el-input",{attrs:{onkeyup:"this.value=this.value.replace(/[^\\d.]/g,'')"},model:{value:t.taskForm.workload,callback:function(e){t.$set(t.taskForm,"workload",e)},expression:"taskForm.workload"}})],1)],1),i("el-col",{attrs:{span:8}},[i("el-form-item",{attrs:{label:"预计完成时间",prop:"completeTime"}},[i("el-date-picker",{staticStyle:{width:"100%"},attrs:{editable:!1,"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetime",placeholder:"选择日期"},model:{value:t.taskForm.completeTime,callback:function(e){t.$set(t.taskForm,"completeTime",e)},expression:"taskForm.completeTime"}})],1)],1)],1),i("div",[i("el-form-item",{attrs:{label:"组员"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",placeholder:"请选择组员"},model:{value:t.taskForm.crewList,callback:function(e){t.$set(t.taskForm,"crewList",e)},expression:"taskForm.crewList"}},t._l(t.memberOptions,(function(e){returni("el-option",{key:e.id,attrs:{label:e.username,value:e.id}},[i("span",{staticStyle:{display:"inline-block",width:"70px"}},[t._v(t._s(e.username))]),i("span",{style:{color:t.$common.colorNum(e.status)}},[t._v("("+t._s(t.$common.personStatusName(e.status))+")")])])})),1)],1)],1),i("div",[i("div",{staticStyle:{padding:"10px 0px","font-size":"14px"}},[i("span",{staticStyle:{color:"#FC1F1F"}},[t._v("*")]),t._v("任务内容 "),i("span",{directives:[{name:"show",rawName:"v-show",value:t.contentTip,expression:"contentTip"}],staticStyle:{color:"#FC1F1F","margin-left":"10px"}},[t._v("(请输入任务内容)")])]),i("editor-bar",{attrs:{isClear:t.isClear},on:{change:t.change},model:{value:t.content,callback:function(e){t.content=e},expression:"content"}})],1),i("div",{staticClass:"upload-container"},[i("div",{staticClass:"upload-file",staticStyle:{"margin-left":"0px"}},[i("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{action:"https://jsonplaceholder.typicode.com/posts/","http-request":t.handleChange,"on-remove":t.handleRemove,"on-exceed":t.handleExceed,"before-upload":t.beforeAvatarUpload,"file-list":t.fileList,"auto-load":!1,limit:5}},[i("el-button",{staticStyle:{"margin-top":"20px"},attrs:{size:"small"},on:{click:t.submitUpload}},[t._v("添加附件")]),i("div",{attrs:{slot:"tip"},slot:"tip"},[t._v("最多只能上传5个文件,否则请上传压缩包!")])],1)],1)])],1)],1),i("div",{staticStyle:{"text-align":"center","margin-top":"30px"}})])},o=[],n=(r("99af"),r("c740"),r("4160"),r("c975"),r("a434"),r("b0c0"),r("a9e3"),r("159b"),r("2909")),a=r("e028"),s={name:"AddTask",components:{EditorBar:a["a"]},data:function(){vart=this,e=function(e,r,i){if(!r)returni(newError("任务开始时间不能为空"));""!==t.taskForm.completeTime&&newDate(r).getTime()>newDate(t.taskForm.completeTime).getTime()?i(newError("任务开始时间不能超过预计完成时间")):i()},r=function(e,r,i){if(!r)returni(newError("预计完成时间为空"));""!==t.taskForm.stateTime&&newDate(r).getTime()<newDate(t.taskForm.stateTime).getTime()?i(newError("预计完成时间不能小于任务开始时间")):i()};return{taskForm:{title:"",publisher:"",stateTime:"",completeTime:"",workload:"",executor:"",crewList:[],attachment:[],pworkload:1,status:"",workCoefficient:0,workloadCount:1},announcer:"",rules:{title:[{required:!0,message:"请输入任务名称",trigger:"blur"},{max:30,message:"长度在 30 个字符之内",trigger:"blur"}],stateTime:[{required:!0,validator:e,trigger:"blur"}],completeTime:[{required:!0,validator:r,trigger:"blur"}],executor:[{required:!0,message:"请选择组长",trigger:"change"}],crewList:[{type:"array",required:!0,message:"请选择组员",trigger:"change"}],workload:[{required:!0,message:"请输入任务量",trigger:"blur"},{max:4,message:"长度在 4 个字符之内",trigger:"blur"}]},leaderOptions:[],memberOptions:[],content:"",isClear:!1,fileList:[],attachmentsArr:[],userLoginData:"",contentTip:!1}},computed:{},watch:{},methods:{getUserById:function(t){vare=this;this.$axios.getUserById(t).then((function(t){if(console.log(t),200===t.request.status)if("{}"!==JSON.stringify(e.$store.getters.getSuperior.superior)&&void0!==JSON.stringify(e.$store.getters.getSuperior.superior)&&(e.taskForm.title=e.$store.getters.getSuperior.superior.title),0===t.data.length&&"{}"!==JSON.stringify(e.$store.getters.getSuperior.superior)&&void0!==JSON.stringify(e.$store.getters.getSuperior.superior)){varr=e.$store.getters.getSuperior.superior.crewList;if(r.findIndex((function(t){returnt.id===e.userLoginData.id}))>-1)e.leaderOptions=r,e.memberOptions=r;else{r.push(JSON.parse(JSON.stringify(e.userLoginData))),console.log(r);for(vari=[],o={},a=0;a<r.length;a++)o[r[a].id]||(i.push(r[a]),o[r[a].id]=!0);e.leaderOptions=i,e.memberOptions=i}}elseif(t.data.length>0&&("{}"===JSON.stringify(e.$store.getters.getSuperior.superior)||void0===JSON.stringify(e.$store.getters.getSuperior.superior))){vars=t.data;if(s.findIndex((function(t){returnt.id===e.userLoginData.id}))>-1)e.leaderOptions=s,e.memberOptions=s;else{s.push(JSON.parse(JSON.stringify(e.userLoginData)));for(varc=[],u={},l=0;l<s.length;l++)u[s[l].id]||(c.push(s[l]),u[s[l].id]=!0);e.leaderOptions=c,e.memberOptions=c}}elseif(t.data.length>0&&"{}"!==JSON.stringify(e.$store.getters.getSuperior.superior)&&void0!==JSON.stringify(e.$store.getters.getSuperior.superior)){varf=t.data,d=e.$store.getters.getSuperior.superior.crewList;if(f.push.apply(f,Object(n["a"])(d)),f.findIndex((function(t){returnt.id===e.userLoginData.id}))>-1){for(varp=[],g={},m=0;m<f.length;m++)g[f[m].id]||(p.push(f[m]),g[f[m].id]=!0);e.leaderOptions=p,e.memberOptions=p}else{f.push(JSON.parse(JSON.stringify(e.userLoginData)));for(varA=[],v={},h=0;h<f.length;h++)v[f[h].id]||(A.push(f[h]),v[f[h].id]=!0);e.leaderOptions=A,e.memberOptions=A}}}))},change:function(t){},submitForm:function(t,e){varr=this;this.$refs[t].validate((function(i){if(!i)returnconsole.log("error submit!!"),!1;if("{}"!==JSON.stringify(r.$store.getters.getSuperior.superior)&&void0!==JSON.stringify(r.$store.getters.getSuperior.superior)){if(newDate(r.taskForm.stateTime).getTime()<newDate(r.$store.getters.getSuperior.superior.stateTime).getTime())returnr.$message({message:"当前任务开始时间不能早于".concat(r.$store.getters.getSuperior.superior.stateTime),type:"warning"}),!1;if(newDate(r.taskForm.completeTime).getTime()>newDate(r.$store.getters.getSuperior.superior.completeTime).getTime())returnr.$message({message:"当前预计完成时间不能超过".concat(r.$store.getters.getSuperior.superior.completeTime),type:"warning"}),!1;r.$axios.putFindWorkload(r.$store.getters.getSuperior.superior.id).then((function(i){if(console.log(i),200===i.status){if(parseInt(r.taskForm.workload)>parseInt(i.data))returnr.$alert("当前总任务量为".concat(i.data,",请重新评估任务量"),"任务量提示",{confirmButtonText:"确定"}),!1;r.postTaskData(t,e)}}))}elser.postTaskData(t,e)}))},postTaskData:function(t,e){varr=this;console.log(this.taskForm);vari=JSON.parse(JSON.stringify(this.taskForm)),o=[];if(this.attachmentsArr.forEach((function(t,e){o.push(t.id)})),console.log(o),newDate(i.stateTime).getTime()>newDate(i.completeTime).getTime())returnthis.$message({message:"任务开始时间不能大于预计完成时间",type:"warning"}),!1;if(""===this.content)returnthis.contentTip=!0,!1;this.contentTip=!1,i.workCoefficient=0,i.content=this.content,i.pworkload=1,i.attachment=o,i.status=e,i.endTime="",i.workload=Number(i.workload),i.workloadCount=1,"{}"!==JSON.stringify(this.$store.getters.getSuperior.superior)&&void0!==JSON.stringify(this.$store.getters.getSuperior.superior)&&(i.superiorId=this.$store.getters.getSuperior.superior.id);varn={remarks:"",userId:this.userLoginData.id,work:i};this.$axios.postAddTask(n).then((function(i){varo;(console.log(i),200===i.request.status)&&(void0!==i.data.id&&(r.$store.commit("changeSuperior",{superior:{}}),o="ongoing"===e?"发布任务":"保存任务",r.$message({message:o+"成功!",type:"success"}),r.$refs[t].resetFields(),r.content="",r.$router.push({name:"viewTask"})))}))},resetForm:function(t){this.$refs[t].resetFields()},submitUpload:function(){},handleExceed:function(t,e){this.$message.warning("最多只能上传 5 个文件")},handleRemove:function(t,e){varr=JSON.parse(JSON.stringify(this.attachmentsArr));r.splice(r.findIndex((function(e){returne.name===t.name})),1),this.attachmentsArr=r,console.log(this.attachmentsArr)},beforeAvatarUpload:function(t){vare=t.size/1024/1024<300;returne||this.$message({message:"文件上传大小不能超过300M",type:"warning"}),e},handleChange:function(t){vare=this,r={fileId:"",name:"",suffix:"",time:"",type:"",uploader:""},i=newFormData;i.append("file",t.file),this.$axios.postUpload(i).then((function(i){if(console.log(i),200===i.status){r.fileId=i.data.id,e.$message({message:"附件上传成功!",type:"success"}),r.uploader=e.userLoginData.id,r.name=t.file.name,r.type="init";varo=t.file.name.indexOf("."),n=t.file.name.substring(o+1);r.suffix=n;vara=newDate,s=a.getFullYear(),c=a.getMonth()+1;c=c<10?"0"+c:c;varu=a.getDate();u=u<10?"0"+u:u;varl=a.getHours();l=l<10?"0"+l:l;varf=a.getMinutes();f=f<10?"0"+f:f;vard=a.getSeconds();d=d<10?"0"+d:d,r.time="".concat(s,"-").concat(c,"-").concat(u," ").concat(l,":").concat(f,":").concat(d),console.log(r),e.$axios.postAttachmentOneByOne(r).then((function(t){if(console.log(t),200===t.status){vari={id:t.data.id,name:r.name};e.attachmentsArr.push(i)}})),console.log(e.attachmentsArr)}}))}},created:function(){},mounted:function(){this.taskForm.stateTime=this.$common.timeYMDHMSFilter(newDate),console.log(this.$store.getters.getLoginData.loginData),void0!==this.$store.getters.getLoginData.loginData?this.userLoginData=this.$store.getters.getLoginData.loginData:this.userLoginData=JSON.parse(this.$Base64.decode(localStorage.getItem("login"))),this.announcer=this.userLoginData.username,this.taskForm.publisher=this.userLoginData.id;vart=this;setTimeout((function(){t.getUserById(t.userLoginData.id)}),200)},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){this.$store.commit("changeSuperior",{superior:{}})},activated:function(){}},c=s,u=(r("7ba2"),r("2877")),l=Object(u["a"])(c,i,o,!1,null,"adbb01da",null);e["default"]=l.exports},"3ca3":function(t,e,r){"use strict";vari=r("6547").charAt,o=r("69f3"),n=r("7dd0"),a="String Iterator",s=o.set,c=o.getterFor(a);n(String,"String",(function(t){s(this,{type:a,string:String(t),index:0})}),(function(){vart,e=c(this),r=e.string,o=e.index;returno>=r.length?{value:void0,done:!0}:(t=i(r,o),e.index+=t.length,{value:t,done:!1})}))},"4df4":function(t,e,r){"use strict";vari=r("0366"),o=r("7b0b"),n=r("9bdd"),a=r("e95a"),s=r("50c4"),c=r("8418"),u=r("35a1");t.exports=function(t){vare,r,l,f,d,p,g=o(t),m="function"==typeofthis?this:Array,A=arguments.length,v=A>1?arguments[1]:void0,h=void0!==v,y=u(g),b=0;if(h&&(v=i(v,A>2?arguments[2]:void0,2)),void0==y||m==Array&&a(y))for(e=s(g.length),r=newm(e);e>b;b++)p=h?v(g[b],b):g[b],c(r,b,p);elsefor(f=y.call(g),d=f.next,r=newm;!(l=d.call(f)).done;b++)p=h?n(f,v,[l.value,b],!0):l.value,c(r,b,p);returnr.length=b,r}},5899:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"58a8":function(t,e,r){vari=r("1d80"),o=r("5899"),n="["+o+"]",a=RegExp("^"+n+n+"*"),s=RegExp(n+n+"*$"),c=function(t){returnfunction(e){varr=String(i(e));return1&t&&(r=r.replace(a,"")),2&t&&(r=r.replace(s,"")),r}};t.exports={start:c(1),end:c(2),trim:c(3)}},"6fb9":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAARBAMAAADwJOuSAAAAKlBMVEXy8vJHcEzy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vIaPDjPAAAADXRSTlOAAEDAIPAQULBwYDDQn6XPTgAAAFFJREFUCNdjEGIAARYBhtq7IHDVgcF0s6Gg4IW1DAzGwoaC0y4Igxki4RDGIaUiMEMCqPYmiCGmpKSkCGIIggCpjNaNIAbQLl2Y7SJKIKAmAABrOSAIX8UWDAAAAABJRU5ErkJggg=="},7156:function(t,e,r){vari=r("861d"),o=r("d2bb");t.exports=function(t,e,r){varn,a;returno&&"function"==typeof(n=e.constructor)&&n!==r&&i(a=n.prototype)&&a!==r.prototype&&o(t,a),t}},"746f":function(t,e,r){vari=r("428f"),o=r("5135"),n=r("e538"),a=r("9bf2").f;t.exports=function(t){vare=i.Symbol||(i.Symbol={});o(e,t)||a(e,t,{value:n.f(t)})}},"7ba2":function(t,e,r){"use strict";vari=r("a8bd"),o=r.n(i);o.a},a4d3:function(t,e,r){"use strict";vari=r("23e7"),o=r("da84"),n=r("d066"),a=r("c430"),s=r("83ab"),c=r("4930"),u=r("fdbf"),l=r("d039"),f=r("5135"),d=r("e8b5"),p=r("861d"),g=r("825a"),m=r("7b0b"),A=r("fc6a"),v=r("c04e"),h=r("5c6c"),y=r("7c73"),b=r("df75"),S=r("241c"),w=r("057f"),k=r("7418"),O=r("06cf"),D=r("9bf2"),F=r("d1e7"),T=r("9112"),x=r("6eeb"),N=r("5692"),$=r("f772"),L=r("d012"),I=r("90e3"),E=r("b622"),C=r("e538"),J=r("746f"),M=r("d44e"),U=r("69f3"),B=r("b727").forEach,_=$("hidden"),R="Symbol",j="prototype",P=E("toPrimitive"),Y=U.set,G=U.getterFor(R),H=Object[j],q=o.Symbol,K=n("JSON","stringify"),Q=O.f,V=D.f,z=w.f,X=F.f,W=N("symbols"),Z=N("op-symbols"),tt=N("string-to-symbol-registry"),et=N("symbol-to-string-registry"),rt=N("wks"),it=o.QObject,ot=!it||!it[j]||!it[j].findChild,nt=s&&l((function(){return7!=y(V({},"a",{get:function(){returnV(this,"a",{value:7}).a}})).a}))?function(t,e,r){vari=Q(H,e);i&&deleteH[e],V(t,e,r),i&&t!==H&&V(H,e,i)}:V,at=function(t,e){varr=W[t]=y(q[j]);returnY(r,{type:R,tag:t,description:e}),s||(r.description=e),r},st=u?function(t){return"symbol"==typeoft}:function(t){returnObject(t)instanceofq},ct=function(t,e,r){t===H&&ct(Z,e,r),g(t);vari=v(e,!0);returng(r),f(W,i)?(r.enumerable?(f(t,_)&&t[_][i]&&(t[_][i]=!1),r=y(r,{enumerable:h(0,!1)})):(f(t,_)||V(t,_,h(1,{})),t[_][i]=!0),nt(t,i,r)):V(t,i,r)},ut=function(t,e){g(t);varr=A(e),i=b(r).concat(gt(r));returnB(i,(function(e){s&&!ft.call(r,e)||ct(t,e,r[e])})),t},lt=function(t,e){returnvoid0===e?y(t):ut(y(t),e)},ft=function(t){vare=v(t,!0),r=X.call(this,e);return!(this===H&&f(W,e)&&!f(Z,e))&&(!(r||!f(this,e)||!f(W,e)||f(this,_)&&this[_][e])||r)},dt=function(t,e){varr=A(t),i=v(e,!0);if(r!==H||!f(W,i)||f(Z,i)){varo=Q(r,i);return!o||!f(W,i)||f(r,_)&&r[_][i]||(o.enumerable=!0),o}},pt=function(t){vare=z(A(t)),r=[];returnB(e,(function(t){f(W,t)||f(L,t)||r.push(t)})),r},gt=function(t){vare=t===H,r=z(e?Z:A(t)),i=[];returnB(r,(function(t){!f(W,t)||e&&!f(H,t)||i.push(W[t])})),i};if(c||(q=function(){if(thisinstanceofq)throwTypeError("Symbol is not a constructor");vart=arguments.length&&void0!==arguments[0]?String(arguments[0]):void0,e=I(t),r=function(t){this===H&&r.call(Z,t),f(this,_)&&f(this[_],e)&&(this[_][e]=!1),nt(this,e,h(1,t))};returns&&ot&&nt(H,e,{configurable:!0,set:r}),at(e,t)},x(q[j],"toString",(function(){returnG(this).tag})),x(q,"withoutSetter",(function(t){returnat(I(t),t)})),F.f=ft,D.f=ct,O.f=dt,S.f=w.f=pt,k.f=gt,C.f=function(t){returnat(E(t),t)},s&&(V(q[j],"description",{configurable:!0,get:function(){returnG(this).description}}),a||x(H,"propertyIsEnumerable",ft,{unsafe:!0}))),i({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:q}),B(b(rt),(function(t){J(t)})),i({target:R,stat:!0,forced:!c},{for:function(t){vare=String(t);if(f(tt,e))returntt[e];varr=q(e);returntt[e]=r,et[r]=e,r},keyFor:function(t){if(!st(t))throwTypeError(t+" is not a symbol");if(f(et,t))returnet[t]},useSetter:function(){ot=!0},useSimple:function(){ot=!1}}),i({target:"Object",stat:!0,forced:!c,sham:!s},{create:lt,defineProperty:ct,defineProperties:ut,getOwnPropertyDescriptor:dt}),i({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:pt,getOwnPropertySymbols:gt}),i({target:"Object",stat:!0,forced:l((function(){k.f(1)}))},{getOwnPropertySymbols:function(t){returnk.f(m(t))}}),K){varmt=!c||l((function(){vart=q();return"[null]"!=K([t])||"{}"!=K({a:t})||"{}"!=K(Object(t))}));i({target:"JSON",stat:!0,forced:mt},{stringify:function(t,e,r){vari,o=[t],n=1;while(arguments.length>n)o.push(arguments[n++]);if(i=e,(p(e)||void0!==t)&&!st(t))returnd(e)||(e=function(t,e){if("function"==typeofi&&(e=i.call(this,t,e)),!st(e))returne}),o[1]=e,K.apply(null,o)}})}q[j][P]||T(q[j],P,q[j].valueOf),M(q,R),L[_]=!0},a630:function(t,e,r){vari=r("23e7"),o=r("4df4"),n=r("1c7e"),a=!n((function(t){Array.from(t)}));i({target:"Array",stat:!0,forced:a},{from:o})},a8bd:function(t,e,r){},a9e3:function(t,e,r){"use strict";vari=r("83ab"),o=r("da84"),n=r("94ca"),a=r("6eeb"),s=r("5135"),c=r("c6b6"),u=r("7156"),l=r("c04e"),f=r("d039"),d=r("7c73"),p=r("241c").f,g=r("06cf").f,m=r("9bf2").f,A=r("58a8").trim,v="Number",h=o[v],y=h.prototype,b=c(d(y))==v,S=function(t){vare,r,i,o,n,a,s,c,u=l(t,!1);if("string"==typeofu&&u.length>2)if(u=A(u),e=u.charCodeAt(0),43===e||45===e){if(r=u.charCodeAt(2),88===r||120===r)returnNaN}elseif(48===e){switch(u.charCodeAt(1)){case66:case98:i=2,o=49;break;case79:case111:i=8,o=55;break;default:return+u}for(n=u.slice(2),a=n.length,s=0;s<a;s++)if(c=n.charCodeAt(s),c<48||c>o)returnNaN;returnparseInt(n,i)}return+u};if(n(v,!h(" 0o1")||!h("0b1")||h("+0x1"))){for(varw,k=function(t){vare=arguments.length<1?0:t,r=this;returnrinstanceofk&&(b?f((function(){y.valueOf.call(r)})):c(r)!=v)?u(newh(S(e)),r,k):S(e)},O=i?p(h):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),D=0;O.length>D;D++)s(h,w=O[D])&&!s(k,w)&&m(k,w,g(h,w));k.prototype=y,y.constructor=k,a(o,v,k)}},d28b:function(t,e,r){vari=r("746f");i("iterator")},dc71:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAKBAMAAACUK2mNAAAAKlBMVEVHcEz8AAD8AAD8AAD8AAD8AAD8AAD8AAD8AAD8AAD8AAD8AAD8AAD8AACBXiQcAAAADXRSTlMAMOBAYNAQIFDAcPCgoiePwwAAAEBJREFUCNdjYGCfzgAEzJeBRJPjhUUCDEJXdG4WMDC03hRgYGBR1Q5hYPANvxZrwJDMfDE5gYGB4yJIPYMBAwMAoWUNNbe+D8UAAAAASUVORK5CYII="},ddb0:function(t,e,r){vari=r("da84"),o=r("fdbc"),n=r("e260"),a=r("9112"),s=r("b622"),c=s("iterator"),u=s("toStringTag"),l=n.values;for(varfino){vard=i[f],p=d&&d.prototype;if(p){if(p[c]!==l)try{a(p,c,l)}catch(m){p[c]=l}if(p[u]||a(p,u,f),o[f])for(varginn)if(p[g]!==n[g])try{a(p,g,n[g])}catch(m){p[g]=n[g]}}}},e01a:function(t,e,r){"use strict";vari=r("23e7"),o=r("83ab"),n=r("da84"),a=r("5135"),s=r("861d"),c=r("9bf2").f,u=r("e893"),l=n.Symbol;if(o&&"function"==typeofl&&(!("description"inl.prototype)||void0!==l().description)){varf={},d=function(){vart=arguments.length<1||void0===arguments[0]?void0:String(arguments[0]),e=thisinstanceofd?newl(t):void0===t?l():l(t);return""===t&&(f[e]=!0),e};u(d,l);varp=d.prototype=l.prototype;p.constructor=d;varg=p.toString,m="Symbol(test)"==String(l("test")),A=/^Symbol\((.*)\)[^)]+$/;c(p,"description",{configurable:!0,get:function(){vart=s(this)?this.valueOf():this,e=g.call(t);if(a(f,t))return"";varr=m?e.slice(7,-1):e.replace(A,"$1");return""===r?void0:r}}),i({global:!0,forced:!0},{Symbol:d})}},e538:function(t,e,r){vari=r("b622");e.f=i}}]);
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["addTask"],{"057f":function(t,e,r){vari=r("fc6a"),o=r("241c").f,n={}.toString,a="object"==typeofwindow&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{returno(t)}catch(e){returna.slice()}};t.exports.f=function(t){returna&&"[object Window]"==n.call(t)?s(t):o(i(t))}},"1d3c":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAARCAMAAAAMs7fIAAAAM1BMVEVHcEzy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vKDCcpAAAAAEHRSTlMAoHAQUODQYPAwIECQgMCwyoZhpgAAAHFJREFUGBkFwYcBgzAMADBlOgOK/7+2EgCgxQWAU2dmADh15hc7G7CfsUpHLbCfsUoHZqev8WzQr72w59wgsnsKeFdFZDA2cMevRQZ9ALSyMlBeAHocrAOAvZqYAOD3+ioAuOtkAwB+4wMA3AwAgAr8ARzXAzCC+YqfAAAAAElFTkSuQmCC"},2909:function(t,e,r){"use strict";functioni(t,e){(null==e||e>t.length)&&(e=t.length);for(varr=0,i=newArray(e);r<e;r++)i[r]=t[r];returni}functiono(t){if(Array.isArray(t))returni(t)}r.d(e,"a",(function(){returnc}));r("a4d3"),r("e01a"),r("d28b"),r("a630"),r("e260"),r("d3b7"),r("3ca3"),r("ddb0");functionn(t){if("undefined"!==typeofSymbol&&Symbol.iteratorinObject(t))returnArray.from(t)}r("fb6a"),r("b0c0"),r("25f0");functiona(t,e){if(t){if("string"===typeoft)returni(t,e);varr=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void0}}functions(){thrownewTypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}functionc(t){returno(t)||n(t)||a(t)||s()}},"2bb0":function(t,e,r){"use strict";r.r(e);vari=function(){vart=this,e=t.$createElement,i=t._self._c||e;returni("div",{staticClass:"addTask"},[i("div",{staticClass:"addHeader"},[i("ul",[i("li",[t._v("发布者:"+t._s(t.announcer))]),i("li",[i("el-button",{attrs:{type:"primary"},on:{click:function(e){returnt.submitForm("taskForm","unpublished")}}},[i("span",[i("img",{staticClass:"addImgs",attrs:{src:r("6fb9")}})]),t._v("保存")]),i("el-button",{staticStyle:{"margin-left":"50px"},attrs:{type:"primary"},on:{click:function(e){returnt.submitForm("taskForm","ongoing")}}},[i("span",[i("img",{staticClass:"addImgs",attrs:{src:r("1d3c")}})]),t._v("发布")])],1)])]),i("div",[i("el-form",{ref:"taskForm",staticClass:"demo-ruleForm",attrs:{model:t.taskForm,rules:t.rules,"label-width":"130px"}},[i("div",{staticStyle:{"margin-bottom":"20px"}},[i("img",{attrs:{src:r("dc71")}}),t._v("为必填项 ")]),i("el-row",{attrs:{gutter:50}},[i("el-col",{attrs:{span:8}},[i("el-form-item",{attrs:{label:"任务名称",prop:"title"}},[i("div",[i("el-input",{model:{value:t.taskForm.title,callback:function(e){t.$set(t.taskForm,"title",e)},expression:"taskForm.title"}})],1)]),i("el-form-item",{attrs:{label:"组长",prop:"executor"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择组长"},model:{value:t.taskForm.executor,callback:function(e){t.$set(t.taskForm,"executor",e)},expression:"taskForm.executor"}},t._l(t.leaderOptions,(function(e){returni("el-option",{key:e.id,attrs:{label:e.username,value:e.id}},[i("span",{staticStyle:{display:"inline-block",width:"70px"}},[t._v(t._s(e.username))]),i("span",{style:{color:t.$common.colorNum(e.status)}},[t._v("("+t._s(t.$common.personStatusName(e.status))+")")])])})),1)],1)],1),i("el-col",{attrs:{span:8}},[i("el-form-item",{attrs:{label:"任务开始时间",prop:"stateTime"}},[i("el-date-picker",{staticStyle:{width:"100%"},attrs:{editable:!1,"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetime",placeholder:"选择日期"},model:{value:t.taskForm.stateTime,callback:function(e){t.$set(t.taskForm,"stateTime",e)},expression:"taskForm.stateTime"}})],1),i("el-form-item",{attrs:{label:"任务量(天)",prop:"workload"}},[i("el-input",{attrs:{onkeyup:"this.value=this.value.replace(/[^\\d.]/g,'')"},model:{value:t.taskForm.workload,callback:function(e){t.$set(t.taskForm,"workload",e)},expression:"taskForm.workload"}})],1)],1),i("el-col",{attrs:{span:8}},[i("el-form-item",{attrs:{label:"预计完成时间",prop:"completeTime"}},[i("el-date-picker",{staticStyle:{width:"100%"},attrs:{editable:!1,"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetime",placeholder:"选择日期"},model:{value:t.taskForm.completeTime,callback:function(e){t.$set(t.taskForm,"completeTime",e)},expression:"taskForm.completeTime"}})],1)],1)],1),i("div",[i("el-form-item",{attrs:{label:"组员"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",placeholder:"请选择组员"},model:{value:t.taskForm.crewList,callback:function(e){t.$set(t.taskForm,"crewList",e)},expression:"taskForm.crewList"}},t._l(t.memberOptions,(function(e){returni("el-option",{key:e.id,attrs:{label:e.username,value:e.id}},[i("span",{staticStyle:{display:"inline-block",width:"70px"}},[t._v(t._s(e.username))]),i("span",{style:{color:t.$common.colorNum(e.status)}},[t._v("("+t._s(t.$common.personStatusName(e.status))+")")])])})),1)],1)],1),i("div",[i("div",{staticStyle:{padding:"10px 0px","font-size":"14px"}},[i("span",{staticStyle:{color:"#FC1F1F"}},[t._v("*")]),t._v("任务内容 "),i("span",{directives:[{name:"show",rawName:"v-show",value:t.contentTip,expression:"contentTip"}],staticStyle:{color:"#FC1F1F","margin-left":"10px"}},[t._v("(请输入任务内容)")])]),i("editor-bar",{attrs:{isClear:t.isClear},on:{change:t.change},model:{value:t.content,callback:function(e){t.content=e},expression:"content"}})],1),i("div",{staticClass:"upload-container"},[i("div",{staticClass:"upload-file",staticStyle:{"margin-left":"0px"}},[i("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{action:"https://jsonplaceholder.typicode.com/posts/","http-request":t.handleChange,"on-remove":t.handleRemove,"on-exceed":t.handleExceed,"before-upload":t.beforeAvatarUpload,"file-list":t.fileList,"auto-load":!1,limit:5}},[i("el-button",{staticStyle:{"margin-top":"20px"},attrs:{size:"small"},on:{click:t.submitUpload}},[t._v("添加附件")]),i("div",{attrs:{slot:"tip"},slot:"tip"},[t._v("最多只能上传5个文件,否则请上传压缩包!")])],1)],1)])],1)],1),i("div",{staticStyle:{"text-align":"center","margin-top":"30px"}})])},o=[],n=(r("99af"),r("c740"),r("4160"),r("c975"),r("a434"),r("b0c0"),r("a9e3"),r("159b"),r("2909")),a=r("e028"),s={name:"AddTask",components:{EditorBar:a["a"]},data:function(){vart=this,e=function(e,r,i){if(!r)returni(newError("任务开始时间不能为空"));""!==t.taskForm.completeTime&&newDate(r).getTime()>newDate(t.taskForm.completeTime).getTime()?i(newError("任务开始时间不能超过预计完成时间")):i()},r=function(e,r,i){if(!r)returni(newError("预计完成时间为空"));""!==t.taskForm.stateTime&&newDate(r).getTime()<newDate(t.taskForm.stateTime).getTime()?i(newError("预计完成时间不能小于任务开始时间")):i()};return{taskForm:{title:"",publisher:"",stateTime:"",completeTime:"",workload:"",executor:"",crewList:[],attachment:[],pworkload:1,status:"",workCoefficient:0,workloadCount:1},announcer:"",rules:{title:[{required:!0,message:"请输入任务名称",trigger:"blur"},{max:30,message:"长度在 30 个字符之内",trigger:"blur"}],stateTime:[{required:!0,validator:e,trigger:"blur"}],completeTime:[{required:!0,validator:r,trigger:"blur"}],executor:[{required:!0,message:"请选择组长",trigger:"change"}],crewList:[{type:"array",required:!0,message:"请选择组员",trigger:"change"}],workload:[{required:!0,message:"请输入任务量",trigger:"blur"},{max:4,message:"长度在 4 个字符之内",trigger:"blur"}]},leaderOptions:[],memberOptions:[],content:"",isClear:!1,fileList:[],attachmentsArr:[],userLoginData:"",contentTip:!1}},computed:{},watch:{},methods:{getUserById:function(t){vare=this;this.$axios.getUserById(t).then((function(t){if(console.log(t),200===t.request.status)if("{}"!==JSON.stringify(e.$store.getters.getSuperior.superior)&&void0!==JSON.stringify(e.$store.getters.getSuperior.superior)&&(e.taskForm.title=e.$store.getters.getSuperior.superior.title),0===t.data.length&&"{}"!==JSON.stringify(e.$store.getters.getSuperior.superior)&&void0!==JSON.stringify(e.$store.getters.getSuperior.superior)){varr=e.$store.getters.getSuperior.superior.crewList;if(r.findIndex((function(t){returnt.id===e.userLoginData.id}))>-1)e.leaderOptions=r,e.memberOptions=r;else{r.push(JSON.parse(JSON.stringify(e.userLoginData))),console.log(r);for(vari=[],o={},a=0;a<r.length;a++)o[r[a].id]||(i.push(r[a]),o[r[a].id]=!0);e.leaderOptions=i,e.memberOptions=i}}elseif(t.data.length>0&&("{}"===JSON.stringify(e.$store.getters.getSuperior.superior)||void0===JSON.stringify(e.$store.getters.getSuperior.superior))){vars=t.data;if(s.findIndex((function(t){returnt.id===e.userLoginData.id}))>-1)e.leaderOptions=s,e.memberOptions=s;else{s.push(JSON.parse(JSON.stringify(e.userLoginData)));for(varc=[],u={},l=0;l<s.length;l++)u[s[l].id]||(c.push(s[l]),u[s[l].id]=!0);e.leaderOptions=c,e.memberOptions=c}}elseif(t.data.length>0&&"{}"!==JSON.stringify(e.$store.getters.getSuperior.superior)&&void0!==JSON.stringify(e.$store.getters.getSuperior.superior)){varf=t.data,d=e.$store.getters.getSuperior.superior.crewList;if(f.push.apply(f,Object(n["a"])(d)),f.findIndex((function(t){returnt.id===e.userLoginData.id}))>-1){for(varp=[],g={},m=0;m<f.length;m++)g[f[m].id]||(p.push(f[m]),g[f[m].id]=!0);e.leaderOptions=p,e.memberOptions=p}else{f.push(JSON.parse(JSON.stringify(e.userLoginData)));for(varA=[],v={},h=0;h<f.length;h++)v[f[h].id]||(A.push(f[h]),v[f[h].id]=!0);e.leaderOptions=A,e.memberOptions=A}}}))},change:function(t){},submitForm:function(t,e){varr=this;this.$refs[t].validate((function(i){if(!i)returnconsole.log("error submit!!"),!1;if("{}"!==JSON.stringify(r.$store.getters.getSuperior.superior)&&void0!==JSON.stringify(r.$store.getters.getSuperior.superior)){if(newDate(r.taskForm.stateTime).getTime()<newDate(r.$store.getters.getSuperior.superior.stateTime).getTime())returnr.$message({message:"当前任务开始时间不能早于".concat(r.$store.getters.getSuperior.superior.stateTime),type:"warning"}),!1;if(newDate(r.taskForm.completeTime).getTime()>newDate(r.$store.getters.getSuperior.superior.completeTime).getTime())returnr.$message({message:"当前预计完成时间不能超过".concat(r.$store.getters.getSuperior.superior.completeTime),type:"warning"}),!1;r.$axios.putFindWorkload(r.$store.getters.getSuperior.superior.id).then((function(i){if(console.log(i),200===i.status){if(parseInt(r.taskForm.workload)>parseInt(i.data))returnr.$alert("当前总任务量为".concat(i.data,",请重新评估任务量"),"任务量提示",{confirmButtonText:"确定"}),!1;r.postTaskData(t,e)}}))}elser.postTaskData(t,e)}))},postTaskData:function(t,e){varr=this;console.log(this.taskForm);vari=JSON.parse(JSON.stringify(this.taskForm)),o=[];if(this.attachmentsArr.forEach((function(t,e){o.push(t.id)})),console.log(o),newDate(i.stateTime).getTime()>newDate(i.completeTime).getTime())returnthis.$message({message:"任务开始时间不能大于预计完成时间",type:"warning"}),!1;if(""===this.content)returnthis.contentTip=!0,!1;this.contentTip=!1,i.workCoefficient=0,i.content=this.content,i.pworkload=1,i.attachment=o,i.status=e,i.endTime="",i.workload=Number(i.workload),i.workloadCount=1,"{}"!==JSON.stringify(this.$store.getters.getSuperior.superior)&&void0!==JSON.stringify(this.$store.getters.getSuperior.superior)&&(i.superiorId=this.$store.getters.getSuperior.superior.id);varn={remarks:"",userId:this.userLoginData.id,work:i};this.$axios.postAddTask(n).then((function(i){varo;(console.log(i),200===i.request.status)&&(void0!==i.data.id&&(r.$store.commit("changeSuperior",{superior:{}}),o="ongoing"===e?"发布任务":"保存任务",r.$message({message:o+"成功!",type:"success"}),r.$refs[t].resetFields(),r.content="",r.$router.push({name:"viewTask"})))}))},resetForm:function(t){this.$refs[t].resetFields()},submitUpload:function(){},handleExceed:function(t,e){this.$message.warning("最多只能上传 5 个文件")},handleRemove:function(t,e){varr=JSON.parse(JSON.stringify(this.attachmentsArr));r.splice(r.findIndex((function(e){returne.name===t.name})),1),this.attachmentsArr=r,console.log(this.attachmentsArr)},beforeAvatarUpload:function(t){vare=t.size/1024/1024<300;returne||this.$message({message:"文件上传大小不能超过300M",type:"warning"}),e},handleChange:function(t){vare=this,r={fileId:"",name:"",suffix:"",time:"",type:"",uploader:""};console.log(t);vari=newFormData;i.append("file",t.file),this.$axios.postUpload(i).then((function(i){if(console.log(i),200===i.status){r.fileId=i.data.id,e.$message({message:"附件上传成功!",type:"success"}),r.uploader=e.userLoginData.id,r.name=t.file.name,r.type="init";varo=t.file.name.indexOf("."),n=t.file.name.substring(o+1);r.suffix=n;vara=newDate,s=a.getFullYear(),c=a.getMonth()+1;c=c<10?"0"+c:c;varu=a.getDate();u=u<10?"0"+u:u;varl=a.getHours();l=l<10?"0"+l:l;varf=a.getMinutes();f=f<10?"0"+f:f;vard=a.getSeconds();d=d<10?"0"+d:d,r.time="".concat(s,"-").concat(c,"-").concat(u," ").concat(l,":").concat(f,":").concat(d),console.log(r),e.$axios.postAttachmentOneByOne(r).then((function(t){if(console.log(t),200===t.status){vari={id:t.data.id,name:r.name};e.attachmentsArr.push(i)}})),console.log(e.attachmentsArr)}}))}},created:function(){},mounted:function(){this.taskForm.stateTime=this.$common.timeYMDHMSFilter(newDate),console.log(this.$store.getters.getLoginData.loginData),void0!==this.$store.getters.getLoginData.loginData?this.userLoginData=this.$store.getters.getLoginData.loginData:this.userLoginData=JSON.parse(this.$Base64.decode(localStorage.getItem("login"))),this.announcer=this.userLoginData.username,this.taskForm.publisher=this.userLoginData.id;vart=this;setTimeout((function(){t.getUserById(t.userLoginData.id)}),200)},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){this.$store.commit("changeSuperior",{superior:{}})},activated:function(){}},c=s,u=(r("afbe"),r("2877")),l=Object(u["a"])(c,i,o,!1,null,"6f56ce3b",null);e["default"]=l.exports},"3ca3":function(t,e,r){"use strict";vari=r("6547").charAt,o=r("69f3"),n=r("7dd0"),a="String Iterator",s=o.set,c=o.getterFor(a);n(String,"String",(function(t){s(this,{type:a,string:String(t),index:0})}),(function(){vart,e=c(this),r=e.string,o=e.index;returno>=r.length?{value:void0,done:!0}:(t=i(r,o),e.index+=t.length,{value:t,done:!1})}))},"4df4":function(t,e,r){"use strict";vari=r("0366"),o=r("7b0b"),n=r("9bdd"),a=r("e95a"),s=r("50c4"),c=r("8418"),u=r("35a1");t.exports=function(t){vare,r,l,f,d,p,g=o(t),m="function"==typeofthis?this:Array,A=arguments.length,v=A>1?arguments[1]:void0,h=void0!==v,y=u(g),b=0;if(h&&(v=i(v,A>2?arguments[2]:void0,2)),void0==y||m==Array&&a(y))for(e=s(g.length),r=newm(e);e>b;b++)p=h?v(g[b],b):g[b],c(r,b,p);elsefor(f=y.call(g),d=f.next,r=newm;!(l=d.call(f)).done;b++)p=h?n(f,v,[l.value,b],!0):l.value,c(r,b,p);returnr.length=b,r}},5899:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"58a8":function(t,e,r){vari=r("1d80"),o=r("5899"),n="["+o+"]",a=RegExp("^"+n+n+"*"),s=RegExp(n+n+"*$"),c=function(t){returnfunction(e){varr=String(i(e));return1&t&&(r=r.replace(a,"")),2&t&&(r=r.replace(s,"")),r}};t.exports={start:c(1),end:c(2),trim:c(3)}},"6fb9":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAARBAMAAADwJOuSAAAAKlBMVEXy8vJHcEzy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vIaPDjPAAAADXRSTlOAAEDAIPAQULBwYDDQn6XPTgAAAFFJREFUCNdjEGIAARYBhtq7IHDVgcF0s6Gg4IW1DAzGwoaC0y4Igxki4RDGIaUiMEMCqPYmiCGmpKSkCGIIggCpjNaNIAbQLl2Y7SJKIKAmAABrOSAIX8UWDAAAAABJRU5ErkJggg=="},7156:function(t,e,r){vari=r("861d"),o=r("d2bb");t.exports=function(t,e,r){varn,a;returno&&"function"==typeof(n=e.constructor)&&n!==r&&i(a=n.prototype)&&a!==r.prototype&&o(t,a),t}},"746f":function(t,e,r){vari=r("428f"),o=r("5135"),n=r("e538"),a=r("9bf2").f;t.exports=function(t){vare=i.Symbol||(i.Symbol={});o(e,t)||a(e,t,{value:n.f(t)})}},"980d":function(t,e,r){},a4d3:function(t,e,r){"use strict";vari=r("23e7"),o=r("da84"),n=r("d066"),a=r("c430"),s=r("83ab"),c=r("4930"),u=r("fdbf"),l=r("d039"),f=r("5135"),d=r("e8b5"),p=r("861d"),g=r("825a"),m=r("7b0b"),A=r("fc6a"),v=r("c04e"),h=r("5c6c"),y=r("7c73"),b=r("df75"),S=r("241c"),w=r("057f"),k=r("7418"),O=r("06cf"),D=r("9bf2"),F=r("d1e7"),T=r("9112"),x=r("6eeb"),N=r("5692"),$=r("f772"),L=r("d012"),I=r("90e3"),E=r("b622"),C=r("e538"),J=r("746f"),M=r("d44e"),U=r("69f3"),B=r("b727").forEach,_=$("hidden"),R="Symbol",j="prototype",P=E("toPrimitive"),Y=U.set,G=U.getterFor(R),H=Object[j],q=o.Symbol,K=n("JSON","stringify"),Q=O.f,V=D.f,z=w.f,X=F.f,W=N("symbols"),Z=N("op-symbols"),tt=N("string-to-symbol-registry"),et=N("symbol-to-string-registry"),rt=N("wks"),it=o.QObject,ot=!it||!it[j]||!it[j].findChild,nt=s&&l((function(){return7!=y(V({},"a",{get:function(){returnV(this,"a",{value:7}).a}})).a}))?function(t,e,r){vari=Q(H,e);i&&deleteH[e],V(t,e,r),i&&t!==H&&V(H,e,i)}:V,at=function(t,e){varr=W[t]=y(q[j]);returnY(r,{type:R,tag:t,description:e}),s||(r.description=e),r},st=u?function(t){return"symbol"==typeoft}:function(t){returnObject(t)instanceofq},ct=function(t,e,r){t===H&&ct(Z,e,r),g(t);vari=v(e,!0);returng(r),f(W,i)?(r.enumerable?(f(t,_)&&t[_][i]&&(t[_][i]=!1),r=y(r,{enumerable:h(0,!1)})):(f(t,_)||V(t,_,h(1,{})),t[_][i]=!0),nt(t,i,r)):V(t,i,r)},ut=function(t,e){g(t);varr=A(e),i=b(r).concat(gt(r));returnB(i,(function(e){s&&!ft.call(r,e)||ct(t,e,r[e])})),t},lt=function(t,e){returnvoid0===e?y(t):ut(y(t),e)},ft=function(t){vare=v(t,!0),r=X.call(this,e);return!(this===H&&f(W,e)&&!f(Z,e))&&(!(r||!f(this,e)||!f(W,e)||f(this,_)&&this[_][e])||r)},dt=function(t,e){varr=A(t),i=v(e,!0);if(r!==H||!f(W,i)||f(Z,i)){varo=Q(r,i);return!o||!f(W,i)||f(r,_)&&r[_][i]||(o.enumerable=!0),o}},pt=function(t){vare=z(A(t)),r=[];returnB(e,(function(t){f(W,t)||f(L,t)||r.push(t)})),r},gt=function(t){vare=t===H,r=z(e?Z:A(t)),i=[];returnB(r,(function(t){!f(W,t)||e&&!f(H,t)||i.push(W[t])})),i};if(c||(q=function(){if(thisinstanceofq)throwTypeError("Symbol is not a constructor");vart=arguments.length&&void0!==arguments[0]?String(arguments[0]):void0,e=I(t),r=function(t){this===H&&r.call(Z,t),f(this,_)&&f(this[_],e)&&(this[_][e]=!1),nt(this,e,h(1,t))};returns&&ot&&nt(H,e,{configurable:!0,set:r}),at(e,t)},x(q[j],"toString",(function(){returnG(this).tag})),x(q,"withoutSetter",(function(t){returnat(I(t),t)})),F.f=ft,D.f=ct,O.f=dt,S.f=w.f=pt,k.f=gt,C.f=function(t){returnat(E(t),t)},s&&(V(q[j],"description",{configurable:!0,get:function(){returnG(this).description}}),a||x(H,"propertyIsEnumerable",ft,{unsafe:!0}))),i({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:q}),B(b(rt),(function(t){J(t)})),i({target:R,stat:!0,forced:!c},{for:function(t){vare=String(t);if(f(tt,e))returntt[e];varr=q(e);returntt[e]=r,et[r]=e,r},keyFor:function(t){if(!st(t))throwTypeError(t+" is not a symbol");if(f(et,t))returnet[t]},useSetter:function(){ot=!0},useSimple:function(){ot=!1}}),i({target:"Object",stat:!0,forced:!c,sham:!s},{create:lt,defineProperty:ct,defineProperties:ut,getOwnPropertyDescriptor:dt}),i({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:pt,getOwnPropertySymbols:gt}),i({target:"Object",stat:!0,forced:l((function(){k.f(1)}))},{getOwnPropertySymbols:function(t){returnk.f(m(t))}}),K){varmt=!c||l((function(){vart=q();return"[null]"!=K([t])||"{}"!=K({a:t})||"{}"!=K(Object(t))}));i({target:"JSON",stat:!0,forced:mt},{stringify:function(t,e,r){vari,o=[t],n=1;while(arguments.length>n)o.push(arguments[n++]);if(i=e,(p(e)||void0!==t)&&!st(t))returnd(e)||(e=function(t,e){if("function"==typeofi&&(e=i.call(this,t,e)),!st(e))returne}),o[1]=e,K.apply(null,o)}})}q[j][P]||T(q[j],P,q[j].valueOf),M(q,R),L[_]=!0},a630:function(t,e,r){vari=r("23e7"),o=r("4df4"),n=r("1c7e"),a=!n((function(t){Array.from(t)}));i({target:"Array",stat:!0,forced:a},{from:o})},a9e3:function(t,e,r){"use strict";vari=r("83ab"),o=r("da84"),n=r("94ca"),a=r("6eeb"),s=r("5135"),c=r("c6b6"),u=r("7156"),l=r("c04e"),f=r("d039"),d=r("7c73"),p=r("241c").f,g=r("06cf").f,m=r("9bf2").f,A=r("58a8").trim,v="Number",h=o[v],y=h.prototype,b=c(d(y))==v,S=function(t){vare,r,i,o,n,a,s,c,u=l(t,!1);if("string"==typeofu&&u.length>2)if(u=A(u),e=u.charCodeAt(0),43===e||45===e){if(r=u.charCodeAt(2),88===r||120===r)returnNaN}elseif(48===e){switch(u.charCodeAt(1)){case66:case98:i=2,o=49;break;case79:case111:i=8,o=55;break;default:return+u}for(n=u.slice(2),a=n.length,s=0;s<a;s++)if(c=n.charCodeAt(s),c<48||c>o)returnNaN;returnparseInt(n,i)}return+u};if(n(v,!h(" 0o1")||!h("0b1")||h("+0x1"))){for(varw,k=function(t){vare=arguments.length<1?0:t,r=this;returnrinstanceofk&&(b?f((function(){y.valueOf.call(r)})):c(r)!=v)?u(newh(S(e)),r,k):S(e)},O=i?p(h):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),D=0;O.length>D;D++)s(h,w=O[D])&&!s(k,w)&&m(k,w,g(h,w));k.prototype=y,y.constructor=k,a(o,v,k)}},afbe:function(t,e,r){"use strict";vari=r("980d"),o=r.n(i);o.a},d28b:function(t,e,r){vari=r("746f");i("iterator")},dc71:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAKBAMAAACUK2mNAAAAKlBMVEVHcEz8AAD8AAD8AAD8AAD8AAD8AAD8AAD8AAD8AAD8AAD8AAD8AAD8AACBXiQcAAAADXRSTlMAMOBAYNAQIFDAcPCgoiePwwAAAEBJREFUCNdjYGCfzgAEzJeBRJPjhUUCDEJXdG4WMDC03hRgYGBR1Q5hYPANvxZrwJDMfDE5gYGB4yJIPYMBAwMAoWUNNbe+D8UAAAAASUVORK5CYII="},ddb0:function(t,e,r){vari=r("da84"),o=r("fdbc"),n=r("e260"),a=r("9112"),s=r("b622"),c=s("iterator"),u=s("toStringTag"),l=n.values;for(varfino){vard=i[f],p=d&&d.prototype;if(p){if(p[c]!==l)try{a(p,c,l)}catch(m){p[c]=l}if(p[u]||a(p,u,f),o[f])for(varginn)if(p[g]!==n[g])try{a(p,g,n[g])}catch(m){p[g]=n[g]}}}},e01a:function(t,e,r){"use strict";vari=r("23e7"),o=r("83ab"),n=r("da84"),a=r("5135"),s=r("861d"),c=r("9bf2").f,u=r("e893"),l=n.Symbol;if(o&&"function"==typeofl&&(!("description"inl.prototype)||void0!==l().description)){varf={},d=function(){vart=arguments.length<1||void0===arguments[0]?void0:String(arguments[0]),e=thisinstanceofd?newl(t):void0===t?l():l(t);return""===t&&(f[e]=!0),e};u(d,l);varp=d.prototype=l.prototype;p.constructor=d;varg=p.toString,m="Symbol(test)"==String(l("test")),A=/^Symbol\((.*)\)[^)]+$/;c(p,"description",{configurable:!0,get:function(){vart=s(this)?this.valueOf():this,e=g.call(t);if(a(f,t))return"";varr=m?e.slice(7,-1):e.replace(A,"$1");return""===r?void0:r}}),i({global:!0,forced:!0},{Symbol:d})}},e538:function(t,e,r){vari=r("b622");e.f=i}}]);