"),t.forEach((function(t){var i=t.seriesName,s=~c.indexOf(i)?a[1]:a[0];e.push(n.itemPoint(t.color)),e.push(i+": "),e.push(r.getFormated(t.value,s,o)),e.push("
")})),e.join("")}}}function m(t,e){for(var i=Math.max.apply(null,e),a=Math.min.apply(null,e),n=[],r=a;r<=i;r++){var o=e.indexOf(r);~o?n.push(t[o]):n.push(null)}return n}function v(t){var e=t.innerRows,i=t.metrics,a=t.stack,n=t.axisSite,s=t.isHistogram,l=t.labelMap,u=t.itemStyle,f=t.label,h=t.showLine,p=void 0===h?[]:h,v=t.dimAxisType,g=t.barGap,b=t.opacity,_=t.dims,y=[],k={},x=s?n.right||[]:n.top||[],w=s?"yAxisIndex":"xAxisIndex",C=a&&r.getStackMap(a);return i.forEach((function(t){k[t]=[]})),e.forEach((function(t){i.forEach((function(e){k[e].push(t[e])}))})),y=Object.keys(k).map((function(t,e){var i="value"===v?m(k[t],_):k[t],n=c({name:null!=l[t]?l[t]:t,type:~p.indexOf(t)?"line":"bar",data:i},w,~x.indexOf(t)?"1":"0");a&&C[t]&&(n.stack=C[t]),f&&(n.label=f),u&&(n.itemStyle=u);var r=b||o.get(n,"itemStyle.normal.opacity");return"value"===v&&(n.barGap=g,n.barCategoryGap="1%",null==r&&(r=d)),null!=r&&o.set(n,"itemStyle.normal.opacity",r),n})),!!y.length&&y}function g(t){var e=t.metrics,i=t.labelMap,a=t.legendName;if(!a&&!i)return{data:e};var n=i?e.map((function(t){return null==i[t]?t:i[t]})):e;return{data:n,formatter:function(t){return null!=a[t]?a[t]:t}}}function b(t,e){return t.map((function(t){return t[e[0]]}))}var _=function(t,e,i,a){var n=o.cloneDeep(e),r=i.axisSite,s=void 0===r?{}:r,c=i.dimension,l=void 0===c?[t[0]]:c,d=i.stack,f=void 0===d?{}:d,m=i.axisVisible,_=void 0===m||m,y=i.digit,k=void 0===y?2:y,x=i.dataOrder,w=void 0!==x&&x,C=i.scale,S=void 0===C?[!1,!1]:C,M=i.min,T=void 0===M?[null,null]:M,P=i.max,I=void 0===P?[null,null]:P,O=i.labelMap,E=void 0===O?{}:O,j=i.legendName,D=void 0===j?{}:j,A=i.label,N=i.itemStyle,L=i.showLine,$=i.barGap,V=void 0===$?"-100%":$,R=i.opacity;if(w){var z=w.label,F=w.order;z&&F?n.sort((function(t,e){return"desc"===F?t[z]-e[z]:e[z]-t[z]})):console.warn("Need to provide name and order parameters")}var U=a.tooltipVisible,B=a.legendVisible,H=t.slice();s.left&&s.right?H=s.left.concat(s.right):s.left&&!s.right?H=s.left:i.metrics?H=i.metrics:H.splice(t.indexOf(l[0]),1);var W=i.yAxisType||["normal","normal"],Y=i.xAxisType||"category",q=i.yAxisName||[],G=i.xAxisName||"",K=!0,X=b(n,l),J=B&&g({metrics:H,labelMap:E,legendName:D}),Z=u({innerRows:n,dimAxisName:G,dimension:l,axisVisible:_,dimAxisType:Y,dims:X}),Q=h({meaAxisName:q,meaAxisType:W,axisVisible:_,digit:k,scale:S,min:T,max:I}),tt=v({innerRows:n,metrics:H,stack:f,axisSite:s,isHistogram:K,labelMap:E,itemStyle:N,label:A,showLine:L,dimAxisType:Y,dimension:l,barGap:V,opacity:R,dims:X}),et={axisSite:s,isHistogram:K,meaAxisType:W,digit:k,labelMap:E},it=U&&p(et),at={legend:J,yAxis:Q,series:tt,xAxis:Z,tooltip:it};return at},y=l({},s,{name:"VeHistogram",data:function(){return this.chartHandler=_,{}}});t.exports=y},d789:function(t,e,i){"use strict";i("2f98")},d812:function(t,e,i){"use strict";function a(t){return r.ddSdk.invokeAPI(o,t)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getRealmCid$=void 0;var r=i("c6b3"),o="biz.chat.getRealmCid";r.ddSdk.setAPI(o,(n={},n[r.ENV_ENUM.ios]={vs:"4.7.12"},n[r.ENV_ENUM.android]={vs:"4.7.12"},n[r.ENV_ENUM.pc]={vs:"4.7.12"},n)),e.getRealmCid$=a,e.default=a},d816:function(t,e,i){"use strict";function a(t){return r.ddSdk.invokeAPI(o,t)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.checkPassword$=void 0;var r=i("c6b3"),o="biz.user.checkPassword";r.ddSdk.setAPI(o,(n={},n[r.ENV_ENUM.ios]={vs:"4.5.8"},n[r.ENV_ENUM.android]={vs:"4.5.8"},n)),e.checkPassword$=a,e.default=a},d833:function(t,e,i){var a=i("20c8"),n=i("9680"),r=i("e7d2"),o=i("68ab"),s=i("9f51"),c=i("857d"),l=c.normalizeRadian,d=i("4a3f"),u=i("8728"),f=a.CMD,h=2*Math.PI,p=1e-4;function m(t,e){return Math.abs(t-e)e&&l>a&&l>r&&l>s||l1&&b(),f=d.cubicAt(e,a,r,s,g[0]),m>1&&(h=d.cubicAt(e,a,r,s,g[1]))),2===m?ye&&s>a&&s>r||s=0&&l<=1){for(var u=0,f=d.quadraticAt(e,a,r,l),h=0;hi||s<-i)return 0;var c=Math.sqrt(i*i-s*s);v[0]=-c,v[1]=c;var d=Math.abs(a-n);if(d<1e-4)return 0;if(d%h<1e-4){a=0,n=h;var u=r?1:-1;return o>=v[0]+t&&o<=v[1]+t?u:0}if(r){c=a;a=l(n),n=l(c)}else a=l(a),n=l(n);a>n&&(n+=h);for(var f=0,p=0;p<2;p++){var m=v[p];if(m+t>o){var g=Math.atan2(s,m);u=r?1:-1;g<0&&(g=h+g),(g>=a&&g<=n||g+h>=a&&g+h<=n)&&(g>Math.PI/2&&g<1.5*Math.PI&&(u=-u),f+=u)}}return f}function x(t,e,i,a,c){for(var l=0,d=0,h=0,p=0,v=0,g=0;g1&&(i||(l+=u(d,h,p,v,a,c))),1===g&&(d=t[g],h=t[g+1],p=d,v=h),b){case f.M:p=t[g++],v=t[g++],d=p,h=v;break;case f.L:if(i){if(n.containStroke(d,h,t[g],t[g+1],e,a,c))return!0}else l+=u(d,h,t[g],t[g+1],a,c)||0;d=t[g++],h=t[g++];break;case f.C:if(i){if(r.containStroke(d,h,t[g++],t[g++],t[g++],t[g++],t[g],t[g+1],e,a,c))return!0}else l+=_(d,h,t[g++],t[g++],t[g++],t[g++],t[g],t[g+1],a,c)||0;d=t[g++],h=t[g++];break;case f.Q:if(i){if(o.containStroke(d,h,t[g++],t[g++],t[g],t[g+1],e,a,c))return!0}else l+=y(d,h,t[g++],t[g++],t[g],t[g+1],a,c)||0;d=t[g++],h=t[g++];break;case f.A:var x=t[g++],w=t[g++],C=t[g++],S=t[g++],M=t[g++],T=t[g++];g+=1;var P=1-t[g++],I=Math.cos(M)*C+x,O=Math.sin(M)*S+w;g>1?l+=u(d,h,I,O,a,c):(p=I,v=O);var E=(a-x)*S/C+x;if(i){if(s.containStroke(x,w,S,M,M+T,P,e,E,c))return!0}else l+=k(x,w,S,M,M+T,P,E,c);d=Math.cos(M+T)*C+x,h=Math.sin(M+T)*S+w;break;case f.R:p=d=t[g++],v=h=t[g++];var j=t[g++],D=t[g++];I=p+j,O=v+D;if(i){if(n.containStroke(p,v,I,v,e,a,c)||n.containStroke(I,v,I,O,e,a,c)||n.containStroke(I,O,p,O,e,a,c)||n.containStroke(p,O,p,v,e,a,c))return!0}else l+=u(I,v,I,O,a,c),l+=u(p,O,p,v,a,c);break;case f.Z:if(i){if(n.containStroke(d,h,p,v,e,a,c))return!0}else l+=u(d,h,p,v,a,c);d=p,h=v;break}}return i||m(h,v)||(l+=u(d,h,p,v,a,c)||0),0!==l}function w(t,e,i){return x(t,0,!1,e,i)}function C(t,e,i,a){return x(t,e,!0,i,a)}e.contain=w,e.containStroke=C},d96ec:function(t,e,i){"use strict";i.r(e);i("7f7f");var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"project-space-task",class:"".concat(t.project.task_board_theme," ").concat(t.viewType)},[e("div",{staticClass:"project-navigation"},[e("div",{staticClass:"project-nav-header"},[e("a-breadcrumb",[e("a-breadcrumb-item",[e("a",{on:{click:t.toHome}},[e("a-icon",{attrs:{type:"home"}}),t._v(" 首页 ")],1)]),e("a-breadcrumb-item",[e("project-select",{staticClass:"nav-title",staticStyle:{display:"inline-block"},attrs:{code:t.code}}),e("span",{staticClass:"actions"},[e("a-tooltip",{attrs:{mouseEnterDelay:.3,title:t.project.collected?"取消收藏":"加入收藏"},on:{click:t.collectProject}},[e("a-icon",{directives:[{name:"show",rawName:"v-show",value:!t.project.collected,expression:"!project.collected"}],staticStyle:{color:"grey"},attrs:{type:"star",theme:"filled"}}),e("a-icon",{directives:[{name:"show",rawName:"v-show",value:t.project.collected,expression:"project.collected"}],staticStyle:{color:"#ffaf38"},attrs:{type:"star",theme:"filled"}})],1)],1),0===t.project.private?e("span",{staticClass:"label label-normal"},[e("a-icon",{attrs:{type:"global"}}),t._v(" 公开")],1):t._e()],1)],1)],1),e("section",{staticClass:"nav-body"},[e("ul",{staticClass:"nav-wrapper nav nav-underscore pull-left"},[t._m(0),e("li",{},[e("a",{staticClass:"app",attrs:{"data-app":"works"},on:{click:function(e){return t.$router.push("/project/space/files/"+t.code)}}},[t._v("\n 文件")])]),e("li",{},[e("a",{staticClass:"app",attrs:{"data-app":"build"},on:{click:function(e){return t.$router.push("/project/space/overview/"+t.code)}}},[t._v("\n 概览")])]),e("li",[e("a",{staticClass:"app",attrs:{"data-app":"build"},on:{click:function(e){return t.$router.push("/project/space/copy/"+t.code)}}},[t._v("\n 抄送")])])])]),e("div",{staticClass:"project-nav-footer"},[4!=t.userInfo.authorize?e("a",{staticClass:"footer-item",on:{click:function(e){return e.stopPropagation(),t.addTask()}}},[e("a-icon",{attrs:{type:"plus-circle"}}),e("span",[t._v(" 创建任务")])],1):t._e(),e("a",{staticClass:"footer-item",on:{click:function(e){return t.visibleDraw("taskSearch")}}},[e("a-icon",{attrs:{type:"search"}}),e("span",[t._v(" 筛选")])],1),e("a",{staticClass:"footer-item",class:{active:"member"==t.slideMenuKey},on:{click:function(e){return t.visibleDraw("member")}}},[e("a-icon",{attrs:{type:"user"}}),e("span",[t._v(" "+t._s(t.projectMembers.length))])],1),e("a",{staticClass:"footer-item",class:{active:"config"==t.slideMenuKey},on:{click:function(e){return t.visibleDraw("config")}}},[e("a-icon",{attrs:{type:"menu"}}),e("span",[t._v(" 菜单")])],1)])]),e("wrapper-content",{attrs:{showHeader:!1}},[e("div",{directives:[{name:"show",rawName:"v-show",value:"task-board"==t.viewType,expression:"viewType == 'task-board'"}],staticClass:"board-scrum-stages",attrs:{e:"",options:{group:"stages",filter:".undraggables",handle:".ui-sortable-handle",ghostClass:"stage-ghost",animation:200,forceFallback:!1},id:"board-scrum-stages"},on:{end:t.stageSort}},[t._l(t.taskStages,(function(i,a){return e("div",{key:a,staticClass:"scrum-stage",class:{"fixed-creator":1==i.fixedCreator},staticStyle:{width:"32vw","min-width":"400px"},attrs:{id:i.code}},[e("header",{directives:[{name:"show",rawName:"v-show",value:!i.tasksLoading,expression:"!stage.tasksLoading"}],staticClass:"scrum-stage-header ui-sortable-handle"},[e("div",{staticClass:"stage-name hinted"},[t._v("\n "+t._s(i.name)+"\n "),i.tasks.length>0?e("span",{staticClass:"task-count"},[t._v("\n · "+t._s(i.tasks.length))]):t._e()]),e("div",{staticClass:"stage-menu-toggler popover"},[e("a-dropdown",{attrs:{trigger:["click"],placement:"bottomCenter"}},[e("a-tooltip",{attrs:{placement:"top"}},[e("template",{slot:"title"},[e("span",[t._v("编辑任务列表")])]),e("a",{staticClass:"menu-toggler-title",attrs:{href:"javascript:void(0)"}},[e("a-icon",{staticStyle:{"font-size":"18px"},attrs:{type:"ellipsis"}})],1)],2),e("a-menu",{attrs:{slot:"overlay",selectable:!1},on:{click:t.doStage},slot:"overlay"},[e("a-menu-item",{key:"setExecutor_"+i.code+"_"+a},[e("a-icon",{attrs:{size:"14",type:"user"}}),t._v("\n 设置本列所有任务执行者\n ")],1),e("a-menu-item",{key:"recycleBatch_"+i.code+"_"+a},[e("a-icon",{attrs:{size:"14",type:"delete"}}),t._v("\n 本列所有任务移到回收站\n ")],1)],1)],1)],1)]),e("div",{staticClass:"scrum-stage-wrap ui-sortable",class:{"hidden-creator-bottom":i.showTaskCard}},[e("vue-scroll",{ref:a+"-stage",refInFor:!0,attrs:{ops:t.scrollOps}},[e("section",{staticClass:"scrum-stage-content thin-scroll",attrs:{id:i.code,"task-type-index":a}},[e("a-spin",{attrs:{wrapperClassName:"tasks-loading",spinning:i.tasksLoading}},[e("div",{staticClass:"scrum-stage-tasks",attrs:{options:{group:"task",ghostClass:"task-ghost",dragClass:"task-drag",fallbackClass:"task-drag",forceFallback:!1}},on:{end:t.taskSort}},[t._l(i.unDoneTasks,(function(i,n){return[!i.done&&i.canRead?e("div",{key:i.code,staticClass:"task task-card ui-sortable-handle",class:t.showTaskPri(i.pri),attrs:{index:n,id:i.code},on:{click:function(e){return e.stopPropagation(),t.taskDetail(i.code,a)}}},[e("div",{staticClass:"task-priority bg-priority-0"}),e("a-tooltip",{attrs:{placement:a>0?"top":"right"}},[e("template",{slot:"title"},[i.hasUnDone?e("span",{staticStyle:{"font-size":"12px"}},[t._v("子任务尚未全部完成,无法完成父任务")]):t._e()]),e("div",{staticClass:"check-box-wrapper"})],2),e("div",{staticClass:"task-content-set open-detail"},[e("div",{staticClass:"task-content-wrapper"},[e("div",{staticClass:"task-content",style:{overflowWrap:"anywhere"}},[t._v("\n "+t._s(i.name)+"\n ")]),i.executor&&i.executor.avatar?e("a-tooltip",{attrs:{placement:"top"}},[e("template",{slot:"title"},[e("span",[t._v(t._s(i.executor.name))])]),e("img",{staticClass:"avatar img-circle img-24 hinted",attrs:{src:i.executor.avatar,title:i.executor.name}})],2):t._e()],1),e("div",{staticClass:"task-info-wrapper clearfix"},[e("div",{staticClass:"task-infos"},[i.status?e("span",{staticClass:"icon-wrapper",style:{color:t.getStatusColor(i.status),fontSize:"12px"}},[t._v(t._s(i.statusText))]):t._e(),i.end_time?e("span",{staticClass:"label",class:t.showTimeLabel(i.end_time)},[e("span",{attrs:{title:i.end_time}},[t._v("\n "+t._s(t.showTaskTime(i.begin_time,i.end_time))+"\n ")])]):t._e(),i.description?e("span",{staticClass:"icon-wrapper muted"},[e("a-icon",{attrs:{type:"file-text"}})],1):t._e(),i.hasSource?e("span",{staticClass:"icon-wrapper muted"},[e("a-icon",{attrs:{type:"link"}})],1):t._e(),i.hasComment?e("span",{staticClass:"icon-wrapper muted"},[e("a-icon",{attrs:{type:"message"}})],1):t._e(),i.childCount[0]>0?e("span",{staticClass:"icon-wrapper muted"},[e("a-icon",{attrs:{type:"bars"}}),e("span",[t._v(t._s(i.childCount[1])+"/"+t._s(i.childCount[0]))])],1):t._e(),t._l(i.tags,(function(i){return e("span",{key:i.code,staticClass:"tag muted"},[e("a-badge",{class:"badge-".concat(i.tag.color),attrs:{status:"success"}}),t._v("\n "+t._s(i.tag.name)+"\n ")],1)})),i.execute_state>0?e("span",{class:"icon-wrapper text text-"+i.task_execute.color},[t._v(t._s(i.task_execute_name))]):t._e(),i.like?e("span",{staticClass:"icon-wrapper muted"},[e("a-icon",{attrs:{type:"like"}}),e("span",[t._v(t._s(i.like))])],1):t._e()],2)]),t.project.prefix&&t.project.open_prefix?e("footer",{staticClass:"task-info-footer"},[e("span",{staticClass:"task-id-number"},[t._v("\n "+t._s(t.project.prefix)+"-"+t._s(i.id_num)+"\n ")])]):t._e()])],1):t._e()]}))],2),e("div",{directives:[{name:"show",rawName:"v-show",value:i.showTaskCard,expression:"stage.showTaskCard"}],staticClass:"task-creator-wrap card",attrs:{id:"card"+a}},[e("form",{staticClass:"task-creator"},[e("a-input",{ref:"inputTaskName".concat(a),refInFor:!0,staticClass:"task-content-input",attrs:{type:"textarea",rows:3,placeholder:"任务内容"},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.createTask(i.code,a)}},model:{value:t.task.name,callback:function(e){t.$set(t.task,"name",e)},expression:"task.name"}}),e("div",{staticClass:"handler-wrap"},[e("a-dropdown",{attrs:{trigger:["click"]}},[e("a",{staticClass:"executor-handler"},[e("img",{staticClass:"avatar img-circle img-24 hinted",attrs:{src:t.defaultExecutor.avatar}}),e("span",{staticClass:"creator-handler-text name"},[t._v(t._s(t.defaultExecutor.name))])]),e("a-menu",{staticClass:"executor-handler-menu",attrs:{slot:"overlay"},on:{click:t.selectExecutor},slot:"overlay"},t._l(t.projectMembers,(function(i,a){return e("a-menu-item",{key:a},[e("img",{staticClass:"avatar img-circle img-32 pull-left m-r-sm",attrs:{src:i.avatar}}),e("span",{staticClass:"muted",staticStyle:{"line-height":"25px"}},[t._v(t._s(i.name))]),i.code==t.defaultExecutor.code?e("a-icon",{staticClass:"muted",attrs:{type:"check"}}):t._e()],1)})),1)],1)],1),e("div",{staticClass:"submit-set"},[e("a-button",{staticClass:"middle-btn",attrs:{type:"default",size:"large"},on:{click:function(e){return e.stopPropagation(),t.showTaskCard(a,!1)}}},[t._v("取消\n ")]),e("a-button",{staticClass:"middle-btn",class:{"disabled-btn":!t.task.name},attrs:{loading:t.createTaskLoading,disabled:!t.task.name,type:"primary",size:"large"},on:{click:function(e){return e.stopPropagation(),t.createTask(i.code,a)}}},[t._v("创建\n ")])],1)],1)]),e("div",{staticClass:"scrum-stage-tasks-done",attrs:{options:{group:"task-done",ghostClass:"task-ghost",dragClass:"task-drag",fallbackClass:"task-drag",forceFallback:!1}},on:{end:t.taskSort}},[t._l(i.doneTasks,(function(i,n){return[i.canRead?e("div",{key:i.code,staticClass:"task done task-card ui-sortable-handle",attrs:{index:n,id:i.code},on:{click:function(e){return e.stopPropagation(),t.taskDetail(i.code,a)}}},[e("div",{staticClass:"task-priority bg-priority-0"}),e("span",{staticClass:"check-box-wrapper"}),e("div",{staticClass:"task-content-set open-detail"},[e("div",{staticClass:"task-content-wrapper"},[e("div",{staticClass:"task-content",style:{overflowWrap:"anywhere"}},[t._v("\n "+t._s(i.name)+"\n ")]),i.executor&&i.executor.avatar?e("a-tooltip",{attrs:{placement:"top"}},[e("template",{slot:"title"},[e("span",[t._v(t._s(i.executor.name))])]),i.executor&&i.executor.avatar?e("img",{staticClass:"avatar img-circle img-24 hinted",attrs:{src:i.executor.avatar,title:i.executor.name}}):t._e()],2):t._e()],1),e("div",{staticClass:"task-info-wrapper clearfix"},[e("div",{staticClass:"task-infos"},t._l(i.task_tag_item_list,(function(i,a){return e("span",{key:i.code,staticClass:"tag muted",class:"tag-color-"+i.color},[t._v("\n "+t._s(i.name)+"\n ")])})),0)])])]):t._e()]}))],2),e("div",{directives:[{name:"show",rawName:"v-show",value:i.canNotReadCount,expression:"stage.canNotReadCount"}],staticClass:"scrum-stage-tasks-done"},[e("li",{staticClass:"task muted",staticStyle:{margin:"0 10px 8px"}},[e("span",[e("a-icon",{attrs:{type:"lock"}}),t._v(" 有\n "+t._s(i.canNotReadCount)+"\n 个任务被隐藏(因为设置了仅参与者可见)")],1)])]),(i.showTaskCard,t._e())])],1)])],1)])})),t._e()],2),"task-table"!=t.viewType||t.loading?t._e():e("task-table",{attrs:{"project-code":this.code}}),e("router-view")],1),e("a-modal",{attrs:{width:360,title:t.stageModal.modalTitle,bodyStyle:{paddingBottom:"1px"},footer:null},model:{value:t.stageModal.modalStatus,callback:function(e){t.$set(t.stageModal,"modalStatus",e)},expression:"stageModal.modalStatus"}},[e("a-form",{attrs:{form:t.stageModal.form},on:{submit:function(e){return e.preventDefault(),t.editStage.apply(null,arguments)}}},[e("a-form-item",[e("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{rules:[{required:!0,message:"请输入列表标题"}]}],expression:"[\n 'name',\n { rules: [{ required: true, message: '请输入列表标题' }] },\n ]"}],ref:"inputStageTitle",attrs:{placeholder:"列表标题"}})],1),e("a-form-item",[e("div",{staticClass:"action-btn pull-right"},[e("a",{staticClass:"cancel-text muted",attrs:{type:"text"},on:{click:function(e){t.stageModal.modalStatus=!1}}},[t._v("\n 取消\n ")]),e("a-button",{staticClass:"middle-btn",attrs:{type:"primary",htmlType:"submit"}},[t._v("保存")])],1)])],1)],1),e("a-drawer",{attrs:{wrapClassName:"info-drawer",title:"项目成员",width:"350",placement:"right",visible:t.inviteMemberDraw.visible},on:{close:function(e){t.inviteMemberDraw.visible=!1}}},[e("div",{staticClass:"search-content"},[e("a-input",{attrs:{size:"large",placeholder:"输入昵称或邮箱查找"},model:{value:t.inviteMemberDraw.keyword,callback:function(e){t.$set(t.inviteMemberDraw,"keyword",e)},expression:"inviteMemberDraw.keyword"}},[e("a-icon",{attrs:{slot:"prefix",type:"search"},slot:"prefix"})],1)],1),e("div",{staticClass:"member-list"},[e("div",{staticClass:"member-list-item ant-list-item header-action"},[e("div",{staticClass:"ant-list-item-meta",on:{click:function(e){t.showInviteMember=!0}}},[e("div",{staticClass:"ant-list-item-meta-avatar"},[e("a-avatar",{attrs:{icon:"plus"}})],1),e("div",{staticClass:"ant-list-item-meta-content"},[e("h4",{staticClass:"ant-list-item-meta-title"},[e("span",[t._v("邀请新成员")])])])])]),e("a-list",{attrs:{itemLayout:"horizontal",loading:t.inviteMemberDraw.searching,dataSource:t.projectMembers,locale:{emptyText:t.inviteMemberDraw.keyword&&t.inviteMemberDraw.keyword.length>1?"没有搜索到相关成员":""}},scopedSlots:t._u([{key:"renderItem",fn:function(i,a){return e("a-list-item",{staticClass:"member-list-item"},[i.is_owner?t._e():e("span",{attrs:{slot:"actions"},slot:"actions"},[e("a",{staticClass:"muted",on:{click:function(e){return t.removeMember(i,a)}}},[e("a-icon",{attrs:{type:"user-delete"}}),t._v(" 移除")],1)]),e("a-list-item-meta",{attrs:{description:i.email}},[e("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(i.name))]),e("a-avatar",{attrs:{slot:"avatar",icon:"user",src:i.avatar},slot:"avatar"})],1)],1)}}])})],1)]),e("a-drawer",{attrs:{wrapClassName:"info-drawer",title:"项目设置",width:"350",placement:"right",visible:t.configDraw.visible},on:{close:function(e){t.configDraw.visible=!1}}},[e("div",{staticClass:"config-wrapper"},[e("ul",{staticClass:"config-menus"},[e("li",{staticClass:"menu-item"},[e("a",{on:{click:function(e){t.projectModal.modalStatus=!0}}},[e("a-icon",{attrs:{type:"setting"}}),t._v("\n 项目设置\n ")],1)]),e("li",{staticClass:"menu-item"},[e("a",{on:{click:function(e){t.recycleModal.modalStatus=!0}}},[e("a-icon",{attrs:{type:"delete"}}),t._v("\n 查看回收站\n ")],1)]),e("li",{staticClass:"menu-item"},[e("a",[e("a-icon",{attrs:{type:"logout"}}),t._v("\n 导出任务 *\n ")],1)]),e("li",{staticClass:"menu-item"},[e("a",[e("a-icon",{attrs:{type:"copy"}}),t._v("\n 复制项目 *\n ")],1)]),e("li",{staticClass:"menu-item"},[e("a",[e("a-icon",{attrs:{type:"block"}}),t._v("\n 保存为项目模板 *\n ")],1)])])])]),e("a-modal",{staticClass:"project-config-modal",attrs:{destroyOnClose:"",width:800,title:t.projectModal.modalTitle,footer:null},model:{value:t.projectModal.modalStatus,callback:function(e){t.$set(t.projectModal,"modalStatus",e)},expression:"projectModal.modalStatus"}},[e("project-config",{attrs:{code:t.code},on:{update:t.updateProject,complete:function(e){t.projectModal.modalStatus=!1}}})],1),e("a-modal",{staticClass:"recycle-bin-modal",attrs:{width:800,title:t.recycleModal.modalTitle,footer:null},model:{value:t.recycleModal.modalStatus,callback:function(e){t.$set(t.recycleModal,"modalStatus",e)},expression:"recycleModal.modalStatus"}},[t.recycleModal.modalStatus?e("recycle-bin",{attrs:{code:t.code},on:{update:t.init}}):t._e()],1),e("a-modal",{staticClass:"task-tag-modal",attrs:{width:800,title:t.taskTagModal.modalTitle,footer:null},model:{value:t.taskTagModal.modalStatus,callback:function(e){t.$set(t.taskTagModal,"modalStatus",e)},expression:"taskTagModal.modalStatus"}},[t.taskTagModal.modalStatus?e("task-tag",{attrs:{code:t.code},on:{update:t.init}}):t._e()],1),e("a-modal",{staticClass:"invite-project-member",attrs:{width:360,title:t.projectMemberModal.modalTitle,footer:null},model:{value:t.projectMemberModal.modalStatus,callback:function(e){t.$set(t.projectMemberModal,"modalStatus",e)},expression:"projectMemberModal.modalStatus"}},[e("div",{staticClass:"member-list"},[e("a-list",{staticClass:"project-list",attrs:{itemLayout:"horizontal",loading:t.loading,dataSource:t.projectMembers},scopedSlots:t._u([{key:"renderItem",fn:function(i){return e("a-list-item",{},[e("span",{attrs:{slot:"actions"},slot:"actions"},[e("a-button",{attrs:{size:"small",type:"dashed",icon:"user-add"},on:{click:function(e){return t.setExecutor(i)}}},[t._v("设置")])],1),e("a-list-item-meta",{attrs:{description:i.email}},[e("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(i.name))]),e("a-avatar",{attrs:{slot:"avatar",icon:"user",src:i.avatar},slot:"avatar"})],1)],1)}}])})],1)]),e("a-drawer",{attrs:{wrapClassName:"info-drawer task-search",title:"任务筛选",width:"350",placement:"right",visible:t.taskSearch.visible},on:{close:function(e){t.taskSearch.visible=!1}}},[e("task-search",{attrs:{"project-code":t.code},on:{search:t.taskSearchAction}})],1),t.showInviteMember?e("invite-project-member",{attrs:{"project-code":t.code},model:{value:t.showInviteMember,callback:function(e){t.showInviteMember=e},expression:"showInviteMember"}}):t._e()],1)},n=[function(){var t=this,e=t._self._c;return e("li",{staticClass:"actives"},[e("a",{staticClass:"app",attrs:{"data-app":"tasks"}},[t._v("任务")])])}],r=(i("8e6e"),i("456d"),i("7514"),i("20d6"),i("28a5"),i("55dd"),i("ac6a"),i("ade3")),o=i("2f62"),s=i("2ef0"),c=i.n(s),l=i("c1df"),d=i.n(l),u=i("f93e"),f=i("b76a"),h=i.n(f),p=i("f8c7"),m=i("d3a1"),v=i("58bf"),g=i("51e2"),b=i("b83b"),_=i("e3cc"),y=i("1d80"),k=i("e507"),x=i("24d2"),w=i("9f5d"),C=i("b199"),S=i("2f14"),M=i("81fe"),T=i("4200"),P=i("97a8");function I(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function O(t){for(var e=1;e0&&void 0!==arguments[0])||arguments[0],i=this;Object(k["d"])({projectCode:this.code,pageSize:30}).then((function(a){var n=[];if(e?t.taskStages=n=a.data.list:a.data.list.forEach((function(t){t.tasksLoading=!1,n.push(t)})),n){i.taskSearchParams;n.forEach((function(t,a){t.page=1,i.getTasks(t,a,e)}))}}))},getTasks:function(t,e,i){var a=this,n=this.taskSearchParams,r={};r={stageCode:t.code},r=Object.assign(r,n),Object(k["h"])(r).then((function(n){var r=0;n.data.forEach((function(e){e.canRead||r++,e.done?t.doneTasks.push(e):t.unDoneTasks.push(e)})),t.canNotReadCount=r,t.tasksLoading=!1,t.tasks=n.data,i||a.$set(a.taskStages,e,t)}))},filterTask:function(t,e){return t.filter((function(t){return t.done==e}))},taskSearchAction:function(t){console.log(t),this.taskSearchParams=t,this.getTaskStages()},showTaskCard:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.taskStages.forEach((function(t){t.showTaskCard=!1})),!1===e)return!1;this.taskStages[e].showTaskCard=i,this.$nextTick((function(){t.$refs[e+"-stage"][0].scrollIntoView("#card"+e),t.$refs["inputTaskName".concat(e)][0].focus()}))},selectExecutor:function(t){var e=t.key;this.defaultExecutor=this.projectMembers[e]},addTask:function(){if(!this.taskStages[0].code)return Object(P["b"])({title:"请先创建任务列表"},"error",5e3);this.$router.push("".concat(this.$route.path,"/add/").concat(this.code,"?name=").concat(this.project.name,"&from=",0,"&stage_code=").concat(this.taskStages[0].code))},createTask:function(t,e){if(!this.task.name)return this.$message.warning("任务内容不能为空",2),!1;this.task.stage_code=t,this.task.project_code=this.code,this.task.assign_to=this.defaultExecutor.code,this.confirmCreateTask(e)},confirmCreateTask:function(t){var e=this,i=this;if(i.createTaskLoading)return i.$message.warning("正在添加任务,请稍后...",2),!1;setTimeout((function(){!0===i.createTaskLoading&&i.$message.loading({content:"正在添加任务,请稍后...",duration:5})}),2e3),i.createTaskLoading=!0,Object(C["s"])(i.task).then((function(a){i.createTaskLoading=!1;var n=Object(S["a"])(a);if(n){i.$message.destroy();var r=i.taskStages[t];r.tasks.push(a.data),i.taskStages[t].unDoneTasks.push(a.data),i.task={},e.taskDetail(a.data.code,t),console.log(O({},a.data))}})).catch((function(){i.createTaskLoading=!1}))},taskDone:function(t,e,i,a){var n=this,r=null,o=this.taskStages[e].unDoneTasks,s=this.taskStages[e].doneTasks;if(r=a?o[i]:s[i],r.hasUnDone)return!1;r.done=a,a?(o.splice(i,1),s.push(r),s=s.sort((function(t,e){return t.sort===e.sort?t.id_num-e.id_num:t.sort-e.sort}))):(s.splice(i,1),o.push(r),o=o.sort((function(t,e){return t.sort===e.sort?t.id_num-e.id_num:t.sort-e.sort}))),Object(C["z"])(t,a).then((function(t){var e=Object(S["a"])(t);if(!e)return!1;n.getTaskStages(!1)}))},showInputStrageName:function(){var t=this;this.showCreateStage=!this.showCreateStage,this.$nextTick((function(){t.$refs.inputStageName.focus()}))},doStage:function(t){var e=this,i=this,a=t.key.split("_"),n=a[a.length-2],r=a[a.length-1],o=a[0];switch(o){case"editStage":this.stageModal.stageCode=n,this.stageModal.stageIndex=r,this.$nextTick((function(){e.stageModal.form.setFieldsValue({name:e.taskStages[r].name}),e.$refs.inputStageTitle.focus()})),this.stageModal.modalStatus=!0;break;case"recycleBatch":this.$confirm({title:"移到回收站",content:"您确定要把列表下的所有任务移到回收站吗?",okText:"移到回收站",okType:"danger",cancelText:"再想想",onOk:function(){return i.taskStages[r].tasks=[],i.$set(i.taskStages[r],"doneTasks",[]),Object(C["r"])({stageCode:n}).then((function(t){var e=Object(S["a"])(t);if(!e)return!1;i.$set(i.taskStages[r],"doneTasks",[]),i.$set(i.taskStages[r],"unDoneTasks",[])})),Promise.resolve()}});break;case"setEndTime":this.set_type_endTime_modal=!0;break;case"setExecutor":this.projectMemberModal.currentStageIndex=r,this.projectMemberModal.modalStatus=!0;break;case"delStage":if(this.taskStages[r].tasks.length>0)return this.$warning({title:"删除列表",content:"请先清空此列表上的任务,然后再删除这个列表",okText:"确定"}),!1;this.$confirm({title:"删除列表",content:"您确定要永远删除这个列表吗?",okText:"删除",okType:"danger",cancelText:"再想想",onOk:function(){return Object(k["b"])(n),i.taskStages.splice(r,1),Promise.resolve()}});break}},creteStage:function(){var t=this;if(!this.stageName)return this.$message.warning("请输入列表名称",2),!1;Object(k["e"])({name:this.stageName,projectCode:this.code}).then((function(e){var i=Object(S["a"])(e);if(!i)return!1;var a=e.data;t.taskStages.push(a),t.stageName="",t.$nextTick((function(){document.getElementById("board-scrum-stages").scrollLeft=1e4}))}))},editStage:function(){var t=this,e=this.stageModal.form.getFieldsValue();if(!e.name)return this.$message.warning("请输入列表名称",2),!1;Object(k["c"])({name:e.name,stageCode:this.stageModal.stageCode}).then((function(i){var a=Object(S["a"])(i);if(!a)return!1;t.taskStages[t.stageModal.stageIndex].name=e.name,t.stageModal.modalStatus=!1}))},setExecutor:function(t){var e=this,i=this.taskStages[this.projectMemberModal.currentStageIndex],a=[];i.tasks.forEach((function(t){t.canRead&&a.push(t.code)})),a?Object(C["c"])({taskCodes:JSON.stringify(a),executorCode:t.code}).then((function(t){if(e.projectMemberModal.modalStatus=!1,!Object(S["a"])(t))return!1;Object(k["h"])({stageCode:i.code}).then((function(t){var e=0;t.data.forEach((function(t){t.canRead||e++})),i.canNotReadCount=e,i.tasksLoading=!1,i.tasks=t.data}))})):this.projectMemberModal.modalStatus=!1},showTaskPri:function(t){return{warning:1==t,error:2==t}},showTimeLabel:function(t){var e="label-primary";if(null==t)return e;var i=d()(d()(t).format("YYYY-MM-DD")).diff(d()().format("YYYY-MM-DD"),"days");return i<0?e="label-danger":0==i?e="label-warning":i>7&&(e="label-normal"),e},showTaskTime:function(t,e){return Object(M["a"])(t,e)},taskDetail:function(t,e){var i=this;this.$router.push("".concat(this.$route.path,"/detail/").concat(t,"?from=").concat(e)),this.$nextTick((function(){setTimeout((function(){i.showTaskCard(e,!1)}),700)}))},stageSort:function(t){var e=this.getPreAndNextCode(t);Object(k["f"])(e[0],e[1],this.code)},getPreAndNextCode:function(t){for(var e=t.clone.getAttribute("id"),i=[],a="",n=0,r=t.to.children.length;ns)return!0;if(r){var c=o.getAxisInfo(t).seriesDataCount,l=a.getExtent();return Math.abs(l[0]-l[1])/c>s}return!1}return!0===i},makeElOption:function(t,e,i,a,n){},createPointerEl:function(t,e,i,a){var n=e.pointer;if(n){var o=u(t).pointerEl=new r[n.type](f(e.pointer));t.add(o)}},createLabelEl:function(t,e,i,a){if(e.label){var n=u(t).labelEl=new r.Rect(f(e.label));t.add(n),g(n,a)}},updatePointerEl:function(t,e,i){var a=u(t).pointerEl;a&&e.pointer&&(a.setStyle(e.pointer.style),i(a,{shape:e.pointer.shape}))},updateLabelEl:function(t,e,i,a){var n=u(t).labelEl;n&&(n.setStyle(e.label.style),i(n,{shape:e.label.shape,position:e.label.position}),g(n,a))},_renderHandle:function(t){if(!this._dragging&&this.updateHandleTransform){var e,i=this._axisPointerModel,n=this._api.getZr(),o=this._handle,l=i.getModel("handle"),d=i.get("status");if(!l.get("show")||!d||"hide"===d)return o&&n.remove(o),void(this._handle=null);this._handle||(e=!0,o=this._handle=r.createIcon(l.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){s.stop(t.event)},onmousedown:h(this._onHandleDragMove,this,0,0),drift:h(this._onHandleDragMove,this),ondragend:h(this._onHandleDragEnd,this)}),n.add(o)),_(o,i,!1);var u=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];o.setStyle(l.getItemStyle(null,u));var f=l.get("size");a.isArray(f)||(f=[f,f]),o.attr("scale",[f[0]/2,f[1]/2]),c.createOrUpdate(this,"_doDispatchAxisPointer",l.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},_moveHandleToValue:function(t,e){m(this._axisPointerModel,!e&&this._moveAnimation,this._handle,b(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(t,e){var i=this._handle;if(i){this._dragging=!0;var a=this.updateHandleTransform(b(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=a,i.stopAnimation(),i.attr(b(a)),u(i).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){var t=this._handle;if(t){var e=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},_onHandleDragEnd:function(t){this._dragging=!1;var e=this._handle;if(e){var i=this._axisPointerModel.get("value");this._moveHandleToValue(i),this._api.dispatchAction({type:"hideTip"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),i=this._group,a=this._handle;e&&i&&(this._lastGraphicKey=null,i&&e.remove(i),a&&e.remove(a),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}}},p.prototype.constructor=p,n.enableClassExtend(p);var y=p;t.exports=y},dd18:function(t,e,i){},dd66:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.off=e.on=void 0;var a=["resume","pause","online","offline","backbutton","goBack","pullToRefresh","message","recycle","restore","drawer","tab","navHelpIcon","navRightButton","navMenu","navTitle","appLinkResponse","internalPageLinkResponse","networkEvent","hostTaskEvent","deviceOrientationChanged","autoCheckIn","deviceFound","hostCheckIn","screenshot","becomeActive","keepAlive","navTitleClick","sharePage","wxNotify","editNoteCommand","updateStyle","qrscanCommonNotify","__message__","dtChannelEvent","livePlayerEventPlay","livePlayerEventPause","livePlayerEventEnded","livePlayerEventError","navActions","attendEvents"],n="dtBizBridgeEvent",r="__eventTypeList__",o=function(){return"undefined"==typeof WeakMap?void 0:new WeakMap}(),s=function(t,e){if(o){var i=o.get(e);return void 0===i?(i=function(t){var a=t.detail;if(a.namespace&&a.eventName){var n="".concat(a.namespace,".").concat(a.eventName);i&&-1!==i[r].indexOf(n)&&e(a.data)}},i[r]=[t],o.set(e,i)):-1===i[r].indexOf(t)&&i[r].push(t),i}},c=function(t,e){if(o){var i=o.get(e);return i&&-1!==i[r].indexOf(t)&&i[r].splice(i[r].indexOf(t),1),i&&i[r].length<=1?i:void 0}},l=function(t,e){if(-1!==a.indexOf(t))document.addEventListener(t,e);else{var i=s(t,e);i?document.addEventListener(n,i):console.log("bind event : ".concat(t," need WeakMap support , current environment doesnot"))}};e.on=l;var d=function(t,e){if(-1!==a.indexOf(t))document.removeEventListener(t,e);else{var i=c(t,e);i&&document.removeEventListener(n,i)}};e.off=d},dd86:function(t,e,i){"use strict";function a(t,e){for(var i=t.length,a=0,n=!0;a40&&(l=Math.max(1,Math.floor(s/40)));for(var d=o[0],f=t.dataToCoord(d+1)-t.dataToCoord(d),h=Math.abs(f*Math.cos(a)),p=Math.abs(f*Math.sin(a)),m=0,v=0;d<=o[1];d+=l){var g=0,b=0,_=n.getBoundingRect(i(d),e.font,"center","top");g=1.3*_.width,b=1.3*_.height,m=Math.max(m,g,7),v=Math.max(v,b,7)}var y=m/h,k=v/p;isNaN(y)&&(y=1/0),isNaN(k)&&(k=1/0);var x=Math.max(0,Math.floor(Math.min(y,k))),C=u(t.model),S=t.getExtent(),M=C.lastAutoInterval,T=C.lastTickCount;return null!=M&&null!=T&&Math.abs(M-x)<=1&&Math.abs(T-s)<=1&&M>x&&C.axisExtend0===S[0]&&C.axisExtend1===S[1]?x=M:(C.lastTickCount=s,C.lastAutoInterval=x,C.axisExtend0=S[0],C.axisExtend1=S[1]),x}function w(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function C(t,e,i){var a=c(t),n=t.scale,r=n.getExtent(),o=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=r[0],f=n.count();0!==u&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=d(t),p=o.get("showMinLabel")||h,m=o.get("showMaxLabel")||h;p&&u!==r[0]&&g(r[0]);for(var v=u;v<=r[1];v+=l)g(v);function g(t){s.push(i?t:{formattedLabel:a(t),rawLabel:n.getLabel(t),tickValue:t})}return m&&v-l!==r[1]&&g(r[1]),s}function S(t,e,i){var n=t.scale,r=c(t),o=[];return a.each(n.getTicks(),(function(t){var a=n.getLabel(t);e(t,a)&&o.push(i?t:{formattedLabel:r(t),rawLabel:a,tickValue:t})})),o}e.createAxisLabels=f,e.createAxisTicks=h,e.calculateCategoryInterval=x},e0d3:function(t,e,i){var a=i("6d8b"),n=i("22d1"),r=a.each,o=a.isObject,s=a.isArray,c="series\0";function l(t){return t instanceof Array?t:null==t?[]:[t]}function d(t,e,i){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var a=0,n=i.length;a=i.length&&i.push({option:t})}})),i}function m(t){var e=a.createHashMap();r(t,(function(t,i){var a=t.exist;a&&e.set(a.id,t)})),r(t,(function(t,i){var n=t.option;a.assert(!n||null==n.id||!e.get(n.id)||e.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&e.set(n.id,t),!t.keyInfo&&(t.keyInfo={})})),r(t,(function(t,i){var a=t.exist,n=t.option,r=t.keyInfo;if(o(n)){if(r.name=null!=n.name?n.name+"":a?a.name:c+i,a)r.id=a.id;else if(null!=n.id)r.id=n.id+"";else{var s=0;do{r.id="\0"+r.name+"\0"+s++}while(e.get(r.id))}e.set(r.id,t)}}))}function v(t){var e=t.name;return!(!e||!e.indexOf(c))}function g(t){return o(t)&&t.id&&0===(t.id+"").indexOf("\0_ec_\0")}function b(t,e){var i={},a={};return n(t||[],i),n(e||[],a,i),[r(i),r(a)];function n(t,e,i){for(var a=0,n=t.length;a=e[0]&&t<=e[1]},n.prototype.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},n.prototype.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},n.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1])},n.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},n.prototype.isBlank=function(){return this._isBlank},n.prototype.setBlank=function(t){this._isBlank=t},n.prototype.getLabel=null,a.enableClassExtend(n),a.enableClassManagement(n,{registerWhenExtend:!0});var r=n;t.exports=r},e13c:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"project-space-index"},[e("wrapper-content",[t._v("\n 555\n ")])],1)},n=[],r={name:"project-space-index"},o=r,s=i("2877"),c=Object(s["a"])(o,a,n,!1,null,"71e5b5da",null);e["default"]=c.exports},e198:function(t,e,i){"use strict";function a(t){return r.ddSdk.invokeAPI(o,t)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.videoConfCall$=void 0;var r=i("c6b3"),o="biz.conference.videoConfCall";r.ddSdk.setAPI(o,(n={},n[r.ENV_ENUM.ios]={vs:"5.0.8"},n[r.ENV_ENUM.android]={vs:"5.0.8"},n[r.ENV_ENUM.pc]={vs:"5.1.28"},n)),e.videoConfCall$=a,e.default=a},e1b8:function(t,e,i){"use strict";i.d(e,"b",(function(){return r})),i.d(e,"a",(function(){return o}));var a=i("22b6"),n=i("2f14");function r(){return Object(n["g"])("index/oauth/dingTalkOauth")}function o(t){return a["a"].post("index/oauth/dingTalkLoginByCode",t)}},e1b9:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i("c6b3"),n=i("8c4c"),r=i("4e83"),o=i("eee2"),s=i("9670"),c=i("d6bb");a.ddSdk.setPlatform({platform:n.ENV_ENUM.pc,bridgeInit:function(){switch((0,n.getENV)().appType){case s.APP_TYPE.MINI_APP:return Promise.resolve(o.default);default:return(0,r.h5PcBridgeInit)().then((function(){return r.default}))}},authMethod:"config",authParamsDeal:function(t){var e=Object.assign({},t);return e.url=window.location.href.split("#")[0],e},event:{on:function(t,e){if((0,n.getENV)().appType===s.APP_TYPE.WEB)return(0,c.on)(t,e)},off:function(t,e){if((0,n.getENV)().appType===s.APP_TYPE.WEB)return(0,c.off)(t,e)}}})},e1bd:function(t,e,i){"use strict";function a(t){return r.ddSdk.invokeAPI(o,t)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.requestAuthCode$=void 0;var r=i("c6b3"),o="runtime.permission.requestAuthCode",s=function(t){return Object.assign(t,{url:location.href.split("#")[0]})};r.ddSdk.setAPI(o,(n={},n[r.ENV_ENUM.pc]={vs:"3.0.0",paramsDeal:s},n[r.ENV_ENUM.ios]={vs:"2.4.0"},n[r.ENV_ENUM.android]={vs:"2.4.0"},n)),e.requestAuthCode$=a,e.default=a},e1fc:function(t,e,i){var a=i("6d8b"),n=i("d5b7"),r=i("9850"),o=function(t){for(var e in t=t||{},n.call(this,t),t)t.hasOwnProperty(e)&&(this[e]=t[e]);this._children=[],this.__storage=null,this.__dirty=!0};o.prototype={constructor:o,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},childOfName:function(t){for(var e=this._children,i=0;i=0&&(i.splice(a,0,t),this._doAdd(t))}return this},_doAdd:function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__storage,i=this.__zr;e&&e!==t.__storage&&(e.addToStorage(t),t instanceof o&&t.addChildrenToStorage(e)),i&&i.refresh()},remove:function(t){var e=this.__zr,i=this.__storage,n=this._children,r=a.indexOf(n,t);return r<0||(n.splice(r,1),t.parent=null,i&&(i.delFromStorage(t),t instanceof o&&t.delChildrenFromStorage(i)),e&&e.refresh()),this},removeAll:function(){var t,e,i=this._children,a=this.__storage;for(e=0;e1e-4)return p[0]=t-i,p[1]=e-n,m[0]=t+i,void(m[1]=e+n);if(d[0]=c(r)*i+t,d[1]=s(r)*n+e,u[0]=c(o)*i+t,u[1]=s(o)*n+e,v(p,d,u),g(m,d,u),r%=l,r<0&&(r+=l),o%=l,o<0&&(o+=l),r>o&&!h?o+=l:rr&&(f[0]=c(y)*i+t,f[1]=s(y)*n+e,v(p,f,p),g(m,f,m))}e.fromPoints=h,e.fromLine=p,e.fromCubic=g,e.fromQuadratic=b,e.fromArc=_},e406:function(t,e,i){"use strict";function a(t){return r.ddSdk.invokeAPI(s,t)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.choose$=void 0;var r=i("c6b3"),o=i("f162"),s="biz.contact.choose",c=(0,o.genDefaultParamsDealFn)({multiple:!0,startWithDepartmentId:0,users:[]});r.ddSdk.setAPI(s,(n={},n[r.ENV_ENUM.pc]={vs:"2.5.0"},n[r.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:c},n[r.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:c},n)),e.choose$=a,e.default=a},e47b:function(t,e,i){var a=i("e0d3"),n=a.makeInner,r=a.normalizeToArray,o=n();function s(t,e){for(var i=t.length,a=0;ae)return t[a];return t[i-1]}var c={clearColorPalette:function(){o(this).colorIdx=0,o(this).colorNameMap={}},getColorFromPalette:function(t,e,i){e=e||this;var a=o(e),n=a.colorIdx||0,c=a.colorNameMap=a.colorNameMap||{};if(c.hasOwnProperty(t))return c[t];var l=r(this.get("color",!0)),d=this.get("colorLayer",!0),u=null!=i&&d?s(d,i):l;if(u=u||l,u&&u.length){var f=u[n];return t&&(c[t]=f),a.colorIdx=(n+1)%u.length,f}}};t.exports=c},e49b:function(t,e,i){},e4e9:function(t,e,i){},e4ef:function(t,e,i){"use strict";function a(t){return r.ddSdk.invokeAPI(o,t)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.setScreenKeepOn$=void 0;var r=i("c6b3"),o="biz.util.setScreenKeepOn";r.ddSdk.setAPI(o,(n={},n[r.ENV_ENUM.ios]={vs:"5.1.26"},n[r.ENV_ENUM.android]={vs:"5.1.26"},n)),e.setScreenKeepOn$=a,e.default=a},e547:function(t,e,i){"use strict";i.r(e);i("7f7f");var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"analysis-index"},[e("div",{staticClass:"page-wrapper"},[e("a-row",{attrs:{gutter:24}},[e("a-col",{style:{marginBottom:"24px"},attrs:{sm:24,md:12,xl:6}},[e("chart-card",{attrs:{loading:t.loading,title:"项目总数",total:t._f("NumberFormat")(t.projectData.count)}},[e("a-tooltip",{attrs:{slot:"action",title:"指标说明"},slot:"action"},[e("a-icon",{attrs:{type:"info-circle-o"}})],1),e("div",{staticClass:"chart-wrapper"},[e("ve-histogram",{attrs:{data:t.projectData.chartData,settings:t.projectData.chartSettings,extend:t.chartExtend,"legend-visible":!1,height:"55px"}})],1),e("template",{slot:"footer"},[t._v("本月立项 "),e("span",[t._v("3")])])],2)],1),e("a-col",{style:{marginBottom:"24px"},attrs:{sm:24,md:12,xl:6}},[e("chart-card",{attrs:{loading:t.loading,title:"任务总数",total:t._f("NumberFormat")(t.taskData.count)}},[e("a-tooltip",{attrs:{slot:"action",title:"指标说明"},slot:"action"},[e("a-icon",{attrs:{type:"info-circle-o"}})],1),e("div",[e("div",{staticClass:"chart-wrapper"},[e("ve-line",{attrs:{data:t.taskData.chartData,settings:t.taskData.chartSettings,extend:t.chartExtend,"legend-visible":!1,height:"55px"}})],1)]),e("template",{slot:"footer"},[t._v("今日任务"),e("span",[t._v(" "+t._s(t._f("NumberFormat")("8")))])])],2)],1),e("a-col",{style:{marginBottom:"24px"},attrs:{sm:24,md:12,xl:6}},[e("chart-card",{attrs:{loading:t.loading,title:"逾期任务",total:t._f("NumberFormat")(t.taskData.taskOverdueCount)}},[e("a-tooltip",{attrs:{slot:"action",title:"指标说明"},slot:"action"},[e("a-icon",{attrs:{type:"info-circle-o"}})],1),e("div",[e("trend",{staticStyle:{"margin-right":"16px"},attrs:{flag:"up"}},[e("span",{attrs:{slot:"term"},slot:"term"},[t._v("周同比")]),t._v("\n 12%\n ")]),e("trend",{attrs:{flag:"down"}},[e("span",{attrs:{slot:"term"},slot:"term"},[t._v("日同比")]),t._v("\n 11%\n ")])],1),e("template",{slot:"footer"},[t._v("逾期率 "),e("span",[t._v(t._s(t.taskData.taskOverduePercent)+"%")])])],2)],1),e("a-col",{style:{marginBottom:"24px"},attrs:{sm:24,md:12,xl:6}},[e("chart-card",{attrs:{loading:t.loading,title:"整体进度",total:"".concat(t.projectData.projectSchedule,"%")}},[e("a-tooltip",{attrs:{slot:"action",title:"指标说明"},slot:"action"},[e("a-icon",{attrs:{type:"info-circle-o"}})],1),e("div",[e("mini-progress",{attrs:{color:"#ffd401",target:80,percentage:t.projectData.projectSchedule,height:"8px"}})],1),e("template",{slot:"footer"},[e("trend",{staticStyle:{"margin-right":"16px"},attrs:{flag:"down"}},[e("span",{attrs:{slot:"term"},slot:"term"},[t._v("周同比")]),t._v("\n 12%\n ")]),e("trend",{attrs:{flag:"up"}},[e("span",{attrs:{slot:"term"},slot:"term"},[t._v("日环比")]),t._v("\n 80%\n ")])],1)],2)],1)],1),e("a-card",{attrs:{loading:t.loading,bordered:!1,"body-style":{padding:"0"}}},[e("div",{staticClass:"salesCard"},[e("a-tabs",{attrs:{"default-active-key":"1",size:"large","tab-bar-style":{marginBottom:"24px",paddingLeft:"16px"}}},[e("div",{staticClass:"extra-wrapper",attrs:{slot:"tabBarExtraContent"},slot:"tabBarExtraContent"},[e("div",{staticClass:"extra-item"},[e("a",[t._v("今日")]),e("a",[t._v("本周")]),e("a",[t._v("本月")]),e("a",[t._v("本年")])]),e("a-range-picker",{style:{width:"256px"}})],1),e("a-tab-pane",{key:"1",attrs:{forceRender:"",tab:"项目数"}},[e("a-row",[e("a-col",{attrs:{xl:16,lg:12,md:12,sm:24,xs:24}},[e("div",{staticClass:"chart-wrappers-single"},[e("ve-histogram",{attrs:{data:t.projectTotalData.chartData,settings:t.projectTotalData.chartSettings,extend:t.projectTotalData.chartExtend,"legend-visible":!1,height:"300px"}})],1)]),e("a-col",{attrs:{xl:8,lg:12,md:12,sm:24,xs:24}},[e("rank-list",{attrs:{title:"项目数排行榜",list:t.rankList}})],1)],1)],1),e("a-tab-pane",{key:"2",attrs:{forceRender:"",tab:"任务数"}},[e("a-row",[e("a-col",{attrs:{xl:16,lg:12,md:12,sm:24,xs:24}},[e("div",{staticClass:"chart-wrappers-single"},[e("ve-histogram",{attrs:{data:t.projectTotalData.chartData,settings:t.projectTotalData.chartSettings,extend:t.projectTotalData.chartExtend,"legend-visible":!1,height:"300px"}})],1)]),e("a-col",{attrs:{xl:8,lg:12,md:12,sm:24,xs:24}},[e("rank-list",{attrs:{title:"任务数排行榜",list:t.rankList}})],1)],1)],1)],1)],1)]),e("a-row",{attrs:{gutter:12}},[e("a-col",{attrs:{xl:12,lg:24,md:24,sm:24,xs:24}},[e("a-card",{style:{marginTop:"24px"},attrs:{loading:t.loading,bordered:!1,title:"我的项目"}},[e("a-dropdown",{attrs:{slot:"extra",trigger:["click"],placement:"bottomLeft"},slot:"extra"},[e("a",{staticClass:"ant-dropdown-link",attrs:{href:"#"}},[e("a-icon",{attrs:{type:"ellipsis"}})],1),e("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[e("a-menu-item",[e("a",{attrs:{href:"javascript:;"}},[t._v("操作一")])]),e("a-menu-item",[e("a",{attrs:{href:"javascript:;"}},[t._v("操作二")])])],1)],1),t._l(t.projectList,(function(i){return e("p",{key:i.id},[t._v(t._s(i.name))])})),e("a-pagination",{attrs:{total:t.projectTotal,size:"small"},on:{change:t.pageChange},model:{value:t.pagination.page,callback:function(e){t.$set(t.pagination,"page",e)},expression:"pagination.page"}})],2)],1),e("a-col",{attrs:{xl:12,lg:24,md:24,sm:24,xs:24}},[e("a-card",{style:{marginTop:"24px"},attrs:{loading:t.loading,bordered:!1,title:"任务优先级分布"}},[e("a-dropdown",{attrs:{slot:"extra",trigger:["click"],placement:"bottomLeft"},slot:"extra"},[e("a",{staticClass:"ant-dropdown-link",attrs:{href:"#"}},[e("a-icon",{attrs:{type:"ellipsis"}})],1),e("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[e("a-menu-item",[e("a",{attrs:{href:"javascript:;"}},[t._v("操作一")])]),e("a-menu-item",[e("a",{attrs:{href:"javascript:;"}},[t._v("操作二")])])],1)],1),e("p",[t._v("card content")]),e("p",[t._v("card content")]),e("p",[t._v("card content")])],1)],1)],1)],1)])},n=[],r=(i("8e6e"),i("ac6a"),i("456d"),i("ade3")),o=i("2f62"),s=(i("c1df"),i("c3da")),c=i.n(s),l=i("d768"),d=i.n(l),u=function(){var t=this,e=t._self._c;return e("a-card",{attrs:{loading:t.loading,"body-style":{padding:"20px 24px 8px"},bordered:!1}},[e("div",{staticClass:"chart-card-header"},[e("div",{staticClass:"meta"},[e("span",{staticClass:"chart-card-title"},[t._v(t._s(t.title))]),e("span",{staticClass:"chart-card-action"},[t._t("action")],2)]),e("div",{staticClass:"total"},[e("span",[t._v(t._s(t.total))])])]),e("div",{staticClass:"chart-card-content"},[e("div",{staticClass:"content-fix"},[t._t("default")],2)]),e("div",{staticClass:"chart-card-footer"},[e("div",{staticClass:"field"},[t._t("footer")],2)])])},f=[],h={name:"ChartCard",props:{title:{type:String,default:""},total:{type:String,default:""},loading:{type:Boolean,default:!1}}},p=h,m=(i("1d16"),i("2877")),v=Object(m["a"])(p,u,f,!1,null,"dca3f5e0",null),g=v.exports,b=function(){var t=this,e=t._self._c;return e("div",{class:[t.prefixCls,t.reverseColor&&"reverse-color"]},[e("span",[t._t("term"),e("span",{staticClass:"item-text"},[t._t("default")],2)],2),e("span",{class:[t.flag]},[e("a-icon",{attrs:{type:"caret-".concat(t.flag)}})],1)])},_=[],y={name:"Trend",props:{prefixCls:{type:String,default:"ant-pro-trend"},flag:{type:String,required:!0},reverseColor:{type:Boolean,default:!1}}},k=y,x=(i("3a20"),Object(m["a"])(k,b,_,!1,null,"3c54eff5",null)),w=x.exports,C=w,S=function(){var t=this,e=t._self._c;return e("div",{staticClass:"chart-mini-progress"},[e("div",{staticClass:"target",style:{left:t.target+"%"}},[e("span",{style:{backgroundColor:t.color}}),e("span",{style:{backgroundColor:t.color}})]),e("div",{staticClass:"progress-wrapper"},[e("div",{staticClass:"progress",style:{backgroundColor:t.color,width:t.percentage+"%",height:t.height}})])])},M=[],T=(i("c5f6"),{name:"MiniProgress",props:{target:{type:Number,default:0},height:{type:String,default:"10px"},color:{type:String,default:"#ffd401"},percentage:{type:Number,default:0}}}),P=T,I=(i("73cf"),Object(m["a"])(P,S,M,!1,null,"3d7c3eae",null)),O=I.exports,E=function(){var t=this,e=t._self._c;return e("div",{staticClass:"rank"},[e("h4",{staticClass:"title"},[t._v(t._s(t.title))]),e("ul",{staticClass:"list"},t._l(t.list,(function(i,a){return e("li",{key:a},[e("span",{class:a<3?"active":null},[t._v(t._s(a+1))]),e("span",[t._v(t._s(i.name))]),e("span",[t._v(t._s(i.total))])])})),0)])},j=[],D={name:"RankList",props:{title:{type:String,default:""},list:{type:Array,default:null}}},A=D,N=(i("4d49"),Object(m["a"])(A,E,j,!1,null,"15e848dc",null)),L=N.exports,$=i("1b80"),V=i("24d2");function R(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function z(t){for(var e=1;e0&&void 0!==arguments[0])||arguments[0];Object(V["c"])({type:1}).then((function(e){t.projectData.count=e.data.projectCount,t.projectData.projectSchedule=e.data.projectSchedule,t.projectData.chartData.rows=e.data.projectList,t.projectTotalData.chartData.rows=e.data.projectList,t.taskData.count=e.data.taskCount,t.taskData.taskOverdueCount=e.data.taskOverdueCount,t.taskData.taskOverduePercent=e.data.taskOverduePercent,t.taskData.chartData.rows=e.data.taskList})),e&&(this.pagination.page=1,this.pagination.pageSize=10),this.getProjectList(!0)},getProjectList:function(t){var e=this;t&&(this.projectLoading=!0),Object(V["l"])(this.requestData).then((function(t){e.projectList=t.data.list,e.projectTotal=t.data.total,e.projectLoading=!1}))},pageChange:function(t,e){this.pagination.page=t,this.getProjectList(!0)}}},G=q,K=(i("ae29"),Object(m["a"])(G,a,n,!1,null,null,null));e["default"]=K.exports},e625:function(t,e,i){"use strict";function a(t){return r.ddSdk.invokeAPI(o,t)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.openBindIDCard$=void 0;var r=i("c6b3"),o="biz.verify.openBindIDCard";r.ddSdk.setAPI(o,(n={},n[r.ENV_ENUM.ios]={vs:"4.5.21"},n[r.ENV_ENUM.android]={vs:"4.5.21"},n)),e.openBindIDCard$=a,e.default=a},e6a6:function(t,e,i){"use strict";function a(t){return r.ddSdk.invokeAPI(o,t)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.punchModePicker$=void 0;var r=i("c6b3"),o="biz.ATMBle.punchModePicker";r.ddSdk.setAPI(o,(n={},n[r.ENV_ENUM.ios]={vs:"5.0.7"},n[r.ENV_ENUM.android]={vs:"5.0.7"},n)),e.punchModePicker$=a,e.default=a},e6d8:function(t,e,i){"use strict";function a(t){return r.ddSdk.invokeAPI(o,t)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.setGPUAcceleration$=void 0;var r=i("c6b3"),o="biz.util.setGPUAcceleration";r.ddSdk.setAPI(o,(n={},n[r.ENV_ENUM.pc]={vs:"6.0.22"},n)),e.setGPUAcceleration$=a,e.default=a},e7aa:function(t,e,i){var a=i("2306"),n=i("c775"),r=n.getDefaultLabel;function o(t,e,i,n,o,c,l){var d=i.getModel("label"),u=i.getModel("emphasis.label");a.setLabelStyle(t,e,d,u,{labelFetcher:o,labelDataIndex:c,defaultText:r(o.getData(),c),isRectText:!0,autoColor:n}),s(t),s(e)}function s(t,e){"outside"===t.textPosition&&(t.textPosition=e)}e.setLabel=o},e7d2:function(t,e,i){var a=i("4a3f");function n(t,e,i,n,r,o,s,c,l,d,u){if(0===l)return!1;var f=l;if(u>e+f&&u>n+f&&u>o+f&&u>c+f||ut+f&&d>i+f&&d>r+f&&d>s+f||dh&&(f=0,u={}),f++,u[i]=n,n}function _(t,e,i,a,n,r,o,s){return o?k(t,e,i,a,n,r,o,s):y(t,e,i,a,n,r,s)}function y(t,e,i,n,r,o,s){var c=j(t,e,r,o,s),l=b(t,e);r&&(l+=r[1]+r[3]);var d=c.outerHeight,u=x(0,l,i),f=w(0,d,n),h=new a(u,f,l,d);return h.lineHeight=c.lineHeight,h}function k(t,e,i,n,r,o,s,c){var l=D(t,{rich:s,truncate:c,font:e,textAlign:i,textPadding:r,textLineHeight:o}),d=l.outerWidth,u=l.outerHeight,f=x(0,d,i),h=w(0,u,n);return new a(f,h,d,u)}function x(t,e,i){return"right"===i?t-=e:"center"===i&&(t-=e/2),t}function w(t,e,i){return"middle"===i?t-=e/2:"bottom"===i&&(t-=e),t}function C(t,e,i){var a=e.textPosition,n=e.textDistance,r=i.x,o=i.y;n=n||0;var s=i.height,c=i.width,l=s/2,d="left",u="top";switch(a){case"left":r-=n,o+=l,d="right",u="middle";break;case"right":r+=n+c,o+=l,u="middle";break;case"top":r+=c/2,o-=n,d="center",u="bottom";break;case"bottom":r+=c/2,o+=s+n,d="center";break;case"inside":r+=c/2,o+=l,d="center",u="middle";break;case"insideLeft":r+=n,o+=l,u="middle";break;case"insideRight":r+=c-n,o+=l,d="right",u="middle";break;case"insideTop":r+=c/2,o+=n,d="center";break;case"insideBottom":r+=c/2,o+=s-n,d="center",u="bottom";break;case"insideTopLeft":r+=n,o+=n;break;case"insideTopRight":r+=c-n,o+=n,d="right";break;case"insideBottomLeft":r+=n,o+=s-n,u="bottom";break;case"insideBottomRight":r+=c-n,o+=s-n,d="right",u="bottom";break}return t=t||{},t.x=r,t.y=o,t.textAlign=d,t.textVerticalAlign=u,t}function S(t,e,i){var a={textPosition:t,textDistance:i};return C({},a,e)}function M(t,e,i,a,n){if(!e)return"";var r=(t+"").split("\n");n=T(e,i,a,n);for(var o=0,s=r.length;o=r;l++)o-=r;var d=b(i,e);return d>o&&(i="",d=0),o=t-d,a.ellipsis=i,a.ellipsisWidth=d,a.contentWidth=o,a.containerWidth=t,a}function P(t,e){var i=e.containerWidth,a=e.font,n=e.contentWidth;if(!i)return"";var r=b(t,a);if(r<=i)return t;for(var o=0;;o++){if(r<=n||o>=e.maxIterations){t+=e.ellipsis;break}var s=0===o?I(t,n,e.ascCharWidth,e.cnCharWidth):r>0?Math.floor(t.length*n/r):0;t=t.substr(0,s),r=b(t,a)}return""===t&&(t=e.placeholder),t}function I(t,e,i,a){for(var n=0,r=0,o=t.length;ru)t="",o=[];else if(null!=f)for(var h=T(f-(i?i[1]+i[3]:0),e,n.ellipsis,{minChar:n.minChar,placeholder:n.placeholder}),p=0,m=o.length;pr&&A(i,t.substring(r,o)),A(i,a[2],a[1]),r=p.lastIndex}rg)return{lines:[],width:0,height:0};C.textWidth=b(C.text,P);var E=S.textWidth,j=null==E||"auto"===E;if("string"===typeof E&&"%"===E.charAt(E.length-1))C.percentWidth=E,f.push(C),E=0;else{if(j){E=C.textWidth;var D=S.textBackgroundColor,N=D&&D.image;N&&(N=n.findExistImage(N),n.isImageReady(N)&&(E=Math.max(E,N.width*I/N.height)))}var L=T?T[1]+T[3]:0;E+=L;var $=null!=v?v-x:null;null!=$&&$"}},[e("a-breadcrumb-item",[e("router-link",{attrs:{to:"/"}},[e("a-icon",{attrs:{type:"home"}}),t._v("\n 首页\n ")],1)],1),e("a-breadcrumb-item",[e("router-link",{attrs:{to:"/members"}},[e("a-icon",{attrs:{type:"team"}}),t._v("\n 成员\n ")],1)],1),e("a-breadcrumb-item",[t._v(t._s(t.member.name))])],1),e("div",{staticClass:"header"},[e("div",{staticClass:"member-info"},[t.member?[e("div",{staticClass:"base"},[e("a-avatar",{staticClass:"m-r",attrs:{size:"large",icon:"user",src:t.member.avatar}}),e("div",{staticClass:"title"},[t._v("\n "+t._s(t.member.name)+"\n ")])],1),e("div",{staticClass:"mail muted"},[e("a-icon",{attrs:{type:"mail"}}),t._v("\n "+t._s(t.member.email)+"\n "),e("a-tooltip",[e("template",{slot:"title"},[e("span",[t._v("更新基础资料")])]),e("a",{staticClass:"muted m-l-sm",on:{click:t.syncDetail}},[e("a-icon",{attrs:{type:"reload"}})],1)],2)],1)]:t._e()],2)]),e("div",{staticClass:"actions"},[e("a-tabs",{attrs:{animated:!1,defaultActiveKey:"1"},on:{change:t.tabChange},model:{value:t.tabKey,callback:function(e){t.tabKey=e},expression:"tabKey"}},[e("a-tab-pane",{key:"1",staticClass:"info-content base-info",attrs:{tab:"详细资料"}},[e("p",{staticClass:"action-wrapper"},[e("span",{staticClass:"title"},[t._v("详细资料")]),e("a",{staticClass:"muted",on:{click:t.showEditBaseInfo}},[e("a-icon",{attrs:{type:"edit"}}),t._v("\n 编辑")],1)]),e("a-row",{staticClass:"content-wrapper"},[e("a-col",{attrs:{span:8}},[e("div",{staticClass:"info-item"},[e("span",{staticClass:"muted"},[t._v("姓名")]),e("span",[t._v(t._s(t.member.name))])])]),e("a-col",{attrs:{span:8}},[e("div",{staticClass:"info-item"},[e("span",{staticClass:"muted"},[t._v("手机")]),e("span",[t._v(t._s(t.member.mobile))])])]),e("a-col",{attrs:{span:8}},[e("div",{staticClass:"info-item"},[e("span",{staticClass:"muted"},[t._v("邮箱")]),e("span",[t._v(t._s(t.member.email))])])]),e("a-col",{attrs:{span:8}},[e("div",{staticClass:"info-item"},[e("span",{staticClass:"muted"},[t._v("职位")]),e("span",[t._v(t._s(t.member.position))])])]),e("a-col",{attrs:{span:8}},[e("div",{staticClass:"info-item"},[e("span",{staticClass:"muted"},[t._v("部门")]),e("span",[t._v(t._s(t.member.departments))])])]),e("a-col",{attrs:{span:8}},[e("div",{staticClass:"info-item"},[e("span",{staticClass:"muted"},[t._v("加入时间")]),e("span",[t._v(t._s(t.member.create_time))])])])],1)],1),e("a-tab-pane",{key:"3",staticClass:"info-content",attrs:{tab:"任务安排"}},[e("p",{staticClass:"action-wrapper"},[e("span",{staticClass:"title"},[t._v("\n 任务安排\n "),e("a-dropdown",{attrs:{trigger:["click"]}},[e("a",{staticClass:"muted m-l-sm",staticStyle:{"font-size":"14px"}},[0==t.task.type[0]?e("span",[t._v("未完成的任务 ")]):e("span",[t._v("全部 ")]),e("a-icon",{attrs:{type:"down"}})],1),e("a-menu",{staticClass:"field-right-menu",attrs:{slot:"overlay",selectable:""},on:{click:t.changeTaskType},slot:"overlay",model:{value:t.task.type,callback:function(e){t.$set(t.task,"type",e)},expression:"task.type"}},[e("a-menu-item",{key:"0"},[e("div",{staticClass:"menu-item-content"},[e("span",[t._v("未完成的任务")])])]),e("a-menu-item",{key:"-1"},[e("div",{staticClass:"menu-item-content"},[e("span",[t._v("全部")])])])],1)],1)],1)]),e("a-list",{staticClass:"content-wrapper list",attrs:{loading:t.task.loading}},t._l(t.task.list,(function(i,a){return e("a-list-item",{key:a},[e("a-list-item-meta",{on:{click:function(e){return t.showTaskDetail(i)}}},[e("div",{attrs:{slot:"title"},slot:"title"},[i.done?t._e():e("a-icon",{attrs:{type:"border"}}),i.done?e("a-icon",{attrs:{type:"check-square"}}):t._e(),e("span",{staticClass:"m-l-sm"},[t._v(t._s(i.name))]),e("span",{staticClass:"muted m-l tips"},[e("a-icon",{attrs:{type:"project"}}),e("router-link",{staticClass:"muted m-l-xs",attrs:{target:"_blank",to:"/project/space/task/"+i.projectInfo.code}},[t._v(t._s(i.projectInfo.name)+"\n ")])],1),i.end_time&&!i.done?e("span",{staticClass:"label m-r-xs pull-right",class:t.showTimeLabel(i.end_time)},[t._v(t._s(t.showTaskTime(i.begin_time,i.end_time)))]):t._e()],1),e("div",{attrs:{slot:"description"},slot:"description"})])],1)})),1)],1),e("a-tab-pane",{key:"4",staticClass:"info-content",attrs:{tab:"Ta的项目"}},[e("p",{staticClass:"action-wrapper"},[e("span",{staticClass:"title"},[t._v("Ta的项目")])]),e("a-list",{staticClass:"content-wrapper list default-list",attrs:{loading:t.project.loading}},t._l(t.project.list,(function(i,a){return e("a-list-item",{key:a},[e("a-list-item-meta",{on:{click:function(e){return t.routerLink("/project/space/task/".concat(i.code))}}},[e("a-avatar",{attrs:{slot:"avatar",icon:"user",src:i.cover},slot:"avatar"}),e("div",{attrs:{slot:"title"},slot:"title"},[e("span",{staticClass:"m-l-sm"},[t._v(t._s(i.name))]),e("a-tag",{directives:[{name:"show",rawName:"v-show",value:!i.private,expression:"!item.private"}],staticClass:"m-l",attrs:{color:"green"}},[t._v("公开")])],1),e("div",{attrs:{slot:"description"},slot:"description"},[e("span",{staticClass:"m-l-sm"},[t._v(t._s(i.description))])])],1)],1)})),1)],1)],1)],1),e("a-modal",{attrs:{width:600,title:t.actionInfo.modalTitle,bodyStyle:{padding:"6px 18px 1px 18px"},footer:null},model:{value:t.actionInfo.modalStatus,callback:function(e){t.$set(t.actionInfo,"modalStatus",e)},expression:"actionInfo.modalStatus"}},[e("a-form",{attrs:{form:t.form},on:{submit:function(e){return e.preventDefault(),t.handleSubmitBaseInfo.apply(null,arguments)}}},[e("a-row",{attrs:{gutter:24}},[e("a-col",{attrs:{span:12}},[e("a-form-item",{attrs:{label:"姓名"}},[e("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{rules:[{required:!0,message:"请填写姓名"}],validateTrigger:"blur"}],expression:"['name',{rules: [{ required: true, message: '请填写姓名' }], validateTrigger: 'blur'}]"}],attrs:{placeholder:"输入姓名",size:"large"}})],1)],1),e("a-col",{attrs:{span:12}},[e("a-form-item",{attrs:{label:"邮箱"}},[e("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["email",{rules:[{required:!0,message:"请填写电子邮箱地址"}],validateTrigger:"blur"}],expression:"['email',{rules: [{ required: true, message: '请填写电子邮箱地址' }], validateTrigger: 'blur'}]"}],attrs:{placeholder:"输入电子邮箱地址",size:"large"}})],1)],1),e("a-col",{attrs:{span:12}},[e("a-form-item",{attrs:{label:"手机"}},[e("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["mobile"],expression:"['mobile']"}],attrs:{placeholder:"输入手机",size:"large"}})],1)],1),e("a-col",{attrs:{span:12}},[e("a-form-item",{attrs:{label:"职位"}},[e("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["position"],expression:"['position']"}],attrs:{placeholder:"输入职位",size:"large"}})],1)],1)],1),e("a-row",{attrs:{gutter:24}},[e("a-col",{attrs:{span:24}},[e("a-form-item",{attrs:{label:"描述"}},[e("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["description"],expression:"['description']"}],attrs:{placeholder:"输入描述",size:"large",type:"textarea",rows:3}})],1)],1)],1),e("a-form-item",[e("div",{staticClass:"action-btn",staticStyle:{"text-align":"center"}},[e("a-button",{staticClass:"middle-btn",attrs:{type:"primary",htmlType:"submit",block:"",size:"large",loading:t.actionInfo.confirmLoading}},[t._v("保存\n ")])],1)])],1)],1),e("a-modal",{staticClass:"task-detail-modal",attrs:{width:"min-content",closable:!1,title:"",footer:null},on:{cancel:t.detailClose},model:{value:t.task.modalStatus,callback:function(e){t.$set(t.task,"modalStatus",e)},expression:"task.modalStatus"}},[t.task.currentTask.code?e("task-detail",{attrs:{taskCode:t.task.currentTask.code},on:{close:t.detailClose}}):t._e()],1)],1)},n=[],r=(i("c5f6"),i("96cf"),i("1da1")),o=i("c1df"),s=i.n(o),c=i("009f"),l=i("1b80"),d=i("2f14"),u=i("c24f"),f=i("b199"),h=i("24d2"),p=i("81fe"),m={name:"memberProfile",components:{taskDetail:c["a"]},mixins:[l["a"]],data:function(){return{code:this.$route.params.code,tabKey:this.$route.query.key?this.$route.query.key:"1",member:{},task:{page:1,pageSize:1e3,loading:!1,modalStatus:!1,currentTask:{},type:["0"],total:0,list:[]},project:{page:1,pageSize:1e3,loading:!1,total:0,list:[]},form:this.$form.createForm(this),actionInfo:{modalStatus:!1,confirmLoading:!1,modalTitle:"组织成员信息"}}},computed:{},watch:{},created:function(){this.init()},methods:{init:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.getMember();case 2:this.tabChange(this.tabKey);case 3:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),tabChange:function(t){switch(t){case"3":this.getTasks();break;case"4":this.getProjectList()}},getMember:function(){var t=this;return Object(u["x"])(this.code).then((function(e){t.member=e.data}))},syncDetail:function(){var t=this;Object(u["A"])({code:this.code}).then((function(e){t.getMember()}))},getTasks:function(){var t=this;this.task.loading=!0,Object(f["u"])({memberCode:this.member.member_code,type:Number(this.task.type[0]),page:this.task.page,pageSize:this.task.pageSize}).then((function(e){t.task.loading=!1,t.task.list=e.data.list,t.task.total=e.data.total}))},changeTaskType:function(t){var e=this;this.$nextTick((function(){e.getTasks()}))},showTaskDetail:function(t){this.task.currentTask=JSON.parse(JSON.stringify(t)),this.task.modalStatus=!0},detailClose:function(){var t=this;this.task.modalStatus=!1,setTimeout((function(){t.task.currentTask.code=""}),500)},getProjectList:function(){var t=this;this.task.loading=!0,Object(h["l"])({memberCode:this.member.member_code,page:this.task.page,pageSize:this.task.pageSize}).then((function(e){t.project.loading=!1,t.project.list=e.data.list,t.project.total=e.data.total}))},showEditBaseInfo:function(){var t=this;this.actionInfo.modalStatus=!0,this.$nextTick((function(){t.form.setFieldsValue({name:t.member.name,mobile:t.member.mobile,email:t.member.email,position:t.member.position,description:t.member.description})}))},handleSubmitBaseInfo:function(){var t=this,e=this;e.form.validateFields((function(i,a){i||(a.code=e.member.code,Object(u["q"])(a).then((function(i){var n=Object(d["a"])(i);n&&(t.actionInfo.modalStatus=!1,Object.assign(e.member,a))})))}))},showTaskTime:function(t,e){return Object(p["a"])(t,e)},showTimeLabel:function(t){var e="label-primary";if(null==t)return e;var i=s()(s()(t).format("YYYY-MM-DD")).diff(s()().format("YYYY-MM-DD"),"days");return i<0?e="label-danger":0==i?e="label-warning":i>7&&(e="label-normal"),e}}},v=m,g=(i("d789"),i("2877")),b=Object(g["a"])(v,a,n,!1,null,null,null);e["default"]=b.exports},e8f7:function(t,e,i){"use strict";var a=this;Object.defineProperty(e,"__esModule",{value:!0}),e.off=e.on=void 0;var n=i("5772"),r=function(t,e){(0,n.requireModule)("globalEvent").addEventListener(t,(function(t){var i={preventDefault:function(){throw new Error("does not support preventDefault")},detail:t};e.call(a,i)}))};e.on=r;var o=function(t,e){(0,n.requireModule)("globalEvent").removeEventListener(t,e)};e.off=o},e90d:function(t,e,i){"use strict";function a(t){return r.ddSdk.invokeAPI(o,t)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getRealtimeTracingStatus$=void 0;var r=i("c6b3"),o="biz.realm.getRealtimeTracingStatus";r.ddSdk.setAPI(o,(n={},n[r.ENV_ENUM.android]={vs:"6.0.13"},n)),e.getRealtimeTracingStatus$=a,e.default=a},e9cb:function(t,e,i){"use strict";function a(t){return r.ddSdk.invokeAPI(o,t)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.departmentsPicker$=void 0;var r=i("c6b3"),o="biz.contact.departmentsPicker";r.ddSdk.setAPI(o,(n={},n[r.ENV_ENUM.pc]={vs:"4.2.5"},n[r.ENV_ENUM.ios]={vs:"3.0"},n[r.ENV_ENUM.android]={vs:"3.0"},n)),e.departmentsPicker$=a,e.default=a},e9e2:function(t,e,i){"use strict";function a(t){return r.ddSdk.invokeAPI(o,t)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.chooseImage$=void 0;var r=i("c6b3"),o="biz.util.chooseImage";r.ddSdk.setAPI(o,(n={},n[r.ENV_ENUM.ios]={vs:"5.1.1"},n[r.ENV_ENUM.android]={vs:"5.1.1"},n)),e.chooseImage$=a,e.default=a},ea1a:function(t,e,i){},ea3f:function(t,e,i){"use strict";function a(t){return r.ddSdk.invokeAPI(o,t)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.setWatermarkInfo$=void 0;var r=i("c6b3"),o="biz.watermarkCamera.setWatermarkInfo";r.ddSdk.setAPI(o,(n={},n[r.ENV_ENUM.ios]={vs:"6.5.25"},n[r.ENV_ENUM.android]={vs:"6.5.25"},n)),e.setWatermarkInfo$=a,e.default=a},ea47:function(t,e,i){"use strict";function a(t){return r.ddSdk.invokeAPI(o,t)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.rolesPicker$=void 0;var r=i("c6b3"),o="biz.contact.rolesPicker";r.ddSdk.setAPI(o,(n={},n[r.ENV_ENUM.ios]={vs:"6.3.16"},n[r.ENV_ENUM.android]={vs:"6.3.16"},n)),e.rolesPicker$=a,e.default=a},ea60:function(t,e,i){"use strict";var a=i("c6b3"),n=i("9e78"),r=Object.assign({},n,a.ddSdk.getExportSdk());t.exports=r},ea97:function(t,e,i){"use strict";function a(t){return r.ddSdk.invokeAPI(o,t)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.resume$=void 0;var r=i("c6b3"),o="device.audio.resume";r.ddSdk.setAPI(o,(n={},n[r.ENV_ENUM.ios]={vs:"2.8.0"},n[r.ENV_ENUM.android]={vs:"2.8.0"},n)),e.resume$=a,e.default=a},eb62:function(t,e,i){"use strict";function a(t){return r.ddSdk.invokeAPI(o,t)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.play$=void 0;var r=i("c6b3"),o="device.audio.play";r.ddSdk.setAPI(o,(n={},n[r.ENV_ENUM.ios]={vs:"2.8.0"},n[r.ENV_ENUM.android]={vs:"2.8.0"},n)),e.play$=a,e.default=a},eb6b:function(t,e,i){var a=i("6d8b"),n=i("e0d3"),r=n.makeInner,o=i("cd33"),s=i("133d"),c=a.each,l=a.curry,d=r();function u(t,e,i){var n=t.currTrigger,r=[t.x,t.y],o=t,d=t.dispatchAction||a.bind(i.dispatchAction,i),u=e.getComponent("axisPointer").coordSysAxesInfo;if(u){k(r)&&(r=s({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var h=k(r),x=o.axesInfo,w=u.axesInfo,C="leave"===n||k(r),S={},M={},T={list:[],map:{}},P={showPointer:l(p,M),showTooltip:l(m,T)};c(u.coordSysMap,(function(t,e){var i=h||t.containPoint(r);c(u.coordSysAxesInfo[e],(function(t,e){var a=t.axis,n=_(x,t);if(!C&&i&&(!x||n)){var o=n&&n.value;null!=o||h||(o=a.pointToData(r)),null!=o&&f(t,o,P,!1,S)}}))}));var I={};return c(w,(function(t,e){var i=t.linkGroup;i&&!M[e]&&c(i.axesInfo,(function(e,a){var n=M[a];if(e!==t&&n){var r=n.value;i.mapper&&(r=t.axis.scale.parse(i.mapper(r,y(e),y(t)))),I[t.key]=r}}))})),c(I,(function(t,e){f(w[e],t,P,!0,S)})),v(M,w,S),g(T,r,t,d),b(w,d,i),S}}function f(t,e,i,n,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var s=h(e,t),c=s.payloadBatch,l=s.snapToValue;c[0]&&null==r.seriesIndex&&a.extend(r,c[0]),!n&&t.snap&&o.containData(l)&&null!=l&&(e=l),i.showPointer(t,e,c,r),i.showTooltip(t,s,l)}else i.showPointer(t,e)}function h(t,e){var i=e.axis,a=i.dim,n=t,r=[],o=Number.MAX_VALUE,s=-1;return c(e.seriesModels,(function(e,l){var d,u,f=e.getData().mapDimension(a,!0);if(e.getAxisTooltipData){var h=e.getAxisTooltipData(f,t,i);u=h.dataIndices,d=h.nestestValue}else{if(u=e.getData().indicesOfNearest(f[0],t,"category"===i.type?.5:null),!u.length)return;d=e.getData().get(f[0],u[0])}if(null!=d&&isFinite(d)){var p=t-d,m=Math.abs(p);m<=o&&((m=0&&s<0)&&(o=m,s=p,n=d,r.length=0),c(u,(function(t){r.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:r,snapToValue:n}}function p(t,e,i,a){t[e.key]={value:i,payloadBatch:a}}function m(t,e,i,a){var n=i.payloadBatch,r=e.axis,s=r.model,c=e.axisPointerModel;if(e.triggerTooltip&&n.length){var l=e.coordSys.model,d=o.makeKey(l),u=t.map[d];u||(u=t.map[d]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(u)),u.dataByAxis.push({axisDim:r.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:a,valueLabelOpt:{precision:c.get("label.precision"),formatter:c.get("label.formatter")},seriesDataIndices:n.slice()})}}function v(t,e,i){var a=i.axesInfo=[];c(e,(function(e,i){var n=e.axisPointerModel.option,r=t[i];r?(!e.useHandle&&(n.status="show"),n.value=r.value,n.seriesDataIndices=(r.payloadBatch||[]).slice()):!e.useHandle&&(n.status="hide"),"show"===n.status&&a.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:n.value})}))}function g(t,e,i,a){if(!k(e)&&t.list.length){var n=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};a({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:i.tooltipOption,position:i.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:t.list})}else a({type:"hideTip"})}function b(t,e,i){var n=i.getZr(),r="axisPointerLastHighlights",o=d(n)[r]||{},s=d(n)[r]={};c(t,(function(t,e){var i=t.axisPointerModel.option;"show"===i.status&&c(i.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;s[e]=t}))}));var l=[],u=[];a.each(o,(function(t,e){!s[e]&&u.push(t)})),a.each(s,(function(t,e){!o[e]&&l.push(t)})),u.length&&i.dispatchAction({type:"downplay",escapeConnect:!0,batch:u}),l.length&&i.dispatchAction({type:"highlight",escapeConnect:!0,batch:l})}function _(t,e){for(var i=0;i<(t||[]).length;i++){var a=t[i];if(e.axis.dim===a.axisDim&&e.axis.model.componentIndex===a.axisIndex)return a}}function y(t){var e=t.axis.model,i={},a=i.axisDim=t.axis.dim;return i.axisIndex=i[a+"AxisIndex"]=e.componentIndex,i.axisName=i[a+"AxisName"]=e.name,i.axisId=i[a+"AxisId"]=e.id,i}function k(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}t.exports=u},eb86:function(t,e,i){"use strict";function a(t){return r.ddSdk.invokeAPI(o,t)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.loginGovNet$=void 0;var r=i("c6b3"),o="net.bjGovApn.loginGovNet";r.ddSdk.setAPI(o,(n={},n[r.ENV_ENUM.android]={vs:"4.5.16"},n)),e.loginGovNet$=a,e.default=a},ec02:function(t,e,i){var a=i("6d8b"),n=i("84ce"),r=function(t,e,i,a,r){n.call(this,t,e,i),this.type=a||"value",this.position=r||"bottom"};r.prototype={constructor:r,index:0,getAxesOnZeroOf:null,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},getGlobalExtent:function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},toLocalCoord:null,toGlobalCoord:null},a.inherits(r,n);var o=r;t.exports=o},ec34:function(t,e,i){var a=i("4e08"),n=(a.__DEV__,i("6d8b")),r=n.createHashMap,o=n.isString,s=n.isArray,c=n.each,l=(n.assert,i("3041")),d=l.parseXML,u=r(),f={registerMap:function(t,e,i){var a;return s(e)?a=e:e.svg?a=[{type:"svg",source:e.svg,specialAreas:e.specialAreas}]:(e.geoJson&&!e.features&&(i=e.specialAreas,e=e.geoJson),a=[{type:"geoJSON",source:e,specialAreas:i}]),c(a,(function(t){var e=t.type;"geoJson"===e&&(e=t.type="geoJSON");var i=h[e];i(t)})),u.set(t,a)},retrieveMap:function(t){return u.get(t)}},h={geoJSON:function(t){var e=t.source;t.geoJSON=o(e)?"undefined"!==typeof JSON&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e},svg:function(t){t.svgXML=d(t.source)}};t.exports=f},ec6f:function(t,e,i){var a=i("6d8b"),n=a.createHashMap,r=a.isTypedArray,o=i("625e"),s=o.enableClassCheck,c=i("93d0"),l=c.SOURCE_FORMAT_ORIGINAL,d=c.SERIES_LAYOUT_BY_COLUMN,u=c.SOURCE_FORMAT_UNKNOWN,f=c.SOURCE_FORMAT_TYPED_ARRAY,h=c.SOURCE_FORMAT_KEYED_COLUMNS;function p(t){this.fromDataset=t.fromDataset,this.data=t.data||(t.sourceFormat===h?{}:[]),this.sourceFormat=t.sourceFormat||u,this.seriesLayoutBy=t.seriesLayoutBy||d,this.dimensionsDefine=t.dimensionsDefine,this.encodeDefine=t.encodeDefine&&n(t.encodeDefine),this.startIndex=t.startIndex||0,this.dimensionsDetectCount=t.dimensionsDetectCount}p.seriesDataToSource=function(t){return new p({data:t,sourceFormat:r(t)?f:l,fromDataset:!1})},s(p);var m=p;t.exports=m},ec97:function(t,e,i){"use strict";function a(t){return r.ddSdk.invokeAPI(o,t)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.createSceneGroup$=void 0;var r=i("c6b3"),o="biz.chat.createSceneGroup";r.ddSdk.setAPI(o,(n={},n[r.ENV_ENUM.ios]={vs:"4.7.17"},n[r.ENV_ENUM.android]={vs:"4.7.17"},n[r.ENV_ENUM.pc]={vs:"4.7.17"},n)),e.createSceneGroup$=a,e.default=a},ecfc:function(t,e,i){"use strict";function a(t){return r.ddSdk.invokeAPI(o,t)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.reportDebugMessage$=void 0;var r=i("c6b3"),o="biz.resource.reportDebugMessage";r.ddSdk.setAPI(o,(n={},n[r.ENV_ENUM.ios]={vs:"6.5.20"},n[r.ENV_ENUM.android]={vs:"6.5.20"},n)),e.reportDebugMessage$=a,e.default=a},ed21:function(t,e,i){var a=i("2cf4"),n=a.devicePixelRatio,r=i("6d8b"),o=i("4942"),s=i("9850"),c=i("04f6"),l=i("5e68"),d=i("98b7"),u=i("0da8"),f=i("22d1"),h=1e5,p=314159,m=.01,v=.001;function g(t){return parseInt(t,10)}function b(t){return!!t&&(!!t.__builtin__||"function"===typeof t.resize&&"function"===typeof t.refresh)}var _=new s(0,0,0,0),y=new s(0,0,0,0);function k(t,e,i){return _.copy(t.getBoundingRect()),t.transform&&_.applyTransform(t.transform),y.width=e,y.height=i,!_.intersect(y)}function x(t,e){if(t===e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var i=0;i=0&&i.splice(a,1),t.__hoverMir=null},clearHover:function(t){for(var e=this._hoverElements,i=0;i15)break}}o.__drawIndex=g,o.__drawIndex0&&t>a[0]){for(s=0;st)break;r=i[a[s]]}if(a.splice(s+1,0,t),i[t]=e,!e.virtual)if(r){var l=r.dom;l.nextSibling?c.insertBefore(e.dom,l.nextSibling):c.appendChild(e.dom)}else c.firstChild?c.insertBefore(e.dom,c.firstChild):c.appendChild(e.dom)}else o("Layer of zlevel "+t+" is not valid")},eachLayer:function(t,e){var i,a,n=this._zlevelList;for(a=0;a0?m:0),this._needsManuallyCompositing),c.__builtin__||o("ZLevel "+l+" has been used by unkown layer "+c.id),c!==r&&(c.__used=!0,c.__startIndex!==i&&(c.__dirty=!0),c.__startIndex=i,c.incremental?c.__drawIndex=-1:c.__drawIndex=i,e(i),r=c),a.__dirty&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=i))}e(i),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(t){t.clear()},setBackgroundColor:function(t){this._backgroundColor=t},configLayer:function(t,e){if(e){var i=this._layerConfig;i[t]?r.merge(i[t],e,!0):i[t]=e;for(var a=0;a1?"."+t[1]:""))}function s(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var c=a.normalizeCssArray,l=/([&<>"'])/g,d={"&":"&","<":"<",">":">",'"':""","'":"'"};function u(t){return null==t?"":(t+"").replace(l,(function(t,e){return d[e]}))}var f=["a","b","c","d","e","f","g"],h=function(t,e){return"{"+t+(null==e?"":e)+"}"};function p(t,e,i){a.isArray(e)||(e=[e]);var n=e.length;if(!n)return"";for(var r=e[0].$vars||[],o=0;o':'':{renderMode:r,content:"{marker"+o+"|} ",style:{color:i}}:""}function g(t,e){return t+="","0000".substr(0,e-t.length)+t}function b(t,e,i){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var a=r.parseDate(e),n=i?"UTC":"",o=a["get"+n+"FullYear"](),s=a["get"+n+"Month"]()+1,c=a["get"+n+"Date"](),l=a["get"+n+"Hours"](),d=a["get"+n+"Minutes"](),u=a["get"+n+"Seconds"](),f=a["get"+n+"Milliseconds"]();return t=t.replace("MM",g(s,2)).replace("M",s).replace("yyyy",o).replace("yy",o%100).replace("dd",g(c,2)).replace("d",c).replace("hh",g(l,2)).replace("h",l).replace("mm",g(d,2)).replace("m",d).replace("ss",g(u,2)).replace("s",u).replace("SSS",g(f,3)),t}function _(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}var y=n.truncateText;function k(t){return n.getBoundingRect(t.text,t.font,t.textAlign,t.textVerticalAlign,t.textPadding,t.textLineHeight,t.rich,t.truncate)}function x(t,e,i,a,r,o,s,c){return n.getBoundingRect(t,e,i,a,r,c,o,s)}function w(t,e){if("_blank"===e||"blank"===e){var i=window.open();i.opener=null,i.location=t}else window.open(t,e)}e.addCommas=o,e.toCamelCase=s,e.normalizeCssArray=c,e.encodeHTML=u,e.formatTpl=p,e.formatTplSimple=m,e.getTooltipMarker=v,e.formatTime=b,e.capitalFirst=_,e.truncateText=y,e.getTextBoundingRect=k,e.getTextRect=x,e.windowOpen=w},edb5:function(t,e,i){"use strict";function a(t){return r.ddSdk.invokeAPI(o,t)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getInfo$=void 0;var r=i("c6b3"),o="biz.resource.getInfo";r.ddSdk.setAPI(o,(n={},n[r.ENV_ENUM.ios]={vs:"6.5.10"},n[r.ENV_ENUM.android]={vs:"6.5.10"},n)),e.getInfo$=a,e.default=a},ee1a:function(t,e,i){var a=i("6d8b"),n=a.each,r=a.isString;function o(t,e,i){i=i||{};var a,o,s,c,l=i.byIndex,d=i.stackedCoordDimension,u=!(!t||!t.get("stack"));if(n(e,(function(t,i){r(t)&&(e[i]=t={name:t}),u&&!t.isExtraCoord&&(l||a||!t.ordinalMeta||(a=t),o||"ordinal"===t.type||"time"===t.type||d&&d!==t.coordDim||(o=t))})),!o||l||a||(l=!0),o){s="__\0ecstackresult",c="__\0ecstackedover",a&&(a.createInvertedIndices=!0);var f=o.coordDim,h=o.type,p=0;n(e,(function(t){t.coordDim===f&&p++})),e.push({name:s,coordDim:f,coordDimIndex:p,type:h,isExtraCoord:!0,isCalculationCoord:!0}),p++,e.push({name:c,coordDim:c,coordDimIndex:p,type:h,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:o&&o.name,stackedByDimension:a&&a.name,isStackedByIndex:l,stackedOverDimension:c,stackResultDimension:s}}function s(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function c(t,e){return s(t,e)?t.getCalculationInfo("stackResultDimension"):e}e.enableDataStack=o,e.isDimensionStacked=s,e.getStackedDimension=c},ee84:function(t,e,i){var a=i("20c8"),n=i("401b"),r=n.applyTransform,o=a.CMD,s=[[],[],[]],c=Math.sqrt,l=Math.atan2;function d(t,e){var i,a,n,d,u,f=t.data,h=o.M,p=o.C,m=o.L,v=o.R,g=o.A,b=o.Q;for(n=0,d=0;n=0;o--){var s=i[o].dimension,c=t.dimensions[s],l=t.getDimensionInfo(c);if(a=l&&l.coordDim,"x"===a||"y"===a){r=i[o];break}}if(r){var u=e.getAxis(a),f=n.map(r.stops,(function(t){return{coord:u.toGlobalCoord(u.dataToCoord(t.value)),color:t.color}})),h=f.length,p=r.outerColors.slice();h&&f[0].coord>f[h-1].coord&&(f.reverse(),p.reverse());var m=10,v=f[0].coord-m,g=f[h-1].coord+m,b=g-v;if(b<.001)return"transparent";n.each(f,(function(t){t.offset=(t.coord-v)/b})),f.push({offset:h?f[h-1].offset:.5,color:p[1]||"transparent"}),f.unshift({offset:h?f[0].offset:.5,color:p[0]||"transparent"});var _=new d.LinearGradient(0,0,0,0,f,!0);return _[a]=v,_[a+"2"]=g,_}}}function P(t,e,i){var a=t.get("showAllSymbol"),r="auto"===a;if(!a||r){var o=i.getAxesByScale("ordinal")[0];if(o&&(!r||!I(o,e))){var s=e.mapDimension(o.dim),c={};return n.each(o.getViewLabels(),(function(t){c[t.tickValue]=1})),function(t){return!c.hasOwnProperty(e.get(s,t))}}}}function I(t,e){var i=t.getExtent(),a=Math.abs(i[1]-i[0])/t.scale.count();isNaN(a)&&(a=0);for(var n=e.count(),r=Math.max(1,Math.round(n/5)),o=0;oa)return!1;return!0}function O(t,e,i){if("cartesian2d"===t.type){var a=t.getBaseAxis().isHorizontal(),n=y(t,e,i);if(!i.get("clip",!0)){var r=n.shape,o=Math.max(r.width,r.height);a?(r.y-=o,r.height+=2*o):(r.x-=o,r.width+=2*o)}return n}return k(t,e,i)}var E=m.extend({type:"line",init:function(){var t=new d.Group,e=new s;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(t,e,i){var a=t.coordinateSystem,r=this.group,o=t.getData(),s=t.getModel("lineStyle"),c=t.getModel("areaStyle"),l=o.mapArray(o.getItemLayout),d="polar"===a.type,u=this._coordSys,f=this._symbolDraw,h=this._polyline,p=this._polygon,m=this._lineGroup,v=t.get("animation"),b=!c.isEmpty(),_=c.get("origin"),y=g(a,o,_),k=S(a,o,y),w=t.get("showSymbol"),I=w&&!d&&P(t,o,a),E=this._data;E&&E.eachItemGraphicEl((function(t,e){t.__temp&&(r.remove(t),E.setItemGraphicEl(e,null))})),w||f.remove(),r.add(m);var j,D=!d&&t.get("step");a&&a.getArea&&t.get("clip",!0)&&(j=a.getArea(),null!=j.width?(j.x-=.1,j.y-=.1,j.width+=.2,j.height+=.2):j.r0&&(j.r0-=.5,j.r1+=.5)),this._clipShapeForSymbol=j,h&&u.type===a.type&&D===this._step?(b&&!p?p=this._newPolygon(l,k,a,v):p&&!b&&(m.remove(p),p=this._polygon=null),m.setClipPath(O(a,!1,t)),w&&f.updateData(o,{isIgnore:I,clipShape:j}),o.eachItemGraphicEl((function(t){t.stopAnimation(!0)})),x(this._stackedOnPoints,k)&&x(this._points,l)||(v?this._updateAnimation(o,k,a,i,D,_):(D&&(l=M(l,a,D),k=M(k,a,D)),h.setShape({points:l}),p&&p.setShape({points:l,stackedOnPoints:k})))):(w&&f.updateData(o,{isIgnore:I,clipShape:j}),D&&(l=M(l,a,D),k=M(k,a,D)),h=this._newPolyline(l,a,v),b&&(p=this._newPolygon(l,k,a,v)),m.setClipPath(O(a,!0,t)));var A=T(o,a)||o.getVisual("color");h.useStyle(n.defaults(s.getLineStyle(),{fill:"none",stroke:A,lineJoin:"bevel"}));var N=t.get("smooth");if(N=C(t.get("smooth")),h.setShape({smooth:N,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")}),p){var L=o.getCalculationInfo("stackedOnSeries"),$=0;p.useStyle(n.defaults(c.getAreaStyle(),{fill:A,opacity:.7,lineJoin:"bevel"})),L&&($=C(L.get("smooth"))),p.setShape({smooth:N,stackedOnSmooth:$,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")})}this._data=o,this._coordSys=a,this._stackedOnPoints=k,this._points=l,this._step=D,this._valueOrigin=_},dispose:function(){},highlight:function(t,e,i,a){var n=t.getData(),r=u.queryDataIndex(n,a);if(!(r instanceof Array)&&null!=r&&r>=0){var o=n.getItemGraphicEl(r);if(!o){var s=n.getItemLayout(r);if(!s)return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(s[0],s[1]))return;o=new c(n,r),o.position=s,o.setZ(t.get("zlevel"),t.get("z")),o.ignore=isNaN(s[0])||isNaN(s[1]),o.__temp=!0,n.setItemGraphicEl(r,o),o.stopSymbolAnimation(!0),this.group.add(o)}o.highlight()}else m.prototype.highlight.call(this,t,e,i,a)},downplay:function(t,e,i,a){var n=t.getData(),r=u.queryDataIndex(n,a);if(null!=r&&r>=0){var o=n.getItemGraphicEl(r);o&&(o.__temp?(n.setItemGraphicEl(r,null),this.group.remove(o)):o.downplay())}else m.prototype.downplay.call(this,t,e,i,a)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new h({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e,e},_newPolygon:function(t,e){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new p({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(i),this._polygon=i,i},_updateAnimation:function(t,e,i,a,n,r){var o=this._polyline,s=this._polygon,c=t.hostModel,u=l(this._data,t,this._stackedOnPoints,e,this._coordSys,i,this._valueOrigin,r),f=u.current,h=u.stackedOnCurrent,p=u.next,m=u.stackedOnNext;if(n&&(f=M(u.current,i,n),h=M(u.stackedOnCurrent,i,n),p=M(u.next,i,n),m=M(u.stackedOnNext,i,n)),w(f,p)>3e3||s&&w(h,m)>3e3)return o.setShape({points:p}),void(s&&s.setShape({points:p,stackedOnPoints:m}));o.shape.__points=u.current,o.shape.points=f,d.updateProps(o,{shape:{points:p}},c),s&&(s.setShape({points:f,stackedOnPoints:h}),d.updateProps(s,{shape:{points:p,stackedOnPoints:m}},c));for(var v=[],g=u.status,b=0;b=1)&&(t=1),t}s===l&&c===f||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=u(this,a)),this._modBy=l,this._modDataCount=f;var p=t&&t.step;if(this._dueEnd=i?i._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var m=this._dueIndex,v=Math.min(null!=p?this._dueIndex+p:1/0,this._dueEnd);if(!a&&(o||m1&&a>0?s:o}};return r;function o(){return e=t?null:r0,expression:"taskSourceList.length > 0"}],staticClass:"component-mount"},[e("div",{staticClass:"field"},[e("div",{staticClass:"block-field width-block"},[e("div",{staticClass:"file-list"},[e("div",{staticClass:"m-xs m-t-none"},[t._v("关联的文件")]),e("a-list",t._l(t.taskSourceList,(function(i,a){return e("a-list-item",{key:a},[e("a-list-item-meta",[e("a-avatar",{attrs:{slot:"avatar",size:"small",shape:"square",icon:"link",src:i.fileUrl},slot:"avatar"}),e("div",{attrs:{slot:"title"},slot:"title"},[e("a",{staticClass:"muted",attrs:{target:"_blank",href:i.fileUrl}},[t._v(t._s(i.name))])]),e("div",{attrs:{slot:"description"},slot:"description"})],1),e("a",{staticClass:"muted",attrs:{slot:"actions"},slot:"actions"},[e("span",[t._v(t._s(i.projectName))])]),e("a",{staticClass:"muted",attrs:{slot:"actions"},on:{click:function(e){return t.removeTaskSource(i,a)}},slot:"actions"},[e("a-icon",{attrs:{type:"delete"}})],1)],1)})),1)],1)])])]),e("div",{staticClass:"component-mount",staticStyle:{display:"flex","justify-content":"flex-end"}},[e("a-button",{staticClass:"middle-btn",staticStyle:{"margin-right":"20px"},on:{click:t.detailClose}},[t._v("取消")]),e("a-button",{staticClass:"middle-btn",attrs:{type:"primary"},on:{click:t.addTask}},[t._v("完成")])],1)])])])],1)])])]),t.showInviteMember?e("invite-project-member",{attrs:{"project-code":t.projectCode},model:{value:t.showInviteMember,callback:function(e){t.showInviteMember=e},expression:"showInviteMember"}}):t._e()],1)}),o=[],s=(i("8e6e"),i("ac6a"),i("456d"),i("20d6"),i("7514"),i("ade3")),c=(i("c5f6"),i("2f62")),l=i("1157"),d=i.n(l),u=i("c1df"),f=i.n(u),h=i("f93e"),p=i("a897"),m=i("b199"),v=i("8870"),g=i("d8bc"),b=i("d3a1"),_=i("68fe"),y=i("2f14"),k=i("f66c"),x=i("97a8"),w=i("81fe"),C=i("0e8f"),S=i("c24f"),M=i("261e");function T(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function P(t){for(var e=1;e5},taskLink:function(){return window.location.href},scrollOps:function(){return{rail:{background:"#e5e5e5",opacity:1},bar:{keepShow:!0}}}}),watch:{$route:function(t,e){},showInviteMember:function(t){t||this.getTaskMembers()},taskLogType:function(){this.getTaskLog()},socketAction:function(t){},uploader:{handler:function(t,e){console.log("上传文件",t),console.log("上传文件",t.fileList,e.fileList);var i=t.fileList;i[i.length-1].projectName==this.projectName&&this.taskSourceList.push(i[i.length-1])},deep:!0}},created:function(){},mounted:function(){var t=this,e=arguments;this.getDepartment(),this.projectCode=this.$route.params.code,console.log(this.projectCode),this.projectName=this.$route.query.name,this.$nextTick((function(){t.changeModalHeight()})),window.onresize=function(){return function(){t.changeModalHeight()}()},document.onkeydown=function(i){console.log(i);var a=i||window.event||e.callee.caller.arguments[0];13==a.keyCode&&a.ctrlKey&&t.createComment(),"@"==a.key&&t.commenting?t.showMentions=!0:t.showMentions=!1},setTimeout((function(){t.uploader.assignBrowse(document.getElementById("upload-file"))}),500)},filters:{formatLogTime:function(t){return Object(w["c"])(t)}},methods:{getDepartment:function(){var t=this;Object(C["c"])().then((function(e){t.departmentList=e.data.list}))},departmentDropClick:function(t){var e=this,i=this.departmentList.find((function(e){return e.code==t.key}));this.department=i,Object(S["w"])({searchType:4,type:1,departmentCode:i.code}).then((function(t){t.data.list[0]?e.liasionMan=t.data.list[0]:Object(x["b"])({title:"该部门没有联络员"},"notice","error",5)}))},changeRecipient:function(t){var e=this.task.copied_list.find((function(e){return e.code==t.code}));e?Object(x["b"])({title:"已经设置过, 请更换其他人员"},"error",3e3):this.task.copied_list.push(t),this.showInviteMember=!1},spliceCopied:function(t){this.task.copied_list.splice(t,1)},changeExchange:function(t){this.task.exchangeList.push(P({f_key:(new Date).getTime(),show:!1},t))},changeExchangeShow:function(t){var e=this,i=this.task.exchangeList.findIndex((function(t){return 1==t.show}));if(-1!=i){this.task.exchangeList[i].show=!1;var a=JSON.parse(JSON.stringify(this.task.exchangeList));t?a[i]=P({f_key:(new Date).getTime(),show:!1},t):a.splice(i,1),this.$nextTick((function(){e.task.exchangeList=a}))}},removeTaskSource:function(t,e){this.taskSourceList.splice(e,1)},addTask:function(){return this.task.name?this.task.description?this.task.end_time?this.department.code?void this.createTask():Object(x["b"])({title:"请选择处理部门"},"error",5e3):Object(x["b"])({title:"请选择完成期限"},"error",5e3):Object(x["b"])({title:"请输入工作内容"},"error",5e3):Object(x["b"])({title:"请输入工单名称"},"error",5e3)},createTask:function(){var t=this,e=JSON.parse(JSON.stringify(this.task));e.exchangeList=e.exchangeList.map((function(t){return t.code})),e.file_list=this.taskSourceList.map((function(t){return t.code})).join(","),e.exchangeList=e.exchangeList.join(","),e.copied_list=e.copied_list.map((function(t){return t.code})),e.copied_list=e.copied_list.join(","),e.assign_to="",e.department_code=this.department.code,e.liasion_code=this.liasionMan.code,e.stage_code=this.$route.query.stage_code,e.project_code=this.$route.params.code,e.end_time=new Date(e.end_time).getTime(),Object(m["s"])(e).then((function(e){console.log(e),t.$emit("close",t.task),t.$router.push("/project/space/task/".concat(t.$route.params.code,"?re=1&from=").concat(t.$route.query.from))})).catch((function(t){Object(x["b"])({title:"创建失败"},"error",5e3)}))},detailClose:function(){this.$emit("close",this.task)},clearMemberMenu:function(){this.visibleTaskTagMenu=!1,this.visibleTaskCopied=!1,this.showChildTask=!1},getTask:function(){this.$store.commit("viewRefresh"),this.clearMemberMenu(),this.task.end_time?(this.task.setEndTime=!0,this.task.end_time=f()(this.task.end_time)):(this.task.setEndTime=!1,this.task.end_time=f()(f()().format("YYYY-MM-DD")+" 18:00")),this.task.end_time_format=Object(w["b"])(this.task.end_time,!0),this.task.begin_time?(this.task.setBeginTime=!0,this.task.begin_time=f()(this.task.begin_time)):(this.task.setBeginTime=!1,this.task.begin_time=f()(f()().format("YYYY-MM-DD")+" 18:00")),this.task.begin_time_format=Object(w["b"])(this.task.begin_time,!0),this.initContent(this.task.description||""),this.loading=!1,this.$store.dispatch("setTempData",{projectCode:this.projectCodeCurrent,taskCode:this.code})},getTaskLog:function(){},taskSources:function(){},getTaskMembers:function(){var t=this;this.clearMemberMenu(),Object(g["b"])({taskCode:this.code,pageSize:100}).then((function(e){t.taskMemberList=e.data.list,t.loading=!1}))},doSource:function(t,e){var i=this,a=t.key;switch(a){case"unlink":this.$confirm({title:"取消关联",content:"您确定永久删除这个关联?",okText:"确定",okType:"danger",cancelText:"再想想",onOk:function(){return Object(v["a"])(e.code).then((function(t){var e=Object(y["a"])(t);if(!e)return!1;i.taskSources(),i.getTaskLog()})),Promise.resolve()}});break;case"copy":return Object(x["b"])({title:"复制链接成功",msg:"在地址栏粘贴并打开可下载该资源"},"notice","success",5),!0}},deleteTask:function(){var t=this;this.$confirm({title:"彻底删除",content:"彻底删除工单后,该工单及其子工单将会被永久被删除。",okText:"删除",okType:"danger",cancelText:"再想想",onOk:function(){return Object(m["f"])(t.code).then((function(e){t.detailClose()})),Promise.resolve()}})},recoveryTask:function(){var t=this;this.$confirm({title:"恢复内容",content:"您确定要恢复该工单吗?",okText:"确定",okType:"primary",cancelText:"再想想",onOk:function(){return Object(m["p"])(t.code).then((function(e){var i=Object(y["a"])(e);if(!i)return!1;t.getTaskLog()})),t.task.deleted=0,Promise.resolve()}})},copyLink:function(){Object(x["b"])({title:"复制链接成功",msg:"你可以在其他标签页粘贴并快速打开工单页面"},"notice","success",5)},like:function(t){t=Number(t),Object(m["l"])(this.code,t),t?this.task.like++:this.task.like--,this.task.liked=t},doBeginTime:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.task.setBeginTime=t,this.showBeginTime=e;var i="";t?(i=f()(this.task.begin_time).format("YYYY-MM-DD HH:mm"),this.task.begin_time_format=f()(this.task.begin_time).format("MM月DD日 HH:mm")):i="",this.editTask({begin_time:i})},doEndTime:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.task.setEndTime=t,this.showEndTime=e;var i="";t?(i=f()(this.task.end_time).format("YYYY-MM-DD HH:mm"),this.task.end_time_format=f()(this.task.end_time).format("MM月DD日 HH:mm")):i="",this.editTask({end_time:i})},doPri:function(t){console.log(this.task),this.task.pri=t.key,0==this.task.pri&&(this.task.priText="普通"),1==this.task.pri&&(this.task.priText="紧急"),2==this.task.pri&&(this.task.priText="非常紧急"),this.clearMemberMenu()},doName:function(){if(this.showEditName=!1,this.task.name==this.taskName)return this.task.name=this.taskName,!1;this.editTask({name:this.task.name})},editTask:function(t){},priColor:function(t){switch(t){case 1:return"#ff9900";case 2:return"#ed3f14";default:return"green"}},showTaskDesc:function(){if(this.task.deleted)return!1;this.showTaskDescriptionEdit=!0,this.initContent(this.task.description||"")},initContent:function(t){var e=this;t?this.$refs.vueWangeditor&&this.$refs.vueWangeditor.setHtml(t):this.$refs.vueWangeditor&&this.$refs.vueWangeditor.setHtml(""),this.$nextTick((function(){e.checkShowMoreDesc(!1,!0)}))},doContent:function(){var t=this.$refs.vueWangeditor.getHtml();this.code;this.task.description=t,this.showTaskDescriptionEdit=!1},checkShowMoreDesc:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=d()(".description-txt-con");if(e||(t?(this.showMoreDesc=!0,i.css("max-height",(function(){return"100%"}))):(this.showMoreDesc=!1,i.css("max-height",(function(){return"300px"})))),e){var a=i.height();return a>=300?(this.hasMoreDesc=!0,!0):(this.hasMoreDesc=!1,!1)}return!1},changeModalHeight:function(){var t=this.width,e=d()(window).width()-100,i=d()(window).height()-150;d()(window).height();"full-screen"===t||void 0!==this.$route.query["full-screen"]?(d()(".task-detail").css("width",d()(window).width()),i+=85,85,d()(".content-left").css("height",i+"px")):(e>t&&(e=t),d()(".task-detail").css("width",e),d()(".content-left").css("height",i+"px"))}}},A=D,N=(i("bd46"),i("2877")),L=Object(N["a"])(A,r,o,!1,null,null,null),$=L.exports,V={name:"task-add-modal",components:{taskAdd:$},data:function(){return{loading:!1,code:this.$route.params.taskCode,projectCode:this.$route.params.code}},created:function(){this.init()},methods:{init:function(){this.loading=!0},addClose:function(){var t=this.$route.query.from,e="";t&&(e="?from=".concat(t)),this.$router.push("/project/space/task/".concat(this.projectCode).concat(e))}}},R=V,z=(i("5ab3"),Object(N["a"])(R,a,n,!1,null,null,null));e["default"]=z.exports},f576:function(t,e,i){"use strict";var a=i("5ca1"),n=i("2e08"),r=i("a25f"),o=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(r);a(a.P+a.F*o,"String",{padStart:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},f629:function(t,e,i){"use strict";function a(t){return r.ddSdk.invokeAPI(o,t)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.setScreenBrightnessAndKeepOn$=void 0;var r=i("c6b3"),o="biz.util.setScreenBrightnessAndKeepOn";r.ddSdk.setAPI(o,(n={},n[r.ENV_ENUM.ios]={vs:"4.6.37"},n[r.ENV_ENUM.android]={vs:"4.3.3"},n)),e.setScreenBrightnessAndKeepOn$=a,e.default=a},f694:function(t,e,i){"use strict";function a(t){return r.ddSdk.invokeAPI(o,t)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getWifiStatus$=void 0;var r=i("c6b3"),o="device.base.getWifiStatus";r.ddSdk.setAPI(o,(n={},n[r.ENV_ENUM.ios]={vs:"2.11.0"},n[r.ENV_ENUM.android]={vs:"2.11.0"},n)),e.getWifiStatus$=a,e.default=a},f706:function(t,e,i){var a=i("2306"),n=i("1418"),r=i("6d8b"),o=r.isObject;function s(t){this.group=new a.Group,this._symbolCtor=t||n}var c=s.prototype;function l(t,e,i,a){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(a.isIgnore&&a.isIgnore(i))&&!(a.clipShape&&!a.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(i,"symbol")}function d(t){return null==t||o(t)||(t={isIgnore:t}),t||{}}function u(t){var e=t.hostModel;return{itemStyle:e.getModel("itemStyle").getItemStyle(["color"]),hoverItemStyle:e.getModel("emphasis.itemStyle").getItemStyle(),symbolRotate:e.get("symbolRotate"),symbolOffset:e.get("symbolOffset"),hoverAnimation:e.get("hoverAnimation"),labelModel:e.getModel("label"),hoverLabelModel:e.getModel("emphasis.label"),cursorStyle:e.get("cursor")}}c.updateData=function(t,e){e=d(e);var i=this.group,n=t.hostModel,r=this._data,o=this._symbolCtor,s=u(t);r||i.removeAll(),t.diff(r).add((function(a){var n=t.getItemLayout(a);if(l(t,n,a,e)){var r=new o(t,a,s);r.attr("position",n),t.setItemGraphicEl(a,r),i.add(r)}})).update((function(c,d){var u=r.getItemGraphicEl(d),f=t.getItemLayout(c);l(t,f,c,e)?(u?(u.updateData(t,c,s),a.updateProps(u,{position:f},n)):(u=new o(t,c),u.attr("position",f)),i.add(u),t.setItemGraphicEl(c,u)):i.remove(u)})).remove((function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut((function(){i.remove(e)}))})).execute(),this._data=t},c.isPersistent=function(){return!0},c.updateLayout=function(){var t=this._data;t&&t.eachItemGraphicEl((function(e,i){var a=t.getItemLayout(i);e.attr("position",a)}))},c.incrementalPrepareUpdate=function(t){this._seriesScope=u(t),this._data=null,this.group.removeAll()},c.incrementalUpdate=function(t,e,i){function a(t){t.isGroup||(t.incremental=t.useHoverLayer=!0)}i=d(i);for(var n=t.start;na||c.newline?(r=0,d=v,o+=s+i,s=h.height):s=Math.max(s,h.height)}else{var g=h.height+(m?-m.y+h.y:0);u=o+g,u>n||c.newline?(r+=s+i,o=0,u=g,s=h.width):s=Math.max(s,h.width)}c.newline||(f[0]=r,f[1]=o,"horizontal"===t?r=d+i:o=u+i)}))}var f=u,h=a.curry(u,"vertical"),p=a.curry(u,"horizontal");function m(t,e,i){var a=e.width,n=e.height,r=o(t.x,a),c=o(t.y,n),l=o(t.x2,a),d=o(t.y2,n);return(isNaN(r)||isNaN(parseFloat(t.x)))&&(r=0),(isNaN(l)||isNaN(parseFloat(t.x2)))&&(l=a),(isNaN(c)||isNaN(parseFloat(t.y)))&&(c=0),(isNaN(d)||isNaN(parseFloat(t.y2)))&&(d=n),i=s.normalizeCssArray(i||0),{width:Math.max(l-r-i[1]-i[3],0),height:Math.max(d-c-i[0]-i[2],0)}}function v(t,e,i){i=s.normalizeCssArray(i||0);var a=e.width,r=e.height,c=o(t.left,a),l=o(t.top,r),d=o(t.right,a),u=o(t.bottom,r),f=o(t.width,a),h=o(t.height,r),p=i[2]+i[0],m=i[1]+i[3],v=t.aspect;switch(isNaN(f)&&(f=a-d-m-c),isNaN(h)&&(h=r-u-p-l),null!=v&&(isNaN(f)&&isNaN(h)&&(v>a/r?f=.8*a:h=.8*r),isNaN(f)&&(f=v*h),isNaN(h)&&(h=f/v)),isNaN(c)&&(c=a-d-f-m),isNaN(l)&&(l=r-u-h-p),t.left||t.right){case"center":c=a/2-f/2-i[3];break;case"right":c=a-f-m;break}switch(t.top||t.bottom){case"middle":case"center":l=r/2-h/2-i[0];break;case"bottom":l=r-h-p;break}c=c||0,l=l||0,isNaN(f)&&(f=a-m-c-(d||0)),isNaN(h)&&(h=r-p-l-(u||0));var g=new n(c+i[3],l+i[0],f,h);return g.margin=i,g}function g(t,e,i,r,o){var s=!o||!o.hv||o.hv[0],c=!o||!o.hv||o.hv[1],l=o&&o.boundingMode||"all";if(s||c){var d;if("raw"===l)d="group"===t.type?new n(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(d=t.getBoundingRect(),t.needLocalTransform()){var u=t.getLocalTransform();d=d.clone(),d.applyTransform(u)}e=v(a.defaults({width:d.width,height:d.height},e),i,r);var f=t.position,h=s?e.x-d.x:0,p=c?e.y-d.y:0;t.attr("position","raw"===l?[h,p]:[f[0]+h,f[1]+p])}}function b(t,e){return null!=t[d[e][0]]||null!=t[d[e][1]]&&null!=t[d[e][2]]}function _(t,e,i){!a.isObject(i)&&(i={});var n=i.ignoreSize;!a.isArray(n)&&(n=[n,n]);var r=s(d[0],0),o=s(d[1],1);function s(i,a){var r={},o=0,s={},d=0,f=2;if(c(i,(function(e){s[e]=t[e]})),c(i,(function(t){l(e,t)&&(r[t]=s[t]=e[t]),u(r,t)&&o++,u(s,t)&&d++})),n[a])return u(e,i[1])?s[i[2]]=null:u(e,i[2])&&(s[i[1]]=null),s;if(d!==f&&o){if(o>=f)return r;for(var h=0;hh[1]?-1:1,m=["start"===s?h[0]-p*f:"end"===s?h[1]+p*f:(h[0]+h[1])/2,E(s)?t.labelOffset+d*f:0],v=e.get("nameRotate");null!=v&&(v=v*k/180),E(s)?a=S(t.rotation,null!=v?v:t.rotation,d):(a=M(t,s,v||0,h),r=t.axisNameAvailableWidth,null!=r&&(r=Math.abs(r/Math.sin(a.rotation)),!isFinite(r)&&(r=null)));var g=u.getFont(),b=e.get("nameTruncate",!0)||{},_=b.ellipsis,y=n(t.nameTruncateMaxWidth,b.maxWidth,r),x=null!=_&&null!=y?c.truncateText(i,y,g,_,{minChar:2,placeholder:b.placeholder}):i,w=e.get("tooltip",!0),P=e.mainType,I={componentType:P,name:i,$vars:["name"]};I[P+"Index"]=e.componentIndex;var O=new l.Text({anid:"name",__fullText:i,__truncatedText:x,position:m,rotation:a.rotation,silent:T(e),z2:1,tooltip:w&&w.show?o({content:i,formatter:function(){return i},formatterParams:I},w):null});l.setTextStyle(O.style,u,{text:x,textFont:g,textFill:u.getTextColor()||e.get("axisLine.lineStyle.color"),textAlign:u.get("align")||a.textAlign,textVerticalAlign:u.get("verticalAlign")||a.textVerticalAlign}),e.get("triggerEvent")&&(O.eventData=C(e),O.eventData.targetType="axisName",O.eventData.name=i),this._dumbGroup.add(O),O.updateTransform(),this.group.add(O),O.decomposeTransform()}}},C=x.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},S=x.innerTextLayout=function(t,e,i){var a,n,r=h(e-t);return f(r)?(n=i>0?"top":"bottom",a="center"):f(r-k)?(n=i>0?"bottom":"top",a="center"):(n="middle",a=r>0&&r0?"right":"left":i>0?"left":"right"),{rotation:r,textAlign:a,textVerticalAlign:n}};function M(t,e,i,a){var n,r,o=h(i-t.rotation),s=a[0]>a[1],c="start"===e&&!s||"start"!==e&&s;return f(o-k/2)?(r=c?"bottom":"top",n="center"):f(o-1.5*k)?(r=c?"top":"bottom",n="center"):(r="middle",n=o<1.5*k&&o>k/2?c?"left":"right":c?"right":"left"),{rotation:o,textAlign:n,textVerticalAlign:r}}var T=x.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)};function P(t,e,i){if(!y(t.axis)){var a=t.get("axisLabel.showMinLabel"),n=t.get("axisLabel.showMaxLabel");e=e||[],i=i||[];var r=e[0],o=e[1],s=e[e.length-1],c=e[e.length-2],l=i[0],d=i[1],u=i[i.length-1],f=i[i.length-2];!1===a?(I(r),I(l)):O(r,o)&&(a?(I(o),I(d)):(I(r),I(l))),!1===n?(I(s),I(u)):O(c,s)&&(n?(I(c),I(f)):(I(s),I(u)))}}function I(t){t&&(t.ignore=!0)}function O(t,e,i){var a=t&&t.getBoundingRect().clone(),n=e&&e.getBoundingRect().clone();if(a&&n){var r=v.identity([]);return v.rotate(r,r,-t.rotation),a.applyTransform(v.mul([],r,t.getLocalTransform())),n.applyTransform(v.mul([],r,e.getLocalTransform())),a.intersect(n)}}function E(t){return"middle"===t||"center"===t}function j(t,e,i,a,n){for(var r=[],o=[],s=[],c=0;ce&&(e=t[i]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,i=0;i1)"string"===typeof o?c=i[o]:"function"===typeof o&&(c=o),c&&t.setData(r.downSample(r.mapDimension(d.dim),1/h,c,a))}}}}t.exports=n},fe21:function(t,e,i){var a=i("e86a"),n=i("2306"),r=["textStyle","color"],o={getTextColor:function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(r):null)},getFont:function(){return n.getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(t){return a.getBoundingRect(t,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("lineHeight"),this.getShallow("rich"),this.getShallow("truncateText"))}};t.exports=o},fef1:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"install",staticStyle:{height:"100%"}},[e("user-layout",{attrs:{desc:"正在安装Pear Project项目管理系统"}},[e("div",{staticClass:"main"},[e("a-alert",{attrs:{message:"请确认已正确修改服务端目录下的.env配置文件"}}),e("a-form",{staticClass:"user-layout-login",attrs:{layout:"horizontal",form:t.form},on:{submit:function(e){return e.preventDefault(),t.handleSubmit.apply(null,arguments)}}},[e("a-form-item",{attrs:{label:"清除数据",labelCol:{span:6},wrapperCol:{span:18}}},[e("a-checkbox",{directives:[{name:"decorator",rawName:"v-decorator",value:["initData",{initialValue:!1,valuePropName:"checked"}],expression:"[\n 'initData',\n {initialValue: false, valuePropName: 'checked'}\n ]"}]},[t._v("\n 勾选后将清除预置数据\n ")])],1),e("a-form-item",{staticStyle:{"margin-top":"24px"},attrs:{labelCol:{span:6},wrapperCol:{span:18,offset:3}}},[e("a-button",{staticClass:"middle-btn",attrs:{size:"large",type:"primary",htmlType:"submit",loading:t.loading,disabled:t.loading,block:""}},[t.loading?e("span",[t._v("正在安装,请稍后...")]):e("span",[t._v("立即安装")])])],1)],1)],1)])],1)},n=[],r=i("82f8"),o=i("2f14"),s=i("27f0"),c={components:{UserLayout:s["default"]},data:function(){return{loading:!1,form:this.$form.createForm(this),installInfo:{mysqlHost:"",mysqlDatabase:"",mysqlUsername:"",mysqlPassword:"",mysqlPrefix:"",mysqlHostport:"",initData:!1}}},created:function(){this.checkInstall()},mounted:function(){var t=this;setTimeout((function(){t.form=t.$form.createForm(t)}),500)},methods:{handleSubmit:function(){var t=this;this.form.validateFields((function(e,i){e||(t.installInfo=i,t.install())}))},install:function(){var t=this;this.loading=!0,this.installInfo.initData=this.installInfo.initData?1:0,Object(r["c"])(this.installInfo).then((function(e){if(t.loading=!1,!Object(o["a"])(e))return!1;t.$router.push({name:"login"})})).catch((function(){t.loading=!1}))},checkInstall:function(){var t=this;Object(r["a"])().then((function(e){Object(o["a"])(e)&&t.$router.push({name:"login"})}))}}},l=c,d=i("2877"),u=Object(d["a"])(l,a,n,!1,null,null,null);e["default"]=u.exports},ff2e:function(t,e,i){var a=i("6d8b"),n=i("2306"),r=i("e86a"),o=i("eda2"),s=i("1687"),c=i("697e"),l=i("fab22");function d(t){var e,i=t.get("type"),a=t.getModel(i+"Style");return"line"===i?(e=a.getLineStyle(),e.fill=null):"shadow"===i&&(e=a.getAreaStyle(),e.stroke=null),e}function u(t,e,i,a,n){var s=i.get("value"),c=h(s,e.axis,e.ecModel,i.get("seriesDataIndices"),{precision:i.get("label.precision"),formatter:i.get("label.formatter")}),l=i.getModel("label"),d=o.normalizeCssArray(l.get("padding")||0),u=l.getFont(),p=r.getBoundingRect(c,u),m=n.position,v=p.width+d[1]+d[3],g=p.height+d[0]+d[2],b=n.align;"right"===b&&(m[0]-=v),"center"===b&&(m[0]-=v/2);var _=n.verticalAlign;"bottom"===_&&(m[1]-=g),"middle"===_&&(m[1]-=g/2),f(m,v,g,a);var y=l.get("backgroundColor");y&&"auto"!==y||(y=e.get("axisLine.lineStyle.color")),t.label={shape:{x:0,y:0,width:v,height:g,r:l.get("borderRadius")},position:m.slice(),style:{text:c,textFont:u,textFill:l.getTextColor(),textPosition:"inside",textPadding:d,fill:y,stroke:l.get("borderColor")||"transparent",lineWidth:l.get("borderWidth")||0,shadowBlur:l.get("shadowBlur"),shadowColor:l.get("shadowColor"),shadowOffsetX:l.get("shadowOffsetX"),shadowOffsetY:l.get("shadowOffsetY")},z2:10}}function f(t,e,i,a){var n=a.getWidth(),r=a.getHeight();t[0]=Math.min(t[0]+e,n)-e,t[1]=Math.min(t[1]+i,r)-i,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function h(t,e,i,n,r){t=e.scale.parse(t);var o=e.scale.getLabel(t,{precision:r.precision}),s=r.formatter;if(s){var l={value:c.getAxisRawValue(e,t),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};a.each(n,(function(t){var e=i.getSeriesByIndex(t.seriesIndex),a=t.dataIndexInside,n=e&&e.getDataParams(a);n&&l.seriesData.push(n)})),a.isString(s)?o=s.replace("{value}",o):a.isFunction(s)&&(o=s(l))}return o}function p(t,e,i){var a=s.create();return s.rotate(a,a,i.rotation),s.translate(a,a,i.position),n.applyTransform([t.dataToCoord(e),(i.labelOffset||0)+(i.labelDirection||1)*(i.labelMargin||0)],a)}function m(t,e,i,a,n,r){var o=l.innerTextLayout(i.rotation,0,i.labelDirection);i.labelMargin=n.get("label.margin"),u(e,a,n,r,{position:p(a.axis,t,i),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function v(t,e,i){return i=i||0,{x1:t[i],y1:t[1-i],x2:e[i],y2:e[1-i]}}function g(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}}function b(t,e,i,a,n,r){return{cx:t,cy:e,r0:i,r:a,startAngle:n,endAngle:r,clockwise:!0}}e.buildElStyle=d,e.buildLabelElOption=u,e.getValueLabel=h,e.getTransformedPosition=p,e.buildCartesianSingleLabelElOption=m,e.makeLineShape=v,e.makeRectShape=g,e.makeSectorShape=b},ff77:function(t,e,i){"use strict";function a(t){return r.ddSdk.invokeAPI(o,t)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.post$=void 0;var r=i("c6b3"),o="biz.ding.post";r.ddSdk.setAPI(o,(n={},n[r.ENV_ENUM.pc]={vs:"3.0.0"},n[r.ENV_ENUM.ios]={vs:"2.4.0"},n[r.ENV_ENUM.android]={vs:"2.4.0"},n)),e.post$=a,e.default=a},ff9d:function(t,e,i){"use strict";function a(t){return r.ddSdk.invokeAPI(o,t)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.startAuth$=void 0;var r=i("c6b3"),o="biz.edu.startAuth";r.ddSdk.setAPI(o,(n={},n[r.ENV_ENUM.ios]={vs:"6.3.20"},n[r.ENV_ENUM.android]={vs:"6.3.20"},n)),e.startAuth$=a,e.default=a}}]);
\ No newline at end of file
diff --git a/js/chunk-dce5b356.6cc777a1.js b/js/chunk-2b587d1f.6b3a12f5.js
similarity index 84%
rename from js/chunk-dce5b356.6cc777a1.js
rename to js/chunk-2b587d1f.6b3a12f5.js
index fb42353..ae0e575 100644
--- a/js/chunk-dce5b356.6cc777a1.js
+++ b/js/chunk-2b587d1f.6b3a12f5.js
@@ -1 +1 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-dce5b356"],{"9bef":function(t,e,a){"use strict";a.r(e);a("7f7f");var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"project-space-task",class:"".concat(t.project.task_board_theme," ").concat(t.viewType)},[e("div",{staticClass:"project-navigation"},[e("div",{staticClass:"project-nav-header"},[e("a-breadcrumb",[e("a-breadcrumb-item",[e("a",{on:{click:t.toHome}},[e("a-icon",{attrs:{type:"home"}}),t._v(" 首页 ")],1)]),e("a-breadcrumb-item",[e("project-select",{staticClass:"nav-title",staticStyle:{display:"inline-block"},attrs:{code:t.code}})],1)],1)],1),e("section",{staticClass:"nav-body"},[e("ul",{staticClass:"nav-wrapper nav nav-underscore pull-left"},[e("li",[e("a",{staticClass:"app",attrs:{"data-app":"tasks"},on:{click:function(e){return t.$router.push("/project/space/task/"+t.code)}}},[t._v("任务")])]),e("li",{},[e("a",{staticClass:"app",attrs:{"data-app":"works"},on:{click:function(e){return t.$router.push("/project/space/files/"+t.code)}}},[t._v("\n 文件")])]),e("li",{},[e("a",{staticClass:"app",attrs:{"data-app":"build"},on:{click:function(e){return t.$router.push("/project/space/overview/"+t.code)}}},[t._v("\n 概览")])]),t._m(0)])]),e("div",{staticClass:"project-nav-footer"},[e("a",{staticClass:"footer-item",on:{click:function(e){return t.visibleDraw("taskSearch")}}},[e("a-icon",{attrs:{type:"search"}}),e("span",[t._v(" 筛选")])],1)])]),e("wrapper-content",{attrs:{showHeader:!1}},[e("div",{directives:[{name:"show",rawName:"v-show",value:"task-board"==t.viewType,expression:"viewType == 'task-board'"}],staticClass:"board-scrum-stages",attrs:{e:"",options:{group:"stages",filter:".undraggables",handle:".ui-sortable-handle",ghostClass:"stage-ghost",animation:200,forceFallback:!1},id:"board-scrum-stages"},on:{end:t.stageSort}},[t._l(t.taskStages,(function(a,s){return e("div",{key:s,staticClass:"scrum-stage",class:{"fixed-creator":1==a.fixedCreator},staticStyle:{width:"32vw","min-width":"400px"},attrs:{id:a.code}},[e("header",{directives:[{name:"show",rawName:"v-show",value:!a.tasksLoading,expression:"!stage.tasksLoading"}],staticClass:"scrum-stage-header ui-sortable-handle"},[e("div",{staticClass:"stage-name hinted"},[t._v("\n "+t._s(a.name)+"\n "),a.tasks.length>0?e("span",{staticClass:"task-count"},[t._v("\n · "+t._s(a.tasks.length))]):t._e()]),e("div",{staticClass:"stage-menu-toggler popover"},[e("a-dropdown",{attrs:{trigger:["click"],placement:"bottomCenter"}},[e("a-tooltip",{attrs:{placement:"top"}},[e("template",{slot:"title"},[e("span",[t._v("编辑任务列表")])]),e("a",{staticClass:"menu-toggler-title",attrs:{href:"javascript:void(0)"}},[e("a-icon",{staticStyle:{"font-size":"18px"},attrs:{type:"ellipsis"}})],1)],2),e("a-menu",{attrs:{slot:"overlay",selectable:!1},on:{click:t.doStage},slot:"overlay"},[e("a-menu-item",{key:"setExecutor_"+a.code+"_"+s},[e("a-icon",{attrs:{size:"14",type:"user"}}),t._v("\n 设置本列所有任务执行者\n ")],1),e("a-menu-item",{key:"recycleBatch_"+a.code+"_"+s},[e("a-icon",{attrs:{size:"14",type:"delete"}}),t._v("\n 本列所有任务移到回收站\n ")],1)],1)],1)],1)]),e("div",{staticClass:"scrum-stage-wrap ui-sortable",class:{"hidden-creator-bottom":a.showTaskCard}},[e("vue-scroll",{ref:s+"-stage",refInFor:!0,attrs:{ops:t.scrollOps}},[e("section",{staticClass:"scrum-stage-content thin-scroll",attrs:{id:a.code,"task-type-index":s}},[e("a-spin",{attrs:{wrapperClassName:"tasks-loading",spinning:a.tasksLoading}},[e("div",{staticClass:"scrum-stage-tasks",attrs:{options:{group:"task",ghostClass:"task-ghost",dragClass:"task-drag",fallbackClass:"task-drag",forceFallback:!1}},on:{end:t.taskSort}},[t._l(a.unDoneTasks,(function(a,i){return[!a.done&&a.canRead?e("div",{key:a.code,staticClass:"task task-card ui-sortable-handle",class:t.showTaskPri(a.pri),attrs:{index:i,id:a.code},on:{click:function(e){return e.stopPropagation(),t.taskDetail(a.code,s)}}},[e("div",{staticClass:"task-priority bg-priority-0"}),e("a-tooltip",{attrs:{placement:s>0?"top":"right"}},[e("template",{slot:"title"},[a.hasUnDone?e("span",{staticStyle:{"font-size":"12px"}},[t._v("子任务尚未全部完成,无法完成父任务")]):t._e()]),e("div",{staticClass:"check-box-wrapper"})],2),e("div",{staticClass:"task-content-set open-detail"},[e("div",{staticClass:"task-content-wrapper"},[e("div",{staticClass:"task-content",style:{overflowWrap:"anywhere"}},[t._v("\n "+t._s(a.name)+"\n ")]),a.executor&&a.executor.avatar?e("a-tooltip",{attrs:{placement:"top"}},[e("template",{slot:"title"},[e("span",[t._v(t._s(a.executor.name))])]),e("img",{staticClass:"avatar img-circle img-24 hinted",attrs:{src:a.executor.avatar,title:a.executor.name}})],2):t._e()],1),e("div",{staticClass:"task-info-wrapper clearfix"},[e("div",{staticClass:"task-infos"},[a.status?e("span",{staticClass:"icon-wrapper",style:{color:t.getStatusColor(a.status),fontSize:"12px"}},[t._v(t._s(a.statusText))]):t._e(),a.end_time?e("span",{staticClass:"label",class:t.showTimeLabel(a.end_time)},[e("span",{attrs:{title:a.end_time}},[t._v("\n "+t._s(t.showTaskTime(a.begin_time,a.end_time))+"\n ")])]):t._e(),a.description?e("span",{staticClass:"icon-wrapper muted"},[e("a-icon",{attrs:{type:"file-text"}})],1):t._e(),a.hasSource?e("span",{staticClass:"icon-wrapper muted"},[e("a-icon",{attrs:{type:"link"}})],1):t._e(),a.hasComment?e("span",{staticClass:"icon-wrapper muted"},[e("a-icon",{attrs:{type:"message"}})],1):t._e(),a.childCount[0]>0?e("span",{staticClass:"icon-wrapper muted"},[e("a-icon",{attrs:{type:"bars"}}),e("span",[t._v(t._s(a.childCount[1])+"/"+t._s(a.childCount[0]))])],1):t._e(),t._l(a.tags,(function(a){return e("span",{key:a.code,staticClass:"tag muted"},[e("a-badge",{class:"badge-".concat(a.tag.color),attrs:{status:"success"}}),t._v("\n "+t._s(a.tag.name)+"\n ")],1)})),a.execute_state>0?e("span",{class:"icon-wrapper text text-"+a.task_execute.color},[t._v(t._s(a.task_execute_name))]):t._e(),a.like?e("span",{staticClass:"icon-wrapper muted"},[e("a-icon",{attrs:{type:"like"}}),e("span",[t._v(t._s(a.like))])],1):t._e()],2)]),t.project.prefix&&t.project.open_prefix?e("footer",{staticClass:"task-info-footer"},[e("span",{staticClass:"task-id-number"},[t._v("\n "+t._s(t.project.prefix)+"-"+t._s(a.id_num)+"\n ")])]):t._e()])],1):t._e()]}))],2),e("div",{directives:[{name:"show",rawName:"v-show",value:a.showTaskCard,expression:"stage.showTaskCard"}],staticClass:"task-creator-wrap card",attrs:{id:"card"+s}},[e("form",{staticClass:"task-creator"},[e("a-input",{ref:"inputTaskName".concat(s),refInFor:!0,staticClass:"task-content-input",attrs:{type:"textarea",rows:3,placeholder:"任务内容"},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.createTask(a.code,s)}},model:{value:t.task.name,callback:function(e){t.$set(t.task,"name",e)},expression:"task.name"}}),e("div",{staticClass:"handler-wrap"},[e("a-dropdown",{attrs:{trigger:["click"]}},[e("a",{staticClass:"executor-handler"},[e("img",{staticClass:"avatar img-circle img-24 hinted",attrs:{src:t.defaultExecutor.avatar}}),e("span",{staticClass:"creator-handler-text name"},[t._v(t._s(t.defaultExecutor.name))])]),e("a-menu",{staticClass:"executor-handler-menu",attrs:{slot:"overlay"},on:{click:t.selectExecutor},slot:"overlay"},t._l(t.projectMembers,(function(a,s){return e("a-menu-item",{key:s},[e("img",{staticClass:"avatar img-circle img-32 pull-left m-r-sm",attrs:{src:a.avatar}}),e("span",{staticClass:"muted",staticStyle:{"line-height":"25px"}},[t._v(t._s(a.name))]),a.code==t.defaultExecutor.code?e("a-icon",{staticClass:"muted",attrs:{type:"check"}}):t._e()],1)})),1)],1)],1),e("div",{staticClass:"submit-set"},[e("a-button",{staticClass:"middle-btn",attrs:{type:"default",size:"large"},on:{click:function(e){return e.stopPropagation(),t.showTaskCard(s,!1)}}},[t._v("取消\n ")]),e("a-button",{staticClass:"middle-btn",class:{"disabled-btn":!t.task.name},attrs:{loading:t.createTaskLoading,disabled:!t.task.name,type:"primary",size:"large"},on:{click:function(e){return e.stopPropagation(),t.createTask(a.code,s)}}},[t._v("创建\n ")])],1)],1)]),e("div",{staticClass:"scrum-stage-tasks-done",attrs:{options:{group:"task-done",ghostClass:"task-ghost",dragClass:"task-drag",fallbackClass:"task-drag",forceFallback:!1}},on:{end:t.taskSort}},[t._l(a.doneTasks,(function(a,i){return[a.canRead?e("div",{key:a.code,staticClass:"task done task-card ui-sortable-handle",attrs:{index:i,id:a.code},on:{click:function(e){return e.stopPropagation(),t.taskDetail(a.code,s)}}},[e("div",{staticClass:"task-priority bg-priority-0"}),e("span",{staticClass:"check-box-wrapper"}),e("div",{staticClass:"task-content-set open-detail"},[e("div",{staticClass:"task-content-wrapper"},[e("div",{staticClass:"task-content",style:{overflowWrap:"anywhere"}},[t._v("\n "+t._s(a.name)+"\n ")]),a.executor&&a.executor.avatar?e("a-tooltip",{attrs:{placement:"top"}},[e("template",{slot:"title"},[e("span",[t._v(t._s(a.executor.name))])]),a.executor&&a.executor.avatar?e("img",{staticClass:"avatar img-circle img-24 hinted",attrs:{src:a.executor.avatar,title:a.executor.name}}):t._e()],2):t._e()],1),e("div",{staticClass:"task-info-wrapper clearfix"},[e("div",{staticClass:"task-infos"},t._l(a.task_tag_item_list,(function(a,s){return e("span",{key:a.code,staticClass:"tag muted",class:"tag-color-"+a.color},[t._v("\n "+t._s(a.name)+"\n ")])})),0)])])]):t._e()]}))],2),e("div",{directives:[{name:"show",rawName:"v-show",value:a.canNotReadCount,expression:"stage.canNotReadCount"}],staticClass:"scrum-stage-tasks-done"},[e("li",{staticClass:"task muted",staticStyle:{margin:"0 10px 8px"}},[e("span",[e("a-icon",{attrs:{type:"lock"}}),t._v(" 有\n "+t._s(a.canNotReadCount)+"\n 个任务被隐藏(因为设置了仅参与者可见)")],1)])]),(a.showTaskCard,t._e())])],1)])],1)])})),t._e()],2),"task-table"!=t.viewType||t.loading?t._e():e("task-table",{attrs:{"project-code":this.code}}),e("router-view")],1),e("a-modal",{attrs:{width:360,title:t.stageModal.modalTitle,bodyStyle:{paddingBottom:"1px"},footer:null},model:{value:t.stageModal.modalStatus,callback:function(e){t.$set(t.stageModal,"modalStatus",e)},expression:"stageModal.modalStatus"}},[e("a-form",{attrs:{form:t.stageModal.form},on:{submit:function(e){return e.preventDefault(),t.editStage.apply(null,arguments)}}},[e("a-form-item",[e("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{rules:[{required:!0,message:"请输入列表标题"}]}],expression:"[\n 'name',\n { rules: [{ required: true, message: '请输入列表标题' }] },\n ]"}],ref:"inputStageTitle",attrs:{placeholder:"列表标题"}})],1),e("a-form-item",[e("div",{staticClass:"action-btn pull-right"},[e("a",{staticClass:"cancel-text muted",attrs:{type:"text"},on:{click:function(e){t.stageModal.modalStatus=!1}}},[t._v("\n 取消\n ")]),e("a-button",{staticClass:"middle-btn",attrs:{type:"primary",htmlType:"submit"}},[t._v("保存")])],1)])],1)],1),e("a-drawer",{attrs:{wrapClassName:"info-drawer",title:"项目成员",width:"350",placement:"right",visible:t.inviteMemberDraw.visible},on:{close:function(e){t.inviteMemberDraw.visible=!1}}},[e("div",{staticClass:"search-content"},[e("a-input",{attrs:{size:"large",placeholder:"输入昵称或邮箱查找"},model:{value:t.inviteMemberDraw.keyword,callback:function(e){t.$set(t.inviteMemberDraw,"keyword",e)},expression:"inviteMemberDraw.keyword"}},[e("a-icon",{attrs:{slot:"prefix",type:"search"},slot:"prefix"})],1)],1),e("div",{staticClass:"member-list"},[e("div",{staticClass:"member-list-item ant-list-item header-action"},[e("div",{staticClass:"ant-list-item-meta",on:{click:function(e){t.showInviteMember=!0}}},[e("div",{staticClass:"ant-list-item-meta-avatar"},[e("a-avatar",{attrs:{icon:"plus"}})],1),e("div",{staticClass:"ant-list-item-meta-content"},[e("h4",{staticClass:"ant-list-item-meta-title"},[e("span",[t._v("邀请新成员")])])])])]),e("a-list",{attrs:{itemLayout:"horizontal",loading:t.inviteMemberDraw.searching,dataSource:t.projectMembers,locale:{emptyText:t.inviteMemberDraw.keyword&&t.inviteMemberDraw.keyword.length>1?"没有搜索到相关成员":""}},scopedSlots:t._u([{key:"renderItem",fn:function(a,s){return e("a-list-item",{staticClass:"member-list-item"},[a.is_owner?t._e():e("span",{attrs:{slot:"actions"},slot:"actions"},[e("a",{staticClass:"muted",on:{click:function(e){return t.removeMember(a,s)}}},[e("a-icon",{attrs:{type:"user-delete"}}),t._v(" 移除")],1)]),e("a-list-item-meta",{attrs:{description:a.email}},[e("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(a.name))]),e("a-avatar",{attrs:{slot:"avatar",icon:"user",src:a.avatar},slot:"avatar"})],1)],1)}}])})],1)]),e("a-drawer",{attrs:{wrapClassName:"info-drawer",title:"项目设置",width:"350",placement:"right",visible:t.configDraw.visible},on:{close:function(e){t.configDraw.visible=!1}}},[e("div",{staticClass:"config-wrapper"},[e("ul",{staticClass:"config-menus"},[e("li",{staticClass:"menu-item"},[e("a",{on:{click:function(e){t.projectModal.modalStatus=!0}}},[e("a-icon",{attrs:{type:"setting"}}),t._v("\n 项目设置\n ")],1)]),e("li",{staticClass:"menu-item"},[e("a",{on:{click:function(e){t.recycleModal.modalStatus=!0}}},[e("a-icon",{attrs:{type:"delete"}}),t._v("\n 查看回收站\n ")],1)]),e("li",{staticClass:"menu-item"},[e("a",[e("a-icon",{attrs:{type:"logout"}}),t._v("\n 导出任务 *\n ")],1)]),e("li",{staticClass:"menu-item"},[e("a",[e("a-icon",{attrs:{type:"copy"}}),t._v("\n 复制项目 *\n ")],1)]),e("li",{staticClass:"menu-item"},[e("a",[e("a-icon",{attrs:{type:"block"}}),t._v("\n 保存为项目模板 *\n ")],1)])])])]),e("a-modal",{staticClass:"project-config-modal",attrs:{destroyOnClose:"",width:800,title:t.projectModal.modalTitle,footer:null},model:{value:t.projectModal.modalStatus,callback:function(e){t.$set(t.projectModal,"modalStatus",e)},expression:"projectModal.modalStatus"}},[e("project-config",{attrs:{code:t.code},on:{update:t.updateProject,complete:function(e){t.projectModal.modalStatus=!1}}})],1),e("a-modal",{staticClass:"recycle-bin-modal",attrs:{width:800,title:t.recycleModal.modalTitle,footer:null},model:{value:t.recycleModal.modalStatus,callback:function(e){t.$set(t.recycleModal,"modalStatus",e)},expression:"recycleModal.modalStatus"}},[t.recycleModal.modalStatus?e("recycle-bin",{attrs:{code:t.code},on:{update:t.init}}):t._e()],1),e("a-modal",{staticClass:"task-tag-modal",attrs:{width:800,title:t.taskTagModal.modalTitle,footer:null},model:{value:t.taskTagModal.modalStatus,callback:function(e){t.$set(t.taskTagModal,"modalStatus",e)},expression:"taskTagModal.modalStatus"}},[t.taskTagModal.modalStatus?e("task-tag",{attrs:{code:t.code},on:{update:t.init}}):t._e()],1),e("a-modal",{staticClass:"invite-project-member",attrs:{width:360,title:t.projectMemberModal.modalTitle,footer:null},model:{value:t.projectMemberModal.modalStatus,callback:function(e){t.$set(t.projectMemberModal,"modalStatus",e)},expression:"projectMemberModal.modalStatus"}},[e("div",{staticClass:"member-list"},[e("a-list",{staticClass:"project-list",attrs:{itemLayout:"horizontal",loading:t.loading,dataSource:t.projectMembers},scopedSlots:t._u([{key:"renderItem",fn:function(a){return e("a-list-item",{},[e("span",{attrs:{slot:"actions"},slot:"actions"},[e("a-button",{attrs:{size:"small",type:"dashed",icon:"user-add"},on:{click:function(e){return t.setExecutor(a)}}},[t._v("设置")])],1),e("a-list-item-meta",{attrs:{description:a.email}},[e("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(a.name))]),e("a-avatar",{attrs:{slot:"avatar",icon:"user",src:a.avatar},slot:"avatar"})],1)],1)}}])})],1)]),e("a-drawer",{attrs:{wrapClassName:"info-drawer task-search",title:"任务筛选",width:"350",placement:"right",visible:t.taskSearch.visible},on:{close:function(e){t.taskSearch.visible=!1}}},[e("task-search",{attrs:{"project-code":t.code},on:{search:t.taskSearchAction}})],1),t.showInviteMember?e("invite-project-member",{attrs:{"project-code":t.code},model:{value:t.showInviteMember,callback:function(e){t.showInviteMember=e},expression:"showInviteMember"}}):t._e()],1)},i=[function(){var t=this,e=t._self._c;return e("li",{staticClass:"actives"},[e("a",{staticClass:"app",attrs:{"data-app":"tasks"}},[t._v("抄送")])])}],o=(a("8e6e"),a("456d"),a("7514"),a("20d6"),a("28a5"),a("55dd"),a("ac6a"),a("ade3")),r=a("2f62"),n=a("2ef0"),c=a.n(n),l=a("c1df"),d=a.n(l),u=a("f93e"),p=a("b76a"),m=a.n(p),h=a("f8c7"),g=a("d3a1"),f=a("58bf"),k=a("51e2"),v=a("b83b"),b=a("e3cc"),w=a("1d80"),C=a("e507"),y=a("24d2"),_=a("9f5d"),S=a("b199"),j=a("2f14"),T=a("81fe"),M=a("4200"),x=a("97a8");function O(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,s)}return a}function D(t){for(var e=1;e0&&void 0!==arguments[0])||arguments[0],a=this;Object(C["d"])({projectCode:this.code,pageSize:30}).then((function(s){var i=[];if(e?t.taskStages=i=s.data.list:s.data.list.forEach((function(t){t.tasksLoading=!1,i.push(t)})),i){a.taskSearchParams;i.forEach((function(t,s){t.page=1,a.getTasks(t,s,e)}))}}))},getTasks:function(t,e,a){var s=this,i=this.taskSearchParams,o={};o={stageCode:t.code,type:"copied_list"},o=Object.assign(o,i),Object(C["h"])(o).then((function(i){var o=0;i.data.forEach((function(e){e.canRead||o++,e.done?t.doneTasks.push(e):t.unDoneTasks.push(e)})),t.canNotReadCount=o,t.tasksLoading=!1,t.tasks=i.data,a||s.$set(s.taskStages,e,t)}))},filterTask:function(t,e){return t.filter((function(t){return t.done==e}))},taskSearchAction:function(t){console.log(t),this.taskSearchParams=t,this.getTaskStages()},showTaskCard:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.taskStages.forEach((function(t){t.showTaskCard=!1})),!1===e)return!1;this.taskStages[e].showTaskCard=a,this.$nextTick((function(){t.$refs[e+"-stage"][0].scrollIntoView("#card"+e),t.$refs["inputTaskName".concat(e)][0].focus()}))},selectExecutor:function(t){var e=t.key;this.defaultExecutor=this.projectMembers[e]},addTask:function(){if(!this.taskStages[0].code)return Object(x["b"])({title:"请先创建任务列表"},"error",5e3);this.$router.push("".concat(this.$route.path,"/add/").concat(this.code,"?name=").concat(this.project.name,"&from=",0,"&stage_code=").concat(this.taskStages[0].code))},createTask:function(t,e){if(!this.task.name)return this.$message.warning("任务内容不能为空",2),!1;this.task.stage_code=t,this.task.project_code=this.code,this.task.assign_to=this.defaultExecutor.code,this.confirmCreateTask(e)},confirmCreateTask:function(t){var e=this,a=this;if(a.createTaskLoading)return a.$message.warning("正在添加任务,请稍后...",2),!1;setTimeout((function(){!0===a.createTaskLoading&&a.$message.loading({content:"正在添加任务,请稍后...",duration:5})}),2e3),a.createTaskLoading=!0,Object(S["s"])(a.task).then((function(s){a.createTaskLoading=!1;var i=Object(j["a"])(s);if(i){a.$message.destroy();var o=a.taskStages[t];o.tasks.push(s.data),a.taskStages[t].unDoneTasks.push(s.data),a.task={},e.taskDetail(s.data.code,t),console.log(D({},s.data))}})).catch((function(){a.createTaskLoading=!1}))},taskDone:function(t,e,a,s){var i=this,o=null,r=this.taskStages[e].unDoneTasks,n=this.taskStages[e].doneTasks;if(o=s?r[a]:n[a],o.hasUnDone)return!1;o.done=s,s?(r.splice(a,1),n.push(o),n=n.sort((function(t,e){return t.sort===e.sort?t.id_num-e.id_num:t.sort-e.sort}))):(n.splice(a,1),r.push(o),r=r.sort((function(t,e){return t.sort===e.sort?t.id_num-e.id_num:t.sort-e.sort}))),Object(S["z"])(t,s).then((function(t){var e=Object(j["a"])(t);if(!e)return!1;i.getTaskStages(!1)}))},showInputStrageName:function(){var t=this;this.showCreateStage=!this.showCreateStage,this.$nextTick((function(){t.$refs.inputStageName.focus()}))},doStage:function(t){var e=this,a=this,s=t.key.split("_"),i=s[s.length-2],o=s[s.length-1],r=s[0];switch(r){case"editStage":this.stageModal.stageCode=i,this.stageModal.stageIndex=o,this.$nextTick((function(){e.stageModal.form.setFieldsValue({name:e.taskStages[o].name}),e.$refs.inputStageTitle.focus()})),this.stageModal.modalStatus=!0;break;case"recycleBatch":this.$confirm({title:"移到回收站",content:"您确定要把列表下的所有任务移到回收站吗?",okText:"移到回收站",okType:"danger",cancelText:"再想想",onOk:function(){return a.taskStages[o].tasks=[],a.$set(a.taskStages[o],"doneTasks",[]),Object(S["r"])({stageCode:i}).then((function(t){var e=Object(j["a"])(t);if(!e)return!1;a.$set(a.taskStages[o],"doneTasks",[]),a.$set(a.taskStages[o],"unDoneTasks",[])})),Promise.resolve()}});break;case"setEndTime":this.set_type_endTime_modal=!0;break;case"setExecutor":this.projectMemberModal.currentStageIndex=o,this.projectMemberModal.modalStatus=!0;break;case"delStage":if(this.taskStages[o].tasks.length>0)return this.$warning({title:"删除列表",content:"请先清空此列表上的任务,然后再删除这个列表",okText:"确定"}),!1;this.$confirm({title:"删除列表",content:"您确定要永远删除这个列表吗?",okText:"删除",okType:"danger",cancelText:"再想想",onOk:function(){return Object(C["b"])(i),a.taskStages.splice(o,1),Promise.resolve()}});break}},creteStage:function(){var t=this;if(!this.stageName)return this.$message.warning("请输入列表名称",2),!1;Object(C["e"])({name:this.stageName,projectCode:this.code}).then((function(e){var a=Object(j["a"])(e);if(!a)return!1;var s=e.data;t.taskStages.push(s),t.stageName="",t.$nextTick((function(){document.getElementById("board-scrum-stages").scrollLeft=1e4}))}))},editStage:function(){var t=this,e=this.stageModal.form.getFieldsValue();if(!e.name)return this.$message.warning("请输入列表名称",2),!1;Object(C["c"])({name:e.name,stageCode:this.stageModal.stageCode}).then((function(a){var s=Object(j["a"])(a);if(!s)return!1;t.taskStages[t.stageModal.stageIndex].name=e.name,t.stageModal.modalStatus=!1}))},setExecutor:function(t){var e=this,a=this.taskStages[this.projectMemberModal.currentStageIndex],s=[];a.tasks.forEach((function(t){t.canRead&&s.push(t.code)})),s?Object(S["c"])({taskCodes:JSON.stringify(s),executorCode:t.code}).then((function(t){if(e.projectMemberModal.modalStatus=!1,!Object(j["a"])(t))return!1;Object(C["h"])({stageCode:a.code,type:"copied_list"}).then((function(t){var e=0;t.data.forEach((function(t){t.canRead||e++})),a.canNotReadCount=e,a.tasksLoading=!1,a.tasks=t.data}))})):this.projectMemberModal.modalStatus=!1},showTaskPri:function(t){return{warning:1==t,error:2==t}},showTimeLabel:function(t){var e="label-primary";if(null==t)return e;var a=d()(d()(t).format("YYYY-MM-DD")).diff(d()().format("YYYY-MM-DD"),"days");return a<0?e="label-danger":0==a?e="label-warning":a>7&&(e="label-normal"),e},showTaskTime:function(t,e){return Object(T["a"])(t,e)},taskDetail:function(t,e){var a=this;this.$router.push("".concat(this.$route.path,"/detail/").concat(t,"?from=").concat(e)),this.$nextTick((function(){setTimeout((function(){a.showTaskCard(e,!1)}),700)}))},stageSort:function(t){var e=this.getPreAndNextCode(t);Object(C["f"])(e[0],e[1],this.code)},getPreAndNextCode:function(t){for(var e=t.clone.getAttribute("id"),a=[],s="",i=0,o=t.to.children.length;i0?e("span",{staticClass:"task-count"},[t._v("\n · "+t._s(a.tasks.length))]):t._e()]),t._e()]),e("div",{staticClass:"scrum-stage-wrap ui-sortable",class:{"hidden-creator-bottom":a.showTaskCard}},[e("vue-scroll",{ref:s+"-stage",refInFor:!0,attrs:{ops:t.scrollOps}},[e("section",{staticClass:"scrum-stage-content thin-scroll",attrs:{id:a.code,"task-type-index":s}},[e("a-spin",{attrs:{wrapperClassName:"tasks-loading",spinning:a.tasksLoading}},[e("div",{staticClass:"scrum-stage-tasks",attrs:{options:{group:"task",ghostClass:"task-ghost",dragClass:"task-drag",fallbackClass:"task-drag",forceFallback:!1}},on:{end:t.taskSort}},[t._l(a.unDoneTasks,(function(a,i){return[!a.done&&a.canRead?e("div",{key:a.code,staticClass:"task task-card ui-sortable-handle",class:t.showTaskPri(a.pri),attrs:{index:i,id:a.code},on:{click:function(e){return e.stopPropagation(),t.taskDetail(a.code,s)}}},[e("div",{staticClass:"task-priority bg-priority-0"}),e("a-tooltip",{attrs:{placement:s>0?"top":"right"}},[e("template",{slot:"title"},[a.hasUnDone?e("span",{staticStyle:{"font-size":"12px"}},[t._v("子任务尚未全部完成,无法完成父任务")]):t._e()]),e("div",{staticClass:"check-box-wrapper"})],2),e("div",{staticClass:"task-content-set open-detail"},[e("div",{staticClass:"task-content-wrapper"},[e("div",{staticClass:"task-content",style:{overflowWrap:"anywhere"}},[t._v("\n "+t._s(a.name)+"\n ")]),a.executor&&a.executor.avatar?e("a-tooltip",{attrs:{placement:"top"}},[e("template",{slot:"title"},[e("span",[t._v(t._s(a.executor.name))])]),e("img",{staticClass:"avatar img-circle img-24 hinted",attrs:{src:a.executor.avatar,title:a.executor.name}})],2):t._e()],1),e("div",{staticClass:"task-info-wrapper clearfix"},[e("div",{staticClass:"task-infos"},[a.status?e("span",{staticClass:"icon-wrapper",style:{color:t.getStatusColor(a.status),fontSize:"12px"}},[t._v(t._s(a.statusText))]):t._e(),a.end_time?e("span",{staticClass:"label",class:t.showTimeLabel(a.end_time)},[e("span",{attrs:{title:a.end_time}},[t._v("\n "+t._s(t.showTaskTime(a.begin_time,a.end_time))+"\n ")])]):t._e(),a.description?e("span",{staticClass:"icon-wrapper muted"},[e("a-icon",{attrs:{type:"file-text"}})],1):t._e(),a.hasSource?e("span",{staticClass:"icon-wrapper muted"},[e("a-icon",{attrs:{type:"link"}})],1):t._e(),a.hasComment?e("span",{staticClass:"icon-wrapper muted"},[e("a-icon",{attrs:{type:"message"}})],1):t._e(),a.childCount[0]>0?e("span",{staticClass:"icon-wrapper muted"},[e("a-icon",{attrs:{type:"bars"}}),e("span",[t._v(t._s(a.childCount[1])+"/"+t._s(a.childCount[0]))])],1):t._e(),t._l(a.tags,(function(a){return e("span",{key:a.code,staticClass:"tag muted"},[e("a-badge",{class:"badge-".concat(a.tag.color),attrs:{status:"success"}}),t._v("\n "+t._s(a.tag.name)+"\n ")],1)})),a.execute_state>0?e("span",{class:"icon-wrapper text text-"+a.task_execute.color},[t._v(t._s(a.task_execute_name))]):t._e(),a.like?e("span",{staticClass:"icon-wrapper muted"},[e("a-icon",{attrs:{type:"like"}}),e("span",[t._v(t._s(a.like))])],1):t._e()],2)]),t.project.prefix&&t.project.open_prefix?e("footer",{staticClass:"task-info-footer"},[e("span",{staticClass:"task-id-number"},[t._v("\n "+t._s(t.project.prefix)+"-"+t._s(a.id_num)+"\n ")])]):t._e()])],1):t._e()]}))],2),e("div",{directives:[{name:"show",rawName:"v-show",value:a.showTaskCard,expression:"stage.showTaskCard"}],staticClass:"task-creator-wrap card",attrs:{id:"card"+s}},[e("form",{staticClass:"task-creator"},[e("a-input",{ref:"inputTaskName".concat(s),refInFor:!0,staticClass:"task-content-input",attrs:{type:"textarea",rows:3,placeholder:"任务内容"},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.createTask(a.code,s)}},model:{value:t.task.name,callback:function(e){t.$set(t.task,"name",e)},expression:"task.name"}}),e("div",{staticClass:"handler-wrap"},[e("a-dropdown",{attrs:{trigger:["click"]}},[e("a",{staticClass:"executor-handler"},[e("img",{staticClass:"avatar img-circle img-24 hinted",attrs:{src:t.defaultExecutor.avatar}}),e("span",{staticClass:"creator-handler-text name"},[t._v(t._s(t.defaultExecutor.name))])]),e("a-menu",{staticClass:"executor-handler-menu",attrs:{slot:"overlay"},on:{click:t.selectExecutor},slot:"overlay"},t._l(t.projectMembers,(function(a,s){return e("a-menu-item",{key:s},[e("img",{staticClass:"avatar img-circle img-32 pull-left m-r-sm",attrs:{src:a.avatar}}),e("span",{staticClass:"muted",staticStyle:{"line-height":"25px"}},[t._v(t._s(a.name))]),a.code==t.defaultExecutor.code?e("a-icon",{staticClass:"muted",attrs:{type:"check"}}):t._e()],1)})),1)],1)],1),e("div",{staticClass:"submit-set"},[e("a-button",{staticClass:"middle-btn",attrs:{type:"default",size:"large"},on:{click:function(e){return e.stopPropagation(),t.showTaskCard(s,!1)}}},[t._v("取消\n ")]),e("a-button",{staticClass:"middle-btn",class:{"disabled-btn":!t.task.name},attrs:{loading:t.createTaskLoading,disabled:!t.task.name,type:"primary",size:"large"},on:{click:function(e){return e.stopPropagation(),t.createTask(a.code,s)}}},[t._v("创建\n ")])],1)],1)]),e("div",{staticClass:"scrum-stage-tasks-done",attrs:{options:{group:"task-done",ghostClass:"task-ghost",dragClass:"task-drag",fallbackClass:"task-drag",forceFallback:!1}},on:{end:t.taskSort}},[t._l(a.doneTasks,(function(a,i){return[a.canRead?e("div",{key:a.code,staticClass:"task done task-card ui-sortable-handle",attrs:{index:i,id:a.code},on:{click:function(e){return e.stopPropagation(),t.taskDetail(a.code,s)}}},[e("div",{staticClass:"task-priority bg-priority-0"}),e("span",{staticClass:"check-box-wrapper"}),e("div",{staticClass:"task-content-set open-detail"},[e("div",{staticClass:"task-content-wrapper"},[e("div",{staticClass:"task-content",style:{overflowWrap:"anywhere"}},[t._v("\n "+t._s(a.name)+"\n ")]),a.executor&&a.executor.avatar?e("a-tooltip",{attrs:{placement:"top"}},[e("template",{slot:"title"},[e("span",[t._v(t._s(a.executor.name))])]),a.executor&&a.executor.avatar?e("img",{staticClass:"avatar img-circle img-24 hinted",attrs:{src:a.executor.avatar,title:a.executor.name}}):t._e()],2):t._e()],1),e("div",{staticClass:"task-info-wrapper clearfix"},[e("div",{staticClass:"task-infos"},t._l(a.task_tag_item_list,(function(a,s){return e("span",{key:a.code,staticClass:"tag muted",class:"tag-color-"+a.color},[t._v("\n "+t._s(a.name)+"\n ")])})),0)])])]):t._e()]}))],2),e("div",{directives:[{name:"show",rawName:"v-show",value:a.canNotReadCount,expression:"stage.canNotReadCount"}],staticClass:"scrum-stage-tasks-done"},[e("li",{staticClass:"task muted",staticStyle:{margin:"0 10px 8px"}},[e("span",[e("a-icon",{attrs:{type:"lock"}}),t._v(" 有\n "+t._s(a.canNotReadCount)+"\n 个任务被隐藏(因为设置了仅参与者可见)")],1)])]),(a.showTaskCard,t._e())])],1)])],1)])})),t._e()],2),"task-table"!=t.viewType||t.loading?t._e():e("task-table",{attrs:{"project-code":this.code}}),e("router-view")],1),e("a-modal",{attrs:{width:360,title:t.stageModal.modalTitle,bodyStyle:{paddingBottom:"1px"},footer:null},model:{value:t.stageModal.modalStatus,callback:function(e){t.$set(t.stageModal,"modalStatus",e)},expression:"stageModal.modalStatus"}},[e("a-form",{attrs:{form:t.stageModal.form},on:{submit:function(e){return e.preventDefault(),t.editStage.apply(null,arguments)}}},[e("a-form-item",[e("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{rules:[{required:!0,message:"请输入列表标题"}]}],expression:"[\n 'name',\n { rules: [{ required: true, message: '请输入列表标题' }] },\n ]"}],ref:"inputStageTitle",attrs:{placeholder:"列表标题"}})],1),e("a-form-item",[e("div",{staticClass:"action-btn pull-right"},[e("a",{staticClass:"cancel-text muted",attrs:{type:"text"},on:{click:function(e){t.stageModal.modalStatus=!1}}},[t._v("\n 取消\n ")]),e("a-button",{staticClass:"middle-btn",attrs:{type:"primary",htmlType:"submit"}},[t._v("保存")])],1)])],1)],1),e("a-drawer",{attrs:{wrapClassName:"info-drawer",title:"项目成员",width:"350",placement:"right",visible:t.inviteMemberDraw.visible},on:{close:function(e){t.inviteMemberDraw.visible=!1}}},[e("div",{staticClass:"search-content"},[e("a-input",{attrs:{size:"large",placeholder:"输入昵称或邮箱查找"},model:{value:t.inviteMemberDraw.keyword,callback:function(e){t.$set(t.inviteMemberDraw,"keyword",e)},expression:"inviteMemberDraw.keyword"}},[e("a-icon",{attrs:{slot:"prefix",type:"search"},slot:"prefix"})],1)],1),e("div",{staticClass:"member-list"},[e("div",{staticClass:"member-list-item ant-list-item header-action"},[e("div",{staticClass:"ant-list-item-meta",on:{click:function(e){t.showInviteMember=!0}}},[e("div",{staticClass:"ant-list-item-meta-avatar"},[e("a-avatar",{attrs:{icon:"plus"}})],1),e("div",{staticClass:"ant-list-item-meta-content"},[e("h4",{staticClass:"ant-list-item-meta-title"},[e("span",[t._v("邀请新成员")])])])])]),e("a-list",{attrs:{itemLayout:"horizontal",loading:t.inviteMemberDraw.searching,dataSource:t.projectMembers,locale:{emptyText:t.inviteMemberDraw.keyword&&t.inviteMemberDraw.keyword.length>1?"没有搜索到相关成员":""}},scopedSlots:t._u([{key:"renderItem",fn:function(a,s){return e("a-list-item",{staticClass:"member-list-item"},[a.is_owner?t._e():e("span",{attrs:{slot:"actions"},slot:"actions"},[e("a",{staticClass:"muted",on:{click:function(e){return t.removeMember(a,s)}}},[e("a-icon",{attrs:{type:"user-delete"}}),t._v(" 移除")],1)]),e("a-list-item-meta",{attrs:{description:a.email}},[e("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(a.name))]),e("a-avatar",{attrs:{slot:"avatar",icon:"user",src:a.avatar},slot:"avatar"})],1)],1)}}])})],1)]),e("a-drawer",{attrs:{wrapClassName:"info-drawer",title:"项目设置",width:"350",placement:"right",visible:t.configDraw.visible},on:{close:function(e){t.configDraw.visible=!1}}},[e("div",{staticClass:"config-wrapper"},[e("ul",{staticClass:"config-menus"},[e("li",{staticClass:"menu-item"},[e("a",{on:{click:function(e){t.projectModal.modalStatus=!0}}},[e("a-icon",{attrs:{type:"setting"}}),t._v("\n 项目设置\n ")],1)]),e("li",{staticClass:"menu-item"},[e("a",{on:{click:function(e){t.recycleModal.modalStatus=!0}}},[e("a-icon",{attrs:{type:"delete"}}),t._v("\n 查看回收站\n ")],1)]),e("li",{staticClass:"menu-item"},[e("a",[e("a-icon",{attrs:{type:"logout"}}),t._v("\n 导出任务 *\n ")],1)]),e("li",{staticClass:"menu-item"},[e("a",[e("a-icon",{attrs:{type:"copy"}}),t._v("\n 复制项目 *\n ")],1)]),e("li",{staticClass:"menu-item"},[e("a",[e("a-icon",{attrs:{type:"block"}}),t._v("\n 保存为项目模板 *\n ")],1)])])])]),e("a-modal",{staticClass:"project-config-modal",attrs:{destroyOnClose:"",width:800,title:t.projectModal.modalTitle,footer:null},model:{value:t.projectModal.modalStatus,callback:function(e){t.$set(t.projectModal,"modalStatus",e)},expression:"projectModal.modalStatus"}},[e("project-config",{attrs:{code:t.code},on:{update:t.updateProject,complete:function(e){t.projectModal.modalStatus=!1}}})],1),e("a-modal",{staticClass:"recycle-bin-modal",attrs:{width:800,title:t.recycleModal.modalTitle,footer:null},model:{value:t.recycleModal.modalStatus,callback:function(e){t.$set(t.recycleModal,"modalStatus",e)},expression:"recycleModal.modalStatus"}},[t.recycleModal.modalStatus?e("recycle-bin",{attrs:{code:t.code},on:{update:t.init}}):t._e()],1),e("a-modal",{staticClass:"task-tag-modal",attrs:{width:800,title:t.taskTagModal.modalTitle,footer:null},model:{value:t.taskTagModal.modalStatus,callback:function(e){t.$set(t.taskTagModal,"modalStatus",e)},expression:"taskTagModal.modalStatus"}},[t.taskTagModal.modalStatus?e("task-tag",{attrs:{code:t.code},on:{update:t.init}}):t._e()],1),e("a-modal",{staticClass:"invite-project-member",attrs:{width:360,title:t.projectMemberModal.modalTitle,footer:null},model:{value:t.projectMemberModal.modalStatus,callback:function(e){t.$set(t.projectMemberModal,"modalStatus",e)},expression:"projectMemberModal.modalStatus"}},[e("div",{staticClass:"member-list"},[e("a-list",{staticClass:"project-list",attrs:{itemLayout:"horizontal",loading:t.loading,dataSource:t.projectMembers},scopedSlots:t._u([{key:"renderItem",fn:function(a){return e("a-list-item",{},[e("span",{attrs:{slot:"actions"},slot:"actions"},[e("a-button",{attrs:{size:"small",type:"dashed",icon:"user-add"},on:{click:function(e){return t.setExecutor(a)}}},[t._v("设置")])],1),e("a-list-item-meta",{attrs:{description:a.email}},[e("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(a.name))]),e("a-avatar",{attrs:{slot:"avatar",icon:"user",src:a.avatar},slot:"avatar"})],1)],1)}}])})],1)]),e("a-drawer",{attrs:{wrapClassName:"info-drawer task-search",title:"任务筛选",width:"350",placement:"right",visible:t.taskSearch.visible},on:{close:function(e){t.taskSearch.visible=!1}}},[e("task-search",{attrs:{"project-code":t.code},on:{search:t.taskSearchAction}})],1),t.showInviteMember?e("invite-project-member",{attrs:{"project-code":t.code},model:{value:t.showInviteMember,callback:function(e){t.showInviteMember=e},expression:"showInviteMember"}}):t._e()],1)},i=[function(){var t=this,e=t._self._c;return e("li",{staticClass:"actives"},[e("a",{staticClass:"app",attrs:{"data-app":"tasks"}},[t._v("抄送")])])}],o=(a("8e6e"),a("456d"),a("7514"),a("20d6"),a("28a5"),a("55dd"),a("ac6a"),a("ade3")),r=a("2f62"),n=a("2ef0"),c=a.n(n),l=a("c1df"),d=a.n(l),u=a("f93e"),m=a("b76a"),p=a.n(m),h=a("f8c7"),f=a("d3a1"),g=a("58bf"),k=a("51e2"),v=a("b83b"),b=a("e3cc"),w=a("1d80"),C=a("e507"),j=a("24d2"),y=a("9f5d"),S=a("b199"),_=a("2f14"),T=a("81fe"),M=a("4200"),x=a("97a8");function O(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,s)}return a}function D(t){for(var e=1;e0&&void 0!==arguments[0])||arguments[0],a=this;Object(C["d"])({projectCode:this.code,pageSize:30}).then((function(s){var i=[];if(e?t.taskStages=i=s.data.list:s.data.list.forEach((function(t){t.tasksLoading=!1,i.push(t)})),i){a.taskSearchParams;i.forEach((function(t,s){t.page=1,a.getTasks(t,s,e)}))}}))},getTasks:function(t,e,a){var s=this,i=this.taskSearchParams,o={};o={stageCode:t.code,type:"copied_list"},o=Object.assign(o,i),Object(C["h"])(o).then((function(i){var o=0;i.data.forEach((function(e){e.canRead||o++,e.done?t.doneTasks.push(e):t.unDoneTasks.push(e)})),t.canNotReadCount=o,t.tasksLoading=!1,t.tasks=i.data,a||s.$set(s.taskStages,e,t)}))},filterTask:function(t,e){return t.filter((function(t){return t.done==e}))},taskSearchAction:function(t){console.log(t),this.taskSearchParams=t,this.getTaskStages()},showTaskCard:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.taskStages.forEach((function(t){t.showTaskCard=!1})),!1===e)return!1;this.taskStages[e].showTaskCard=a,this.$nextTick((function(){t.$refs[e+"-stage"][0].scrollIntoView("#card"+e),t.$refs["inputTaskName".concat(e)][0].focus()}))},selectExecutor:function(t){var e=t.key;this.defaultExecutor=this.projectMembers[e]},addTask:function(){if(!this.taskStages[0].code)return Object(x["b"])({title:"请先创建任务列表"},"error",5e3);this.$router.push("".concat(this.$route.path,"/add/").concat(this.code,"?name=").concat(this.project.name,"&from=",0,"&stage_code=").concat(this.taskStages[0].code))},createTask:function(t,e){if(!this.task.name)return this.$message.warning("任务内容不能为空",2),!1;this.task.stage_code=t,this.task.project_code=this.code,this.task.assign_to=this.defaultExecutor.code,this.confirmCreateTask(e)},confirmCreateTask:function(t){var e=this,a=this;if(a.createTaskLoading)return a.$message.warning("正在添加任务,请稍后...",2),!1;setTimeout((function(){!0===a.createTaskLoading&&a.$message.loading({content:"正在添加任务,请稍后...",duration:5})}),2e3),a.createTaskLoading=!0,Object(S["s"])(a.task).then((function(s){a.createTaskLoading=!1;var i=Object(_["a"])(s);if(i){a.$message.destroy();var o=a.taskStages[t];o.tasks.push(s.data),a.taskStages[t].unDoneTasks.push(s.data),a.task={},e.taskDetail(s.data.code,t),console.log(D({},s.data))}})).catch((function(){a.createTaskLoading=!1}))},taskDone:function(t,e,a,s){var i=this,o=null,r=this.taskStages[e].unDoneTasks,n=this.taskStages[e].doneTasks;if(o=s?r[a]:n[a],o.hasUnDone)return!1;o.done=s,s?(r.splice(a,1),n.push(o),n=n.sort((function(t,e){return t.sort===e.sort?t.id_num-e.id_num:t.sort-e.sort}))):(n.splice(a,1),r.push(o),r=r.sort((function(t,e){return t.sort===e.sort?t.id_num-e.id_num:t.sort-e.sort}))),Object(S["z"])(t,s).then((function(t){var e=Object(_["a"])(t);if(!e)return!1;i.getTaskStages(!1)}))},showInputStrageName:function(){var t=this;this.showCreateStage=!this.showCreateStage,this.$nextTick((function(){t.$refs.inputStageName.focus()}))},doStage:function(t){var e=this,a=this,s=t.key.split("_"),i=s[s.length-2],o=s[s.length-1],r=s[0];switch(r){case"editStage":this.stageModal.stageCode=i,this.stageModal.stageIndex=o,this.$nextTick((function(){e.stageModal.form.setFieldsValue({name:e.taskStages[o].name}),e.$refs.inputStageTitle.focus()})),this.stageModal.modalStatus=!0;break;case"recycleBatch":this.$confirm({title:"移到回收站",content:"您确定要把列表下的所有任务移到回收站吗?",okText:"移到回收站",okType:"danger",cancelText:"再想想",onOk:function(){return a.taskStages[o].tasks=[],a.$set(a.taskStages[o],"doneTasks",[]),Object(S["r"])({stageCode:i}).then((function(t){var e=Object(_["a"])(t);if(!e)return!1;a.$set(a.taskStages[o],"doneTasks",[]),a.$set(a.taskStages[o],"unDoneTasks",[])})),Promise.resolve()}});break;case"setEndTime":this.set_type_endTime_modal=!0;break;case"setExecutor":this.projectMemberModal.currentStageIndex=o,this.projectMemberModal.modalStatus=!0;break;case"delStage":if(this.taskStages[o].tasks.length>0)return this.$warning({title:"删除列表",content:"请先清空此列表上的任务,然后再删除这个列表",okText:"确定"}),!1;this.$confirm({title:"删除列表",content:"您确定要永远删除这个列表吗?",okText:"删除",okType:"danger",cancelText:"再想想",onOk:function(){return Object(C["b"])(i),a.taskStages.splice(o,1),Promise.resolve()}});break}},creteStage:function(){var t=this;if(!this.stageName)return this.$message.warning("请输入列表名称",2),!1;Object(C["e"])({name:this.stageName,projectCode:this.code}).then((function(e){var a=Object(_["a"])(e);if(!a)return!1;var s=e.data;t.taskStages.push(s),t.stageName="",t.$nextTick((function(){document.getElementById("board-scrum-stages").scrollLeft=1e4}))}))},editStage:function(){var t=this,e=this.stageModal.form.getFieldsValue();if(!e.name)return this.$message.warning("请输入列表名称",2),!1;Object(C["c"])({name:e.name,stageCode:this.stageModal.stageCode}).then((function(a){var s=Object(_["a"])(a);if(!s)return!1;t.taskStages[t.stageModal.stageIndex].name=e.name,t.stageModal.modalStatus=!1}))},setExecutor:function(t){var e=this,a=this.taskStages[this.projectMemberModal.currentStageIndex],s=[];a.tasks.forEach((function(t){t.canRead&&s.push(t.code)})),s?Object(S["c"])({taskCodes:JSON.stringify(s),executorCode:t.code}).then((function(t){if(e.projectMemberModal.modalStatus=!1,!Object(_["a"])(t))return!1;Object(C["h"])({stageCode:a.code,type:"copied_list"}).then((function(t){var e=0;t.data.forEach((function(t){t.canRead||e++})),a.canNotReadCount=e,a.tasksLoading=!1,a.tasks=t.data}))})):this.projectMemberModal.modalStatus=!1},showTaskPri:function(t){return{warning:1==t,error:2==t}},showTimeLabel:function(t){var e="label-primary";if(null==t)return e;var a=d()(d()(t).format("YYYY-MM-DD")).diff(d()().format("YYYY-MM-DD"),"days");return a<0?e="label-danger":0==a?e="label-warning":a>7&&(e="label-normal"),e},showTaskTime:function(t,e){return Object(T["a"])(t,e)},taskDetail:function(t,e){var a=this;this.$router.push("".concat(this.$route.path,"/detail/").concat(t,"?from=").concat(e)),this.$nextTick((function(){setTimeout((function(){a.showTaskCard(e,!1)}),700)}))},stageSort:function(t){var e=this.getPreAndNextCode(t);Object(C["f"])(e[0],e[1],this.code)},getPreAndNextCode:function(t){for(var e=t.clone.getAttribute("id"),a=[],s="",i=0,o=t.to.children.length;i"}},t._l(t.task.parentTasks,(function(i){return e("a-breadcrumb-item",{key:i.code},[e("a",{staticClass:"text-default",on:{click:function(e){return t.init(i.code)}}},[t._v(t._s(i.name))])])})),1)],1):e("span",[t._v(t._s(t.task.projectName)+" · "+t._s(t.task.stageName))])]),e("span",{staticClass:"header-action text-right"},[t.task.deleted?[e("a",{staticClass:"action-item muted",on:{click:t.recoveryTask}},[e("a-icon",{attrs:{type:"undo"}}),e("span",[t._v("恢复内容")])],1),e("a",{staticClass:"action-item muted",on:{click:t.deleteTask}},[e("a-icon",{attrs:{type:"delete"}}),e("span",[t._v("彻底删除")])],1)]:[e("a-tooltip",{attrs:{mouseEnterDelay:.5}},[e("template",{slot:"title"},[e("span",[t._v("复制任务链接")])]),e("a",{directives:[{name:"clipboard",rawName:"v-clipboard",value:t.taskLink,expression:"taskLink"}],staticClass:"action-item muted",on:{success:t.copyLink}},[e("a-icon",{attrs:{type:"link"}})],1)],2)],e("a-tooltip",{attrs:{mouseEnterDelay:.5}},[e("template",{slot:"title"},[e("span",[t._v("关闭面板")])]),e("a",{staticClass:"action-item muted",on:{click:t.detailClose}},[e("a-icon",{attrs:{type:"close"}})],1)],2)],2)]),e("div",{staticClass:"task-wrap"},[e("div",{staticClass:"task-content"},[e("div",{staticClass:"content-left"},[e("vue-scroll",{attrs:{ops:t.scrollOps}},[e("div",{staticClass:"task-title",class:{disabled:t.task.deleted},style:{"pointer-events":t.userInfo.code==t.task.create_by?"all":"none"}},[e("a-input",{directives:[{name:"show",rawName:"v-show",value:t.showEditName,expression:"showEditName"}],ref:"inputTitle",attrs:{size:"large"},on:{blur:t.doName},model:{value:t.task.name,callback:function(e){t.$set(t.task,"name",e)},expression:"task.name"}}),t.task.deleted?e("div",{directives:[{name:"show",rawName:"v-show",value:!t.showEditName,expression:"!showEditName"}],staticClass:"title-text"},[t._v("\n "+t._s(t.task.name)+"\n ")]):e("a-tooltip",{attrs:{mouseEnterDelay:.5}},[e("template",{slot:"title"},[e("span",[t._v("点击即可编辑")])]),e("div",{directives:[{name:"show",rawName:"v-show",value:!t.showEditName,expression:"!showEditName"}],staticClass:"title-text",on:{click:t.editTitle}},[t._v("\n "+t._s(t.task.name)+"\n ")])],2)],1),e("div",{staticClass:"task-basic-attrs-view muted"},[e("div",{staticClass:"field-list",class:{disabled:t.task.deleted}},[e("div",{staticClass:"component-mount pink-bg",style:{"pointer-events":t.userInfo.code==t.task.create_by?"all":"none"}},[e("div",{staticClass:"field"},[e("div",{staticClass:"field-left"},[e("a-icon",{attrs:{type:"file-text"}}),e("span",{staticClass:"field-name"},[t._v("工作内容")])],1),e("div",{staticClass:"field-right width-block"},[e("div",{directives:[{name:"show",rawName:"v-show",value:!t.showTaskDescriptionEdit,expression:"!showTaskDescriptionEdit"}],class:{"task-description":t.userInfo.code==t.task.create_by},on:{click:t.showTaskDesc}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.task.description,expression:"task.description"}],staticClass:"description-txt img-preview-content",domProps:{innerHTML:t._s(t.task.description)}}),e("span",{directives:[{name:"show",rawName:"v-show",value:!t.task.description,expression:"!task.description"}]},[t._v("添加工作内容")])]),t.hasMoreDesc?e("div",{staticClass:"m-t-sm"},[e("a",{directives:[{name:"show",rawName:"v-show",value:!t.showMoreDesc,expression:"!showMoreDesc"}],on:{click:function(e){return t.checkShowMoreDesc(!0)}}},[t._v("显示更多")]),e("a",{directives:[{name:"show",rawName:"v-show",value:t.showMoreDesc,expression:"showMoreDesc"}],on:{click:function(e){return t.checkShowMoreDesc(!1)}}},[t._v("收起工作内容")])]):t._e(),e("div",{directives:[{name:"show",rawName:"v-show",value:t.showTaskDescriptionEdit,expression:"showTaskDescriptionEdit"}]},[e("editor",{ref:"vueWangeditor",attrs:{id:"editor",uploadImgServer:t.editorConfig.uploadImgServer,uploadImgHeaders:t.editorConfig.uploadImgHeaders,menus:t.editorConfig.menus}}),e("div",{staticClass:"action-btn pull-right"},[e("a",{staticClass:"cancel-text muted",attrs:{type:"text"},on:{click:function(e){t.showTaskDescriptionEdit=!1,t.initContent(!1)}}},[t._v("\n 取消\n ")]),e("a-button",{staticClass:"middle-btn",attrs:{type:"primary",htmlType:"submit"},on:{click:t.doContent}},[t._v("保存\n ")])],1)],1)])])]),e("div",{staticClass:"component-mount",style:{"pointer-events":t.userInfo.code==t.task.create_by?"all":"none"}},[e("div",{staticClass:"field"},[e("div",{staticClass:"field-left"},[e("a-icon",{attrs:{type:"calendar"}}),e("span",{staticClass:"field-name"},[t._v("完成期限")])],1),e("div",{staticClass:"field-right field-date"},[t.task.openBeginTime?[e("a-dropdown",{attrs:{trigger:["click"],disabled:!!t.task.deleted},model:{value:t.showBeginTime,callback:function(e){t.showBeginTime=e},expression:"showBeginTime"}},[t.task.deleted?e("div",{staticClass:"field-flex"},[e("a",{staticClass:"muted name",staticStyle:{margin:"0"}},[t.task.setBeginTime?[t._v(t._s(t.task.begin_time_format))]:[t._v("设置开始完成期限")]],2)]):e("a-tooltip",{attrs:{mouseEnterDelay:.5}},[e("template",{slot:"title"},[e("span",[t._v("点击设置开始完成期限")])]),e("div",{staticClass:"field-flex"},[e("a",{staticClass:"muted name",staticStyle:{margin:"0"}},[t.task.setBeginTime?[t._v(t._s(t.task.begin_time_format)+"\n ")]:[t._v("设置开始完成期限\n ")]],2)])],2),e("div",{attrs:{slot:"overlay"},slot:"overlay"},[e("a-date-picker",{attrs:{size:"small",format:"MM月DD日 HH:mm",showTime:"",allowClear:"",showToday:!1,open:t.showBeginTime},on:{ok:function(e){return t.doBeginTime(!0)}},model:{value:t.task.begin_time,callback:function(e){t.$set(t.task,"begin_time",e)},expression:"task.begin_time"}},[e("template",{slot:"renderExtraFooter"},[e("a",{staticStyle:{position:"absolute"},attrs:{size:"small"},on:{click:function(e){return t.doBeginTime(!1)}}},[t._v("清除")])])],2)],1)],1),e("span",{staticClass:"m-l-sm m-r-sm"},[t._v("-")])]:t._e(),e("a-dropdown",{attrs:{trigger:["click"],disabled:!!t.task.deleted},model:{value:t.showEndTime,callback:function(e){t.showEndTime=e},expression:"showEndTime"}},[t.task.deleted?e("div",{staticClass:"field-flex"},[e("a",{staticClass:"muted name",staticStyle:{margin:"0"}},[t.task.setEndTime?[t._v(t._s(t.task.end_time_format))]:[t._v("设置截止完成期限")]],2)]):e("a-tooltip",{attrs:{mouseEnterDelay:.5}},[e("template",{slot:"title"},[e("span",[t._v("点击设置截止完成期限")])]),e("div",{staticClass:"field-flex"},[e("a",{staticClass:"muted name",staticStyle:{margin:"0"}},[t.task.setEndTime?[t._v(t._s(t.task.end_time_format))]:[t._v("设置截止完成期限")]],2)])],2),e("div",{attrs:{slot:"overlay"},slot:"overlay"},[e("a-date-picker",{attrs:{size:"small",format:"MM月DD日 HH:mm",showTime:"",allowClear:"",showToday:!1,open:t.showEndTime},on:{ok:function(e){return t.doEndTime(!0)}},model:{value:t.task.end_time,callback:function(e){t.$set(t.task,"end_time",e)},expression:"task.end_time"}},[e("template",{slot:"renderExtraFooter"},[e("a",{staticStyle:{position:"absolute"},attrs:{size:"small"},on:{click:function(e){return t.doEndTime(!1)}}},[t._v("清除")])])],2)],1)],1)],2)])]),e("div",{staticClass:"component-mount",staticStyle:{"pointer-events":"none"}},[e("div",{staticClass:"field"},[e("div",{staticClass:"field-left"},[e("a-icon",{attrs:{type:"check-square"}}),e("span",{staticClass:"field-name"},[t._v("完成状态")])],1),e("div",{staticClass:"field-right"},[e("a-dropdown",{class:{disabled:t.task.hasUnDone},attrs:{trigger:["click"],disabled:!!t.task.deleted||!!t.task.hasUnDone}},[e("a-tooltip",{attrs:{placement:"top"}},[e("template",{slot:"title"},[t.task.hasUnDone?e("span",{staticStyle:{"font-size":"12px"}},[t._v("子任务尚未全部完成,无法完成父任务")]):t._e()]),e("span",[t.task.done?e("a-tag",{attrs:{color:"green"}},[t._v("已完成")]):t._e(),e("span",{directives:[{name:"show",rawName:"v-show",value:!t.task.done,expression:"!task.done"}]},[t._v("未完成")])],1)],2),e("a-menu",{staticClass:"field-right-menu",attrs:{slot:"overlay",selectable:!1},on:{click:function(e){return t.taskDone(t.task.code,!t.task.done)}},slot:"overlay"},[e("a-menu-item",{key:"done"},[e("div",{staticClass:"menu-item-content"},[e("a-tag",{attrs:{color:"green"}},[t._v("已完成")]),e("a-icon",{directives:[{name:"show",rawName:"v-show",value:t.task.done,expression:"task.done"}],staticClass:"check muted",attrs:{type:"check"}})],1)]),e("a-menu-item",{key:"undone"},[e("div",{staticClass:"menu-item-content"},[e("a-tag",{attrs:{color:"grey"}},[t._v("未完成")]),e("a-icon",{directives:[{name:"show",rawName:"v-show",value:!t.task.done,expression:"!task.done"}],staticClass:"check muted",attrs:{type:"check"}})],1)])],1)],1)],1)])]),e("div",{staticClass:"component-mount",staticStyle:{"pointer-events":"none"}},[e("div",{staticClass:"field"},[e("div",{staticClass:"field-left"},[e("a-icon",{attrs:{type:"deployment-unit"}}),e("span",{staticClass:"field-name"},[t._v("执行状态")])],1),e("div",{staticClass:"field-right"},[e("a-dropdown",{attrs:{trigger:["click"],disabled:!!t.task.deleted}},[e("span",[t._v(t._s(t.task.statusText))]),e("a-menu",{staticClass:"field-right-menu",attrs:{slot:"overlay",selectable:!1},on:{click:t.taskStatusChange},slot:"overlay"},t._l(t.taskStatusList,(function(i,a){return e("a-menu-item",{key:i.id},[e("div",{staticClass:"menu-item-content"},[e("span",{attrs:{color:"green"}},[t._v(t._s(i.name))]),e("a-icon",{directives:[{name:"show",rawName:"v-show",value:t.task.status==i.id,expression:"task.status == status.id"}],staticClass:"check muted",attrs:{type:"check"}})],1)])})),1)],1)],1)])]),e("div",{staticClass:"component-mount",style:{"pointer-events":t.task.liasion_info&&t.userInfo.code==t.task.liasion_info.code?"all":"none"}},[e("div",{staticClass:"field"},[e("div",{staticClass:"field-left"},[e("a-icon",{attrs:{type:"user"}}),e("span",{staticClass:"field-name"},[t._v("执行者")])],1),e("div",{staticClass:"field-right"},[e("a-dropdown",{attrs:{trigger:["click"],disabled:!!t.task.deleted,placement:"bottomCenter"},model:{value:t.visibleTaskMemberMenu,callback:function(e){t.visibleTaskMemberMenu=e},expression:"visibleTaskMemberMenu"}},[t.task.deleted?e("div",{staticClass:"field-flex"},[t.task.executor?[e("a-avatar",{attrs:{src:t.task.executor.avatar,icon:"user",size:"small"}}),e("a",{staticClass:"muted name"},[t._v(t._s(t.task.executor.name))])]:t._e(),t.task.executor?t._e():[e("a-avatar",{attrs:{icon:"user",size:"small"}}),e("a",{staticClass:"muted name"},[t._v("待认领")])]],2):e("a-tooltip",{attrs:{mouseEnterDelay:.5}},[e("template",{slot:"title"},[e("span",[t._v("点击设置执行者")])]),e("div",{staticClass:"field-flex"},[t.task.executor?[e("a-avatar",{attrs:{src:t.task.executor.avatar,icon:"user",size:"small"}}),e("a",{staticClass:"muted name"},[t._v(t._s(t.task.executor.name))])]:t._e(),t.task.executor?t._e():[e("a-avatar",{attrs:{icon:"user",size:"small"}}),e("a",{staticClass:"muted name"},[t._v("待认领")])]],2)],2),e("div",{attrs:{slot:"overlay"},slot:"overlay"},[t.visibleTaskMemberMenu?e("task-member-menu",{attrs:{projectCode:t.projectCodeCurrent,taskCode:t.code},on:{close:function(e){return t.init(!1)},inviteProjectMember:function(e){t.showInviteMember=!0,t.visibleTaskMemberMenu=!1}}}):t._e()],1)],1)],1)])]),e("div",{staticClass:"component-mount",staticStyle:{"pointer-events":"none"}},[e("div",{staticClass:"field"},[e("div",{staticClass:"field-left"},[e("a-icon",{attrs:{type:"user"}}),e("span",{staticClass:"field-name"},[t._v("抄送人")])],1),e("div",{staticClass:"field-right field-flex",staticStyle:{"flex-wrap":"wrap","pointer-events":"none"}},[t._l(t.task.copied_info,(function(i){return e("div",{key:i.code,on:{click:function(e){return t.spliceCopied(t.index)}}},[e("a-avatar",{attrs:{src:i.avatar,icon:"user",size:"small"}}),e("a",{staticClass:"muted name"},[t._v(t._s(i.name))])],1)})),t._e()],2)])]),e("div",{staticClass:"component-mount",staticStyle:{"pointer-events":"none"}},[e("div",{staticClass:"field"},[e("div",{staticClass:"field-left"},[e("a-icon",{attrs:{type:"apartment"}}),e("span",{staticClass:"field-name"},[t._v("处理部门")])],1),e("div",{staticClass:"field-right"},[t.task.liasion_info?e("div",{staticClass:"field-flex",staticStyle:{"flex-wrap":"wrap","align-items":"center"}},[e("span",{staticStyle:{"padding-right":"10px"}},[t._v(t._s(t.task.department_info.name)+" ")]),e("span",{staticStyle:{"padding-right":"10px"}},[t._v(t._s("/")+" ")]),e("a-avatar",{attrs:{src:t.task.liasion_info.avatar,icon:"user",size:"small"}}),e("a",{staticClass:"muted name"},[t._v(t._s(t.task.liasion_info.name))])],1):t._e()])])]),e("div",{staticClass:"component-mount",staticStyle:{"pointer-events":"none"}},[e("div",{staticClass:"field"},[e("div",{staticClass:"field-left"},[e("a-icon",{attrs:{type:"gateway"}}),e("span",{staticClass:"field-name"},[t._v("工作流转")])],1),e("div",{staticClass:"field-right field-flex",staticStyle:{"flex-wrap":"wrap"}},[t._l(t.task.exchange_info,(function(i,a){return e("div",{key:a,staticStyle:{"pointer-events":"none"}},[e("a-dropdown",{attrs:{trigger:["click"],placement:"bottomCenter"},model:{value:i.show,callback:function(e){t.$set(i,"show",e)},expression:"exc.show"}},[e("a-tooltip",{attrs:{mouseEnterDelay:.5}},[e("template",{slot:"title"},[e("span",[t._v("更换人员")])]),e("div",{staticClass:"field-flex",staticStyle:{"flex-wrap":"wrap","align-items":"center"}},[e("a-avatar",{attrs:{src:i.avatar,icon:"user",size:"small"}}),e("a",{staticClass:"muted name"},[t._v(t._s(i.name))]),a!=t.task.exchange_info.length-1?e("a-icon",{staticStyle:{"margin-right":"10px"},attrs:{type:"double-right"}}):t._e()],1)],2),e("div",{attrs:{slot:"overlay"},slot:"overlay"},[i.show?e("task-member-menu",{attrs:{taskCode:t.code,projectCode:t.projectCodeCurrent,isCommit:!1},on:{inviteProjectMember:function(e){t.showInviteMember=!0,i.show=!1},close:t.changeExchangeShow}}):t._e()],1)],1)],1)})),t._e()],2)])]),e("div",{staticClass:"component-mount",style:{"pointer-events":t.userInfo.code==t.task.create_by?"all":"none"}},[e("div",{staticClass:"field"},[e("div",{staticClass:"field-left"},[e("a-icon",{attrs:{type:"bulb"}}),e("span",{staticClass:"field-name"},[t._v("优先级")])],1),e("div",{staticClass:"field-right"},[e("a-dropdown",{attrs:{trigger:["click"],disabled:!!t.task.deleted}},[e("span",[e("a-tag",{attrs:{color:t.priColor(t.task.pri)}},[t._v(t._s(t.task.priText))])],1),e("a-menu",{staticClass:"field-right-menu",attrs:{slot:"overlay",selectable:!1},on:{click:t.doPri},slot:"overlay"},[e("a-menu-item",{key:0},[e("div",{staticClass:"menu-item-content"},[e("a-tag",{attrs:{color:t.priColor(0)}},[t._v("普通")]),e("a-icon",{directives:[{name:"show",rawName:"v-show",value:0==t.task.pri,expression:"task.pri == 0"}],staticClass:"check muted",attrs:{type:"check"}})],1)]),e("a-menu-item",{key:1},[e("div",{staticClass:"menu-item-content"},[e("a-tag",{attrs:{color:t.priColor(1)}},[t._v("紧急")]),e("a-icon",{directives:[{name:"show",rawName:"v-show",value:1==t.task.pri,expression:"task.pri == 1"}],staticClass:"check muted",attrs:{type:"check"}})],1)]),e("a-menu-item",{key:2},[e("div",{staticClass:"menu-item-content"},[e("a-tag",{attrs:{color:t.priColor(2)}},[t._v("非常紧急")]),e("a-icon",{directives:[{name:"show",rawName:"v-show",value:2==t.task.pri,expression:"task.pri == 2"}],staticClass:"check muted",attrs:{type:"check"}})],1)])],1)],1)],1)])]),e("div",{staticClass:"component-mount"},[e("div",{staticClass:"field"},[e("div",{staticClass:"field-left"},[e("a-icon",{attrs:{type:"paper-clip"}}),e("span",{staticClass:"field-name"},[t._v("关联文件")])],1),e("div",{staticClass:"field-right width-block"})])]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.userInfo.code==t.task.create_by||t.userInfo.code==t.task.assign_to&&2==t.task.status,expression:"userInfo.code==task.create_by||(userInfo.code==task.assign_to&&task.status==2)"}],staticClass:"component-mount"},[e("div",{staticClass:"field"},[e("div",{staticClass:"block-field width-block"},[e("div",{staticClass:"task-child"},[e("a",{staticClass:"add-handler",attrs:{id:"d-upload-file"}},[e("a-icon",{staticStyle:{"margin-right":"6px"},attrs:{type:"plus"}}),t._v("\n 上传文件\n ")],1)])])])]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.taskSourceList.length>0,expression:"taskSourceList.length > 0"}],staticClass:"component-mount"},[e("div",{staticClass:"field"},[e("div",{staticClass:"block-field width-block"},[e("div",{staticClass:"file-list"},[e("div",{staticClass:"m-xs m-t-none"},[t._v("关联的文件")]),e("a-list",t._l(t.taskSourceList,(function(i,a){return e("a-list-item",{key:a},[e("a-list-item-meta",[e("a-avatar",{attrs:{slot:"avatar",size:"small",shape:"square",icon:"link",src:i.sourceDetail.file_url},slot:"avatar"}),e("div",{attrs:{slot:"title"},slot:"title"},[e("a",{staticClass:"muted",attrs:{target:"_blank",href:i.sourceDetail.file_url}},[t._v(t._s(i.title))])]),e("div",{attrs:{slot:"description"},slot:"description"})],1),e("a",{staticClass:"muted",attrs:{slot:"actions"},slot:"actions"},[e("span",[t._v(t._s(i.sourceDetail.projectName))])]),e("a",{staticClass:"muted",attrs:{slot:"actions"},slot:"actions"},[e("a-dropdown",{attrs:{trigger:["click"],placement:"bottomCenter"}},[e("a",{staticClass:"action-item muted"},[e("a-icon",{attrs:{type:"down"}})],1),e("a-menu",{directives:[{name:"clipboard",rawName:"v-clipboard",value:i.sourceDetail.file_url,expression:"item.sourceDetail.file_url"}],staticClass:"field-right-menu",attrs:{slot:"overlay"},on:{click:function(e){return t.doSource(e,i)}},slot:"overlay"},[e("a-menu-item",{key:"copy"},[e("a-icon",{attrs:{type:"link"}}),e("span",[t._v("复制链接")])],1),e("a-menu-item",{key:"unlink"},[e("a-icon",{attrs:{type:"disconnect"}}),e("span",[t._v("取消关联")])],1)],1)],1)],1)],1)})),1)],1)])])])])])])],1),e("div",{staticClass:"content-right"},[e("div",{staticClass:"header"},[e("div",{staticClass:"title"},[t._v("\n 参与者 · "+t._s(t.taskMemberList.length)+"\n ")]),e("div",{staticClass:"member-list"},t._l(t.taskMemberList,(function(i){return e("a-tooltip",{key:i.code,attrs:{mouseEnterDelay:.5}},[e("template",{slot:"title"},[e("span",[t._v(t._s(i.name)+" "),i.is_owner?e("span",[t._v(" · 创建者")]):t._e()])]),e("a-avatar",{staticClass:"member-item",attrs:{icon:"user",size:"small",src:i.avatar},on:{click:function(e){return t.routerLink("/members/profile/"+i.membar_account_code+"?key=3")}}})],2)})),1)]),e("div",{staticClass:"log-wrap"},[e("div",{staticClass:"header"},[e("a-dropdown",{attrs:{trigger:["click"]}},[e("a",{staticClass:"text-default"},[t._v("\n 所有动态\n "),e("a-icon",{attrs:{type:"down"}})],1),e("a-menu",{staticClass:"field-right-menu",attrs:{slot:"overlay",selectable:""},slot:"overlay",model:{value:t.taskLogType,callback:function(e){t.taskLogType=e},expression:"taskLogType"}},[e("a-menu-item",{key:"all"},[e("div",{staticClass:"menu-item-content"},[e("span",[t._v("所有动态")])])]),e("a-menu-item",{key:"comment"},[e("div",{staticClass:"menu-item-content"},[e("span",[t._v("仅审核")])])]),e("a-menu-item",{key:"log"},[e("div",{staticClass:"menu-item-content"},[e("span",[t._v("仅动态")])])])],1)],1)],1),e("vue-scroll",[e("div",{staticClass:"log-list muted"},[e("a",{directives:[{name:"show",rawName:"v-show",value:t.checkShowMoreLog,expression:"checkShowMoreLog"}],staticClass:"show-more muted",on:{click:t.getMoreTaskLog}},[e("a-icon",{attrs:{type:"ellipsis"}}),t._v("\n 显示较早的 "+t._s(t.taskLogTotal-t.taskLogList.length)+" 条数据\n ")],1),t._l(t.taskLogList,(function(i){return e("div",{key:i.code,class:{"log-comment":i.is_comment,"list-item":!i.is_comment,"log-pass":"pass"==i.type,"log-reject":"reject"==i.type,"log-add":"add"==i.type}},[i.is_comment?t._e():[e("a-icon",{staticClass:"log-item",attrs:{type:i.icon}}),e("div",{staticClass:"log-item log-txt"},[e("div",[t._v(t._s(i.member.name)+" "),e("span",{domProps:{innerHTML:t._s(i.remark)}})]),i.content?e("div",{staticClass:"log-content img-preview-content",domProps:{innerHTML:t._s(i.content)}}):t._e()])],i.is_comment?e("div",[e("div",{staticClass:"log-txt text-default",staticStyle:{width:"100%",display:"flex","justify-content":"space-between"}},[e("div",{staticStyle:{display:"flex","align-items":"center"}},[e("a-avatar",{staticClass:"m-r-sm",attrs:{size:24,src:i.member.avatar}}),e("div",[t._v(t._s(i.member.name))]),"add"==i.type?e("div",{staticClass:"log-add-tips"},[t._v("提交")]):t._e(),"pass"==i.type?e("div",{staticClass:"log-pass-tips"},[t._v("通过")]):t._e(),"reject"==i.type?e("div",{staticClass:"log-reject-tips"},[t._v("驳回")]):t._e()],1),e("a-tooltip",{attrs:{mouseEnterDelay:.5}},[e("template",{slot:"title"},[e("span",[t._v(t._s(i.create_time))])]),e("span",{staticClass:"muted"},[t._v(t._s(t._f("formatLogTime")(i.create_time)))])],2)],1),e("div",{staticClass:"log-txt text-default",staticStyle:{padding:"0 0 0 30px"}},[e("div",{staticClass:"m-t-xs",domProps:{innerHTML:t._s(t.checkLink(i.content))}})])]):t._e(),i.is_comment?t._e():e("a-tooltip",{attrs:{mouseEnterDelay:.5}},[e("template",{slot:"title"},[e("span",[t._v(t._s(i.create_time))])]),e("span",[t._v(t._s(t._f("formatLogTime")(i.create_time)))])],2)],2)}))],2)])],1),e("div",{staticClass:"footer",attrs:{id:"footer"}},[!t.readonly&&t.userInfo.code==t.task.create_by&&4==t.task.status||t.userInfo.code==t.task.assign_to&&2==t.task.status?e("a-popover",{attrs:{trigger:"click",placement:"top",visible:t.showMentions,arrowPointAtCenter:"",getPopupContainer:t.getPopup}},[e("template",{slot:"content"},[e("div",{staticClass:"mentions-content",staticStyle:{width:"200px"}},t._l(t.taskMemberList,(function(i){return e("div",{key:i.id,staticClass:"mentions-wrapper",on:{click:function(e){return t.selectMentionMember(i)}}},[e("a-avatar",{attrs:{src:i.avatar,icon:"user",size:28}}),e("span",{staticClass:"muted name m-l-xs"},[t._v(t._s(i.name))])],1)})),0)]),e("a-textarea",{ref:"commentText",staticStyle:{"margin-right":"15px"},attrs:{rows:1,placeholder:"@提及任务成员,Ctrl+Enter发送"},on:{focus:function(e){t.commenting=!0},blur:function(e){t.commenting=!1}},model:{value:t.comment,callback:function(e){t.comment=e},expression:"comment"}})],2):t._e(),t.readonly||t.userInfo.code!=t.task.create_by||4!=t.task.status?t._e():[e("a-button",{staticClass:"middle-btn",attrs:{type:"danger"},on:{click:function(e){return t.createComment(2)}}},[t._v("驳回")]),e("a-button",{staticClass:"middle-btn",staticStyle:{"margin-left":"15px"},attrs:{type:"primary"},on:{click:function(e){return t.createComment(1)}}},[t._v("通过")])],t.readonly||t.userInfo.code!=t.task.assign_to||2!=t.task.status?t._e():[e("a-button",{staticClass:"middle-btn",attrs:{type:"primary"},on:{click:function(e){return t.createComment(3)}}},[t._v("提交")])]],2)])])])]),t.showInviteMember?e("invite-project-member",{attrs:{"project-code":t.projectCodeCurrent},model:{value:t.showInviteMember,callback:function(e){t.showInviteMember=e},expression:"showInviteMember"}}):t._e()],1)},n=[],r=(i("8e6e"),i("456d"),i("a481"),i("4917"),i("ac6a"),i("7514"),i("6b54"),i("20d6"),i("ade3")),o=(i("c5f6"),i("2f62")),s=i("1157"),c=i.n(s),l=i("c1df"),d=i.n(l),u=i("f93e"),f=i("a897"),h=i("b199"),p=i("8870"),m=i("d8bc"),v=i("f66c"),g=i("4540"),b=i("e8d3"),_=i("d3a1"),y=i("68fe"),k=i("2f14"),x=i("97a8"),w=i("81fe"),C=i("261e"),S=i("7dc6");function M(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function T(t){for(var e=1;e5},taskLink:function(){return window.location.href},scrollOps:function(){return{rail:{background:"#e5e5e5",opacity:1},bar:{keepShow:!0}}}}),watch:{$route:function(t,e){},showInviteMember:function(t){t||this.getTaskMembers()},taskLogType:function(){this.getTaskLog()},socketAction:function(t){if("organization:task"===t.action){var e=t.data.data;e.taskCode==this.code&&this.init(null,!1)}},uploader:{handler:function(t,e){var i=this;console.log(t),console.log(t.fileList);var a=t.fileList,n=a.findIndex((function(t){return t.projectName==i.task.projectName}));-1!==n&&(this.taskSources(),this.getTaskLog())},deep:!0}},created:function(){this.init()},mounted:function(){var t=this,e=arguments;this.$nextTick((function(){t.changeModalHeight()})),window.onresize=function(){return function(){t.changeModalHeight()}()},document.onkeydown=function(i){var a=i||window.event||e.callee.caller.arguments[0];13==a.keyCode&&a.ctrlKey&&t.createComment(1),("@"==a.key||"Digit2"==a.code&&"Process"==a.key&&a.shiftKey)&&t.commenting?t.showMentions=!0:t.showMentions=!1},setTimeout((function(){t.uploader.assignBrowse(document.getElementById("d-upload-file"))}),500)},filters:{formatLogTime:function(t){return Object(w["c"])(t)}},methods:{getDepartment:function(t){function e(){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(){var t=this;getDepartment().then((function(e){t.departmentList=e.data.list}))})),departmentDropClick:function(t){var e=this,i=this.departmentList.find((function(e){return e.code==t.key}));this.department=i,getliasonMan({searchType:4,type:1,departmentCode:i.code}).then((function(t){t.data.list[0]?e.liasionMan=t.data.list[0]:Object(x["b"])({title:"该部门没有联络员"},"notice","error",5)}))},changeRecipient:function(t){var e=this.task.copied_info.find((function(e){return e.code==t.code}));e?Object(x["b"])({title:"已经设置过, 请更换其他人员"},"error",3e3):this.task.copied_info.push(t),this.showInviteMember=!1},spliceCopied:function(t){this.task.copied_info.splice(t,1)},changeExchange:function(t){this.task.exchange_info.push(T({f_key:(new Date).getTime(),show:!1},t))},changeExchangeShow:function(t){var e=this,i=this.task.exchange_info.findIndex((function(t){return 1==t.show}));if(-1!=i){this.task.exchange_info[i].show=!1;var a=JSON.parse(JSON.stringify(this.task.exchange_info));t?a[i]=T({f_key:(new Date).getTime(),show:!1},t):a.splice(i,1),this.$nextTick((function(){e.task.exchange_info=a}))}},init:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t&&(this.code=t),e&&(this.loading=!0),this.clearMemberMenu(),this.getTask(),this.getChildTasks(),this.getTaskMembers(),this.getTaskWorkTimeList()},detailClose:function(){this.$emit("close",this.task)},clearMemberMenu:function(){this.visibleTaskTagMenu=!1,this.visibleTaskMemberMenu=!1,this.visibleProjectMemberMenu=!1},getTask:function(){var t=this;this.$store.commit("viewRefresh"),this.clearMemberMenu(),Object(h["o"])(this.code).then((function(e){try{t.getTaskLog(),t.taskSources(),t.taskName=e.data.name,t.task=e.data,t.projectCodeCurrent=e.data.project_code,t.task.end_time?(t.task.setEndTime=!0,t.task.end_time=d()(t.task.end_time)):(t.task.setEndTime=!1,t.task.end_time=d()(d()().format("YYYY-MM-DD")+" 18:00")),t.task.end_time_format=Object(w["b"])(t.task.end_time,!0),t.task.begin_time?(t.task.setBeginTime=!0,t.task.begin_time=d()(t.task.begin_time)):(t.task.setBeginTime=!1,t.task.begin_time=d()(d()().format("YYYY-MM-DD")+" 18:00")),t.task.begin_time_format=Object(w["b"])(t.task.begin_time,!0),t.initContent(t.task.description),t.task.executor&&!t.childExecutor&&(t.childExecutor=t.task.executor),t.loading=!1,t.$store.dispatch("setTempData",{projectCode:t.projectCodeCurrent,taskCode:t.code,projectName:e.data.projectName})}catch(i){console.error(i)}}))},getTaskLog:function(){var t=this;Object(h["n"])({taskCode:this.code,all:this.showMoreTaskLog,pageSize:5,comment:"comment"==this.taskLogType[0]?1:0}).then((function(e){t.taskLogList=e.data.list,t.taskLogTotal=e.data.total,e.data.total>5&&(t.hasMoreTaskLog=!0),t.$nextTick((function(){c()(".img-preview-content").find("img").click((function(t){window.open(c()(t.target).attr("src"))}))}))}))},taskSources:function(){var t=this;Object(h["A"])({taskCode:this.code}).then((function(e){t.taskSourceList=e.data}))},getMoreTaskLog:function(){this.showMoreTaskLog=1,this.hideShowMore=!0,this.getTaskLog()},getTaskWorkTimeList:function(){var t=this;Object(h["a"])({taskCode:this.code}).then((function(e){t.workTimeList=e.data;var i=0;e.data&&(e.data.forEach((function(t){i+=Number(t.num)})),t.workTimeTotal=i)}))},getTaskMembers:function(){var t=this;this.clearMemberMenu(),Object(m["b"])({taskCode:this.code,pageSize:100}).then((function(e){t.taskMemberList=e.data.list,t.loading=!1}))},doTask:function(t){var e=this,i=this,a=t.key;switch(a){case"recycle":this.$confirm({title:"移到回收站",content:"您确定要把该任务移到回收站吗?",okText:"确定",okType:"danger",cancelText:"再想想",onOk:function(){return Object(h["q"])(i.code).then((function(t){var e=Object(k["a"])(t);if(!e)return!1;i.task.deleted=1,i.getTaskLog()})),Promise.resolve()}});break;case"star":return this.task.stared?this.task.stared=0:this.task.stared=1,Object(h["y"])(i.code,this.task.stared),!0;case"open":var n=window.location.href;-1!==n.indexOf("?")?n+="&full-screen":n+="?full-screen",window.open(n);break;case"private":return Object(h["v"])(i.code,Number(!this.task.private)).then((function(t){var i=Object(k["a"])(t);if(!i)return!1;e.task.private=Number(!e.task.private)})),!0}this.visibleTaskMenu=!1},editTitle:function(){var t=this;this.showEditName=!0,this.$nextTick((function(){t.$refs.inputTitle.focus()}))},doSource:function(t,e){var i=this,a=t.key;switch(a){case"unlink":this.$confirm({title:"取消关联",content:"您确定永久删除这个关联?",okText:"确定",okType:"danger",cancelText:"再想想",onOk:function(){return Object(p["a"])(e.code).then((function(t){var e=Object(k["a"])(t);if(!e)return!1;i.taskSources(),i.getTaskLog()})),Promise.resolve()}});break;case"copy":return Object(x["b"])({title:"复制链接成功",msg:"在地址栏粘贴并打开可下载该资源"},"notice","success",5),!0}},deleteTask:function(){var t=this;this.$confirm({title:"彻底删除",content:"彻底删除任务后,该任务及其子任务将会被永久被删除。",okText:"删除",okType:"danger",cancelText:"再想想",onOk:function(){return Object(h["f"])(t.code).then((function(e){t.detailClose()})),Promise.resolve()}})},recoveryTask:function(){var t=this;this.$confirm({title:"恢复内容",content:"您确定要恢复该任务吗?",okText:"确定",okType:"primary",cancelText:"再想想",onOk:function(){return Object(h["p"])(t.code).then((function(e){var i=Object(k["a"])(e);if(!i)return!1;t.getTaskLog()})),t.task.deleted=0,Promise.resolve()}})},copyLink:function(){Object(x["b"])({title:"复制链接成功",msg:"你可以在其他标签页粘贴并快速打开任务页面"},"notice","success",5)},like:function(t){t=Number(t),Object(h["l"])(this.code,t),t?this.task.like++:this.task.like--,this.task.liked=t},taskDone:function(t,e,i){var a=this,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"self";e=e?1:0,Object(h["z"])(t,e).then((function(t){var r=Object(k["a"])(t);if(!r)return!1;a.getTaskLog(),"self"==n?a.task.done=e:a.childTaskList[i].done=e,a.getTask(),a.getChildTasks()}))},doBeginTime:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.task.setBeginTime=t,this.showBeginTime=e;var i="";t?(i=d()(this.task.begin_time).format("YYYY-MM-DD HH:mm"),this.task.begin_time_format=d()(this.task.begin_time).format("MM月DD日 HH:mm")):i="",this.editTask({begin_time:i})},doEndTime:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.task.setEndTime=t,this.showEndTime=e;var i="";t?(i=d()(this.task.end_time).format("YYYY-MM-DD HH:mm"),this.task.end_time_format=d()(this.task.end_time).format("MM月DD日 HH:mm")):i="",this.editTask({end_time:i})},doPri:function(t){this.editTask({pri:t.key})},doName:function(){if(this.showEditName=!1,!this.task.name.trim()||this.task.name==this.taskName)return this.task.name=this.taskName,!1;this.editTask({name:this.task.name})},taskStatusChange:function(t){this.task.status=t.key,this.editTask({status:t.key})},editTask:function(t){var e=this;t.taskCode=this.code,Object(h["h"])(t).then((function(t){var i=Object(k["a"])(t);if(!i)return!1;e.getTask()}))},priColor:function(t){switch(t){case 1:return"#ff9900";case 2:return"#ed3f14";default:return"green"}},showTaskDesc:function(){if(this.task.deleted)return!1;this.showTaskDescriptionEdit=!0,this.initContent(this.task.description)},initContent:function(t){var e=this;try{t?this.$refs.vueWangeditor.setHtml(t):this.$refs.vueWangeditor.setHtml(""),this.$nextTick((function(){e.checkShowMoreDesc(!1,!0)}))}catch(i){}},doContent:function(){var t=this,e=this.$refs.vueWangeditor.getHtml(),i={taskCode:this.code,description:e};Object(h["h"])(i).then((function(){t.task.description=e,t.showTaskDescriptionEdit=!1,t.$nextTick((function(){t.checkShowMoreDesc(!1,!0)})),t.getTaskLog()}))},createComment:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=this.comment.trim();if(!i)return!1;i+=" ";var a=/(@[^@]+) /g,n=i.match(a);n&&n.forEach((function(e){var i=e.substring(1,e.length-1);-1===t.mentionsList.findIndex((function(t){return t==i}))&&t.mentionsList.push(i)})),Object(h["d"])(this.code,this.comment,JSON.stringify(this.mentionsList),e).then((function(){t.comment="",t.mentionsList=[],t.getTaskLog()}))},checkShowMoreDesc:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=c()(".description-txt");if(e||(t?(this.showMoreDesc=!0,i.css("max-height",(function(){return"100%"}))):(this.showMoreDesc=!1,i.css("max-height",(function(){return"300px"})))),e){var a=i.height();return a>=300?(this.hasMoreDesc=!0,!0):(this.hasMoreDesc=!1,!1)}return!1},createTask:function(){var t=this,e={pcode:this.code,name:this.childTaskName};this.childExecutor&&(e.assign_to=this.childExecutor.code),Object(h["s"])(e).then((function(e){var i=Object(k["a"])(e);if(!i)return!1;t.childTaskName="",t.getChildTasks(),t.getTaskLog()}))},getChildTasks:function(){var t=this;Object(h["m"])({pcode:this.code,pageSize:100,deleted:0}).then((function(e){var i=[];e.data.list.forEach((function(t){t.visibleChildTaskMemberMenu=!1,i.push(t)})),t.childTaskList=i}))},taskTagChange:function(t){var e=this.task.tags.findIndex((function(e){return e.tag_code==t.code}));-1!==e?this.task.tags.splice(e,1):this.task.tags.push({tag_code:t.code,tag:t})},taskTagUpdate:function(t){var e=this.task.tags.findIndex((function(e){return e.tag_code==t.code}));-1!==e&&(this.task.tags[e].tag=t)},taskTagDelete:function(t){var e=this.task.tags.findIndex((function(e){return e.tag_code==t.code}));-1!==e&&this.task.tags.splice(e,1)},removeTag:function(t,e){var i=this;Object(h["w"])({taskCode:this.task.code,tagCode:t.code}).then((function(){i.task.tags.splice(e,1)}))},doPlainWorkTime:function(){var t=this;this.plainWorkTime.modalStatus=!0,this.$nextTick((function(){t.plainWorkTime.form.setFieldsValue({work_time:t.task.work_time})}))},doWorkTime:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this;this.workTimeDo.modalStatus=!0,t?(this.workTimeDo.info=t,this.$nextTick((function(){e.workTimeDo.form.setFieldsValue({num:t.num,begin_time:d()(t.begin_time),content:t.content})}))):(this.workTimeDo.form.resetFields(),this.workTimeDo.info=null)},deleteWorkTime:function(t,e){var i=this;this.$confirm({title:"删除工时记录",content:"确定要删除工时记录吗?",okText:"确定",okType:"danger",cancelText:"再想想",onOk:function(){return Object(h["g"])({code:t.code}).then((function(a){Object(k["a"])(a)&&(i.workTimeList.splice(e,1),i.workTimeTotal-=t.num)})),Promise.resolve()}})},workTimePlainHandleSubmit:function(){var t=this;this.plainWorkTime.form.validateFields((function(e,i){e||(t.editTask({work_time:i.work_time}),t.plainWorkTime.modalStatus=!1)}))},workTimeHandleSubmit:function(){var t=this;this.workTimeDo.form.validateFields((function(e,i){if(!e){t.workTimeDo.confirmLoading=!0;var a={beginTime:i.begin_time.format("YYYY-MM-DD HH:mm"),num:i.num,content:i.content,taskCode:t.code};t.workTimeDo.info?(a.code=t.workTimeDo.info.code,Object(h["i"])(a).then((function(e){t.workTimeDo.confirmLoading=!1,Object(k["a"])(e)&&(t.workTimeDo.modalStatus=!1,t.getTaskWorkTimeList())}))):Object(h["t"])(a).then((function(e){t.workTimeDo.confirmLoading=!1,Object(k["a"])(e)&&(t.workTimeDo.modalStatus=!1,t.getTaskWorkTimeList())}))}}))},checkLink:function(t){var e=/(http:\/\/|https:\/\/)((\w|=|\?|\.|\/|&|-)+)/g;return e.exec(t)?(t=t.replace(e,"$1$2"),t):t},updateChildExecutor:function(t){this.visibleChildTaskMemberMenu=!1,this.childExecutor=t},getPopup:function(){return document.getElementById("footer")},getTaskMemberPopup:function(){return document.getElementById("task-detail")},departmentMemberDetail:function(t){var e=this;Object(S["a"])({code:t,organization:this.$store.state.currentOrganization.code}).then((function(t){e.departmentMemberInfo=t.data}))},selectMentionMember:function(t){var e=this;this.showMentions=!1,this.comment+=t.name+" ",this.$nextTick((function(){e.$refs.commentText.focus()}))},changeModalHeight:function(){var t=this.width,e=c()(window).width()-100,i=c()(window).height()-150,a=c()(window).height()-315;"full-screen"===t||void 0!==this.$route.query["full-screen"]?(c()(".task-detail-modal").css("width",c()(window).width()),c()(".task-detail").css("width",c()(window).width()),c()(".ant-modal").css("top",0),i+=85,a+=85,c()(".content-left").css("height",i+"px"),c()(".log-wrap").css("height",a+"px")):(e>t&&(e=t),c()(".task-detail").css("width",e),c()(".content-left").css("height",i+"px"),c()(".log-wrap").css("height",a+"px"))}}},D=j,A=(i("690d"),i("2877")),N=Object(A["a"])(D,a,n,!1,null,null,null);e["a"]=N.exports},"00d8":function(t,e){(function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i={rotl:function(t,e){return t<>>32-e},rotr:function(t,e){return t<<32-e|t>>>e},endian:function(t){if(t.constructor==Number)return 16711935&i.rotl(t,8)|4278255360&i.rotl(t,24);for(var e=0;e0;t--)e.push(Math.floor(256*Math.random()));return e},bytesToWords:function(t){for(var e=[],i=0,a=0;i>>5]|=t[i]<<24-a%32;return e},wordsToBytes:function(t){for(var e=[],i=0;i<32*t.length;i+=8)e.push(t[i>>>5]>>>24-i%32&255);return e},bytesToHex:function(t){for(var e=[],i=0;i>>4).toString(16)),e.push((15&t[i]).toString(16));return e.join("")},hexToBytes:function(t){for(var e=[],i=0;i>>6*(3-r)&63)):i.push("=");return i.join("")},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/gi,"");for(var i=[],a=0,n=0;a>>6-2*n);return i}};t.exports=i})()},"0156":function(t,e,i){var a=i("6d8b");function n(t,e,i){i=i||{};var n=t.coordinateSystem,r=e.axis,o={},s=r.getAxesOnZeroOf()[0],c=r.position,l=s?"onZero":c,d=r.dim,u=n.getRect(),f=[u.x,u.x+u.width,u.y,u.y+u.height],h={left:0,right:1,top:0,bottom:1,onZero:2},p=e.get("offset")||0,m="x"===d?[f[2]-p,f[3]+p]:[f[0]-p,f[1]+p];if(s){var v=s.toGlobalCoord(s.dataToCoord(0));m[h.onZero]=Math.max(Math.min(v,m[1]),m[0])}o.position=["y"===d?m[h[l]]:f[0],"x"===d?m[h[l]]:f[3]],o.rotation=Math.PI/2*("x"===d?0:1);var g={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=g[c],o.labelOffset=s?m[h[c]]-m[h.onZero]:0,e.get("axisTick.inside")&&(o.tickDirection=-o.tickDirection),a.retrieve(i.labelInside,e.get("axisLabel.inside"))&&(o.labelDirection=-o.labelDirection);var b=e.get("axisLabel.rotate");return o.labelRotate="top"===l?-b:b,o.z2=1,o}e.layout=n},"01ed":function(t,e,i){var a=i("3eba"),n=i("6d8b"),r=i("2306");i("5aa9"),i("af24"),a.extendComponentView({type:"grid",render:function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new r.Rect({shape:t.coordinateSystem.getRect(),style:n.defaults({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))}}),a.registerPreprocessor((function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})}))},"0226":function(t,e,i){"use strict";function a(t){return r.ddSdk.invokeAPI(o,t)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.disable$=void 0;var r=i("c6b3"),o="ui.pullToRefresh.disable";r.ddSdk.setAPI(o,(n={},n[r.ENV_ENUM.ios]={vs:"2.4.0"},n[r.ENV_ENUM.android]={vs:"2.4.0"},n)),e.disable$=a,e.default=a},"026a":function(t,e,i){"use strict";function a(t){return r.ddSdk.invokeAPI(o,t)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.faceManager$=void 0;var r=i("c6b3"),o="biz.ATMBle.faceManager";r.ddSdk.setAPI(o,(n={},n[r.ENV_ENUM.ios]={vs:"5.0.7"},n[r.ENV_ENUM.android]={vs:"5.0.7"},n)),e.faceManager$=a,e.default=a},"02de":function(t,e,i){"use strict";i("b8af")},"0352":function(t,e,i){var a=i("6cb7"),n=i("b12f"),r=i("0f99"),o=r.detectSourceFormat,s=i("93d0"),c=s.SERIES_LAYOUT_BY_COLUMN;a.extend({type:"dataset",defaultOption:{seriesLayoutBy:c,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){o(this)}}),n.extend({type:"dataset"})},"035f":function(t,e,i){"use strict";function a(t){return r.ddSdk.invokeAPI(o,t)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.nfcStop$=void 0;var r=i("c6b3"),o="device.nfc.nfcStop";r.ddSdk.setAPI(o,(n={},n[r.ENV_ENUM.ios]={vs:"4.3.9"},n[r.ENV_ENUM.android]={vs:"4.3.9"},n)),e.nfcStop$=a,e.default=a},"03b1":function(t,e,i){"use strict";function a(t){return r.ddSdk.invokeAPI(o,t)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getPhoneInfo$=void 0;var r=i("c6b3"),o="device.base.getPhoneInfo";r.ddSdk.setAPI(o,(n={},n[r.ENV_ENUM.ios]={vs:"3.5.0"},n[r.ENV_ENUM.android]={vs:"3.5.0"},n)),e.getPhoneInfo$=a,e.default=a},"044b":function(t,e){function i(t){return!!t.constructor&&"function"===typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function a(t){return"function"===typeof t.readFloatLE&&"function"===typeof t.slice&&i(t.slice(0,0))}
+/*!
+ * Determine if an object is a Buffer
+ *
+ * @author Feross Aboukhadijeh
+ * @license MIT
+ */
+t.exports=function(t){return null!=t&&(i(t)||a(t)||!!t._isBuffer)}},"0498":function(t,e,i){"use strict";function a(t){return r.ddSdk.invokeAPI(o,t)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.previewVideo$=void 0;var r=i("c6b3"),o="biz.util.previewVideo";r.ddSdk.setAPI(o,(n={},n[r.ENV_ENUM.ios]={vs:"4.3.7"},n[r.ENV_ENUM.android]={vs:"4.3.7"},n[r.ENV_ENUM.pc]={vs:"4.6.33"},n)),e.previewVideo$=a,e.default=a},"04f6":function(t,e){var i=32,a=7;function n(t){var e=0;while(t>=i)e|=1&t,t>>=1;return t+e}function r(t,e,i,a){var n=e+1;if(n===i)return 1;if(a(t[n++],t[e])<0){while(n=0)n++;return n-e}function o(t,e,i){i--;while(e>>1,n(o,t[r])<0?c=r:s=r+1;var l=a-s;switch(l){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:while(l>0)t[s+l]=t[s+l-1],l--}t[s]=o}}function c(t,e,i,a,n,r){var o=0,s=0,c=1;if(r(t,e[i+n])>0){s=a-n;while(c0)o=c,c=1+(c<<1),c<=0&&(c=s);c>s&&(c=s),o+=n,c+=n}else{s=n+1;while(cs&&(c=s);var l=o;o=n-c,c=n-l}o++;while(o>>1);r(t,e[i+d])>0?o=d+1:c=d}return c}function l(t,e,i,a,n,r){var o=0,s=0,c=1;if(r(t,e[i+n])<0){s=n+1;while(cs&&(c=s);var l=o;o=n-c,c=n-l}else{s=a-n;while(c=0)o=c,c=1+(c<<1),c<=0&&(c=s);c>s&&(c=s),o+=n,c+=n}o++;while(o>>1);r(t,e[i+d])<0?c=d:o=d+1}return c}function d(t,e){var i,n,r=a,o=0,s=0;o=t.length;var d=[];function u(t,e){i[s]=t,n[s]=e,s+=1}function f(){while(s>1){var t=s-2;if(t>=1&&n[t-1]<=n[t]+n[t+1]||t>=2&&n[t-2]<=n[t]+n[t-1])n[t-1]n[t+1])break;p(t)}}function h(){while(s>1){var t=s-2;t>0&&n[t-1]=a||v>=a);if(g)break;b<0&&(b=0),b+=2}if(r=b,r<1&&(r=1),1===n){for(u=0;u=0;u--)t[v+u]=t[m+u];if(0===n){y=!0;break}}if(t[p--]=d[h--],1===--s){y=!0;break}if(_=s-c(t[f],d,0,s,s-1,e),0!==_){for(p-=_,h-=_,s-=_,v=p+1,m=h+1,u=0;u<_;u++)t[v+u]=d[m+u];if(s<=1){y=!0;break}}if(t[p--]=t[f--],0===--n){y=!0;break}g--}while(b>=a||_>=a);if(y)break;g<0&&(g=0),g+=2}if(r=g,r<1&&(r=1),1===s){for(p-=n,f-=n,v=p+1,m=f+1,u=n-1;u>=0;u--)t[v+u]=t[m+u];t[p]=d[h]}else{if(0===s)throw new Error;for(m=p-(s-1),u=0;u=0;u--)t[v+u]=t[m+u];t[p]=d[h]}else for(m=p-(s-1),u=0;uf&&(h=f),s(t,a,a+h,a+l,e),l=h}u.pushRun(a,l),u.mergeRuns(),c-=l,a+=l}while(0!==c);u.forceMergeRuns()}}t.exports=u},"06442":function(t,e,i){"use strict";function a(t){return r.ddSdk.invokeAPI(s,t)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.inquiry$=void 0;var r=i("c6b3"),o=i("f162"),s="biz.store.inquiry";r.ddSdk.setAPI(s,(n={},n[r.ENV_ENUM.ios]={vs:"4.3.7",paramsDeal:o.genBizStoreParamsDealFn},n[r.ENV_ENUM.android]={vs:"4.3.7",paramsDeal:o.genBizStoreParamsDealFn},n[r.ENV_ENUM.pc]={vs:"4.5.3",paramsDeal:o.genBizStoreParamsDealFn},n)),e.inquiry$=a,e.default=a},"0645":function(t,e,i){"use strict";function a(t){return r.ddSdk.invokeAPI(o,t)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.chooseMobileContacts$=void 0;var r=i("c6b3"),o="biz.contact.chooseMobileContacts";r.ddSdk.setAPI(o,(n={},n[r.ENV_ENUM.ios]={vs:"3.1"},n[r.ENV_ENUM.android]={vs:"3.1"},n)),e.chooseMobileContacts$=a,e.default=a},"0655":function(t,e,i){var a=i("8728"),n=1e-8;function r(t,e){return Math.abs(t-e).5?e:t}function f(t,e,i,a,n){var r=t.length;if(1===n)for(var o=0;on;if(r)t.length=n;else for(var o=a;o=0;i--)if(P[i]<=e)break;i=Math.min(i,k-2)}else{for(i=U;ie)break;i=Math.min(i-1,k-2)}U=i,B=e;var a=P[i+1]-P[i];if(0!==a)if($=(e-P[i])/a,y)if(R=I[i],V=I[0===i?i:i-1],z=I[i>k-2?k-1:i+1],F=I[i>k-3?k-1:i+2],C)m(V,R,z,F,$,$*$,$*$*$,l(t,s),T);else{if(S)n=m(V,R,z,F,$,$*$,$*$*$,H,1),n=b(H);else{if(M)return u(R,z,$);n=v(V,R,z,F,$,$*$,$*$*$)}g(t,s,n)}else if(C)f(I[i],I[i+1],$,l(t,s),T);else{var n;if(S)f(I[i],I[i+1],$,H,1),n=b(H);else{if(M)return u(I[i],I[i+1],$);n=d(I[i],I[i+1],$)}g(t,s,n)}},Y=new a({target:t._target,life:x,loop:t._loop,delay:t._delay,onframe:W,ondestroy:i});return e&&"spline"!==e&&(Y.easing=e),Y}}}var k=function(t,e,i,a){this._tracks={},this._target=t,this._loop=e||!1,this._getter=i||c,this._setter=a||l,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};k.prototype={when:function(t,e){var i=this._tracks;for(var a in e)if(e.hasOwnProperty(a)){if(!i[a]){i[a]=[];var n=this._getter(this._target,a);if(null==n)continue;0!==t&&i[a].push({time:0,value:g(n)})}i[a].push({time:t,value:e[a]})}return this},during:function(t){return this._onframeList.push(t),this},pause:function(){for(var t=0;t1&&a&&a.length>1){var s=r(a)/r(n);!isFinite(s)&&(s=1),e.pinchScale=s;var c=o(a);return e.pinchX=c[0],e.pinchY=c[1],{type:"pinch",target:t[0].target,event:e}}}}},c=n;t.exports=c},"0bba":function(t,e,i){},"0bbb":function(t,e,i){"use strict";function a(t){return t="00"+t,t.substring(t.length-2,t.length)}var n=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var a,n=0,r=e.length;no||t<-o}var c=function(t){t=t||{},t.position||(this.position=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},l=c.prototype;l.transform=null,l.needLocalTransform=function(){return s(this.rotation)||s(this.position[0])||s(this.position[1])||s(this.scale[0]-1)||s(this.scale[1]-1)};var d=[];l.updateTransform=function(){var t=this.parent,e=t&&t.transform,i=this.needLocalTransform(),n=this.transform;if(i||e){n=n||a.create(),i?this.getLocalTransform(n):r(n),e&&(i?a.mul(n,t.transform,n):a.copy(n,t.transform)),this.transform=n;var o=this.globalScaleRatio;if(null!=o&&1!==o){this.getGlobalScale(d);var s=d[0]<0?-1:1,c=d[1]<0?-1:1,l=((d[0]-s)*o+s)/d[0]||0,u=((d[1]-c)*o+c)/d[1]||0;n[0]*=l,n[1]*=l,n[2]*=u,n[3]*=u}this.invTransform=this.invTransform||a.create(),a.invert(this.invTransform,n)}else n&&r(n)},l.getLocalTransform=function(t){return c.getLocalTransform(this,t)},l.setTransform=function(t){var e=this.transform,i=t.dpr||1;e?t.setTransform(i*e[0],i*e[1],i*e[2],i*e[3],i*e[4],i*e[5]):t.setTransform(i,0,0,i,0,0)},l.restoreTransform=function(t){var e=t.dpr||1;t.setTransform(e,0,0,e,0,0)};var u=[],f=a.create();l.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],a=this.position,n=this.scale;s(e-1)&&(e=Math.sqrt(e)),s(i-1)&&(i=Math.sqrt(i)),t[0]<0&&(e=-e),t[3]<0&&(i=-i),a[0]=t[4],a[1]=t[5],n[0]=e,n[1]=i,this.rotation=Math.atan2(-t[1]/i,t[0]/e)}},l.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(a.mul(u,t.invTransform,e),e=u);var i=this.origin;i&&(i[0]||i[1])&&(f[4]=i[0],f[5]=i[1],a.mul(u,e,f),u[4]-=i[0],u[5]-=i[1],e=u),this.setLocalTransform(e)}},l.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},l.transformCoordToLocal=function(t,e){var i=[t,e],a=this.invTransform;return a&&n.applyTransform(i,i,a),i},l.transformCoordToGlobal=function(t,e){var i=[t,e],a=this.transform;return a&&n.applyTransform(i,i,a),i},c.getLocalTransform=function(t,e){e=e||[],r(e);var i=t.origin,n=t.scale||[1,1],o=t.rotation||0,s=t.position||[0,0];return i&&(e[4]-=i[0],e[5]-=i[1]),a.scale(e,e,n),o&&a.rotate(e,e,o),i&&(e[4]+=i[0],e[5]+=i[1]),e[4]+=s[0],e[5]+=s[1],e};var h=c;t.exports=h},"0da8":function(t,e,i){var a=i("19eb"),n=i("9850"),r=i("6d8b"),o=i("5e76");function s(t){a.call(this,t)}s.prototype={constructor:s,type:"image",brush:function(t,e){var i=this.style,a=i.image;i.bind(t,this,e);var n=this._image=o.createOrUpdateImage(a,this._image,this,this.onload);if(n&&o.isImageReady(n)){var r=i.x||0,s=i.y||0,c=i.width,l=i.height,d=n.width/n.height;if(null==c&&null!=l?c=l*d:null==l&&null!=c?l=c/d:null==c&&null==l&&(c=n.width,l=n.height),this.setTransform(t),i.sWidth&&i.sHeight){var u=i.sx||0,f=i.sy||0;t.drawImage(n,u,f,i.sWidth,i.sHeight,r,s,c,l)}else if(i.sx&&i.sy){u=i.sx,f=i.sy;var h=c-u,p=l-f;t.drawImage(n,u,f,h,p,r,s,c,l)}else t.drawImage(n,r,s,c,l);null!=i.text&&(this.restoreTransform(t),this.drawRectText(t,this.getBoundingRect()))}},getBoundingRect:function(){var t=this.style;return this._rect||(this._rect=new n(t.x||0,t.y||0,t.width||0,t.height||0)),this._rect}},r.inherits(s,a);var c=s;t.exports=c},"0e36":function(t,e,i){"use strict";i.r(e);i("7f7f");var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"account-setting-base"},[e("wrapper-content",{attrs:{showHeader:!1}},[e("div",{staticClass:"setting-content"},[e("account-setting"),e("div",{staticClass:"layout-item right"},[e("div",{staticClass:"setting-info-title"},[e("span",[t._v("基本设置")])]),e("div",{staticClass:"setting-info"},[e("div",{staticClass:"setting-info-content"},[e("a-form",{attrs:{layout:"vertical",form:t.form,hideRequiredMark:""},on:{submit:function(e){return e.preventDefault(),t.handleSubmit.apply(null,arguments)}}},[e("a-form-item",{attrs:{label:"昵称"}},[e("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{rules:[{required:!0,message:"请输入您的邮箱"}]}],expression:"[\n 'name',\n {rules: [{ required: true, message: '请输入您的邮箱' }]}\n ]"}]})],1),e("a-form-item",{attrs:{label:"简介"}},[e("a-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:["description"],expression:"['description']"}],attrs:{placeholder:"个人简介",rows:4}})],1),e("a-form-item",[e("a-button",{attrs:{type:"primary",htmlType:"submit",loading:t.loading}},[t._v("更新基本信息")])],1)],1)],1),e("div",{staticClass:"setting-info-avatar"},[e("span",[t._v("头像")]),e("a-avatar",{staticClass:"avatar",attrs:{size:150,src:t.userInfo.avatar}},[t._v(t._s(t.userInfo.name))]),e("a-upload",{staticClass:"avatar-uploader",attrs:{name:"avatar",showUploadList:!1,data:{code:t.userInfo.code},headers:t.headers,action:t.uploadAction,beforeUpload:t.beforeUpload},on:{change:t.handleChange}},[e("a-button",{staticClass:"upload",attrs:{icon:"upload"}},[t._v("更换头像")])],1)],1)])])],1)])],1)},n=[],r=(i("8e6e"),i("ac6a"),i("456d"),i("ade3")),o=i("2f62"),s=i("8eb6"),c=i("2f14"),l=i("c24f"),d=(i("68fe"),i("97a8"));function u(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function f(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:"";return a["a"].post("project/node",{module:t})}function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return a["a"].post("project/node/allList",{module:t,node:e})}function o(t){return a["a"].post("project/node/save",{list:t})}function s(){return a["a"].post("project/node/clear")}},"0f99":function(t,e,i){var a=i("4e08"),n=(a.__DEV__,i("e0d3")),r=n.makeInner,o=n.getDataItemValue,s=i("6d8b"),c=s.createHashMap,l=s.each,d=s.map,u=s.isArray,f=s.isString,h=s.isObject,p=s.isTypedArray,m=s.isArrayLike,v=s.extend,g=(s.assert,i("ec6f")),b=i("93d0"),_=b.SOURCE_FORMAT_ORIGINAL,y=b.SOURCE_FORMAT_ARRAY_ROWS,k=b.SOURCE_FORMAT_OBJECT_ROWS,x=b.SOURCE_FORMAT_KEYED_COLUMNS,w=b.SOURCE_FORMAT_UNKNOWN,C=b.SOURCE_FORMAT_TYPED_ARRAY,S=b.SERIES_LAYOUT_BY_ROW,M={Must:1,Might:2,Not:3},T=r();function P(t){var e=t.option.source,i=w;if(p(e))i=C;else if(u(e)){0===e.length&&(i=y);for(var a=0,n=e.length;at&&(t=e),t},defaultOption:{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1}}});t.exports=n},"17d6":function(t,e,i){var a=i("6d8b"),n=i("22d1"),r=i("e0d3"),o=r.makeInner,s=o(),c=a.each;function l(t,e,i){if(!n.node){var a=e.getZr();s(a).records||(s(a).records={}),d(a,e);var r=s(a).records[t]||(s(a).records[t]={});r.handler=i}}function d(t,e){function i(i,a){t.on(i,(function(i){var n=p(e);c(s(t).records,(function(t){t&&a(t,i,n.dispatchAction)})),u(n.pendings,e)}))}s(t).initialized||(s(t).initialized=!0,i("click",a.curry(h,"click")),i("mousemove",a.curry(h,"mousemove")),i("globalout",f))}function u(t,e){var i,a=t.showTip.length,n=t.hideTip.length;a?i=t.showTip[a-1]:n&&(i=t.hideTip[n-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function f(t,e,i){t.handler("leave",null,i)}function h(t,e,i,a){e.handler(t,i,a)}function p(t){var e={showTip:[],hideTip:[]},i=function(a){var n=e[a.type];n?n.push(a):(a.dispatchAction=i,t.dispatchAction(a))};return{dispatchAction:i,pendings:e}}function m(t,e){if(!n.node){var i=e.getZr(),a=(s(i).records||{})[t];a&&(s(i).records[t]=null)}}e.register=l,e.unregister=m},1820:function(t,e,i){},1860:function(t,e,i){"use strict";function a(t){return r.ddSdk.invokeAPI(o,t)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.openAuth$=void 0;var r=i("c6b3"),o="biz.alipay.openAuth";r.ddSdk.setAPI(o,(n={},n[r.ENV_ENUM.ios]={vs:"5.1.8"},n[r.ENV_ENUM.android]={vs:"5.1.8"},n)),e.openAuth$=a,e.default=a},"18c0":function(t,e,i){var a=i("6d8b"),n=i("e0d8"),r=i("8e43"),o=n.prototype,s=n.extend({type:"ordinal",init:function(t,e){t&&!a.isArray(t)||(t=new r({categories:t})),this._ordinalMeta=t,this._extent=e||[0,t.categories.length-1]},parse:function(t){return"string"===typeof t?this._ordinalMeta.getOrdinal(t):Math.round(t)},contain:function(t){return t=this.parse(t),o.contain.call(this,t)&&null!=this._ordinalMeta.categories[t]},normalize:function(t){return o.normalize.call(this,this.parse(t))},scale:function(t){return Math.round(o.scale.call(this,t))},getTicks:function(){var t=[],e=this._extent,i=e[0];while(i<=e[1])t.push(i),i++;return t},getLabel:function(t){if(!this.isBlank())return this._ordinalMeta.categories[t]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(t,e){this.unionExtent(t.getApproximateExtent(e))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:a.noop,niceExtent:a.noop});s.create=function(){return new s};var c=s;t.exports=c},"18cc":function(t,e,i){"use strict";function a(t){return r.ddSdk.invokeAPI(o,t)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.detectFace$=void 0;var r=i("c6b3"),o="biz.ATMBle.detectFace";r.ddSdk.setAPI(o,(n={},n[r.ENV_ENUM.ios]={vs:"5.1.18"},n[r.ENV_ENUM.android]={vs:"5.1.18"},n)),e.detectFace$=a,e.default=a},"18ef":function(t,e,i){},1915:function(t,e,i){"use strict";function a(t){var e,i=JSON.stringify(t).length;return(0,n._invoke)("biz.util.callComponent",{componentType:"h5",params:{url:"/im/cool-app-component.html?corpId=".concat(encodeURIComponent(null===(e=null===t||void 0===t?void 0:t.context)||void 0===e?void 0:e.corpId),"#/send-message?params=").concat(encodeURIComponent(JSON.stringify({body:t,bodyLengthList:[i]}))),target:"float",title:"提示",wnId:"sendMessageToGroup",panelHeight:"percent83"}})}Object.defineProperty(e,"__esModule",{value:!0}),e.sendMessageToGroup=void 0,i("c526");var n=i("5575");e.sendMessageToGroup=a},1980:function(t,e,i){"use strict";function a(t){return r.ddSdk.invokeAPI(o,t)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.goBack$=void 0;var r=i("c6b3"),o="biz.navigation.goBack";r.ddSdk.setAPI(o,(n={},n[r.ENV_ENUM.ios]={vs:"2.6.0"},n[r.ENV_ENUM.android]={vs:"2.6.0"},n)),e.goBack$=a,e.default=a},"19eb":function(t,e,i){var a=i("6d8b"),n=i("2b61"),r=i("d5b7"),o=i("9e2e");function s(t){for(var e in t=t||{},r.call(this,t),t)t.hasOwnProperty(e)&&"style"!==e&&(this[e]=t[e]);this.style=new n(t.style,this),this._rect=null,this.__clipPaths=null}s.prototype={constructor:s,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(t){},afterBrush:function(t){},brush:function(t,e){},getBoundingRect:function(){},contain:function(t,e){return this.rectContain(t,e)},traverse:function(t,e){t.call(e,this)},rectContain:function(t,e){var i=this.transformCoordToLocal(t,e),a=this.getBoundingRect();return a.contain(i[0],i[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(t){return this.animate("style",t)},attrKV:function(t,e){"style"!==t?r.prototype.attrKV.call(this,t,e):this.style.set(e)},setStyle:function(t,e){return this.style.set(t,e),this.dirty(!1),this},useStyle:function(t){return this.style=new n(t,this),this.dirty(!1),this},calculateTextPosition:null},a.inherits(s,r),a.mixin(s,o);var c=s;t.exports=c},"19ed":function(t,e,i){"use strict";i.r(e);i("7f7f");var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"project-template-index"},[e("wrapper-content",{attrs:{showHeader:!1}},[e("a-tabs",{attrs:{animated:!1},model:{value:t.viewType,callback:function(e){t.viewType=e},expression:"viewType"}},[e("a-tab-pane",{key:"0",attrs:{tab:"自定义模板"}}),e("a-tab-pane",{key:"1",attrs:{tab:"公共模板"}}),e("a-button",{attrs:{slot:"tabBarExtraContent",type:"primary",icon:"plus"},on:{click:function(e){return t.doAction(null,"new")}},slot:"tabBarExtraContent"},[t._v("制作项目模板\n ")])],1),e("a-list",{staticClass:"default-list",attrs:{loading:t.loading,itemLayout:"horizontal",dataSource:t.dataSource},scopedSlots:t._u([{key:"renderItem",fn:function(i,a){return e("a-list-item",{},[i.is_system?t._e():e("span",{attrs:{slot:"actions"},on:{click:function(e){return t.doAction(i,"stages")}},slot:"actions"},[e("a-tooltip",{attrs:{title:"任务列表"}},[e("a-icon",{attrs:{type:"bars"}})],1)],1),i.is_system?t._e():e("span",{attrs:{slot:"actions"},on:{click:function(e){return t.doAction(i,"edit")}},slot:"actions"},[e("a-tooltip",{attrs:{title:"编辑"}},[e("a-icon",{attrs:{type:"edit"}})],1)],1),i.is_system?t._e():e("span",{attrs:{slot:"actions"},on:{click:function(e){return t.doAction(i,"del",a)}},slot:"actions"},[e("a-tooltip",{attrs:{title:"删除"}},[e("a-icon",{attrs:{type:"delete"}})],1)],1),e("a-list-item-meta",{attrs:{description:i.description}},[e("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(i.name))]),e("a-avatar",{attrs:{slot:"avatar",icon:"user",src:i.cover},slot:"avatar"})],1),e("div",{staticClass:"other-info muted"},[i.task_stages.length?e("div",{staticClass:"info-item task"},[e("a-breadcrumb",{attrs:{separator:">"}},t._l(i.task_stages,(function(i){return e("a-breadcrumb-item",{key:i.name},[t._v(t._s(i.name)+"\n ")])})),1)],1):t._e()])],1)}}])},[t.showLoadingMore?e("div",{style:{textAlign:"center",marginTop:"12px",height:"32px",lineHeight:"32px"},attrs:{slot:"loadMore"},slot:"loadMore"},[t.loadingMore?e("a-spin"):e("a-button",{on:{click:t.onLoadMore}},[t._v("查看更多模板")])],1):t._e()])],1),e("a-modal",{staticClass:"project-template-modal",attrs:{width:360,title:t.actionInfo.modalTitle,bodyStyle:{paddingBottom:"1px"},footer:null},model:{value:t.actionInfo.modalStatus,callback:function(e){t.$set(t.actionInfo,"modalStatus",e)},expression:"actionInfo.modalStatus"}},[e("a-form",{attrs:{form:t.form},on:{submit:function(e){return e.preventDefault(),t.handleSubmit.apply(null,arguments)}}},[e("div",{staticClass:"cover-item"},[t.cover?[e("img",{staticClass:"avatar",attrs:{src:t.cover}})]:t._e(),e("span",{directives:[{name:"show",rawName:"v-show",value:!t.cover,expression:"!cover"}],staticClass:"no-avatar"}),e("a-upload",{staticClass:"cover-uploader",attrs:{name:"cover",showUploadList:!1,headers:t.headers,action:t.uploadAction,beforeUpload:t.beforeUpload},on:{change:t.handleChange}},[e("a-button",{staticClass:"upload",attrs:{icon:"upload"}},[t._v("上传封面")]),e("span",{staticClass:"upload-tips muted"},[t._v("最佳图片比例为300*150")])],1)],2),e("a-form-item",[e("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{rules:[{required:!0,message:"请输入模板名称"}]}],expression:"[\n 'name',\n {rules: [{ required: true, message: '请输入模板名称' }]}\n ]"}],attrs:{placeholder:"模板名称(必填)"}})],1),e("a-form-item",[e("a-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:["description"],expression:"['description']"}],attrs:{placeholder:"模板说明",rows:2}})],1),e("a-form-item",[e("div",{staticClass:"action-btn"},[e("a-button",{staticClass:"middle-btn",attrs:{type:"primary",htmlType:"submit",block:"",size:"large",loading:t.actionInfo.confirmLoading}},[t._v("保存模板\n ")])],1)])],1)],1)],1)},n=[],r=i("6649"),o=i("2f14"),s=i("1b80"),c=i("a078"),l={components:{},mixins:[s["a"]],data:function(){return{viewType:"0",dataSource:[],loading:!0,showLoadingMore:!1,loadingMore:!1,currentTemplate:{},cover:c["a"].PROD_URL+"/static/image/default/cover.png",newData:{id:0},form:this.$form.createForm(this),searchForm:{},actionInfo:{modalStatus:!1,confirmLoading:!1,modalTitle:"编辑模板"},uploadLoading:!1,uploadAction:Object(o["c"])("project/project_template/uploadCover")}},computed:{headers:function(){return Object(o["d"])()}},watch:{$route:function(){this.init()},viewType:function(){this.init()}},created:function(){this.init()},methods:{init:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=this;t&&(this.dataSource=[],this.pagination.page=1,this.showLoadingMore=!1),e.loading=!0,e.requestData.viewType=e.viewType,Object(r["c"])(e.requestData).then((function(t){e.dataSource=e.dataSource.concat(t.data.list),e.pagination.total=t.data.total,e.showLoadingMore=e.pagination.total>e.dataSource.length,e.loading=!1,e.loadingMore=!1}))},onLoadMore:function(){this.loadingMore=!0,this.pagination.page++,this.init(!1)},doAction:function(t,e,i){this.currentTemplate=t;var a=this;if(a.newData={code:""},"edit"==e||"new"==e)setTimeout((function(){a.form&&a.form.resetFields()}),0),a.actionInfo.modalStatus=!0,a.actionInfo.modalTitle="自定义模板","edit"==e&&setTimeout((function(){a.actionInfo.modalTitle="编辑模板",a.form.setFieldsValue({name:t.name,description:t.description}),a.cover=t.cover,a.newData=t}),0);else if("del"==e)this.$confirm({title:"确定删除模板?",content:"删除模板「".concat(this.currentTemplate.name,"」后已从该模板创建的项目不受影响"),okText:"删除模板",okType:"danger",cancelText:"再想想",onOk:function(){return Object(r["a"])(t.code).then((function(){a.dataSource.splice(i,1)})),Promise.resolve()}});else if("stages"==e){var n=this.$router.resolve({path:"/project/template/taskstages/"+t.code+"?name="+t.name}),o=n.href;window.open(o,"_blank")}},handleSubmit:function(){var t=this;t.form.validateFields((function(e){e||t.handleOk()}))},handleOk:function(){var t=this;t.actionInfo.confirmLoading=!0;var e=t.form.getFieldsValue();e.cover=this.cover,t.newData.code?e.code=t.newData.code:Object.assign(e,t.newData),Object(r["b"])(e).then((function(e){t.actionInfo.confirmLoading=!1,Object(o["a"])(e)&&(t.form.resetFields(),t.newData={code:""},t.actionInfo.modalStatus=!1,t.init())}))},handleChange:function(t){var e=this;"uploading"!==t.file.status?"done"===t.file.status&&Object(o["e"])(t.file.originFileObj,(function(i){e.cover=t.file.response.data.url,e.uploadLoading=!1})):this.uploadLoading=!0},beforeUpload:function(t){var e=t.size/1024/1024<2;return e||this.$message.error("图片不能超过2MB!"),e}}},d=l,u=(i("9a60"),i("2877")),f=Object(u["a"])(d,a,n,!1,null,null,null);e["default"]=f.exports},"1a3c":function(t,e,i){"use strict";i("38fdf")},"1a9f":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.coolAppSdk=void 0;var a=i("44bb");e.coolAppSdk=a},"1c8c":function(t,e,i){"use strict";function a(t){return r.ddSdk.invokeAPI(o,t)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.setDeviceProperties$=void 0;var r=i("c6b3"),o="biz.iot.setDeviceProperties";r.ddSdk.setAPI(o,(n={},n[r.ENV_ENUM.ios]={vs:"4.6.42"},n[r.ENV_ENUM.android]={vs:"4.6.42"},n)),e.setDeviceProperties$=a,e.default=a},"1c8d":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"main user-layout-forgot"},[t.sended?[t._m(1),e("a-form",{ref:"formRegister",attrs:{form:t.form,id:"formRegister"}},[e("a-form-item",[e("a-input",{attrs:{size:"large",type:"text",placeholder:"邮箱",value:t.email,disabled:""}},[e("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"mail"},slot:"prefix"})],1)],1),e("a-popover",{attrs:{placement:"rightTop",trigger:"click",visible:t.state.passwordLevelChecked}},[e("template",{slot:"content"},[e("div",{style:{width:"240px"}},[e("div",{class:["user-register",t.passwordLevelClass]},[t._v("强度:"),e("span",[t._v(t._s(t.passwordLevelName))])]),e("a-progress",{attrs:{percent:t.state.percent,showInfo:!1,strokeColor:t.passwordLevelColor}}),e("div",{staticStyle:{"margin-top":"10px"}},[e("span",[t._v("请至少输入 6 个字符。请不要使用容易被猜到的密码。")])])],1)]),e("a-form-item",[e("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["password",{rules:[{required:!0,message:"至少6位密码,区分大小写"},{validator:this.handlePasswordLevel}],validateTrigger:["change","blur"]}],expression:"['password',{rules: [{ required: true, message: '至少6位密码,区分大小写' },{ validator: this.handlePasswordLevel }], validateTrigger: ['change', 'blur']}]"}],attrs:{size:"large",type:"password",autocomplete:"false",placeholder:"密码须至少6位,且区分大小写"},on:{click:t.handlePasswordInputClick}},[e("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"lock"},slot:"prefix"})],1)],1)],2),e("a-form-item",[e("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["password2",{rules:[{required:!0,message:"至少6位密码,区分大小写"},{validator:this.handlePasswordCheck}],validateTrigger:["change","blur"]}],expression:"['password2',{rules: [{ required: true, message: '至少6位密码,区分大小写' },{ validator: this.handlePasswordCheck }], validateTrigger: ['change', 'blur']}]"}],attrs:{size:"large",type:"password",autocomplete:"false",placeholder:"再次确认您的密码"}},[e("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"check-circle"},slot:"prefix"})],1)],1),e("a-form-item",[e("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["captcha",{rules:[{required:!0,message:"请输入验证码"}],validateTrigger:["blur"]}],expression:"['captcha',{rules: [{ required: true, message: '请输入验证码' }], validateTrigger: ['blur']}]"}],attrs:{size:"large",type:"text",placeholder:"验证码"}},[e("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"safety-certificate"},slot:"prefix"})],1)],1),e("a-form-item",[e("a-button",{staticClass:"register-button",attrs:{block:"",size:"large",type:"primary",htmlType:"submit",loading:t.registerBtn,disabled:t.registerBtn},on:{click:function(e){return e.stopPropagation(),e.preventDefault(),t.handleSubmit.apply(null,arguments)}}},[t._v("提交\n ")])],1)],1)]:[t._m(0),e("a-form",{ref:"formForgot",attrs:{form:t.formCaptcha,id:"formForgot"}},[e("a-form-item",[e("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["email",{rules:[{required:!0,type:"email",message:"请输入邮箱地址"}],validateTrigger:["change","blur"]}],expression:"['email',{rules: [{ required: true, type: 'email', message: '请输入邮箱地址' }], validateTrigger: ['change', 'blur']}]"}],attrs:{size:"large",type:"text",placeholder:"注册邮箱地址"}},[e("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"mail"},slot:"prefix"})],1)],1),e("a-form-item",[e("a-button",{staticClass:"forgot-button",attrs:{size:"large",type:"primary",htmlType:"submit",loading:t.forgotBtn,disabled:t.forgotBtn},on:{click:function(e){return e.stopPropagation(),e.preventDefault(),t.handleSubmitCaptcha.apply(null,arguments)}}},[t._v("获取验证码\n ")]),e("router-link",{staticClass:"login",attrs:{to:{name:"login"}}},[t._v("使用其他账户登录")])],1)],1)]],2)},n=[function(){var t=this,e=t._self._c;return e("h3",[e("span",[t._v("通过邮箱重置")])])},function(){var t=this,e=t._self._c;return e("h3",[e("span",[t._v("重置密码")])])}],r=i("6821f"),o=i.n(r),s=i("c24f"),c=i("2f14"),l=i("97a8"),d={0:"低",1:"低",2:"中",3:"强"},u={0:"error",1:"error",2:"warning",3:"success"},f={0:"#ff0000",1:"#ff0000",2:"#ff7e05",3:"#52c41a"},h={name:"Forgot",components:{},data:function(){return{form:this.$form.createForm(this),formCaptcha:this.$form.createForm(this),email:"",sended:!1,forgotBtn:!1,state:{time:60,smsSendBtn:!1,passwordLevel:0,passwordLevelChecked:!1,percent:10,progressColor:"#FF0000"},registerBtn:!1}},computed:{passwordLevelClass:function(){return u[this.state.passwordLevel]},passwordLevelName:function(){return d[this.state.passwordLevel]},passwordLevelColor:function(){return f[this.state.passwordLevel]}},methods:{handleSubmitCaptcha:function(){var t=this;this.formCaptcha.validateFields((function(e,i){if(!e){t.forgotBtn=!0;var a=t.formCaptcha.getFieldsValue();t.email=a.email,Object(s["h"])(t.email).then((function(e){if(t.sended=!0,t.forgotBtn=!1,t.$message.destroy(),!Object(c["a"])(e))return!1;var i="验证码获取成功";e.data&&(i+=",您的验证码为:"+e.data),Object(l["b"])({title:"提示",msg:i},"notification","success",8)}))}}))},handleSubmit:function(){var t=this;this.form.validateFields((function(e,i){if(!e){t.hidePasswordLevelChecked=!1,t.registerBtn=!0;var a=t.form.getFieldsValue();a.email=t.email,a.password=o()(a.password),a.password2=o()(a.password2),Object(s["k"])(a).then((function(e){if(t.registerBtn=!1,!Object(c["a"])(e))return!1;Object(l["b"])({title:"提示",msg:"重置密码成功,请登录"},"notification","success"),t.$router.push({name:"login"})}))}}))},handlePasswordInputClick:function(){this.state.passwordLevelChecked=!0},hidePasswordLevelChecked:function(){this.state.passwordLevelChecked=!1},handlePasswordLevel:function(t,e,i){var a=0;/[0-9]/.test(e)&&a++,/[a-zA-Z]/.test(e)&&a++,/[^0-9a-zA-Z_]/.test(e)&&a++,this.state.passwordLevel=a,this.state.percent=30*a,a>=2?(a>=3&&(this.state.percent=100),i()):(0===a&&(this.state.percent=10),i(new Error("密码强度不够")))},handlePasswordCheck:function(t,e,i){var a=this.form.getFieldValue("password");void 0===e&&i(new Error("请输入密码")),e&&a&&e.trim()!==a.trim()&&i(new Error("两次密码不一致")),i()}},watch:{}},p=h,m=(i("7797"),i("1a3c"),i("2877")),v=Object(m["a"])(p,a,n,!1,null,null,null);e["default"]=v.exports},"1cbc":function(t,e,i){"use strict";function a(t){return r.ddSdk.invokeAPI(o,t)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.saveImage$=void 0;var r=i("c6b3"),o="biz.util.saveImage";r.ddSdk.setAPI(o,(n={},n[r.ENV_ENUM.ios]={vs:"4.1"},n[r.ENV_ENUM.android]={vs:"4.1"},n)),e.saveImage$=a,e.default=a},"1d16":function(t,e,i){"use strict";i("2ab7")},"1d72":function(t,e,i){"use strict";i.r(e);i("7f7f");var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"datav-index"},[e("div",{staticStyle:{width:"100vw"},attrs:{id:"container"}}),e("div",{staticClass:"btn-box"},[e("a-dropdown",{attrs:{trigger:["click"]},scopedSlots:t._u([{key:"overlay",fn:function(){return[e("a-menu",{staticStyle:{width:"160px"},on:{click:t.handleMenuClick}},t._l(t.member_list,(function(i,a){return e("a-menu-item",{key:a},[e("div",{staticClass:"menu-item-d"},[e("a-avatar",{attrs:{src:i.avatar,icon:"user",size:"small"}}),e("a",{staticClass:"muted name"},[t._v(t._s(i.name))])],1)])})),1)]},proxy:!0}])},[e("a-button",{staticStyle:{"min-width":"100px"}},[e("div",{staticClass:"menu-item-d"},[e("a-avatar",{attrs:{src:t.now_user.avatar,icon:"user",size:"small"}}),e("a",{staticClass:"muted name"},[t._v(t._s(t.now_user.name))])],1)])],1),e("a-date-picker",{attrs:{format:"MM月DD日",allowClear:!1},on:{change:t.changeTime},model:{value:t.now_date,callback:function(e){t.now_date=e},expression:"now_date"}})],1)])},n=[],r=(i("28a5"),i("ac6a"),i("6b54"),i("f576"),i("2ef0"),i("862d3")),o=i.n(r),s=i("22b6");function c(t){return s["a"].post("project/project/positioning_list",{department_code:t})}function l(t){return s["a"].post("project/project/positioning_member",t)}var d=i("c24f"),u=i("97a8"),f={name:"datav",data:function(){return{map:null,Amap:null,visibleTaskCopied:!1,now_date:"",now_user:{member_code:"",avatar:"",name:"全部"},member_list:[],markers:[],polyline:null}},created:function(){this.now_date="",this.getMembers()},mounted:function(){this.initMap()},methods:{getMembers:function(){var t=this;Object(d["w"])().then((function(e){t.member_list=e.data.list}))},formatDate:function(t){var e=t.getFullYear(),i=(t.getMonth()+1).toString().padStart(2,"0"),a=t.getDate().toString().padStart(2,"0");return"".concat(e,"-").concat(i,"-").concat(a)},initMap:function(){var t=this;o.a.load({key:"4f8f55618010007147aab96fc72bb408",version:"2.0",plugins:["AMap.Geocoder"],Loca:{version:"2.0.0"}}).then((function(e){t.map=new e.Map("container",{viewMode:"3D",zoom:15,center:[105.433211,28.913861],mapStyle:"amap://styles/darkblue"}),t.initMaker()})).catch((function(t){console.log(t)}))},handleMenuClick:function(t){this.now_user=this.member_list[t.key],this.initList()},changeTime:function(t){console.log(this.now_date),this.initList()},initMaker:function(){var t=this;c().then((function(e){e.data.forEach((function(e){if(e.positioning){var i=new AMap.Marker({position:e.positioning.split(","),map:t.map,content:'\n \n

\n
\n
').concat(e.name,"
\n
更新时间:").concat(e.date,"
\n
停留时间:").concat(e.date,"
\n
\n
\n "),offset:new AMap.Pixel(-20,-20)});t.markers.push(i)}}))}))},initList:function(){var t=this;this.now_user.member_code&&this.now_date&&(this.map.remove(this.markers),this.polyline&&this.polyline.setMap(null),l({code:this.now_user.member_code,date:this.formatDate(new Date(this.now_date||Date.now()))}).then((function(e){var i=e.data.map((function(t){return t.split(",")}))||[];if(0==i.length)return Object(u["b"])({title:"该成员当日无轨迹信息"},"error",3e3);t.polyline=new AMap.Polyline({path:i,strokeColor:"#52c41a",strokeWeight:5,strokeOpacity:1,strokeStyle:"solid",zIndex:50}),t.polyline.setMap(t.map)})).catch((function(t){return console.log(t),Object(u["b"])({title:"该成员当日无轨迹信息"},"error",3e3)})))}}},h=f,p=(i("d495"),i("2877")),m=Object(p["a"])(h,a,n,!1,null,null,null);e["default"]=m.exports},"1e0e":function(t,e,i){"use strict";i("5e24")},"1e48":function(t,e,i){"use strict";function a(t){return r.ddSdk.invokeAPI(s,t)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.alert$=void 0;var r=i("c6b3"),o=i("f162"),s="device.notification.alert",c=(0,o.genDefaultParamsDealFn)({title:"",buttonName:"确定"});r.ddSdk.setAPI(s,(n={},n[r.ENV_ENUM.pc]={vs:"2.5.0"},n[r.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:c},n[r.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:c},n)),e.alert$=a,e.default=a},"1e49":function(t,e,i){"use strict";function a(t){return r.ddSdk.invokeAPI(o,t)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.call$=void 0;var r=i("c6b3"),o="biz.telephone.call";r.ddSdk.setAPI(o,(n={},n[r.ENV_ENUM.ios]={vs:"2.4.0"},n[r.ENV_ENUM.android]={vs:"2.4.0"},n)),e.call$=a,e.default=a},"1ee2":function(t,e,i){"use strict";function a(t){return r.ddSdk.invokeAPI(o,t)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.stop$=void 0;var r=i("c6b3"),o="device.geolocation.stop";r.ddSdk.setAPI(o,(n={},n[r.ENV_ENUM.ios]={vs:"3.4.7"},n[r.ENV_ENUM.android]={vs:"3.4.7"},n)),e.stop$=a,e.default=a},"1f29":function(t,e,i){"use strict";function a(t){return r.ddSdk.invokeAPI(o,t)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.setColors$=void 0;var r=i("c6b3"),o="ui.progressBar.setColors";r.ddSdk.setAPI(o,(n={},n[r.ENV_ENUM.ios]={vs:"2.4.0"},n[r.ENV_ENUM.android]={vs:"2.4.0"},n)),e.setColors$=a,e.default=a},"1f44":function(t,e,i){"use strict";function a(t){return r.ddSdk.invokeAPI(o,t)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.actionSheet$=void 0;var r=i("c6b3"),o="device.notification.actionSheet";r.ddSdk.setAPI(o,(n={},n[r.ENV_ENUM.pc]={vs:"3.0.0"},n[r.ENV_ENUM.ios]={vs:"2.4.0"},n[r.ENV_ENUM.android]={vs:"2.4.0"},n)),e.actionSheet$=a,e.default=a},"1fab":function(t,e){var i=Array.prototype.slice,a=function(t){this._$handlers={},this._$eventProcessor=t};function n(t,e){var i=t._$eventProcessor;return null!=e&&i&&i.normalizeQuery&&(e=i.normalizeQuery(e)),e}function r(t,e,i,a,r,o){var s=t._$handlers;if("function"===typeof i&&(r=a,a=i,i=null),!a||!e)return t;i=n(t,i),s[e]||(s[e]=[]);for(var c=0;c3&&(n=i.call(n,1));for(var o=e.length,s=0;s4&&(n=i.call(n,1,n.length-1));for(var o=n[n.length-1],s=e.length,c=0;c0){var e=t.date[0].format("YYYY-MM-DD"),i=t.date[1].format("YYYY-MM-DD");t.date=e+"~"+i}Object.assign(this.requestData,t),this.init()}}},d=l,u=i("2877"),f=Object(u["a"])(d,a,n,!1,null,null,null);e["default"]=f.exports},2094:function(t,e,i){"use strict";function a(t){return r.ddSdk.invokeAPI(o,t)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getUserExclusiveInfo$=void 0;var r=i("c6b3"),o="biz.realm.getUserExclusiveInfo";r.ddSdk.setAPI(o,(n={},n[r.ENV_ENUM.ios]={vs:"6.0.14"},n[r.ENV_ENUM.android]={vs:"6.0.14"},n[r.ENV_ENUM.pc]={vs:"6.0.17"},n)),e.getUserExclusiveInfo$=a,e.default=a},"20c8":function(t,e,i){var a=i("4a3f"),n=i("401b"),r=i("e263"),o=i("9850"),s=i("2cf4"),c=s.devicePixelRatio,l={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},d=[],u=[],f=[],h=[],p=Math.min,m=Math.max,v=Math.cos,g=Math.sin,b=Math.sqrt,_=Math.abs,y="undefined"!==typeof Float32Array,k=function(t){this._saveData=!t,this._saveData&&(this.data=[]),this._ctx=null};k.prototype={constructor:k,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(t,e,i){i=i||0,this._ux=_(i/c/t)||0,this._uy=_(i/c/e)||0},getContext:function(){return this._ctx},beginPath:function(t){return this._ctx=t,t&&t.beginPath(),t&&(this.dpr=t.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(t,e){return this.addData(l.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},lineTo:function(t,e){var i=_(t-this._xi)>this._ux||_(e-this._yi)>this._uy||this._len<5;return this.addData(l.L,t,e),this._ctx&&i&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),i&&(this._xi=t,this._yi=e),this},bezierCurveTo:function(t,e,i,a,n,r){return this.addData(l.C,t,e,i,a,n,r),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,i,a,n,r):this._ctx.bezierCurveTo(t,e,i,a,n,r)),this._xi=n,this._yi=r,this},quadraticCurveTo:function(t,e,i,a){return this.addData(l.Q,t,e,i,a),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,i,a):this._ctx.quadraticCurveTo(t,e,i,a)),this._xi=i,this._yi=a,this},arc:function(t,e,i,a,n,r){return this.addData(l.A,t,e,i,i,a,n-a,0,r?0:1),this._ctx&&this._ctx.arc(t,e,i,a,n,r),this._xi=v(n)*i+t,this._yi=g(n)*i+e,this},arcTo:function(t,e,i,a,n){return this._ctx&&this._ctx.arcTo(t,e,i,a,n),this},rect:function(t,e,i,a){return this._ctx&&this._ctx.rect(t,e,i,a),this.addData(l.R,t,e,i,a),this},closePath:function(){this.addData(l.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,i),t.closePath()),this._xi=e,this._yi=i,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t.stroke(),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,i=0;ie.length&&(this._expandData(),e=this.data);for(var i=0;i0&&h<=t||d<0&&h>=t||0===d&&(u>0&&v<=e||u<0&&v>=e))a=this._dashIdx,i=o[a],h+=d*i,v+=u*i,this._dashIdx=(a+1)%g,d>0&&h