(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["departmentTask"],{"021b":function(t,e,a){"use strict";var o=a("407d").forEach,n=a("fb11"),s=a("6885"),i=n("forEach"),r=s("forEach");t.exports=i&&r?[].forEach:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}},"29eb":function(t,e,a){"use strict";var o=a("d7fc"),n=a.n(o);n.a},"41f6":function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"9a14":function(t,e,a){var o=a("d5dc"),n=a("41f6"),s=a("021b"),i=a("2ba5");for(var r in n){var c=o[r],l=c&&c.prototype;if(l&&l.forEach!==s)try{i(l,"forEach",s)}catch(u){l.forEach=s}}},af82:function(t,e,a){"use strict";var o=a("91fe"),n=a("021b");o({target:"Array",proto:!0,forced:[].forEach!=n},{forEach:n})},d7fc:function(t,e,a){},e959:function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"tableDiv",staticClass:"departmentTask"},[a("div",{staticClass:"treeDiv"},[a("el-tree",{attrs:{data:t.data,"default-expand-all":!1,"expand-on-click-node":!1,props:t.defaultProps},on:{"current-node-key":t.currentTask,"node-click":t.handleNodeClick},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.node;e.data;return a("span",{staticClass:"custom-tree-node"},[a("span",{staticClass:"treeTitle",attrs:{title:o.label}},[t._v("任务名称："+t._s(o.label))]),a("span",{staticClass:"treeStatus",style:{color:t.$common.colorStatus(o.data.status)}},[t._v(t._s(t.$common.statusName(o.data.status)))])])}}])})],1)])},n=[],s=(a("af82"),a("b3f9"),a("9a14"),{name:"DepartmentTask",components:{},data:function(){return{defaultProps:{children:"workMppings",label:"title"},data:[],divHeight:0,taskListData:[],currentTask:"",colorList:[{name:"进行中",color:"#3cc65c"},{name:"待审核",color:"#ed0044"},{name:"未发布",color:"#666666"},{name:"待考评",color:"#e25d03"},{name:"已完结",color:"#075991"},{name:"已删除",color:"#ff0000"}]}},computed:{},watch:{},methods:{openDetails:function(t){console.log(t),localStorage.setItem("taskDetail",this.$Base64.encode(JSON.stringify(t))),this.$router.push({name:"taskDetails"})},getDeaprtmentTask:function(t){var e=this;this.$axios.getTaskFindById(t).then((function(t){console.log(t),200===t.status&&(e.divHeight=e.$refs.tableDiv.clientHeight,e.data=t.data)}))},handleNodeClick:function(t){console.log(t),localStorage.setItem("taskDetail",this.$Base64.encode(JSON.stringify(t))),this.$router.push({name:"taskDetails"})},exec:function(t){var e=this;t.forEach((function(t){0===t.workMppings.length?delete t.workMppings:e.exec(t.workMppings)})),console.log(t),this.taskListData=t},renderContent:function(t,e){var a=e.node;e.data,e.store;return t("span",{class:"custom-tree-node"},[t("div",[t("span",{style:""},["任务名称：",a.label]),t("span",{style:"margin-left: 70px;"},[a])])])},statusColor:function(t){console.log(t)}},created:function(){},mounted:function(){var t=JSON.parse(this.$Base64.decode(localStorage.getItem("login")));console.log(t);var e=this;setTimeout((function(){e.getDeaprtmentTask(t.id)}),200)},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}}),i=s,r=(a("29eb"),a("623f")),c=Object(r["a"])(i,o,n,!1,null,"95f365a2",null);e["default"]=c.exports}}]);