From 00e2f876f1c978a47110e3bc7d03b6df7d8ebe74 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Thu, 1 Feb 2024 17:25:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 2 +- js/app.ae72c3e7.js | 1 + js/app.b4b29fd9.js | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 js/app.ae72c3e7.js delete mode 100644 js/app.b4b29fd9.js diff --git a/index.html b/index.html index 3895739..ed67718 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -工单系统
\ No newline at end of file +工单系统
\ No newline at end of file diff --git a/js/app.ae72c3e7.js b/js/app.ae72c3e7.js new file mode 100644 index 0000000..97febc0 --- /dev/null +++ b/js/app.ae72c3e7.js @@ -0,0 +1 @@ +(function(t){function e(e){for(var s,n,r=e[0],c=e[1],l=e[2],u=0,d=[];u"}},t._l(t.task.parentTasks,(function(a){return e("a-breadcrumb-item",{key:a.code},[e("a",{staticClass:"text-default",on:{click:function(e){return t.init(a.code)}}},[t._v(t._s(a.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",style:{"pointer-events":1==t.userInfo.authorize?"all":"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(a,s){return e("a-menu-item",{key:a.id},[e("div",{staticClass:"menu-item-content"},[e("span",{attrs:{color:"green"}},[t._v(t._s(a.name))]),e("a-icon",{directives:[{name:"show",rawName:"v-show",value:t.task.status==a.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(a){return e("div",{key:a.code,on:{click:function(e){return t.spliceCopied(t.index)}}},[e("a-avatar",{attrs:{src:a.avatar,icon:"user",size:"small"}}),e("a",{staticClass:"muted name"},[t._v(t._s(a.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(a,s){return e("div",{key:s,staticStyle:{"pointer-events":"none"}},[e("a-dropdown",{attrs:{trigger:["click"],placement:"bottomCenter"},model:{value:a.show,callback:function(e){t.$set(a,"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:a.avatar,icon:"user",size:"small"}}),e("a",{staticClass:"muted name"},[t._v(t._s(a.name))]),s!=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"},[a.show?e("task-member-menu",{attrs:{taskCode:t.code,projectCode:t.projectCodeCurrent,isCommit:!1},on:{inviteProjectMember:function(e){t.showInviteMember=!0,a.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(a,s){return e("a-list-item",{key:s},[e("a-list-item-meta",[e("a-avatar",{attrs:{slot:"avatar",size:"small",shape:"square",icon:"link",src:a.sourceDetail.file_url},slot:"avatar"}),e("div",{attrs:{slot:"title"},slot:"title"},[e("a",{staticClass:"muted",attrs:{target:"_blank",href:a.sourceDetail.file_url}},[t._v(t._s(a.title))])]),e("div",{attrs:{slot:"description"},slot:"description"})],1),e("a",{staticClass:"muted",attrs:{slot:"actions"},slot:"actions"},[e("span",[t._v(t._s(a.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:a.sourceDetail.file_url,expression:"item.sourceDetail.file_url"}],staticClass:"field-right-menu",attrs:{slot:"overlay"},on:{click:function(e){return t.doSource(e,a)}},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(a){return e("a-tooltip",{key:a.code,attrs:{mouseEnterDelay:.5}},[e("template",{slot:"title"},[e("span",[t._v(t._s(a.name)+" "),a.is_owner?e("span",[t._v(" · 创建者")]):t._e()])]),e("a-avatar",{staticClass:"member-item",attrs:{icon:"user",size:"small",src:a.avatar},on:{click:function(e){return t.routerLink("/members/profile/"+a.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(a){return e("div",{key:a.code,class:{"log-comment":a.is_comment,"list-item":!a.is_comment,"log-pass":"pass"==a.type,"log-reject":"reject"==a.type,"log-add":"add"==a.type}},[a.is_comment?t._e():[e("a-icon",{staticClass:"log-item",attrs:{type:a.icon}}),e("div",{staticClass:"log-item log-txt"},[e("div",[t._v(t._s(a.member.name)+" "),e("span",{domProps:{innerHTML:t._s(a.remark)}})]),a.content?e("div",{staticClass:"log-content img-preview-content",domProps:{innerHTML:t._s(a.content)}}):t._e()])],a.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:a.member.avatar}}),e("div",[t._v(t._s(a.member.name))]),"add"==a.type?e("div",{staticClass:"log-add-tips"},[t._v("提交")]):t._e(),"pass"==a.type?e("div",{staticClass:"log-pass-tips"},[t._v("通过")]):t._e(),"reject"==a.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(a.create_time))])]),e("span",{staticClass:"muted"},[t._v(t._s(t._f("formatLogTime")(a.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(a.content))}})])]):t._e(),a.is_comment?t._e():e("a-tooltip",{attrs:{mouseEnterDelay:.5}},[e("template",{slot:"title"},[e("span",[t._v(t._s(a.create_time))])]),e("span",[t._v(t._s(t._f("formatLogTime")(a.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(a){return e("div",{key:a.id,staticClass:"mentions-wrapper",on:{click:function(e){return t.selectMentionMember(a)}}},[e("a-avatar",{attrs:{src:a.avatar,icon:"user",size:28}}),e("span",{staticClass:"muted name m-l-xs"},[t._v(t._s(a.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=[],i=(a("8e6e"),a("456d"),a("a481"),a("4917"),a("ac6a"),a("7514"),a("6b54"),a("20d6"),a("ade3")),o=(a("c5f6"),a("2f62")),r=a("1157"),c=a.n(r),l=a("c1df"),u=a.n(l),d=a("f93e"),f=a("a897"),m=a("b199"),p=a("8870"),h=a("d8bc"),v=a("f66c"),k=a("4540"),g=a("e8d3"),b=a("d3a1"),w=a("68fe"),_=a("2f14"),y=a("97a8"),j=a("81fe"),C=a("261e"),T=a("7dc6");function x(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 O(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 a=this;console.log(t),console.log(t.fileList);var s=t.fileList,n=s.findIndex((function(t){return t.projectName==a.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(a){var s=a||window.event||e.callee.caller.arguments[0];13==s.keyCode&&s.ctrlKey&&t.createComment(1),("@"==s.key||"Digit2"==s.code&&"Process"==s.key&&s.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(j["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,a=this.departmentList.find((function(e){return e.code==t.key}));this.department=a,getliasonMan({searchType:4,type:1,departmentCode:a.code}).then((function(t){t.data.list[0]?e.liasionMan=t.data.list[0]:Object(y["b"])({title:"该部门没有联络员"},"notice","error",5)}))},changeRecipient:function(t){var e=this.task.copied_info.find((function(e){return e.code==t.code}));e?Object(y["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(O({f_key:(new Date).getTime(),show:!1},t))},changeExchangeShow:function(t){var e=this,a=this.task.exchange_info.findIndex((function(t){return 1==t.show}));if(-1!=a){this.task.exchange_info[a].show=!1;var s=JSON.parse(JSON.stringify(this.task.exchange_info));t?s[a]=O({f_key:(new Date).getTime(),show:!1},t):s.splice(a,1),this.$nextTick((function(){e.task.exchange_info=s}))}},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(m["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=u()(t.task.end_time)):(t.task.setEndTime=!1,t.task.end_time=u()(u()().format("YYYY-MM-DD")+" 18:00")),t.task.end_time_format=Object(j["b"])(t.task.end_time,!0),t.task.begin_time?(t.task.setBeginTime=!0,t.task.begin_time=u()(t.task.begin_time)):(t.task.setBeginTime=!1,t.task.begin_time=u()(u()().format("YYYY-MM-DD")+" 18:00")),t.task.begin_time_format=Object(j["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(a){console.error(a)}}))},getTaskLog:function(){var t=this;Object(m["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(m["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(m["a"])({taskCode:this.code}).then((function(e){t.workTimeList=e.data;var a=0;e.data&&(e.data.forEach((function(t){a+=Number(t.num)})),t.workTimeTotal=a)}))},getTaskMembers:function(){var t=this;this.clearMemberMenu(),Object(h["b"])({taskCode:this.code,pageSize:100}).then((function(e){t.taskMemberList=e.data.list,t.loading=!1}))},doTask:function(t){var e=this,a=this,s=t.key;switch(s){case"recycle":this.$confirm({title:"移到回收站",content:"您确定要把该任务移到回收站吗?",okText:"确定",okType:"danger",cancelText:"再想想",onOk:function(){return Object(m["q"])(a.code).then((function(t){var e=Object(_["a"])(t);if(!e)return!1;a.task.deleted=1,a.getTaskLog()})),Promise.resolve()}});break;case"star":return this.task.stared?this.task.stared=0:this.task.stared=1,Object(m["y"])(a.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(m["v"])(a.code,Number(!this.task.private)).then((function(t){var a=Object(_["a"])(t);if(!a)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 a=this,s=t.key;switch(s){case"unlink":this.$confirm({title:"取消关联",content:"您确定永久删除这个关联?",okText:"确定",okType:"danger",cancelText:"再想想",onOk:function(){return Object(p["a"])(e.code).then((function(t){var e=Object(_["a"])(t);if(!e)return!1;a.taskSources(),a.getTaskLog()})),Promise.resolve()}});break;case"copy":return Object(y["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 a=Object(_["a"])(e);if(!a)return!1;t.getTaskLog()})),t.task.deleted=0,Promise.resolve()}})},copyLink:function(){Object(y["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},taskDone:function(t,e,a){var s=this,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"self";e=e?1:0,Object(m["z"])(t,e).then((function(t){var i=Object(_["a"])(t);if(!i)return!1;s.getTaskLog(),"self"==n?s.task.done=e:s.childTaskList[a].done=e,s.getTask(),s.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 a="";t?(a=u()(this.task.begin_time).format("YYYY-MM-DD HH:mm"),this.task.begin_time_format=u()(this.task.begin_time).format("MM月DD日 HH:mm")):a="",this.editTask({begin_time:a})},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 a="";t?(a=u()(this.task.end_time).format("YYYY-MM-DD HH:mm"),this.task.end_time_format=u()(this.task.end_time).format("MM月DD日 HH:mm")):a="",this.editTask({end_time:a})},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(m["h"])(t).then((function(t){var a=Object(_["a"])(t);if(!a)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(a){}},doContent:function(){var t=this,e=this.$refs.vueWangeditor.getHtml(),a={taskCode:this.code,description:e};Object(m["h"])(a).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,a=this.comment.trim();if(!a)return!1;a+=" ";var s=/(@[^@]+) /g,n=a.match(s);n&&n.forEach((function(e){var a=e.substring(1,e.length-1);-1===t.mentionsList.findIndex((function(t){return t==a}))&&t.mentionsList.push(a)})),Object(m["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],a=c()(".description-txt");if(e||(t?(this.showMoreDesc=!0,a.css("max-height",(function(){return"100%"}))):(this.showMoreDesc=!1,a.css("max-height",(function(){return"300px"})))),e){var s=a.height();return s>=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(m["s"])(e).then((function(e){var a=Object(_["a"])(e);if(!a)return!1;t.childTaskName="",t.getChildTasks(),t.getTaskLog()}))},getChildTasks:function(){var t=this;Object(m["m"])({pcode:this.code,pageSize:100,deleted:0}).then((function(e){var a=[];e.data.list.forEach((function(t){t.visibleChildTaskMemberMenu=!1,a.push(t)})),t.childTaskList=a}))},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 a=this;Object(m["w"])({taskCode:this.task.code,tagCode:t.code}).then((function(){a.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:u()(t.begin_time),content:t.content})}))):(this.workTimeDo.form.resetFields(),this.workTimeDo.info=null)},deleteWorkTime:function(t,e){var a=this;this.$confirm({title:"删除工时记录",content:"确定要删除工时记录吗?",okText:"确定",okType:"danger",cancelText:"再想想",onOk:function(){return Object(m["g"])({code:t.code}).then((function(s){Object(_["a"])(s)&&(a.workTimeList.splice(e,1),a.workTimeTotal-=t.num)})),Promise.resolve()}})},workTimePlainHandleSubmit:function(){var t=this;this.plainWorkTime.form.validateFields((function(e,a){e||(t.editTask({work_time:a.work_time}),t.plainWorkTime.modalStatus=!1)}))},workTimeHandleSubmit:function(){var t=this;this.workTimeDo.form.validateFields((function(e,a){if(!e){t.workTimeDo.confirmLoading=!0;var s={beginTime:a.begin_time.format("YYYY-MM-DD HH:mm"),num:a.num,content:a.content,taskCode:t.code};t.workTimeDo.info?(s.code=t.workTimeDo.info.code,Object(m["i"])(s).then((function(e){t.workTimeDo.confirmLoading=!1,Object(_["a"])(e)&&(t.workTimeDo.modalStatus=!1,t.getTaskWorkTimeList())}))):Object(m["t"])(s).then((function(e){t.workTimeDo.confirmLoading=!1,Object(_["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(T["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,a=c()(window).height()-150,s=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),a+=85,s+=85,c()(".content-left").css("height",a+"px"),c()(".log-wrap").css("height",s+"px")):(e>t&&(e=t),c()(".task-detail").css("width",e),c()(".content-left").css("height",a+"px"),c()(".log-wrap").css("height",s+"px"))}}},P=z,E=(a("7060"),a("2877")),N=Object(E["a"])(P,s,n,!1,null,null,null);e["a"]=N.exports},"0128":function(t,e,a){"use strict";a("6944")},"019e":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("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:"24vw","min-width":"300px"},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()]),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,n){return[!a.done&&a.canRead?e("div",{key:a.code,staticClass:"task task-card ui-sortable-handle",class:t.showTaskPri(a.pri),attrs:{index:n,id:a.code},on:{click:function(e){return e.stopPropagation(),t.taskDetail(a.code,s,a.project_code)}}},[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",staticStyle:{"font-size":"17px"}},[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-content-wrapper"},[e("div",{staticClass:"task-text",style:{overflowWrap:"anywhere"}},[t._v("\n "+t._s(t.domPaser(a.description))+"\n ")])]),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)]),e("div",{staticClass:"task-content-wrapper",staticStyle:{display:"flex","justify-content":"space-between"}},[e("div",{staticClass:"task-tips"},[t._v("\n 发布时间: "+t._s(a.create_time)+"\n ")]),a.timeout?e("div",{staticClass:"task-tips",staticStyle:{color:"red"}},[t._v("\n 已逾期: "+t._s(a.timeout)+"\n ")]):t._e()]),e("div",{staticClass:"task-content-wrapper",staticStyle:{display:"flex"}},[e("span",[t._v("处理部门: "+t._s(a.department_name))])]),e("div",{staticClass:"task-content-wrapper",staticStyle:{display:"flex","flex-wrap":"wrap"}},[e("span",{staticStyle:{"padding-right":"10px"}},[t._v("抄送:")]),t._l(a.copied_info,(function(a,s){return e("div",{key:s,staticStyle:{"margin-right":"10px"}},[e("img",{staticClass:"avatar img-circle img-24 hinted",staticStyle:{"margin-right":"5px"},attrs:{src:a.avatar,title:a.name}}),e("span",[t._v(t._s(a.name))])])}))],2),e("div",{staticClass:"task-content-wrapper",staticStyle:{display:"flex","flex-wrap":"wrap"}},[e("span",{staticStyle:{"padding-right":"10px"}},[t._v("工作流转: ")]),t._l(a.exchange_info,(function(a,s){return e("div",{key:s,staticStyle:{"margin-right":"10px"}},[e("img",{staticClass:"avatar img-circle img-24 hinted",staticStyle:{"margin-right":"5px"},attrs:{src:a.avatar,title:a.name}}),e("span",[t._v(t._s(a.name))]),e("span",{staticStyle:{"margin-left":"5px"}},[t._v(t._s(">>"))])])}))],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,n){return[e("div",{key:a.code,staticClass:"task task-card ui-sortable-handle",class:t.showTaskPri(a.pri),attrs:{index:n,id:a.code},on:{click:function(e){return e.stopPropagation(),t.taskDetail(a.code,s,a.project_code)}}},[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",staticStyle:{"font-size":"17px"}},[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-content-wrapper"},[e("div",{staticClass:"task-text",style:{overflowWrap:"anywhere"}},[t._v("\n "+t._s(t.domPaser(a.description))+"\n ")])]),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)]),e("div",{staticClass:"task-content-wrapper",staticStyle:{display:"flex","justify-content":"space-between"}},[e("div",{staticClass:"task-tips"},[t._v("\n 发布时间: "+t._s(a.create_time)+"\n ")]),a.timeout?e("div",{staticClass:"task-tips",staticStyle:{color:"red"}},[t._v("\n 已逾期: "+t._s(a.timeout)+"\n ")]):t._e()]),e("div",{staticClass:"task-content-wrapper",staticStyle:{display:"flex"}},[e("span",[t._v("处理部门: "+t._s(a.department_name))])]),e("div",{staticClass:"task-content-wrapper",staticStyle:{display:"flex"}},[e("span",[t._v("抄送: ")]),t._l(a.copied_info,(function(a,s){return e("div",{key:s,staticStyle:{"margin-right":"10px"}},[e("img",{staticClass:"avatar img-circle img-24 hinted",staticStyle:{"margin-right":"5px"},attrs:{src:a.avatar,title:a.name}}),e("span",[t._v(t._s(a.name))])])}))],2),e("div",{staticClass:"task-content-wrapper",staticStyle:{display:"flex"}},[e("span",[t._v("工作流转: ")]),t._l(a.exchange_info,(function(a,s){return e("div",{key:s,staticStyle:{"margin-right":"10px"}},[e("img",{staticClass:"avatar img-circle img-24 hinted",staticStyle:{"margin-right":"5px"},attrs:{src:a.avatar,title:a.name}}),e("span",[t._v(t._s(a.name))]),e("span",{staticStyle:{"margin-left":"5px"}},[t._v(t._s(">>"))])])}))],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)]}))],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()),t.pages[s]>=0?e("div",{staticStyle:{color:"#888","text-align":"center",cursor:"pointer"},on:{click:function(e){return t.loadMoreStage(a,s)}}},[t._v("查看更多")]):e("div",{staticStyle:{color:"#888","text-align":"center",cursor:"pointer"}},[t._v("没有更多了")])])],1)])],1)])})),e("div",{staticClass:"scrum-stage",staticStyle:{width:"24vw","min-width":"300px"}},[e("header",{directives:[{name:"show",rawName:"v-show",value:!0,expression:"true"}],staticClass:"scrum-stage-header ui-sortable-handle"},[e("div",{staticClass:"stage-name hinted"},[t._v("\n 消息\n ")])]),e("div",{staticClass:"scrum-stage-wrap ui-sortable",class:{"hidden-creator-bottom":!0}},[e("vue-scroll",{ref:"3-stage",attrs:{ops:t.scrollOps}},[e("section",{staticClass:"scrum-stage-content thin-scroll",attrs:{id:3,"task-type-index":3}},[e("a-spin",{attrs:{wrapperClassName:"tasks-loading",spinning:!1}},[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(t.noticeList,(function(a,s){return e("div",{key:s,staticClass:"task task-card ui-sortable-handle",staticStyle:{padding:"10px","flex-direction":"column"}},[e("div",{staticStyle:{display:"flex","justify-content":"space-between",width:"100%"}},[e("div",[t._v(t._s(a.title))]),e("div",[t._v(t._s(a.create_time))])]),e("div",{staticStyle:{color:"#fff","font-size":"13px","background-color":"#1890ff","border-radius":"5px",padding:"1px 3px"}},[t._v("任务: "+t._s(a.content))])])})),0),t.pages[3]>=0?e("div",{staticStyle:{color:"#888","text-align":"center",cursor:"pointer"},on:{click:t.getNotifyList}},[t._v("查看更多")]):e("div",{staticStyle:{color:"#888","text-align":"center",cursor:"pointer"}},[t._v("没有更多了")])])],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)},n=[],i=(a("8e6e"),a("456d"),a("2909")),o=(a("7514"),a("20d6"),a("28a5"),a("55dd"),a("ac6a"),a("ade3")),r=a("2f62"),c=a("2ef0"),l=a.n(c),u=a("c1df"),d=a.n(u),f=a("f93e"),m=a("b76a"),p=a.n(m),h=a("f8c7"),v=a("d3a1"),k=a("58bf"),g=a("51e2"),b=a("b83b"),w=a("e3cc"),_=a("1d80"),y=a("e507"),j=a("24d2"),C=a("9f5d"),T=a("b199"),x=a("2f14"),O=a("81fe"),M=a("4200"),S=a("97a8"),L=a("cd4b");function D(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 z(t){for(var e=1;e0&&void 0!==arguments[0])||arguments[0],a=this;Object(y["d"])({projectCode:this.code,pageSize:30}).then((function(s){var n=[];if(e?t.taskStages=n=s.data.list:s.data.list.forEach((function(t){t.tasksLoading=!1,n.push(t)})),n){a.taskSearchParams;n.forEach((function(t,s){t.page=1,a.getTasks(t,s,e)}))}}))},getTasks:function(t){var e=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,s=arguments.length>2?arguments[2]:void 0,n=this.taskSearchParams,i={};i={stageCode:"1",type:"all",page:this.pages[a]},i=Object.assign(i,n),0==a&&(i.type_name="进行中"),1==a&&(i.type_name="验收中"),2==a&&(i.type_name="已完成"),Object(y["h"])(i).then((function(n){var i=0;n.data.forEach((function(e){e.canRead||i++,t.doneTasks.push(e)})),t.canNotReadCount=i,t.tasksLoading=!1,t.tasks=n.data,n.data.length<10?e.pages[a]=-1:e.pages[a]++,s||e.$set(e.taskStages,a,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(S["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(T["s"])(a.task).then((function(s){a.createTaskLoading=!1;var n=Object(x["a"])(s);if(n){a.$message.destroy();var i=a.taskStages[t];i.tasks.push(s.data),a.taskStages[t].unDoneTasks.push(s.data),a.task={},e.taskDetail(s.data.code,t,task.project_code),console.log(z({},s.data))}})).catch((function(){a.createTaskLoading=!1}))},taskDone:function(t,e,a,s){var n=this,i=null,o=this.taskStages[e].unDoneTasks,r=this.taskStages[e].doneTasks;if(i=s?o[a]:r[a],i.hasUnDone)return!1;i.done=s,s?(o.splice(a,1),r.push(i),r=r.sort((function(t,e){return t.sort===e.sort?t.id_num-e.id_num:t.sort-e.sort}))):(r.splice(a,1),o.push(i),o=o.sort((function(t,e){return t.sort===e.sort?t.id_num-e.id_num:t.sort-e.sort}))),Object(T["z"])(t,s).then((function(t){var e=Object(x["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,a=this,s=t.key.split("_"),n=s[s.length-2],i=s[s.length-1],o=s[0];switch(o){case"editStage":this.stageModal.stageCode=n,this.stageModal.stageIndex=i,this.$nextTick((function(){e.stageModal.form.setFieldsValue({name:e.taskStages[i].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[i].tasks=[],a.$set(a.taskStages[i],"doneTasks",[]),Object(T["r"])({stageCode:n}).then((function(t){var e=Object(x["a"])(t);if(!e)return!1;a.$set(a.taskStages[i],"doneTasks",[]),a.$set(a.taskStages[i],"unDoneTasks",[])})),Promise.resolve()}});break;case"setEndTime":this.set_type_endTime_modal=!0;break;case"setExecutor":this.projectMemberModal.currentStageIndex=i,this.projectMemberModal.modalStatus=!0;break;case"delStage":if(this.taskStages[i].tasks.length>0)return this.$warning({title:"删除列表",content:"请先清空此列表上的任务,然后再删除这个列表",okText:"确定"}),!1;this.$confirm({title:"删除列表",content:"您确定要永远删除这个列表吗?",okText:"删除",okType:"danger",cancelText:"再想想",onOk:function(){return Object(y["b"])(n),a.taskStages.splice(i,1),Promise.resolve()}});break}},creteStage:function(){var t=this;if(!this.stageName)return this.$message.warning("请输入列表名称",2),!1;Object(y["e"])({name:this.stageName,projectCode:this.code}).then((function(e){var a=Object(x["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(y["c"])({name:e.name,stageCode:this.stageModal.stageCode}).then((function(a){var s=Object(x["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(T["c"])({taskCodes:JSON.stringify(s),executorCode:t.code}).then((function(t){if(e.projectMemberModal.modalStatus=!1,!Object(x["a"])(t))return!1;Object(y["h"])({stageCode:"1",type:"all"}).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(O["a"])(t,e)},taskDetail:function(t,e,a){window.open("index.html#/project/space/task/".concat(a,"/detail/").concat(t,"?from=").concat(e))},stageSort:function(t){var e=this.getPreAndNextCode(t);Object(y["f"])(e[0],e[1],this.code)},getPreAndNextCode:function(t){for(var e=t.clone.getAttribute("id"),a=[],s="",n=0,i=t.to.children.length;n0&&void 0!==arguments[0]?arguments[0]:"",e=new DOMParser,a=e.parseFromString(t,"text/html");return a.body.textContent},loadMoreStage:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.getTasks(t,e,!0)},getNotifyList:function(){var t=this;Object(L["d"])({page:this.pages[3],pageSize:25,type:"system"}).then((function(e){t.noticeList=[].concat(Object(i["a"])(t.noticeList),Object(i["a"])(e.data.list)),e.data.list.length<25?t.pages[3]=-1:t.pages[3]++}))}}},E=P,N=(a("0128"),a("2877")),I=Object(N["a"])(E,s,n,!1,null,null,null);e["default"]=I.exports},"0239":function(t,e,a){},"17bb":function(t,e,a){},"1b80":function(t,e,a){"use strict";e["a"]={data:function(){return{pagination:{page:1,pageSize:10,total:0,showTotal:function(t,e){return"共 ".concat(t," 条")}}}},computed:{requestData:function(){return{page:this.pagination.page,pageSize:this.pagination.pageSize}}},methods:{init:function(){},pageChange:function(t){this.pagination.page=t,this.requestData.page=t.current,this.init()}}}},"1d80":function(t,e,a){"use strict";a("7f7f");var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"task-search"},[e("a-spin",{attrs:{spinning:t.loading}},[e("div",{staticClass:"search-content"},[e("a-form",{staticClass:"m-t-md",attrs:{form:t.form},on:{submit:function(e){return e.preventDefault(),t.handleSubmit.apply(null,arguments)}}},[e("a-form-item",{attrs:{label:"工单名称",colon:!1,labelCol:{span:6},wrapperCol:{span:18}}},[e("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["title"],expression:"[\n 'title',\n ]"}],attrs:{placeholder:"搜索项目内任务"}})],1),e("a-form-item",{attrs:{label:"执行者",colon:!1,labelCol:{span:6},wrapperCol:{span:18}}},[e("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["executor"],expression:"[\n 'executor',\n ]"}],attrs:{mode:"multiple",showSearch:"",allowClear:"",placeholder:"请选择",optionFilterProp:"children"}},t._l(t.projectMemberList,(function(a){return e("a-select-option",{key:a.code},[e("div",{staticClass:"task-search-member-item"},[e("a-avatar",{staticClass:"m-r-sm",attrs:{size:24,icon:"user",src:a.avatar}}),e("div",[e("div",[t._v(t._s(a.name))]),e("div",{staticClass:"muted"},[t._v(t._s(a.email))])])],1)])})),1)],1),e("a-form-item",{attrs:{label:"创建者",colon:!1,labelCol:{span:6},wrapperCol:{span:18}}},[e("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["creator"],expression:"[\n 'creator',\n ]"}],attrs:{mode:"multiple",showSearch:"",allowClear:"",placeholder:"请选择",optionFilterProp:"children"}},t._l(t.projectMemberList,(function(a){return e("a-select-option",{key:a.code},[e("div",{staticClass:"task-search-member-item"},[e("a-avatar",{staticClass:"m-r-sm",attrs:{size:24,icon:"user",src:a.avatar}}),e("div",[e("div",[t._v(t._s(a.name))]),e("div",{staticClass:"muted"},[t._v(t._s(a.email))])])],1)])})),1)],1),e("a-form-item",{attrs:{label:"是否完成",colon:!1,labelCol:{span:6},wrapperCol:{span:18}}},[e("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["done",{initialValue:-1}],expression:"[\n 'done',\n {initialValue: -1}\n\n ]"}],attrs:{allowClear:"",placeholder:"请选择",optionFilterProp:"children"}},[e("a-select-option",{key:-1},[t._v("全部")]),e("a-select-option",{key:1},[t._v("是")]),e("a-select-option",{key:0},[t._v("否")])],1)],1),e("a-form-item",{attrs:{label:"优先级",colon:!1,labelCol:{span:6},wrapperCol:{span:18}}},[e("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["pri"],expression:"[\n 'pri',\n ]"}],attrs:{mode:"multiple",showSearch:"",allowClear:"",placeholder:"请选择",optionFilterProp:"children"}},[e("a-select-option",{key:0},[t._v("普通")]),e("a-select-option",{key:1},[t._v("紧急")]),e("a-select-option",{key:2},[t._v("非常紧急")])],1)],1),e("a-form-item",{attrs:{label:"执行状态",colon:!1,labelCol:{span:6},wrapperCol:{span:18}}},[e("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["status"],expression:"[\n 'status',\n ]"}],attrs:{mode:"multiple",showSearch:"",allowClear:"",placeholder:"请选择",optionFilterProp:"children"}},t._l(t.taskStatusList,(function(a,s){return e("a-select-option",{key:a.id},[t._v(t._s(a.name))])})),1)],1),e("a-form-item",{attrs:{label:"截止日期",colon:!1,labelCol:{span:6},wrapperCol:{span:18}}},[e("a-range-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["end_time"],expression:"[\n 'end_time',\n ]"}],staticStyle:{width:"100%"},attrs:{allowClear:"",format:"YYYY-MM-DD"}})],1),e("a-form-item",{attrs:{label:"创建日期",colon:!1,labelCol:{span:6},wrapperCol:{span:18}}},[e("a-range-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["create_time"],expression:"[\n 'create_time',\n ]"}],staticStyle:{width:"100%"},attrs:{allowClear:"",format:"YYYY-MM-DD"}})],1),e("a-form-item",{attrs:{label:"完成日期",colon:!1,labelCol:{span:6},wrapperCol:{span:18}}},[e("a-range-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["done_time"],expression:"[\n 'done_time',\n ]"}],staticStyle:{width:"100%"},attrs:{allowClear:"",format:"YYYY-MM-DD"}})],1),e("a-form-item",{attrs:{label:"开始日期",colon:!1,labelCol:{span:6},wrapperCol:{span:18}}},[e("a-range-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["begin_time"],expression:"[\n 'begin_time',\n ]"}],staticStyle:{width:"100%"},attrs:{allowClear:"",format:"YYYY-MM-DD"}})],1)],1),e("div",{staticClass:"footer m-t-md"},[e("a-button",{staticClass:"m-r",attrs:{type:"primary",size:"large"},on:{click:t.handleSubmit}},[t._v("搜索")]),e("a-button",{attrs:{size:"large"},on:{click:t.resetForm}},[t._v("重置")])],1)],1)])],1)},n=[],i=(a("c5f6"),a("2ef0"),a("c1df")),o=a.n(i),r=a("9f5d"),c=a("e507"),l=(a("97a8"),a("f93e")),u={name:"taskSearch",props:{projectCode:{type:[String,Number],default:function(){return""}}},data:function(){return{moment:o.a,form:this.$form.createForm(this),loading:!1,projectMemberList:[],taskStageList:[],taskStatusList:l["a"].TASK_STATUS}},watch:{projectCode:function(){this.init()}},created:function(){this.init()},methods:{init:function(){this.projectCode&&(this.resetForm(),this.loading=!0,this.getProjectMemberList(),this.getTaskStageList())},getProjectMemberList:function(){var t=this;Object(r["d"])({projectCode:this.projectCode,pageSize:300}).then((function(e){t.projectMemberList=e.data.list,t.loading=!1}))},getTaskStageList:function(){var t=this;Object(c["a"])({projectCode:this.projectCode}).then((function(e){t.taskStageList=e.data,t.loading=!1}))},resetForm:function(){this.form.resetFields()},handleSubmit:function(){var t=this;this.form.validateFields((function(e,a){if(!e){var s=t.form.getFieldsValue();s.executor=JSON.stringify(s.executor),s.creator=JSON.stringify(s.creator),s.joiner=JSON.stringify(s.joiner),s.status=JSON.stringify(s.status),console.log(s),s.end_time&&s.end_time.length?s.endTime=JSON.stringify([o()(s.end_time[0]).format("YYYY-MM-DD"),o()(s.end_time[1]).format("YYYY-MM-DD")]):s.endTime=void 0,s.begin_time&&s.begin_time.length?s.beginTime=JSON.stringify([o()(s.begin_time[0]).format("YYYY-MM-DD"),o()(s.begin_time[1]).format("YYYY-MM-DD")]):s.beginTime=void 0,s.create_time&&s.create_time.length?s.createTime=JSON.stringify([o()(s.create_time[0]).format("YYYY-MM-DD"),o()(s.create_time[1]).format("YYYY-MM-DD")]):s.createTime=void 0,s.done_time&&s.done_time.length?s.doneTime=JSON.stringify([o()(s.done_time[0]).format("YYYY-MM-DD"),o()(s.done_time[1]).format("YYYY-MM-DD")]):s.doneTime=void 0,console.log(s),t.$emit("search",s)}}))}}},d=u,f=(a("c8f39"),a("2877")),m=Object(f["a"])(d,s,n,!1,null,null,null);e["a"]=m.exports},"1e4b":function(t,e,a){"use strict";a.r(e);a("6b54");var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"index"},[e("a-spin",{attrs:{spinning:t.windowLoading}},[e("a-layout",{class:t.layoutClass,attrs:{id:"layout"}},[e("a-layout-header",{class:{collapsed:t.collapsed}},[e("div",{staticClass:"logo",on:{click:t.toHome}},[e("img",{staticClass:"logo-img",attrs:{src:a("bae8"),alt:""}}),t.system?e("span",{staticClass:"title"},[t._v("\n "+t._s(t.system.app_name)+"\n "),e("span",{staticClass:"version"},[t._v(t._s(t.system.app_version))])]):t._e()]),e("a-menu",{style:{lineHeight:"63px",paddingLeft:"15px"},attrs:{mode:"horizontal"},on:{click:t.menuModelClick,openChange:t.onModelOpenChange},model:{value:t.selectedModelKeys,callback:function(e){t.selectedModelKeys=e},expression:"selectedModelKeys"}},t._l(t.menu,(function(a,s){return e("a-menu-item",{key:a.id.toString(),attrs:{disabled:!a.status}},[a.icon?e("a-icon",{attrs:{type:a.icon}}):t._e(),e("span",[t._v(t._s(a.title))])],1)})),1),e("div",{staticClass:"right-menu"},[t.organizationList.length>1?e("div",{staticClass:"action action-organization"},[e("header-select")],1):t._e(),e("div",{staticClass:"action"},[e("header-notice")],1),e("div",{staticClass:"action action-avatar"},[e("header-avatar")],1)])],1),e("a-layout",{staticStyle:{"padding-top":"65px"}},[e("a-sider",{attrs:{mode:"inline",breakpoint:"md",collapsible:""},model:{value:t.collapsed,callback:function(e){t.collapsed=e},expression:"collapsed"}},t._l(t.menus,(function(a){return e("a-menu",{key:a.id.toString(),attrs:{theme:t.theme,openKeys:t.openKeys,mode:"inline"},on:{click:function(e){return t.menuClick(e,a)},openChange:t.onOpenChange},model:{value:t.selectedKeys,callback:function(e){t.selectedKeys=e},expression:"selectedKeys"}},[a.children||a.is_inner||"#"==a.node?t._e():e("a-menu-item",{key:a.id,attrs:{disabled:!a.status}},[e("a-icon",{attrs:{type:a.icon}}),e("span",[t._v(t._s(a.title))])],1),a.children&&!a.is_inner?e("a-sub-menu",{key:a.id.toString()},[e("span",{attrs:{slot:"title"},slot:"title"},[e("a-icon",{attrs:{type:a.icon}}),e("span",[t._v(t._s(a.title))])],1),t._l(a.children,(function(a,s){return a.is_inner?t._e():e("a-menu-item",{key:a.id.toString(),attrs:{disabled:!a.status}},[t._v("\n "+t._s(a.title)+"\n ")])}))],2):t._e()],1)})),1),e("a-layout",{staticClass:"main-content",style:t.collapsed?{paddingLeft:"80px"}:{paddingLeft:"256px"}},[e("a-layout-content",[e("transition",{attrs:{name:"router-fade",mode:"out-in"}},[e("a-spin",{attrs:{spinning:t.pageLoading}},[e("router-view")],1)],1)],1)],1)],1)],1),t.config.WS_URI?e("Socket",{ref:"socket"}):t._e()],1),e("v-uploader")],1)},n=[],i=(a("8e6e"),a("456d"),a("7514"),a("6762"),a("2fdb"),a("ac6a"),a("7f7f"),a("ade3")),o=a("2f62"),r=a("98c5"),c=function(){var t=this,e=t._self._c;return e("a-popover",{attrs:{overlayClassName:"header-notice",trigger:"click",placement:"bottomRight"},model:{value:t.showNotice,callback:function(e){t.showNotice=e},expression:"showNotice"}},[e("template",{slot:"content"},[e("a-spin",{attrs:{spinning:t.loading}},[e("a-tabs",{staticClass:"header-notice-content",attrs:{tabBarGutter:25}},[e("a-tab-pane",{key:"1"},[e("span",{attrs:{slot:"tab"},slot:"tab"},[t._v("消息"),t.total&&t.totalSum["message"]?e("span",[t._v("("+t._s(t.totalSum["message"])+")")]):t._e()]),t.total&&t.totalSum["message"]?[e("a-list",[t._l(t.list["message"],(function(a){return[e("a-list-item",{key:a.id,on:{click:function(e){return t.messageAction(a)}}},[e("a-list-item-meta",{attrs:{description:a.create_time}},[e("span",{attrs:{slot:"title"},slot:"title"},[e("p",[t._v(t._s(a.title))]),e("p",{staticClass:"ant-list-item-meta-description",domProps:{innerHTML:t._s(a.content)}})]),e("a-avatar",{attrs:{slot:"avatar",src:a.avatar},slot:"avatar"})],1)],1)]}))],2),e("div",{staticClass:"footer-action"},[e("a",{staticClass:"item muted",on:{click:function(e){return t.setRead("message")}}},[t._v("清空消息")]),e("a",{staticClass:"item muted",on:{click:function(e){return t.showMore("1")}}},[t._v("查看更多")])])]:[e("div",{staticClass:"notFound"},[e("img",{attrs:{src:a("7e25"),alt:"not found"}}),e("div",[t._v("你已读完所有消息")])])]],2),e("a-tab-pane",{key:"2"},[e("span",{attrs:{slot:"tab"},slot:"tab"},[t._v("通知"),t.total&&t.totalSum["notice"]?e("span",[t._v("("+t._s(t.totalSum["notice"])+")")]):t._e()]),t.total&&t.totalSum["notice"]?[e("a-list",[t._l(t.list["notice"],(function(a){return[e("a-list-item",{key:a.id},[e("a-list-item-meta",{attrs:{description:a.create_time}},[e("span",{attrs:{slot:"title"},slot:"title"},[e("p",{domProps:{innerHTML:t._s(a.title)}}),e("p",{staticClass:"ant-list-item-meta-description",domProps:{innerHTML:t._s(a.content)}})]),e("a-avatar",{staticStyle:{"background-color":"white"},attrs:{slot:"avatar",src:"https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png"},slot:"avatar"})],1)],1)]}))],2),e("div",{staticClass:"footer-action"},[e("a",{staticClass:"item muted",on:{click:function(e){return t.setRead("notice")}}},[t._v("清空通知")]),e("a",{staticClass:"item muted",on:{click:function(){t.$router.push("/notify/notice")}}},[t._v("查看更多")])])]:[e("div",{staticClass:"notFound"},[e("img",{attrs:{src:a("5744"),alt:"not found"}}),e("div",[t._v("你已查看所有通知")])])]],2)],1)],1)],1),e("span",[e("a-badge",{attrs:{count:t.total}},[e("a-icon",{staticClass:"action-item",attrs:{type:"bell"}})],1)],1)],2)},l=[],u=a("c1df"),d=a.n(u),f=a("cd4b"),m=a("97a8"),p=function(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s={body:e,icon:a.icon||"http://static.vilson.xyz/preview.jpg",showTime:a.showTime||15e3,onclick:a.onclick,onshow:a.onshow,onerror:a.onerror,onclose:a.onclose},n=window.Notification||window.mozNotification||window.webkitNotification;if(console.log(n.permission),n&&"granted"===n.permission){var i=new n(t,s);i.onclick=function(){"function"===typeof s.onclick&&s.onclick(i)},i.onerror=function(){"function"===typeof s.onerror&&s.onerror(i)},i.onshow=function(){"function"===typeof s.onshow&&s.onshow(i),setTimeout((function(){i.close()}),s.showTime)},i.onclose=function(){"function"===typeof s.onclose&&s.onclose(i)}}else{if(!n||"denied"===n.permission)return!1;n.requestPermission((function(e){if(n.permission!==e&&(n.permission=e),"granted"!==e)return!1;var a=new n(t,s);a.onclick=function(){"function"===typeof s.onclick&&s.onclick(a)},a.onerror=function(){"function"===typeof s.onerror&&s.onerror(a)},a.onshow=function(){"function"===typeof s.onshow&&s.onshow(a),setTimeout((function(){a.close()}),s.showTime)},a.onclose=function(){"function"===typeof s.onclose&&s.onclose(a)}}))}},h=a("b199");a("81fe");function v(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 k(t){for(var e=1;ethis.progressTotal&&(t=this.progressTotal),"正在上传 ".concat(t,"/").concat(this.progressTotal)}}),watch:{code:function(){this.init()}},created:function(){this.init()},mounted:function(){var t=this;this.$nextTick((function(){window.uploader=t.$refs.uploader.uploader,t.$store.dispatch("setUploader",window.uploader),console.log(window.uploader)}))},methods:{init:function(){},closeUploader:function(){this.showUploader=!1,this.uploader.cancel()},fileAdded:function(t,e,a){var s=!1,n="",i=1024*this.singleMaxSize*1024;e.forEach((function(t,e){if(t.size>i)return s=!0,n=t.file.name,!1})),t.ignored=s,s&&this.$info({title:"文件超过最大限制",content:"上传文件「".concat(n,"」过大,请选择").concat(this.singleMaxSize,"MB以内的文件")})},filesSubmitted:function(t){this.showUploader=!0,this.showFiles=!0,this.progressTotal+=t.length,console.log("file submitted",t)},fileProgress:function(t,e,a){this.showUploader=!0,this.showFiles=!0,console.log("file progress",arguments)},fileSuccess:function(t,e,a,s){var n=JSON.parse(a);if(!Object(E["a"])(n))return Object(m["b"])({title:n.msg},"notice","error"),!1;t.projectName=n.data.projectName,t.fileUrl=n.data.url,t.code=n.data.code||"",console.log("file success",t),this.completeTotal++},fileError:function(t,e,a,s){this.completeTotal--;var n=JSON.parse(a);e.cancel(),t.projectName=n.data.projectName,console.log("file error",t),Object(m["b"])({title:n.msg},"notice","error")},fileComplete:function(t){console.log("file complete",t)},complete:function(){var t=this;console.log("complete",arguments),this.progressTotal=this.completeTotal=0,Object(m["b"])({title:"关联文件成功"},"notice","success"),setTimeout((function(){t.showFiles=!1}),3e3)},cancelUpload:function(t){console.log(t),this.progressTotal--,this.completeTotal--,t.file.cancel()},filterList:function(t){return t},testSomeThing:function(){console.log(this.uploader.fileList),this.uploader.fileList[0].resume()}}},q=V,J=(a("c3fe"),Object(w["a"])(q,A,Y,!1,null,null,null)),G=J.exports,X=function(){var t=this,e=t._self._c;return e("div")},Z=[],Q=a("a026"),tt=a("22b6");function et(t,e){return tt["a"].post("index/index/bindClientId",{client_id:t,uid:e})}var at=a("a078"),st={data:function(){return{websocket:null}},methods:{threadPoxi:function(){var t={uid:this.$store.state.userInfo.id};if(this.websocket.readyState===this.websocket.OPEN)this.websocketSend(t);else if(this.websocket.readyState===this.websocket.CONNECTING){var e=this;setTimeout((function(){e.websocketSend(t)}),300)}else{this.initWebSocket();var a=this;setTimeout((function(){a.websocketSend(t)}),500)}},initWebSocket:function(){var t=at["a"].WS_URI;this.websocket=new WebSocket(t),this.websocket.onmessage=this.websocketOnMessage,this.websocket.onclose=this.websocketClose,Q["default"].prototype.$websocket=this.websocket},websocketOnMessage:function(t){var e=JSON.parse(t.data);if("ping"!=e.action&&(console.log(e),this.$store.commit("catchSocketAction",e)),"connect"===e.action&&e.data.client_id&&!this.$store.state.boundClient){Object(H["c"])("client_id",e.data.client_id);var a=Object(H["a"])("userInfo",!0),s=a?a.code:"";s&&(et(e.data.client_id,s),this.$store.dispatch("setBoundClient",!0))}},websocketSend:function(t){console.log("发送消息:"),console.log(t),this.websocket.send(t)},websocketClose:function(t){console.log("connection closed ("+t.code+")")}},created:function(){this.initWebSocket()}},nt=st,it=Object(w["a"])(nt,X,Z,!1,null,null,null),ot=it.exports,rt=a("d368");function ct(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 lt(t){for(var e=1;e1&&void 0!==arguments[1]&&arguments[1],a=t.code,n=t.msg;return 200===a||(e&&Object(s["b"])(n),!1)},o=function(t){var e=t.url;t.params&&(e+="/"+t.params);var s=t.url;return t.file_path&&(s=t.file_path),{name:t.id,path:e,component:function(t){return Promise.all([a.e("user"),a.e("chunk-d24496b2"),a.e("chunk-2b587d1f"),a.e("chunk-391e3787"),a.e("chunk-389601d6")]).then(function(){var e=[a("4b3b")("./"+s)];t.apply(null,e)}.bind(this)).catch(a.oe)},meta:{model:t.pid,info:t}}},r=function(t,e){var a=new FileReader;a.addEventListener("load",(function(){return e(a.result)})),a.readAsDataURL(t)},c=function(t){return"https://work.lihaink.cn/"+t},l=function(t){return"https://work.lihaink.cn/"+t},u=function(t){var e="";return e+l(t)};function d(){var t=new Date,e=t.getHours();return e<9?"早上好":e<=11?"上午好":e<=13?"中午好":e<20?"下午好":"晚上好"}function f(){var t=Object(n["a"])("tokenList",!0);if(t){var e=t.accessToken,a=t.tokenType;return{Authorization:"".concat(a," ").concat(e)}}return{}}var m=function(t,e){e=e||document,t=t||"*";var a=[];if(document.getElementsByClassName)return document.getElementsByClassName(t);for(var s=document.getElementsByTagName(e),n=new RegExp("(^|\\s)"+t+"(\\s|$)"),i=0;i0&&t.constructor===Function)while(this.i1&&void 0!==arguments[1]?arguments[1]:"collect";return s["a"].post("project/project_collect/collect",{type:e,projectCode:t})}},4360:function(t,e,a){"use strict";var s=a("a026"),n=a("2f62"),i=a("68fe"),o=Object(i["a"])("userInfo",!0),r=Object(i["a"])("theme"),c={theme:r||"dark",logged:!!o,userInfo:o,organizationList:Object(i["a"])("organizationList",!0)||[],currentOrganization:Object(i["a"])("currentOrganization",!0),system:Object(i["a"])("system",!0),windowLoading:!1,pageLoading:!1,socketAction:"",boundClient:!1},l={SET_LOGGED:function(t,e){e.tokenList;var a=e.userInfo;t.logged=!0,t.userInfo=a},SET_USER:function(t,e){t.userInfo=e},SET_LOGOUT:function(t){t.logged=!1,t.userInfo=null},setTheme:function(t,e){t.theme=e},pageLoading:function(t,e){t.pageLoading=e},windowLoading:function(t,e){t.windowLoading=e},setSystem:function(t,e){t.system=e},setOrganizationList:function(t,e){t.organizationList=e},setCurrentOrganization:function(t,e){t.currentOrganization=e},catchSocketAction:function(t,e){t.socketAction=e},setBoundClient:function(t,e){t.boundClient=e}},u=a("c24f"),d={SET_LOGGED:function(t,e){var a=t.commit;return Object(i["c"])("tokenList",e.tokenList),Object(i["c"])("userInfo",e.userInfo),a("SET_LOGGED",e)},SET_USER:function(t,e){var a=t.commit;Object(i["c"])("userInfo",e),a("SET_USER",e)},SET_LOGOUT:function(t){var e=t.commit;Object(i["b"])("tokenList"),Object(i["b"])("userInfo"),e("SET_LOGOUT")},getUser:function(t){var e=t.commit;Object(u["g"])().then((function(t){t.data?(Object(i["c"])("userInfo",t.data),e("SET_USER",t.data)):(Object(i["b"])("tokenList"),Object(i["b"])("userInfo"),e("SET_LOGOUT"))}))},checkLogin:function(t){var e=t.commit;Object(u["f"])().then((function(t){if(t.data){var a={userInfo:t.data.member,tokenList:t.data.tokenList};Object(i["c"])("tokenList",a.tokenList),Object(i["c"])("userInfo",a.userInfo),e("SET_LOGGED",a)}else Object(i["b"])("tokenList"),Object(i["b"])("userInfo"),e("SET_LOGOUT")}))},setTheme:function(t,e){var a=t.commit;Object(i["c"])("theme",e),a("setTheme",e)},pageLoading:function(t,e){var a=t.commit;a("pageLoading",e)},windowLoading:function(t,e){var a=t.commit;a("windowLoading",e)},setOrganizationList:function(t,e){var a=t.commit;return Object(i["c"])("organizationList",e),a("setOrganizationList",e)},setCurrentOrganization:function(t,e){var a=t.commit;return Object(i["c"])("currentOrganization",e),a("setCurrentOrganization",e)},setSystem:function(t,e){var a=t.commit;Object(i["c"])("system",e),a("setSystem",e)},setBoundClient:function(t,e){var a=t.commit;a("setBoundClient",e)}},f={state:{viewRefresh:!1,uploader:null,tempData:Object(i["a"])("tempData",!0)},mutations:{setUploader:function(t,e){t.uploader=e},setTempData:function(t,e){t.tempData=e},viewRefresh:function(t){t.viewRefresh=!t.viewRefresh}},actions:{setUploader:function(t,e){var a=t.commit;a("setUploader",e)},setTempData:function(t,e){var a=t.commit;Object(i["c"])("tempData",e),a("setTempData",e)},viewRefresh:function(t){var e=t.commit;e("viewRefresh")}}},m=f,p=a("1f27"),h={state:{menu:Object(i["a"])("menu",!0),breadCrumbInfo:[]},mutations:{SET_MENU:function(t,e){t.menu=e},setBreadCrumbInfo:function(t,e){t.breadCrumbInfo=e}},actions:{GET_MENU:function(t,e){var a=t.commit;return Object(p["e"])().then((function(t){1!=e&&(t.data=t.data.filter((function(t){return 120==t.id||121==t.id}))),Object(i["c"])("menu",t.data),a("SET_MENU",t.data)}))},SET_MENU:function(t,e){var a=t.commit;Object(i["c"])("menu",e),a("SET_MENU",e)},setBreadCrumbInfo:function(t,e){var a=t.commit;a("setBreadCrumbInfo",e)}}},v=h;s["default"].use(n["a"]);var k=new n["a"].Store({modules:{common:m,menu:v},state:c,mutations:l,actions:d});e["a"]=k},4540:function(t,e,a){"use strict";a("7f7f");var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"member-menu",class:{creating:t.creating,editing:t.editing}},[e("a-spin",{attrs:{spinning:t.listLoading}},[e("div",{staticClass:"search-content"},[e("a-input",{attrs:{size:"large",placeholder:t.creating||t.editing?"标签名称":"搜索标签"},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}},[t.creating||t.editing?e("a-icon",{attrs:{slot:"prefix",type:"tag"},slot:"prefix"}):e("a-icon",{attrs:{slot:"prefix",type:"search"},slot:"prefix"})],1)],1),e("div",{staticClass:"member-list tag-list"},[t.creating||t.editing?t._e():[e("vue-scroll",[e("div",{staticClass:"list-group"},[e("a-list",{directives:[{name:"show",rawName:"v-show",value:t.list.length,expression:"list.length"}],staticClass:"list-content",attrs:{itemLayout:"horizontal",dataSource:t.list},scopedSlots:t._u([{key:"renderItem",fn:function(a,s){return e("a-list-item",{staticClass:"member-list-item",nativeOn:{click:function(e){return t.setTag(a)}}},[e("span",{attrs:{slot:"actions"},slot:"actions"},[e("a",{staticClass:"tag-edit muted"},[e("a-icon",{attrs:{type:"edit"},on:{click:function(e){return e.stopPropagation(),t.editTag(a,s)}}})],1),e("a-icon",{directives:[{name:"show",rawName:"v-show",value:t.showCheck(a),expression:"showCheck(item)"}],staticClass:"m-l-sm",attrs:{type:"check"}})],1),e("a-list-item-meta",[e("span",{staticClass:"tag-title",attrs:{slot:"title"},slot:"title"},[e("a-badge",{class:"badge-".concat(a.color),attrs:{status:"success"}}),t._v(" "+t._s(a.name))],1)])],1)}}],null,!1,1469851617)})],1)])],t.creating||t.editing?[e("div",{staticClass:"tag-badge"},t._l(t.badgeList,(function(a){return e("span",{key:a,staticClass:"badge-item",on:{click:function(e){t.currentBadge=a}}},[e("a-badge",{class:"badge-".concat(a),attrs:{status:"success"}}),e("a-icon",{directives:[{name:"show",rawName:"v-show",value:t.currentBadge==a,expression:"currentBadge == badge"}],attrs:{type:"check"}})],1)})),0)]:t._e()],2),e("div",{staticClass:"footer"},[t.creating?[e("a-button",{attrs:{type:"default",size:"large"},on:{click:function(e){t.creating=!1,t.keyword=""}}},[t._v("取消")]),e("a-button",{attrs:{type:"primary",disabled:!t.keyword,size:"large"},on:{click:t.createTag}},[t._v("创建")])]:t.editing?[e("a-popconfirm",{attrs:{overlayStyle:{zIndex:"1080"},title:"确认删除标签?",okText:"确定",cancelText:"取消"},on:{confirm:t.deleteTag}},[e("a-button",{attrs:{type:"danger",size:"large"}},[t._v("删除")])],1),e("a-button",{attrs:{type:"primary",disabled:!t.keyword,size:"large"},on:{click:t.saveTag}},[t._v("完成")])]:[e("a-button",{attrs:{type:"primary",size:"large",block:""},on:{click:function(e){t.creating=!0,t.activeCreating=!0}}},[t._v("新建标签\n ")])]],2)])],1)},n=[],i=(a("20d6"),a("386d"),a("c5f6"),a("2ef0"),a("813b")),o=a("b199"),r=a("2f14"),c={name:"taskTagMenu",props:{projectCode:{type:[String,Number],default:function(){return""}},taskCode:{type:[String,Number],default:function(){return""}},isCommit:{type:[Boolean],default:function(){return!0}}},data:function(){return{keyword:"",editing:!1,creating:!1,activeCreating:!1,searching:!1,listLoading:!1,showInviteMember:!1,tags:[],list:[],listTemp:[],badgeList:["blue","red","orange","green","brown","purple"],currentBadge:"blue",currentTag:{tag:null,index:-1}}},created:function(){this.init()},watch:{keyword:function(){this.search()}},methods:{init:function(){var t=this;this.projectCode&&(this.listLoading=!0,Object(i["c"])({projectCode:this.projectCode}).then((function(e){t.list=e.data,t.listTemp=e.data,t.listLoading=!1}))),this.taskCode&&Object(o["B"])({taskCode:this.taskCode}).then((function(e){t.tags=e.data}))},showCheck:function(t){var e=this.tags.findIndex((function(e){return e.tag_code==t.code}));if(-1!==e)return!0},checkTaskChange:function(t){var e=this.tags.findIndex((function(e){return e.tag_code==t.code}));-1!==e?this.tags.splice(e,1):this.tags.push({tag_code:t.code})},editTag:function(t,e){this.editing=!0,this.keyword=t.name,this.currentBadge=t.color,this.currentTag.tag=t,this.currentTag.index=e},saveTag:function(){var t=this;Object(i["b"])({name:this.keyword,color:this.currentBadge,tagCode:this.currentTag.tag.code}).then((function(e){if(!Object(r["a"])(e))return!1;t.currentTag.tag.name=t.listTemp[t.currentTag.index].name=t.keyword,t.currentTag.tag.color=t.listTemp[t.currentTag.index].color=t.currentBadge,t.$emit("update",t.currentTag.tag),t.clearCreating()}))},deleteTag:function(){var t=this;Object(i["a"])(this.currentTag.tag.code).then((function(e){if(!Object(r["a"])(e))return!1;t.listTemp.splice(t.currentTag.index,1),t.$emit("delete",t.currentTag.tag),t.clearCreating()}))},setTag:function(t){var e=this;this.checkTaskChange(t),this.isCommit?Object(o["w"])({taskCode:this.taskCode,tagCode:t.code}).then((function(){e.$emit("change",t)})):this.$emit("change",t)},createTag:function(){var t=this;Object(i["d"])({projectCode:this.projectCode,name:this.keyword,color:this.currentBadge}).then((function(e){if(!Object(r["a"])(e))return!1;var a=e.data;t.listTemp.push(a),t.list.push(a),t.checkTaskChange(a),Object(o["w"])({taskCode:t.taskCode,tagCode:a.code}).then((function(){t.$emit("change",a),t.clearCreating()}))}))},clearCreating:function(){this.editing=!1,this.creating=!1,this.activeCreating=!1,this.keyword=""},search:function(){var t=this;this.keyword=this.keyword.trim(),this.keyword||(this.list=JSON.parse(JSON.stringify(this.listTemp)),this.activeCreating||(this.creating=!1)),this.searching=!0,this.list=this.list.filter((function(e){return-1!=e.name.indexOf(t.keyword)})),this.list.length||this.editing||(this.creating=!0)}}},l=c,u=(a("b7ed"),a("2877")),d=Object(u["a"])(l,s,n,!1,null,null,null);e["a"]=d.exports},4678:function(t,e,a){var s={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-ps":"4c98","./ar-ps.js":"4c98","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn-bd":"9686","./bn-bd.js":"9686","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-in":"ec2e","./en-in.js":"ec2e","./en-nz":"6f50","./en-nz.js":"6f50","./en-sg":"b7e9","./en-sg.js":"b7e9","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-mx":"b5b7","./es-mx.js":"b5b7","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fil":"d69a","./fil.js":"d69a","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-deva":"aaf2","./gom-deva.js":"aaf2","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku-kmr":"7558","./ku-kmr.js":"7558","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./oc-lnc":"167b","./oc-lnc.js":"167b","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tk":"5aff","./tk.js":"5aff","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-mo":"3a6c","./zh-mo.js":"3a6c","./zh-tw":"90ea","./zh-tw.js":"90ea"};function n(t){var e=i(t);return a(e)}function i(t){if(!a.o(s,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return s[t]}n.keys=function(){return Object.keys(s)},n.resolve=i,t.exports=n,n.id="4678"},"476a":function(t,e){(function(t){var e='',a=function(){var t=document.getElementsByTagName("script");return t[t.length-1]}(),s=a.getAttribute("data-injectcss"),n=function(e){if(document.addEventListener)if(~["complete","loaded","interactive"].indexOf(document.readyState))setTimeout(e,0);else{var a=function t(){document.removeEventListener("DOMContentLoaded",t,!1),e()};document.addEventListener("DOMContentLoaded",a,!1)}else document.attachEvent&&s(t,e);function s(t,e){var a=t.document,s=!1,n=function(){s||(s=!0,e())},i=function t(){try{a.documentElement.doScroll("left")}catch(e){return void setTimeout(t,50)}n()};i(),a.onreadystatechange=function(){"complete"==a.readyState&&(a.onreadystatechange=null,n())}}},i=function(t,e){e.parentNode.insertBefore(t,e)},o=function(t,e){e.firstChild?i(t,e.firstChild):e.appendChild(t)};function r(){var t,a;t=document.createElement("div"),t.innerHTML=e,e=null,a=t.getElementsByTagName("svg")[0],a&&(a.setAttribute("aria-hidden","true"),a.style.position="absolute",a.style.width=0,a.style.height=0,a.style.overflow="hidden",o(a,document.body))}if(s&&!t.__iconfont__svg__cssinject__){t.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(c){console&&console.log(c)}}n(r)})(window)},"4c84":function(t,e,a){},"51e2":function(t,e,a){"use strict";a("7f7f");var s=function(){var t=this,e=t._self._c;return e("a-tabs",{attrs:{tabPosition:"left",defaultActiveKey:"1",animated:!1},model:{value:t.tabKey,callback:function(e){t.tabKey=e},expression:"tabKey"}},[e("a-tab-pane",{key:"1"},[e("span",{attrs:{slot:"tab"},slot:"tab"},[e("a-icon",{attrs:{type:"check-square"}}),t._v("\n 任务\n ")],1)]),e("a-tab-pane",{key:"2"},[e("span",{attrs:{slot:"tab"},slot:"tab"},[e("a-icon",{attrs:{type:"link"}}),t._v("\n 文件\n ")],1)]),e("div",{staticClass:"config-content"},[e("vue-scroll",[e("div",{staticClass:"content-item"},[e("div",{staticClass:"infos"},[e("a-list",[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(),t._l(t.list,(function(a,s){return e("a-list-item",{key:s},[e("a-list-item-meta",[e("div",{attrs:{slot:"title"},slot:"title"},[e("router-link",{directives:[{name:"show",rawName:"v-show",value:"1"==t.tabKey,expression:"tabKey == '1'"}],staticClass:"text-default",attrs:{to:"/project/space/task/".concat(t.code,"/detail/").concat(a.code)}},[t._v("\n "+t._s(a.name)+"\n ")]),e("a",{directives:[{name:"show",rawName:"v-show",value:"2"==t.tabKey,expression:"tabKey == '2'"}],staticClass:"text-default",attrs:{target:"_blank",href:a.file_url}},[t._v("\n "+t._s(a.fullName)+"\n ")])],1),e("div",{attrs:{slot:"description"},slot:"description"},[t._v("\n "+t._s(t.showTaskTime(a.deleted_time))+"\n ")])]),e("a",{staticClass:"muted",attrs:{slot:"actions"},on:{click:function(e){return t.recoveryTask(a,s)}},slot:"actions"},[e("a-tooltip",{attrs:{title:"恢复内容"}},[e("a-icon",{attrs:{type:"undo"}})],1)],1),e("a",{staticClass:"muted",attrs:{slot:"actions"},on:{click:function(e){return t.deleteItem(a,s)}},slot:"actions"},[e("a-tooltip",{attrs:{title:"彻底删除"}},[e("a-icon",{attrs:{type:"delete"}})],1)],1)],1)}))],2)],1)])])],1)],1)},n=[],i=a("2f14"),o=a("b199"),r=a("3f5e"),c=a("1b80"),l=a("81fe"),u={name:"recycleBin",props:{code:{type:[String],default:function(){return""}}},mixins:[c["a"]],data:function(){return{loading:!1,tabKey:"1",project:{},list:[],showLoadingMore:!1,loadingMore:!1}},watch:{code:function(){this.init()},tabKey:function(t){this.init()}},created:function(){this.init()},methods:{init:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=this;switch(t&&(this.list=[],this.pagination.page=1,this.pagination.pageSize=10,this.showLoadingMore=!1),this.requestData.deleted=1,this.requestData.projectCode=this.code,e.loading=!0,this.tabKey){case"1":e.getTasks();break;case"2":e.getFiles();break}},getTasks:function(){var t=this;Object(o["m"])(t.requestData).then((function(e){t.list=t.list.concat(e.data.list),t.pagination.total=e.data.total,t.showLoadingMore=t.pagination.total>t.list.length,t.loading=!1,t.loadingMore=!1}))},getFiles:function(){var t=this;Object(r["c"])(t.requestData).then((function(e){t.list=t.list.concat(e.data.list),t.pagination.total=e.data.total,t.showLoadingMore=t.pagination.total>t.list.length,t.loading=!1,t.loadingMore=!1}))},onLoadMore:function(){this.loadingMore=!0,this.pagination.page++,this.init(!1)},showTaskTime:function(t){return Object(l["b"])(t)},recoveryTask:function(t,e){var a=this;switch(this.tabKey){case"1":this.$confirm({title:"确定恢复内容?",content:"恢复后可在任务列表中查看",okText:"恢复内容",okType:"primary",cancelText:"再想想",onOk:function(){return Object(o["p"])(t.code).then((function(s){Object(i["a"])(s)&&(a.list.splice(e,1),a.$emit("update",t))})),Promise.resolve()}});break;case"2":this.$confirm({title:"确定恢复文件?",content:"恢复后可在我的文件中查看",okText:"恢复文件",okType:"primary",cancelText:"再想想",onOk:function(){return Object(r["d"])(t.code).then((function(s){Object(i["a"])(s)&&(a.list.splice(e,1),a.$emit("update",t))})),Promise.resolve()}});break}},deleteItem:function(t,e){var a=this;switch(this.tabKey){case"1":this.$confirm({title:"确定彻底删除任务?",content:"彻底删除任务后,该任务及其子任务将会被永久被删除。",okText:"彻底删除",okType:"danger",cancelText:"再想想",onOk:function(){return Object(o["f"])(t.code).then((function(s){Object(i["a"])(s)&&(a.list.splice(e,1),a.$emit("update",t))})),Promise.resolve()}});break;case"2":this.$confirm({title:"确认彻底删除该文件?",content:"彻底删除文件后,相关的关联资源将会失效。",okText:"彻底删除",okType:"danger",cancelText:"再想想",onOk:function(){return Object(r["a"])(t.code).then((function(s){Object(i["a"])(s)&&(a.list.splice(e,1),a.$emit("update",t))})),Promise.resolve()}});break}}}},d=u,f=(a("87a4"),a("2877")),m=Object(f["a"])(d,s,n,!1,null,null,null);e["a"]=m.exports},"56d7":function(t,e,a){"use strict";a.r(e);a("ac6a"),a("cadf"),a("551c"),a("f751"),a("097d");var s=a("a026"),n=a("8c4f"),i=a("f23d"),o=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{height:"100%"},attrs:{id:"app"}},[e("a-config-provider",{attrs:{getPopupContainer:t.getPopupContainer,locale:t.zh_CN}},[e("transition",{attrs:{name:"router-fades",mode:"out-in"}},[e("router-view")],1)],1)],1)},r=[],c=a("677e"),l=a.n(c),u=(a("5c3a"),{name:"app",data:function(){return{zh_CN:l.a}},watch:{},methods:{getPopupContainer:function(t,e){return e?e.getDialogWrap():document.body}}}),d=u,f=a("2877"),m=Object(f["a"])(d,o,r,!1,null,null,null),p=m.exports,h=a("4360"),v=a("a18c"),k=(a("202f"),a("77a0")),g=a.n(k),b=(a("aaf0"),a("40f5"),a("476a"),function(){var t=this,e=t._self._c;return e("div",[t.showHeader?e("div",{staticClass:"page-header"},[t.breadCrumbInfo.length>0&&t.breadCrumb?e("div",{staticClass:"breadcrumb"},[e("a-breadcrumb",[e("a-breadcrumb-item",[e("router-link",{attrs:{to:"/home"}},[t._v("首页")])],1),e("a-breadcrumb-item",[t._v(t._s(t.breadCrumbInfo[2].title))]),e("a-breadcrumb-item",[t._v(t._s(t.breadCrumbInfo[1].title))]),e("a-breadcrumb-item",[t._v(t._s(t.breadCrumbInfo[0].title))])],1)],1):t._e(),e("div",{staticClass:"detail"},[e("div",{staticClass:"main"},[e("div",{staticClass:"row"},[""!=t.pageTitle.trim()&&t.showTitle?e("h1",{staticClass:"title"},[t._v(t._s(t.pageTitle))]):t.showTitle?e("h1",{staticClass:"title"},[t._v(t._s(t.defaultPageTitle))]):t._e(),e("div",{staticClass:"action"},[t._t("action")],2)]),e("div",{staticClass:"row"},[this.$slots.content?e("div",{staticClass:"content"},[t._t("content")],2):t._e(),this.$slots.extra?e("div",{staticClass:"extra"},[t._t("extra")],2):t._e()])])])]):e("div",{staticClass:"page-header page-header-none"}),e("div",{staticClass:"page-header page-header-none"}),e("div",{staticClass:"wrapper-main"},[e("div",{staticClass:"wrapper-content",class:{hidden:t.pageLoading}},[e("div",{staticClass:"layout-content"},[this.$slots.contentTitle||this.$slots.contentAction?e("div",{staticClass:"content-title"},[t._t("contentTitle"),e("div",{staticClass:"content-action"},[t._t("contentAction")],2)],2):t._e(),t._t("default")],2)])])])}),w=[],_=(a("8e6e"),a("456d"),a("ade3")),y=a("53ca"),j=a("2f62"),C=a("68fe"),T=a("2f14"),x=a("1157"),O=a.n(x),M=a("2fc4");function S(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 L(t){for(var e=1;e1)for(var e=0;e1&&void 0!==arguments[1]&&arguments[1];e?this.$router.replace(t):this.$router.push(t)},toHome:function(){var t=Object(C["a"])("currentOrganization",!0),e=A["a"].HOME_PAGE;console.log(A["a"].HOME_PAGE),t&&(e=e+"/"+t.code),this.$router.push(e)}}};a("20d6"),a("6b54");s["default"].filter("NumberFormat",(function(t){if(!t)return"0";var e=t.toString().replace(/(\d)(?=(?:\d{3})+$)/g,"$1,");return e})),s["default"].filter("showPreviewUrl",(function(t){var e=t.file_url,a="https://view.officeapps.live.com/op/view.aspx?src=",s=["doc","docx","docm","dotm","dotx","xlsx","xlsb","xls","xlsm","pptx","ppsx","ppt","pps","pptm","potm","ppam","potx","ppsm"],n=t.extension,i=s.findIndex((function(t){return t==n}));return-1!==i&&(e=a+e),e}));var H=a("af88"),B=a("ef55"),K=a.n(B);W.a.locale("zh-cn"),s["default"].use(n["a"]),s["default"].use(h["a"]),s["default"].directive("disable-click",{inserted:function(t,e){e.value=!!e.value,console.log("binding",e),e.value&&(t.addEventListener("click",(function(t){e.value&&(t.preventDefault(),t.stopPropagation())})),t.querySelectorAll("*").forEach((function(t){t.addEventListener("click",(function(t){t.preventDefault(),t.stopPropagation()}))})))},update:function(t,e){e.value=!!e.value,console.log("binding",e),e.value&&(t.addEventListener("click",(function(t){e.value&&(t.preventDefault(),t.stopPropagation())})),t.querySelectorAll("*").forEach((function(t){t.addEventListener("click",(function(t){t.preventDefault(),t.stopPropagation()}))})))}}),window._AMapSecurityConfig={securityJsCode:"e8b6cb44e8e431d68052c8e10db99264"},s["default"].config.productionTip=!1,s["default"].use(i["a"]),s["default"].component("WrapperContent",N),s["default"].use(H["a"]),s["default"].use(K.a),s["default"].prototype.$message=I["a"],s["default"].prototype.$notification=R["a"],s["default"].prototype.$notice=$["b"],s["default"].prototype.$destroyNotice=$["a"],s["default"].use(g.a),s["default"].prototype.$vuescrollConfig={vuescroll:{mode:"native"},scrollPanel:{scrollingX:!0},bar:{delayTime:500,onlyShowBarOnScroll:!1,background:"#cecece",keepShow:!1}},s["default"].mixin(Y),new s["default"]({el:"#app",store:h["a"],router:v["a"],template:"",components:{App:p}})},5744:function(t,e,a){t.exports=a.p+"img/bell.2dec628d.svg"},"58bf":function(t,e,a){"use strict";a("7f7f");var s=function(){var t=this,e=t._self._c;return e("a-tabs",{attrs:{tabPosition:"left",defaultActiveKey:"1",animated:!1},model:{value:t.tabKey,callback:function(e){t.tabKey=e},expression:"tabKey"}},[e("a-tab-pane",{key:"1"},[e("span",{attrs:{slot:"tab"},slot:"tab"},[e("a-icon",{attrs:{type:"heat-map"}}),t._v("\n 概览\n ")],1),e("div",{staticClass:"config-content"},[e("div",{staticClass:"content-item"},[e("div",{staticClass:"infos"},[e("p",{staticClass:"item-title"},[t._v("项目封面")]),e("div",{staticClass:"cover-item"},[t.project.cover?[e("img",{staticClass:"avatar",attrs:{src:t.project.cover}})]:t._e(),e("span",{directives:[{name:"show",rawName:"v-show",value:!t.project.cover,expression:"!project.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:{size:"large"}},[t._v("上传新封面")]),e("p",{staticClass:"upload-tips muted"},[t._v("最佳图片比例为300*150")])],1)],2)])]),e("div",{staticClass:"content-item"},[e("div",{staticClass:"infos"},[e("p",{staticClass:"item-title"},[t._v("项目名称")]),e("a-input",{attrs:{size:"large"},model:{value:t.project.name,callback:function(e){t.$set(t.project,"name",e)},expression:"project.name"}})],1),e("div",{staticClass:"infos"},[e("p",{staticClass:"item-title"},[t._v("项目进度 (%)")]),e("a-input-number",{attrs:{size:"large",min:0,max:100},model:{value:t.project.schedule,callback:function(e){t.$set(t.project,"schedule",e)},expression:"project.schedule"}})],1)]),e("div",{staticClass:"content-item"},[e("div",{staticClass:"infos"},[e("p",{staticClass:"item-title"},[t._v("项目简介")]),e("a-input",{attrs:{type:"textarea",rows:3,size:"large",placeholder:"介绍一下这个项目"},model:{value:t.project.description,callback:function(e){t.$set(t.project,"description",e)},expression:"project.description"}})],1)]),e("div",{staticClass:"content-item"},[e("div",{staticClass:"infos"},[e("p",{staticClass:"item-title"},[t._v("项目公开性")]),e("a-select",{attrs:{size:"large"},model:{value:t.project.private,callback:function(e){t.$set(t.project,"private",e)},expression:"project.private"}},[e("a-select-option",{key:0},[t._v("\n 公开项目(所有人都可通过链接访问,仅项目成员可编辑)\n ")]),e("a-select-option",{key:1},[t._v("\n 私有项目(仅项目成员可查看和编辑)\n ")])],1)],1)]),e("div",{staticClass:"content-item"},[e("div",{staticClass:"infos"},[e("p",{staticClass:"item-title"},[t._v("项目拥有者")]),e("div",{staticClass:"m-t"},[e("a-avatar",{attrs:{src:t.project.owner_avatar}}),e("span",{staticClass:"m-l"},[t._v(t._s(t.project.owner_name))])],1)])]),e("a-divider"),e("div",{staticClass:"content-item"},[e("div",{staticClass:"infos"},[e("a-button",{staticClass:"middle-btn pull-right",attrs:{type:"primary",size:"large"},on:{click:t.saveProject}},[t._v("\n 保存\n ")])],1)])],1)]),e("a-tab-pane",{key:"2",attrs:{forceRender:""}},[e("span",{attrs:{slot:"tab"},slot:"tab"},[e("a-icon",{attrs:{type:"eye"}}),t._v("\n 项目偏好\n ")],1),e("div",{staticClass:"config-content task-config"},[e("div",{staticClass:"content-item"},[e("div",{staticClass:"infos"},[e("p",{staticClass:"item-title"},[t._v("看板风格")]),e("div",{staticClass:"item-tips muted"},[t._v("切换任务看板的主题风格,内置两种风格。")]),e("a-radio-group",{on:{change:t.saveProject},model:{value:t.project.task_board_theme,callback:function(e){t.$set(t.project,"task_board_theme",e)},expression:"project.task_board_theme"}},[e("a-radio",{staticStyle:{display:"block",height:"30px","line-height":"30px"},attrs:{value:"default"}},[t._v("默认")]),e("a-radio",{staticStyle:{display:"block",height:"30px","line-height":"30px"},attrs:{value:"simple"}},[t._v("简约")])],1)],1)]),e("div",{staticClass:"content-item"},[e("div",{staticClass:"infos"},[e("p",{staticClass:"item-title"},[t._v("自动更新项目进度")]),e("div",{staticClass:"item-tips muted"},[t._v("根据当前任务的完成情况自动计算项目进度。")])]),e("a-switch",{on:{change:t.saveProject},model:{value:t.project.auto_update_schedule,callback:function(e){t.$set(t.project,"auto_update_schedule",e)},expression:"project.auto_update_schedule"}})],1)])]),e("a-tab-pane",{key:"3"},[e("span",{attrs:{slot:"tab"},slot:"tab"},[e("a-icon",{attrs:{type:"check-square"}}),t._v("\n 任务设置\n ")],1),e("div",{staticClass:"config-content task-config"},[e("div",{staticClass:"content-item"},[e("div",{staticClass:"infos"},[e("p",{staticClass:"item-title"},[t._v("项目ID")]),e("div",{staticClass:"item-tips muted"},[t._v("设置项目编号,编号将作为 ID 前缀,用以区别项目。支持 2-6 位字母。")]),e("a-input",{staticClass:"prefix-input",attrs:{size:"large",placeholder:"如 Pear Project 可以设置为 EP",disabled:!t.project.open_prefix},model:{value:t.project.prefix,callback:function(e){t.$set(t.project,"prefix",e)},expression:"project.prefix"}}),e("a-button",{staticClass:"middle-btn",attrs:{size:"large",type:"primary",disabled:!t.project.open_prefix},on:{click:t.saveProject}},[t._v("保存\n ")])],1),e("a-switch",{on:{change:t.saveProject},model:{value:t.project.open_prefix,callback:function(e){t.$set(t.project,"open_prefix",e)},expression:"project.open_prefix"}})],1),e("div",{staticClass:"content-item"},[e("div",{staticClass:"infos"},[e("p",{staticClass:"item-title"},[t._v("任务开始时间")]),e("div",{staticClass:"item-tips muted"},[t._v("为任务设置开始时间,更科学地规划工作。")])]),e("a-switch",{on:{change:t.saveProject},model:{value:t.project.open_begin_time,callback:function(e){t.$set(t.project,"open_begin_time",e)},expression:"project.open_begin_time"}})],1),e("div",{staticClass:"content-item"},[e("div",{staticClass:"infos"},[e("p",{staticClass:"item-title"},[t._v("新任务默认开启隐私模式")]),e("div",{staticClass:"item-tips muted"},[t._v("对本项目内的新任务默认开启隐私模式,创建成功后仅参与者可见")])]),e("a-switch",{on:{change:t.saveProject},model:{value:t.project.open_task_private,callback:function(e){t.$set(t.project,"open_task_private",e)},expression:"project.open_task_private"}})],1)])]),e("a-tab-pane",{key:"4",attrs:{forceRender:""}},[e("span",{attrs:{slot:"tab"},slot:"tab"},[e("a-icon",{attrs:{type:"deployment-unit"}}),t._v("\n 任务流转\n ")],1),e("div",{staticClass:"config-content"},[e("div",{staticClass:"content-item task-workflow"},[e("div",{staticClass:"infos",staticStyle:{"padding-right":"0"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:!t.doTaskWorkflowView,expression:"!doTaskWorkflowView"}]},[e("p",[e("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:function(e){return t.doTaskWorkflow(null)}}},[t._v("创建规则")])],1),e("a-list",{staticClass:"task-workflow-list",attrs:{itemLayout:"horizontal",dataSource:t.taskWorkflowList},scopedSlots:t._u([{key:"renderItem",fn:function(a){return e("a-list-item",{},[e("span",{attrs:{slot:"actions"},slot:"actions"},[e("a-tooltip",{attrs:{placement:"top",title:"编辑"}},[e("a",{staticClass:"muted m-r-sm",on:{click:function(e){return t.doTaskWorkflow(a)}}},[e("a-icon",{attrs:{type:"edit"}})],1)]),e("a-tooltip",{attrs:{placement:"top",title:"删除"}},[e("a",{staticClass:"muted",on:{click:function(e){return t.delTaskWorkflow(a.code)}}},[e("a-icon",{attrs:{type:"delete"}})],1)])],1),e("a-list-item-meta",[e("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(a.name))])])],1)}}])})],1),e("div",{directives:[{name:"show",rawName:"v-show",value:t.doTaskWorkflowView,expression:"doTaskWorkflowView"}]},[e("div",{staticClass:"header"},[e("p",[e("a-button",{staticClass:"middle-btn m-r-sm",attrs:{size:"large"},on:{click:function(e){return t.saveTaskWorkflow(!1)}}},[t._v("\n 取消\n ")]),e("a-button",{staticClass:"middle-btn",attrs:{size:"large",type:"primary",disabled:!t.canSaveTaskWorkflow},on:{click:function(e){return t.saveTaskWorkflow(!0)}}},[t._v("保存\n ")])],1)]),e("div",{staticClass:"workflow-content"},[t.loadingWorkflowRule?t._e():[e("div",{staticClass:"workflow-rule-item"},[e("p",[t._v("\n 规则名称\n ")]),e("a-input",{attrs:{size:"large"},model:{value:t.currentTaskWorkflowRule.taskWorkflowName,callback:function(e){t.$set(t.currentTaskWorkflowRule,"taskWorkflowName",e)},expression:"currentTaskWorkflowRule.taskWorkflowName"}})],1),e("div",{staticClass:"workflow-rule-item"},[e("p",[t._v("选择任务列表")]),e("a-select",{attrs:{size:"large"},on:{change:function(e){return t.workflowRuleChange(e,"firstObj")}},model:{value:t.currentTaskWorkflowRule.firstObj,callback:function(e){t.$set(t.currentTaskWorkflowRule,"firstObj",e)},expression:"currentTaskWorkflowRule.firstObj"}},t._l(t.taskStages,(function(a,s){return e("a-select-option",{key:a.code,attrs:{value:a.code}},[t._v("\n "+t._s(a.name)+"\n ")])})),1)],1),t.currentTaskWorkflowRule.firstObj?[e("div",{staticClass:"workflow-rule-item"},[e("p",[t._v("选择条件")]),e("a-select",{attrs:{size:"large"},on:{change:function(e){return t.workflowRuleChange(e,"firstAction.action")}},model:{value:t.currentTaskWorkflowRule.firstAction.action,callback:function(e){t.$set(t.currentTaskWorkflowRule.firstAction,"action",e)},expression:"currentTaskWorkflowRule.firstAction.action"}},t._l(t.taskWorkflowRuleActions,(function(a,s){return e("a-select-option",{key:a.id,attrs:{value:a.id}},[t._v(t._s(a.name)+"\n ")])})),1)],1),-1!=t.currentTaskWorkflowRule.firstAction.action?[3==t.currentTaskWorkflowRule.firstAction.action?[e("div",{staticClass:"workflow-rule-item"},[e("p",[t._v("选择执行者")]),e("a-select",{attrs:{size:"large"},on:{change:function(e){return t.workflowRuleChange(e,"firstAction.value")}},model:{value:t.currentTaskWorkflowRule.firstAction.value,callback:function(e){t.$set(t.currentTaskWorkflowRule.firstAction,"value",e)},expression:"currentTaskWorkflowRule.firstAction.value"}},t._l(t.projectMembers,(function(a,s){return e("a-select-option",{key:a.code,attrs:{value:a.code}},[t._v("\n "+t._s(a.name)+"\n ")])})),1)],1)]:t._e(),e("div",{staticClass:"workflow-rule-item"},[e("p",[t._v("选择结果")]),e("a-select",{attrs:{size:"large"},on:{change:function(e){return t.workflowRuleChange(e,"firstResult.action")}},model:{value:t.currentTaskWorkflowRule.firstResult.action,callback:function(e){t.$set(t.currentTaskWorkflowRule.firstResult,"action",e)},expression:"currentTaskWorkflowRule.firstResult.action"}},t._l(t.taskWorkflowRuleTypes,(function(a,s){return e("a-select-option",{key:a.id,attrs:{value:a.id}},[t._v(t._s(a.name)+"\n ")])})),1)],1),0===t.currentTaskWorkflowRule.firstResult.action?[e("div",{staticClass:"workflow-rule-item"},[e("p",[t._v("流转任务列表")]),e("a-select",{attrs:{size:"large"},on:{change:function(e){return t.workflowRuleChange(e,"firstResult.value")}},model:{value:t.currentTaskWorkflowRule.firstResult.value,callback:function(e){t.$set(t.currentTaskWorkflowRule.firstResult,"value",e)},expression:"currentTaskWorkflowRule.firstResult.value"}},t._l(t.taskStages,(function(a,s){return e("a-select-option",{key:a.code,attrs:{value:a.code}},[t._v("\n "+t._s(a.name)+"\n ")])})),1)],1),t.currentTaskWorkflowRule.firstResult.value?[e("div",{staticClass:"workflow-rule-item"},[e("p",[t._v("选择执行者")]),e("a-select",{attrs:{size:"large"},on:{change:function(e){return t.workflowRuleChange(e,"lastResult.value")}},model:{value:t.currentTaskWorkflowRule.lastResult.value,callback:function(e){t.$set(t.currentTaskWorkflowRule.lastResult,"value",e)},expression:"currentTaskWorkflowRule.lastResult.value"}},t._l(t.projectMembers,(function(a,s){return e("a-select-option",{key:a.code,attrs:{value:a.code}},[t._v("\n "+t._s(a.name)+"\n ")])})),1)],1)]:t._e(),[e("div",{staticClass:"workflow-rule-item"},[e("p",[t._v("修改任务状态")]),e("a-select",{attrs:{size:"large"},on:{change:function(e){return t.workflowRuleChange(e,"state.value")}},model:{value:t.currentTaskWorkflowRule.state.value,callback:function(e){t.$set(t.currentTaskWorkflowRule.state,"value",e)},expression:"currentTaskWorkflowRule.state.value"}},t._l(t.taskStates,(function(a,s){return e("a-select-option",{key:a.id,attrs:{value:a.id}},[t._v("\n "+t._s(a.name)+"\n ")])})),1)],1)]]:t._e(),3===t.currentTaskWorkflowRule.firstResult.action?[e("div",{staticClass:"workflow-rule-item"},[e("p",[t._v("选择执行者")]),e("a-select",{attrs:{size:"large"},on:{change:function(e){return t.workflowRuleChange(e,"firstAction.action")}},model:{value:t.currentTaskWorkflowRule.firstResult.value,callback:function(e){t.$set(t.currentTaskWorkflowRule.firstResult,"value",e)},expression:"currentTaskWorkflowRule.firstResult.value"}},t._l(t.projectMembers,(function(a,s){return e("a-select-option",{key:a.code,attrs:{value:a.code}},[t._v("\n "+t._s(a.name)+"\n ")])})),1)],1),t.currentTaskWorkflowRule.firstResult.value?[e("div",{staticClass:"workflow-rule-item"},[e("p",[t._v("流转任务列表")]),e("a-select",{attrs:{size:"large"},on:{change:function(e){return t.workflowRuleChange(e,"lastResult.value")}},model:{value:t.currentTaskWorkflowRule.lastResult.value,callback:function(e){t.$set(t.currentTaskWorkflowRule.lastResult,"value",e)},expression:"currentTaskWorkflowRule.lastResult.value"}},t._l(t.taskStages,(function(a,s){return e("a-select-option",{key:a.code,attrs:{value:a.code}},[t._v("\n "+t._s(a.name)+"\n ")])})),1)],1)]:t._e(),[e("div",{staticClass:"workflow-rule-item"},[e("p",[t._v("修改任务状态")]),e("a-select",{attrs:{size:"large"},on:{change:function(e){return t.workflowRuleChange(e,"state.value")}},model:{value:t.currentTaskWorkflowRule.state.value,callback:function(e){t.$set(t.currentTaskWorkflowRule.state,"value",e)},expression:"currentTaskWorkflowRule.state.value"}},t._l(t.taskStates,(function(a,s){return e("a-select-option",{key:a.id,attrs:{value:a.id}},[t._v("\n "+t._s(a.name)+"\n ")])})),1)],1)]]:t._e()]:t._e()]:t._e()],e("div",{staticClass:"text-center"},[e("a-spin",{attrs:{spinning:t.loadingWorkflowRule}})],1)],2)])])])])]),e("a-tab-pane",{key:"5"},[e("span",{attrs:{slot:"tab"},slot:"tab"},[e("a-icon",{attrs:{type:"ellipsis"}}),t._v("\n 更多\n ")],1),e("div",{staticClass:"config-content more-config"},[e("div",{staticClass:"content-item"},[e("div",{staticClass:"infos"},[e("p",{staticClass:"item-title"},[t._v("项目操作")]),e("div",{staticClass:"item-tips muted"},[t._v("您可以执行以下操作")]),e("a-button",{staticClass:"middle-btn",attrs:{size:"large"},on:{click:t.archiveProject}},[t.project.archive?e("span",[t._v("取消归档")]):t._e(),t.project.archive?t._e():e("span",[t._v("归档项目")])]),e("a-button",{staticClass:"middle-btn",attrs:{size:"large"},on:{click:t.quitProject}},[t._v("退出")]),e("a-button",{staticClass:"middle-btn",attrs:{size:"large",type:"danger"},on:{click:t.delProject}},[t.project.deleted?e("span",[t._v("恢复项目")]):t._e(),t.project.deleted?t._e():e("span",[t._v("移至回收站")])])],1)])])])],1)},n=[],i=(a("ac6a"),a("a481"),a("c5f6"),a("24d2")),o=a("22b6");function r(t){return o["a"].post("project/task_workflow",t)}function c(t){return o["a"].post("project/task_workflow/_getTaskWorkflowRules",t)}function l(t){return o["a"].post("project/task_workflow/save",t)}function u(t){return o["a"].post("project/task_workflow/edit",t)}function d(t){return o["a"].post("project/task_workflow/delete",t)}var f=a("e507"),m=a("9f5d"),p=a("97a8"),h=a("2f14"),v={name:"projectConfig",props:{code:{type:[String],default:function(){return""}}},data:function(){return{loading:!1,tabKey:"1",project:{},taskWorkflowList:[],doTaskWorkflowView:!1,loadingWorkflowRule:!1,taskWorkflow:null,taskWorkflowRuleList:[],currentTaskWorkflowRule:{taskWorkflowName:"",firstObj:"",firstAction:{action:-1,value:""},firstResult:{action:-1,value:""},lastResult:{action:-1,value:""},state:{action:-1,value:-1}},taskWorkflowRuleActions:[{id:-1,name:"请选择"},{id:0,name:"增加任务、被移动"},{id:1,name:"被完成"},{id:2,name:"被重做"},{id:3,name:"设置执行人"}],taskWorkflowRuleTypes:[{id:-1,name:"请选择"},{id:0,name:"自动流转到"},{id:3,name:"默认指派给"}],taskStates:[{id:-1,name:"不做修改"},{id:1,name:"已完成"},{id:2,name:"未完成"}],projectMembers:[],taskStages:[],uploadLoading:!1,uploadAction:Object(h["c"])("project/project/uploadCover")}},computed:{headers:function(){return Object(h["d"])()},canSaveTaskWorkflow:function(){return this.currentTaskWorkflowRule.taskWorkflowName.trim()&&this.currentTaskWorkflowRule.firstObj&&-1!=this.currentTaskWorkflowRule.firstAction.action&&-1!=this.currentTaskWorkflowRule.firstResult.action&&this.currentTaskWorkflowRule.firstResult.value}},watch:{code:function(){this.getProject()}},created:function(){this.getProject(),this.getTaskWorkflowList()},methods:{getProject:function(){var t=this;this.loading=!0,Object(i["h"])(this.code).then((function(e){t.loading=!1,t.project=e.data,t.project.open_prefix=!!e.data.open_prefix,t.project.open_begin_time=!!e.data.open_begin_time,t.project.open_task_private=!!e.data.open_task_private,t.project.auto_update_schedule=!!e.data.auto_update_schedule}))},getTaskWorkflowList:function(){var t=this;r({projectCode:this.code}).then((function(e){t.taskWorkflowList=e.data}))},saveProject:function(){var t=this,e=this.project;Object(i["e"])({projectCode:e.code,name:e.name,description:e.description,cover:e.cover,private:e.private,prefix:e.prefix,task_board_theme:e.task_board_theme,open_prefix:Number(e.open_prefix),open_begin_time:Number(e.open_begin_time),open_task_private:Number(e.open_task_private),schedule:Number(e.schedule),auto_update_schedule:Number(e.auto_update_schedule)}).then((function(e){Object(h["a"])(e)&&(t.$emit("update",t.project),Object(p["b"])({title:"保存成功"},"notice","success"))}))},archiveProject:function(){var t=this;t.project.archive?this.$confirm({title:"取消归档项目?",content:"取消归档「".concat(this.project.name,"」后就可以正常使用了"),okText:"取消归档",okType:"primary",cancelText:"再想想",onOk:function(){return Object(i["j"])(t.code).then((function(e){Object(h["a"])(e)&&t.$emit("complete")})),Promise.resolve()}}):this.$confirm({title:"归档项目",content:"一旦将项目「".concat(this.project.name,"」归档,本项目和所含信息将会被移到「归档项目」内,其中的内容依然会被统计和搜索收录,归档项目可以随时恢复并继续使用。"),okText:"归档",okType:"danger",cancelText:"再想想",onOk:function(){return Object(i["d"])(t.code).then((function(e){Object(h["a"])(e)&&t.$emit("complete")})),Promise.resolve()}})},delProject:function(){var t=this;t.project.deleted?this.$confirm({title:"确定恢复项目?",content:"恢复「".concat(this.project.name,"」后就可以正常使用了"),okText:"恢复项目",okType:"primary",cancelText:"再想想",onOk:function(){return Object(i["i"])(t.code).then((function(e){Object(h["a"])(e)&&t.$emit("complete")})),Promise.resolve()}}):this.$confirm({title:"确定放入回收站?",content:"一旦将项目「".concat(this.project.name,"」放入回收站,所有与项目有关的信息将会被放入回收站"),okText:"放入回收站",okType:"danger",cancelText:"再想想",onOk:function(){return Object(i["k"])(t.code).then((function(e){Object(h["a"])(e)&&t.$emit("complete")})),Promise.resolve()}})},quitProject:function(){var t=this;this.$confirm({title:"退出项目",content:"一旦你退出了该项目,你将不能查看任何关于该项目的信息。退出项目后,如果想重新加入,请联系项目管理员。",okText:"确定退出",okType:"primary",cancelText:"再想想",onOk:function(){return Object(i["g"])(t.code).then((function(e){Object(h["a"])(e)&&(t.$emit("complete"),t.$router.replace("/project/list/my"))})),Promise.resolve()}})},doTaskWorkflow:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.getTaskStages(),this.getProjectMembers(),this.taskWorkflow=t,t?(this.loadingWorkflowRule=!0,this.currentTaskWorkflowRule.taskWorkflowName=t.name,this.getTaskWorkflowRules(t.code)):this.currentTaskWorkflowRule={taskWorkflowName:"",firstObj:"",firstAction:{action:-1,value:""},firstResult:{action:-1,value:""},lastResult:{action:-1,value:""},state:{action:-1,value:-1},taskStates:[{id:-1,name:"不做修改"},{id:1,name:"已完成"},{id:2,name:"未完成"}]},this.doTaskWorkflowView=!0},saveTaskWorkflow:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.currentTaskWorkflowRule.firstResult.action?this.currentTaskWorkflowRule.lastResult.action=0:this.currentTaskWorkflowRule.lastResult.action=3;var a={taskWorkflowName:this.currentTaskWorkflowRule.taskWorkflowName,taskWorkflowRules:JSON.stringify(this.currentTaskWorkflowRule)};e&&(this.taskWorkflow?(a.taskWorkflowCode=this.taskWorkflow.code,u(a).then((function(e){t.getTaskWorkflowList()}))):(a.projectCode=this.code,l(a).then((function(e){t.getTaskWorkflowList()})))),this.doTaskWorkflowView=!1},getTaskStages:function(){var t=this;Object(f["a"])({projectCode:this.code}).then((function(e){var a=[{code:"",name:"不选择"}];e.data.forEach((function(t){a.push(t)})),t.taskStages=a}))},getTaskWorkflowRules:function(t){var e=this;c({taskWorkflowCode:t}).then((function(t){e.loadingWorkflowRule=!1;var a=t.data;e.taskWorkflowRuleList=a,a&&(e.currentTaskWorkflowRule.firstObj=a[0].object_code,e.currentTaskWorkflowRule.firstAction.action=a[1].action,e.currentTaskWorkflowRule.firstAction.value=a[1].object_code,e.currentTaskWorkflowRule.firstResult.action=a[2].action,e.currentTaskWorkflowRule.firstResult.value=a[2].object_code,a.length>=4&&(a[3].object_code?(e.currentTaskWorkflowRule.lastResult.action=a[3].action,e.currentTaskWorkflowRule.lastResult.value=a[3].object_code):(e.currentTaskWorkflowRule.state.action=a[3].action,e.currentTaskWorkflowRule.state.value=a[3].action),a.length>=5&&(a[4].object_code?(e.currentTaskWorkflowRule.lastResult.action=a[4].action,e.currentTaskWorkflowRule.lastResult.value=a[4].object_code):(e.currentTaskWorkflowRule.state.action=a[4].action,e.currentTaskWorkflowRule.state.value=a[4].action))))}))},delTaskWorkflow:function(t){var e=this;this.$confirm({title:"删除规则?",content:"您确定要删除该规则吗?",okText:"删除",okType:"danger",cancelText:"再想想",onOk:function(){return d({taskWorkflowCode:t}).then((function(t){Object(h["a"])(t)&&e.getTaskWorkflowList()})),Promise.resolve()}})},getProjectMembers:function(){var t=this;Object(m["d"])({projectCode:this.code,pageSize:100}).then((function(e){var a=[{code:"",name:"不选择"}];e.data.list.forEach((function(t){a.push(t)})),t.projectMembers=a}))},workflowRuleChange:function(t,e){console.log(t),console.log(e),"firstAction.action"==e&&(this.currentTaskWorkflowRule.firstAction.value=""),"firstResult.value"==e&&(this.currentTaskWorkflowRule.lastResult.value=""),"firstResult.action"==e&&(this.currentTaskWorkflowRule.firstResult.value="",this.currentTaskWorkflowRule.lastResult.value="")},handleChange:function(t){var e=this;"uploading"!==t.file.status?"done"===t.file.status&&Object(h["e"])(t.file.originFileObj,(function(){e.project.cover=t.file.response.data.url,e.uploadLoading=!1,Object(p["b"])({title:"封面上传成功"},"notice","success")})):this.uploadLoading=!0},beforeUpload:function(t){var e=t.size/1024/1024<2;return e||this.$message.error("图片不能超过2MB!"),e}}},k=v,g=(a("ff64"),a("2877")),b=Object(g["a"])(k,s,n,!1,null,null,null);e["a"]=b.exports},"5aae":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:"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(a,s){return e("a-menu-item",{key:s},[e("div",{staticClass:"menu-item-d"},[e("a-avatar",{attrs:{src:a.avatar,icon:"user",size:"small"}}),e("a",{staticClass:"muted name"},[t._v(t._s(a.name))]),a.is_owner?e("span",{staticClass:"line_on"},[t._v("• 在线")]):e("span",{staticClass:"line_off"},[t._v("• 离线")])],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=[],i=(a("28a5"),a("ac6a"),a("6b54"),a("f576"),a("2ef0"),a("862d")),o=a.n(i),r=a("f66b"),c=a("c24f"),l=a("97a8"),u={name:"dataV",data:function(){return{map:null,Amap:null,visibleTaskCopied:!1,now_date:"",now_user:{member_code:"",avatar:"",name:"全部"},member_list:[],markers:[],polyline:null,timerM:null,timerP:null}},created:function(){this.now_date="",this.getMembers()},mounted:function(){this.initMap()},destroyed:function(){clearInterval(this.timerM),clearInterval(this.timerP)},methods:{getMembers:function(){var t=this;Object(c["w"])().then((function(e){t.member_list=e.data.list}))},formatDate:function(t){var e=t.getFullYear(),a=(t.getMonth()+1).toString().padStart(2,"0"),s=t.getDate().toString().padStart(2,"0");return"".concat(e,"-").concat(a,"-").concat(s)},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(),t.timerM=setInterval((function(){t.initMaker()}),1e4)})).catch((function(t){console.log(t)}))},handleMenuClick:function(t){this.now_user=this.member_list[t.key],this.now_user.member_code&&this.now_date&&(clearInterval(this.timerM),clearInterval(this.timerP),this.initList(),this.timerP=setInterval(this.initList,1e4))},changeTime:function(t){this.now_user.member_code&&this.now_date&&(clearInterval(this.timerM),clearInterval(this.timerP),this.initList(),this.timerP=setInterval(this.initList,1e4))},initMaker:function(){var t=this;this.polyline&&this.polyline.setMap(null),Object(r["a"])().then((function(e){t.markers&&t.map.remove(t.markers),e.data.forEach((function(e){if(e.positioning){var a=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.stop_time,"
\n
\n
\n "),offset:new AMap.Pixel(-20,-20)});t.markers.push(a)}}))}))},initList:function(){var t=this;this.markers&&this.map.remove(this.markers),Object(r["b"])({code:this.now_user.member_code,date:this.formatDate(new Date(this.now_date||Date.now()))}).then((function(e){var a=e.data.map((function(t){return t.split(",")}))||[];if(t.polyline&&t.polyline.setMap(null),0==a.length)return Object(l["b"])({title:"该成员当日无轨迹信息"},"error",3e3);t.polyline=new AMap.Polyline({path:a,strokeColor:"#52c41a",strokeWeight:5,strokeOpacity:1,strokeStyle:"solid",zIndex:50}),t.polyline.setMap(t.map)})).catch((function(t){return console.log(t),Object(l["b"])({title:"该成员当日无轨迹信息"},"error",3e3)}))}}},d=u,f=(a("28d2"),a("2877")),m=Object(f["a"])(d,s,n,!1,null,null,null);e["default"]=m.exports},"68fe":function(t,e,a){"use strict";a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){return i})),a.d(e,"b",(function(){return o}));a("28a5");var s="ep_",n=function(t,e){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(!t)return!1;if(t=s+t,"string"!==typeof e&&(e=JSON.stringify(e)),a){var i=new Date;e+=n>0?"&"+(i.getTime()+3600*n*1e3):"&0",e+="&"+i.getTime()}window.localStorage.setItem(t,e)},i=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!!t&&(t=s+t,e&&"string"==typeof window.localStorage.getItem(t)&&"undefined"!=window.localStorage.getItem(t)?JSON.parse(window.localStorage.getItem(t)):window.localStorage.getItem(t))},o=function(t){if(!t)return!1;t=s+t,window.localStorage.removeItem(t)}},6944:function(t,e,a){},7060:function(t,e,a){"use strict";a("17bb")},7606:function(t,e,a){"use strict";a("fe8e")},7978:function(t,e,a){"use strict";a("33c9")},"7dc6":function(t,e,a){"use strict";a.d(e,"d",(function(){return n})),a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return r}));var s=a("22b6");a("2f14");function n(t,e){return s["a"].post("project/department_member/searchInviteMember",{keyword:t,departmentCode:e})}function i(t,e){return s["a"].post("project/department_member/inviteMember",{accountCode:t,departmentCode:e})}function o(t,e){return s["a"].post("project/department_member/removeMember",{accountCode:t,departmentCode:e})}function r(t){return s["a"].post("project/department_member/detail",t)}},"7e25":function(t,e,a){t.exports=a.p+"img/laba.e793fb2e.svg"},"813b":function(t,e,a){"use strict";a.d(e,"c",(function(){return n})),a.d(e,"d",(function(){return i})),a.d(e,"b",(function(){return o})),a.d(e,"a",(function(){return r}));var s=a("22b6");function n(t){return s["a"].post("project/task_tag",t)}function i(t){return s["a"].post("project/task_tag/save",t)}function o(t){return s["a"].post("project/task_tag/edit",t)}function r(t){return s["a"].post("project/task_tag/delete",{tagCode:t})}},"81fe":function(t,e,a){"use strict";a.d(e,"c",(function(){return i})),a.d(e,"b",(function(){return o})),a.d(e,"a",(function(){return r})),a.d(e,"d",(function(){return c}));a("3b2b"),a("a481");var s=a("c1df"),n=a.n(s),i=function(t,e){e||(e=n()());var a=n()(e).diff(n()(t),"hours");if(a<=1)return n()(t).fromNow();n()(e).get("date"),n()(t).get("date");var s=n()(t).format("H:mm"),i=n()(t).format("YYYY-MM-DD"),o=n()().weekday(0).format("YYYY-MM-DD"),r=n()().weekday(6).format("YYYY-MM-DD"),c="";return c=ir?"[下周]dd "+s:"[周]dd "+s,n()(t).calendar(null,{sameDay:"[今天 ]"+n()(t).format("H:mm"),nextDay:"[明天 ]"+s,nextWeek:c,lastDay:"[昨天 ]"+s,lastWeek:c,sameElse:"M月D日 H:mm"})},o=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=n()(t).format("H:mm");e||(a="");var s=n()(t).format("YYYY-MM-DD"),i=n()().weekday(0).format("YYYY-MM-DD"),o=n()().weekday(6).format("YYYY-MM-DD"),r="";return r=so?"[下周]dd "+a:"[周]dd "+a,n()(t).calendar(null,{sameDay:"[今天 ]"+n()(t).format("H:mm"),nextDay:"[明天 ]"+a,nextWeek:r,lastDay:"[昨天 ]"+a,lastWeek:r,sameElse:"M月D日 H:mm"})},r=function(t,e){return!e&&t?o(t)+" 开始":t?o(t)+" - "+o(e):o(e)+" 截止"},c=function(t){var e="";void 0==t&&(t=new Date);var a=t.getHours();return a>=0&&a<=4&&(e="深夜了,注意身体,"),a>=4&&a<7&&(e="清晨好, "),a>=7&&a<12&&(e="早安,"),a>=12&&a<=13&&(e="午饭时间到了,"),a>=13&&a<=17&&(e="下午好,"),a>=17&&a<=18&&(e="进入傍晚了,"),a>=18&&a<=20&&(e="吃过晚饭了吗,"),a>=20&&a<=24&&(e="在加班吗?辛苦了,"),e}},"82f8":function(t,e,a){"use strict";a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){return i})),a.d(e,"d",(function(){return o})),a.d(e,"b",(function(){return r})),a.d(e,"e",(function(){return c}));var s=a("22b6");function n(t){return s["a"].post("index/index/install",t)}function i(){return s["a"].post("index/index/checkInstall")}function o(t){return s["a"].post("project/invite_link/_read",{inviteCode:t})}function r(t){return s["a"].post("project/invite_link/save",t)}function c(t){return s["a"].post("index/index/refreshAccessToken",{refreshToken:t})}},"87a4":function(t,e,a){"use strict";a("ab60")},8870:function(t,e,a){"use strict";a.d(e,"a",(function(){return n}));var s=a("22b6");function n(t){return s["a"].post("project/source_link/delete",{sourceCode:t})}},"88ae":function(t,e,a){},"97a8":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"a",(function(){return o}));var s=a("f64c"),n=a("56cd"),i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"message",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"warning",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:3,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"bottomLeft";o();var c={};if(c.duration=i,"message"===e)switch(a){case"info":return s["a"].info(t,i);case"success":return s["a"].success(t,i);case"error":return s["a"].error(t,i);case"loading":return s["a"].loading(t,i);default:return s["a"].warning(t,i)}else switch(c.message=t.title,c.description=t.msg||"",c.placement=r,a){case"open":return n["a"].open(c);case"info":return n["a"].info(c);case"success":return n["a"].success(c);case"error":return n["a"].error(c);default:return n["a"].warning(c)}},o=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";t?"message"===t?s["a"].destroy():n["a"].destroy():(s["a"].destroy(),n["a"].destroy())}},"9f5d":function(t,e,a){"use strict";a.d(e,"f",(function(){return n})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){return o})),a.d(e,"e",(function(){return r})),a.d(e,"d",(function(){return c})),a.d(e,"b",(function(){return l}));var s=a("22b6");function n(t,e){return s["a"].post("project/project_member/searchInviteMember",{keyword:t,projectCode:e})}function i(t,e){return s["a"].post("project/project_member/inviteMember",{memberCode:t,projectCode:e})}function o(t){return s["a"].post("project/project_member/_joinByInviteLink",{inviteCode:t})}function r(t,e){return s["a"].post("project/project_member/removeMember",{memberCode:t,projectCode:e})}function c(t){return s["a"].post("project/project_member/index",t)}function l(t){return s["a"].post("project/project_member/_listForInvite",t)}},a078:function(t,e,a){"use strict";e["a"]={crossDomain:"false",PROD_URL:"https://work.lihaink.cn",WS_URI:"wss://work.lihaink.cn",HOME_PAGE:"/home"}},a18c:function(t,e,a){"use strict";a("6762"),a("2fdb"),a("7f7f"),a("ac6a");var s=a("53ca"),n=a("a026"),i=a("4360"),o=a("8c4f"),r=a("1e4b"),c=[{name:"task",path:"/project/space/task/:code",component:function(t){return a.e("chunk-d24496b2").then(function(){var e=[a("d96ec")];t.apply(null,e)}.bind(this)).catch(a.oe)},meta:{model:122,info:{show_slider:!1,is_inner:!0}},children:[{name:"taskdetail",path:"detail/:taskCode",component:function(t){return a.e("chunk-f86ac4cc").then(function(){var e=[a("d0e1")];t.apply(null,e)}.bind(this)).catch(a.oe)},meta:{model:"Project",info:{show_slider:!1}}},{name:"taskadd",path:"add/:taskCode",component:function(t){return a.e("chunk-391e3787").then(function(){var e=[a("f561")];t.apply(null,e)}.bind(this)).catch(a.oe)},meta:{model:"Project",info:{show_slider:!1}}}]},{name:"copy",path:"/project/space/copy/:code",component:function(t){return a.e("chunk-2b587d1f").then(function(){var e=[a("9bef")];t.apply(null,e)}.bind(this)).catch(a.oe)},meta:{model:122,info:{show_slider:!1,is_inner:!0}},children:[{name:"taskdetailcopy",path:"detail/:taskCode",component:function(t){return a.e("chunk-f86ac4cc").then(function(){var e=[a("d0e1")];t.apply(null,e)}.bind(this)).catch(a.oe)},meta:{model:"Project",info:{show_slider:!1}}}]},{name:"inviteFromLink",path:"/invite_from_link/:code",component:function(t){return a.e("chunk-47a9ae4d").then(function(){var e=[a("6e0f")];t.apply(null,e)}.bind(this)).catch(a.oe)},meta:{model:"Common",info:{show_slider:!1}}},{name:"calendar",path:"/calendar",component:function(t){return a.e("chunk-5dd25288").then(function(){var e=[a("37a7")];t.apply(null,e)}.bind(this)).catch(a.oe)},meta:{model:"Common",info:{show_slider:!1}}}],l=a("68fe"),u=a("2f14"),d=a("a078"),f=a("82f8"),m=a("5aae"),p=a("019e"),h=a("baf2"),v=d["a"].HOME_PAGE,k=Object(l["a"])("currentOrganization",!0);k&&(v=v+"/"+k.code),n["default"].use(o["a"]);var g=[].concat(c);function b(t,e){if(t===e)return!0;if("object"===Object(s["a"])(t))for(var a in t)if(b(t[a],e))return!0;return!1}var w=Object(l["a"])("menu",!0);w&&w.forEach((function(t){b(t,"datasv")||b(t,"copysv")||(g.push(Object(u["b"])(t)),t.children&&t.children.forEach((function(t){g.push(Object(u["b"])(t)),t.children&&t.children.forEach((function(t){g.push(Object(u["b"])(t))}))})))}));var _=new o["a"]({routes:[{path:"/",name:"index",component:r["default"],children:g},{name:"datasv",path:"/datasv",component:m["default"]},{name:"copysv",path:"/copysv",component:p["default"],children:[{name:"copytaskdetail",path:"/detail/:taskCode",component:h["default"],meta:{model:122,info:{show_slider:!1,is_inner:!0}}}]},{name:"member",path:"/member",component:function(t){return a.e("chunk-e3d6f510").then(function(){var e=[a("27f0")];t.apply(null,e)}.bind(this)).catch(a.oe)},meta:{model:"Login"},children:[{path:"login",name:"login",component:function(){return a.e("user").then(a.bind(null,"067f"))},meta:{model:"Login"}},{path:"register",name:"register",component:function(){return a.e("user").then(a.bind(null,"5287"))},meta:{model:"Login"}},{path:"forgot",name:"forgot",component:function(){return a.e("user").then(a.bind(null,"1c8d"))},meta:{model:"Login"}}]},{name:"install",path:"/install",component:function(t){return a.e("chunk-4794d8ce").then(function(){var e=[a("fef1")];t.apply(null,e)}.bind(this)).catch(a.oe)},meta:{model:"error"}},{name:"resetEmail",path:"/reset/email",component:function(t){return a.e("chunk-0c259edb").then(function(){var e=[a("c0d8")];t.apply(null,e)}.bind(this)).catch(a.oe)},meta:{model:"error"}},{name:"404",path:"/404",component:function(t){return a.e("chunk-ddf84650").then(function(){var e=[a("2754")];t.apply(null,e)}.bind(this)).catch(a.oe)},meta:{model:"error"}},{name:"403",path:"/403",component:function(t){return a.e("chunk-6560417d").then(function(){var e=[a("7fa2")];t.apply(null,e)}.bind(this)).catch(a.oe)},meta:{model:"error"}},{name:"500",path:"/500",component:function(t){return a.e("chunk-06548746").then(function(){var e=[a("b3ff")];t.apply(null,e)}.bind(this)).catch(a.oe)},meta:{model:"error"}}]});_.beforeEach((function(t,e,a){var s=Object(l["a"])("tokenList",!0);if(s){var n=s.refreshToken,o=s.accessTokenExp;o&&Object(u["i"])(o)&&Object(f["e"])(n).then((function(t){s.accessToken=t.data.accessToken,s.accessTokenExp=t.data.accessTokenExp,Object(l["c"])("tokenList",s)})).catch((function(){return i["a"].state.logged=!1,i["a"].state.userInfo=null,!1}))}return"datasv"===t.name||"/datasv"===t.path||"copysv"===t.name||t.path.includes("/copysv")?(a(),!1):"index"===t.name||"/index"===t.path||"/"===t.path?(a({path:v}),!1):t.name||"Login"===e.meta.model||t.path===v?"Login"===t.meta.model&&i["a"].state.logged?(a({path:v}),!1):i["a"].state.logged||"Login"===t.meta.model||"error"===t.meta.model?void a():(a({name:"login",query:{redirect:t.fullPath}}),!1):(a({path:"/404"}),!1)})),_.afterEach((function(t){}));e["a"]=_},a897:function(t,e,a){"use strict";var s=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{"word-break":"break-all"},style:t.styleObject},[e("div",{ref:"editor",style:t.styleObject,attrs:{id:t.id}})])},n=[],i=(a("28a5"),a("a481"),a("ac6a"),a("1a0b")),o=a.n(i),r=a("2ef0"),c=a.n(r),l={name:"editor",props:["id","value","width","height","uploadImgServer","disabled","menus","mapKey","menuFixed","pasteFilter","codeDefaultLang","hideLinkImg","uploadImgParams","uploadImgHeaders","isRealtime","disabledMenus","uploadFileName","uploadImgShowBase64"],data:function(){return{styleObject:{width:"auto",height:"auto"},editor:null}},methods:{initSize:function(){this.width&&(this.styleObject.width=this.width+"px"),this.height&&(this.styleObject.height=this.height+"px")},createEditor:function(){this.editor=new o.a(document.getElementById(this.id)),this.initConfig(),this.editor.create()},initConfig:function(){this.editor.customConfig.uploadFileName=this.uploadFileName?this.uploadFileName:"image[]",this.editor.customConfig.uploadImgServer=this.uploadImgServer,this.editor.customConfig.uploadImgShowBase64=!!this.uploadImgShowBase64&&this.uploadImgShowBase64,this.editor.customConfig.uploadImgFileName="file",this.editor.customConfig.pasteFilter=!1,void 0!=this.mapKey&&(this.editor.customConfig.mapAk=this.mapKey),void 0!=this.menus&&this.menus instanceof Array&&this.menus.length?this.editor.customConfig.menus=this.filterMenu(this.menus):this.disabledMenus&&(this.editor.customConfig.menus=this.filterDisabledMenu(this.editor.customConfig.menus,this.disabledMenus)),void 0!=this.menuFixed&&(this.editor.customConfig.menuFixed=this.menuFixed),void 0!=this.pasteFilter&&(this.editor.customConfig.pasteFilter=this.pasteFilter),void 0!=this.codeDefaultLang&&(this.editor.customConfig.codeDefaultLang=this.codeDefaultLang),void 0!=this.hideLinkImg&&(this.editor.customConfig.hideLinkImg=this.hideLinkImg),void 0!=this.uploadImgParams&&this.uploadImgParams instanceof Object&&(this.editor.customConfig.uploadImgParams=this.uploadImgParams),void 0!=this.uploadImgHeaders&&this.uploadImgHeaders instanceof Object&&(this.editor.customConfig.uploadImgHeaders=this.uploadImgHeaders),this.value&&this.setHtml(this.value),this.disabled&&this.disable(),this.listenChange()},filterMenu:function(t){return c.a.map(t,(function(t,e){return"source"===t?null:t}))},filterDisabledMenu:function(t,e){var a=t.join(",");return c()(e).forEach((function(t){a=a.replace(t,"").replace(",,",",")})),a.length&&","==a[0]&&a.substr(1,a.length),a.split(",")},insertImg:function(t){this.editor.command(null,"insertHtml","')},getHtml:function(){return this.editor.txt.html()},getText:function(){return this.editor.txt.text()},setHtml:function(t){this.editor.txt.html(t)},appendHtml:function(t){this.editor.txt.append(t)},clear:function(){this.editor.clear()},enable:function(){this.editor.enable()},disable:function(){this.editor.disable()},destroy:function(){this.editor.destroy()},undestroy:function(){this.editor.undestroy()},listenChange:function(){var t=this;this.editor.onchange=function(){t.$emit("change");var e="";t.getText()||(e=t.getHtml()),!1!==t.isRealtime&&t.$emit("input",e)}}},mounted:function(){var t=this;this.initSize(),setTimeout((function(){t.createEditor()}),100)}},u=l,d=a("2877"),f=Object(d["a"])(u,s,n,!1,null,null,null);e["a"]=f.exports},ab60:function(t,e,a){},aefa:function(t,e,a){"use strict";a("0239")},b199:function(t,e,a){"use strict";a.d(e,"m",(function(){return n})),a.d(e,"j",(function(){return i})),a.d(e,"u",(function(){return o})),a.d(e,"A",(function(){return r})),a.d(e,"x",(function(){return c})),a.d(e,"s",(function(){return l})),a.d(e,"h",(function(){return u})),a.d(e,"B",(function(){return d})),a.d(e,"w",(function(){return f})),a.d(e,"l",(function(){return m})),a.d(e,"y",(function(){return p})),a.d(e,"d",(function(){return h})),a.d(e,"b",(function(){return v})),a.d(e,"c",(function(){return k})),a.d(e,"o",(function(){return g})),a.d(e,"z",(function(){return b})),a.d(e,"v",(function(){return w})),a.d(e,"q",(function(){return _})),a.d(e,"r",(function(){return y})),a.d(e,"p",(function(){return j})),a.d(e,"f",(function(){return C})),a.d(e,"e",(function(){return T})),a.d(e,"n",(function(){return x})),a.d(e,"k",(function(){return O})),a.d(e,"a",(function(){return M})),a.d(e,"t",(function(){return S})),a.d(e,"i",(function(){return L})),a.d(e,"g",(function(){return D}));var s=a("22b6");function n(t){return s["a"].post("project/task",t)}function i(t){return s["a"].post("project/task/getListByTaskTag",t)}function o(t){return s["a"].post("project/task/selfList",t)}function r(t){return s["a"].post("project/task/taskSources",t)}function c(t){return s["a"].post("project/task/sort",t)}function l(t){return s["a"].post("project/task/save",t)}function u(t){return s["a"].post("project/task/edit",t)}function d(t){return s["a"].post("project/task/taskToTags",t)}function f(t){return s["a"].post("project/task/setTag",t)}function m(t,e){return s["a"].post("project/task/like",{like:e,taskCode:t})}function p(t,e){return s["a"].post("project/task/star",{star:e,taskCode:t})}function h(t,e,a){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return s["a"].post("project/task/createComment",{taskCode:t,comment:e,mentions:a,type:n})}function v(t){return s["a"].post("project/task/assignTask",t)}function k(t){return s["a"].post("project/task/batchAssignTask",t)}function g(t){return s["a"].post("project/task/read",{taskCode:t})}function b(t,e){return s["a"].post("project/task/taskDone",{taskCode:t,done:e})}function w(t,e){return s["a"].post("project/task/setPrivate",{taskCode:t,private:e})}function _(t){return s["a"].post("project/task/recycle",{taskCode:t})}function y(t){return s["a"].post("project/task/recycleBatch",t)}function j(t){return s["a"].post("project/task/recovery",{taskCode:t})}function C(t){return s["a"].post("project/task/delete",{taskCode:t})}function T(t){return s["a"].post("project/task/dateTotalForProject",t)}function x(t){return s["a"].post("project/task/taskLog",t)}function O(t){return s["a"].post("project/project/getLogBySelfProject",t)}function M(t){return s["a"].post("project/task/_taskWorkTimeList",t)}function S(t){return s["a"].post("project/task/saveTaskWorkTime",t)}function L(t){return s["a"].post("project/task/editTaskWorkTime",t)}function D(t){return s["a"].post("project/task/delTaskWorkTime",t)}},b3fd:function(t,e,a){},b7ed:function(t,e,a){"use strict";a("3d4a")},b83b:function(t,e,a){"use strict";a("7f7f");var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"task-table",attrs:{id:"task-table"}},[e("a-spin",{staticClass:"task-table-spin",attrs:{spinning:t.loading}},[e("div",[t.ready?e("a-table",{attrs:{columns:t.columns,"data-source":t.taskTableData,childrenColumnName:"tasks",rowKey:"code",customRow:t.rowClick,defaultExpandAllRows:!0,pagination:!1},scopedSlots:t._u([{key:"name",fn:function(a,s,n){return["task"==s.type?e("router-link",{attrs:{target:"_blank",to:"/project/space/task/".concat(s.project_code,"/detail/").concat(s.code)}},[s.done?[e("s",{staticClass:"muted"},[t._v(t._s(s.name))])]:[t._v("\n "+t._s(s.name)+"\n ")]],2):e("span",[t._v(t._s(s.name))])]}},{key:"sumKeyResult",fn:function(e,a,s){return["task"==a.type?[t._v("\n "+t._s(a.sumKeyResult)+"\n ")]:t._e()]}},{key:"source",fn:function(e,a,s){return["task"==a.type?[t._v("\n "+t._s(a.hasSource)+"个文件\n ")]:t._e()]}},{key:"beginTime",fn:function(a,s,n){return["task"==s.type?[e("a-dropdown",{attrs:{trigger:["click"],disabled:!!s.deleted},model:{value:s.showBeginTime,callback:function(e){t.$set(s,"showBeginTime",e)},expression:"task.showBeginTime"}},[s.deleted?e("div",{staticClass:"field-flex"},[e("a",{staticClass:"muted name",staticStyle:{margin:"0"}},[s.setBeginTime?[t._v(t._s(s.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"}},[s.setBeginTime?[t._v(t._s(s.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:s.showBeginTime},on:{ok:function(e){return t.doBeginTime(s,!0)}},model:{value:s.begin_time,callback:function(e){t.$set(s,"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(s,!1)}}},[t._v("清除")])])],2)],1)],1)]:t._e()]}},{key:"endTime",fn:function(a,s,n){return["task"==s.type?[e("a-dropdown",{attrs:{trigger:["click"],disabled:!!s.deleted},model:{value:s.showEndTime,callback:function(e){t.$set(s,"showEndTime",e)},expression:"task.showEndTime"}},[s.deleted?e("div",{staticClass:"field-flex"},[e("a",{staticClass:"muted name",staticStyle:{margin:"0"}},[s.setEndTime?[t._v(t._s(s.end_time_format))]:[t._v("设置截止时间")]],2)]):e("a-tooltip",{attrs:{mouseEnterDelay:.5,placement:"topLeft"}},[e("template",{slot:"title"},[e("span",[t._v("点击设置截止时间")])]),e("div",{staticClass:"field-flex"},[e("a",{staticClass:"muted name",staticStyle:{margin:"0"}},[s.setEndTime?[t._v(t._s(s.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:s.showEndTime},on:{ok:function(e){return t.doEndTime(s,!0)}},model:{value:s.end_time,callback:function(e){t.$set(s,"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(s,!1)}}},[t._v("清除")])])],2)],1)],1)]:t._e()]}},{key:"executor",fn:function(a,s,n){return["task"==s.type?[e("a-dropdown",{attrs:{trigger:["click"],disabled:!!s.deleted,placement:"bottomCenter"},model:{value:s.visibleTaskMemberMenu,callback:function(e){t.$set(s,"visibleTaskMemberMenu",e)},expression:"task.visibleTaskMemberMenu"}},[s.deleted?e("div",{staticClass:"field-flex"},[s.executor?[e("a-avatar",{attrs:{src:s.executor.avatar,icon:"user",size:"small"}}),e("a",{staticClass:"muted name"},[t._v(t._s(s.executor.name))])]:t._e(),s.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,placement:"topLeft"}},[e("template",{slot:"title"},[e("span",[t._v("点击设置执行者")])]),e("div",{staticClass:"field-flex"},[s.executor?[e("a-avatar",{attrs:{src:s.executor.avatar,icon:"user",size:"small"}}),e("a",{staticClass:"muted name"},[t._v(t._s(s.executor.name))])]:t._e(),s.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"},[s.visibleTaskMemberMenu?e("task-member-menu",{attrs:{projectCode:t.code,taskCode:s.code},on:{close:function(e){return t.init(!1)},inviteProjectMember:function(e){t.showInviteMember=!0,s.visibleTaskMemberMenu=!1}}}):t._e()],1)],1)]:t._e()]}}],null,!1,3060610604)}):t._e()],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=[],i=(a("ac6a"),a("c5f6"),a("c1df")),o=a.n(i),r=a("f66c"),c=a("4540"),l=a("e8d3"),u=a("d3a1"),d=a("81fe"),f=a("261e"),m=a("e507"),p=a("b199"),h=a("2f14"),v={name:"task-table",components:{ATextarea:f["a"],taskMemberMenu:r["a"],taskTagMenu:c["a"],projectMemberMenu:l["a"],inviteProjectMember:u["a"]},props:{projectCode:{type:[String],default:function(){return""}},width:{type:[String,Number],default:function(){return"1200"}}},data:function(){return{moment:o.a,ready:!1,loading:!1,code:this.projectCode,projectCodeCurrent:"",taskTableData:[],columns:[{title:"标题",dataIndex:"name",key:"name",scopedSlots:{customRender:"name"}},{title:"开始时间",dataIndex:"begin_time",key:"begin_time",scopedSlots:{customRender:"beginTime"}},{title:"截止时间",dataIndex:"end_time",key:"end_time",scopedSlots:{customRender:"endTime"}},{title:"执行人",dataIndex:"executor",key:"executor",scopedSlots:{customRender:"executor"}}],showInviteMember:!1}},created:function(){this.init()},mounted:function(){},filters:{formatLogTime:function(t){return Object(d["c"])(t)}},methods:{init:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];t&&(this.loading=!0),this.getTaskTree()},getTaskTree:function(){var t=this,e=this;Object(m["g"])({projectCode:this.code}).then((function(a){var s=a.data;s.forEach((function(t){t=e.formatTask(t),t.tasks&&t.tasks.length&&t.tasks.forEach((function(t){t=e.formatTask(t),t.tasks&&t.tasks.length&&t.tasks.forEach((function(t){t=e.formatTask(t),t.tasks&&t.tasks.length&&t.tasks.forEach((function(t){t=e.formatTask(t)}))}))}))})),t.taskTableData=t.formatTask(a.data),t.loading=!1,t.ready||(t.ready=!0)}))},formatTask:function(t){return"task"==t.type&&(t.visibleTaskMemberMenu=!1,t.showEndTime=!1,t.showBeginTime=!1,t.showRealTime=!1,t.tasks.length||delete t.tasks,t.end_time?(t.setEndTime=!0,t.end_time=o()(t.end_time)):(t.setEndTime=!1,t.end_time=o()(o()().format("YYYY-MM-DD")+" 18:00")),t.end_time_format=Object(d["b"])(t.end_time,!0),t.begin_time?(t.setBeginTime=!0,t.begin_time=o()(t.begin_time)):(t.setBeginTime=!1,t.begin_time=o()(o()().format("YYYY-MM-DD")+" 18:00")),t.begin_time_format=Object(d["b"])(t.begin_time,!0)),t},editTask:function(t,e){var a=this;e.taskCode=t.code,Object(p["h"])(e).then((function(t){var e=Object(h["a"])(t);if(!e)return!1;a.getTaskTree()}))},doEndTime:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.setEndTime=e,t.showEndTime=a;var s="";e?(s=o()(t.end_time).format("YYYY-MM-DD HH:mm"),t.end_time_format=o()(t.end_time).format("MM月DD日 HH:mm")):s="",this.editTask(t,{end_time:s})},doBeginTime:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.setBeginTime=e,t.showBeginTime=a;var s="";e?(s=o()(t.begin_time).format("YYYY-MM-DD HH:mm"),t.begin_time_format=o()(t.begin_time).format("MM月DD日 HH:mm")):s="",this.editTask(t,{begin_time:s})},rowClick:function(t,e){return{on:{click:function(a){if(console.log(t,e),"task"==t.type)t.id}}}}}},k=v,g=(a("f8d5b"),a("2877")),b=Object(g["a"])(k,s,n,!1,null,null,null);e["a"]=b.exports},bae8:function(t,e,a){t.exports=a.p+"img/logo.b83ac094.png"},baf2:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t._self._c;return e("a-modal",{staticClass:"task-detail-modal",attrs:{width:"min-content",closable:!1,visible:"",title:"",footer:null},on:{cancel:t.detailClose}},[e("task-detail",{attrs:{taskCode:t.code},on:{close:t.detailClose}}),e("div",[t._v("sss")])],1)},n=[],i=a("009f"),o={name:"task-detail-modal",components:{taskDetail:i["a"]},data:function(){return{loading:!1,code:this.$route.params.taskCode,projectCode:this.$route.params.code}},created:function(){console.log("加载"),this.init()},methods:{init:function(){this.loading=!0},detailClose:function(){var t=this.$route.query.from;t&&"?from=".concat(t),this.$router.push("/copysv")}}},r=o,c=(a("c224"),a("2877")),l=Object(c["a"])(r,s,n,!1,null,null,null);e["default"]=l.exports},c224:function(t,e,a){"use strict";a("36f9")},c24f:function(t,e,a){"use strict";a.d(e,"a",(function(){return c})),a.d(e,"y",(function(){return u})),a.d(e,"u",(function(){return d})),a.d(e,"h",(function(){return f})),a.d(e,"k",(function(){return m})),a.d(e,"n",(function(){return p})),a.d(e,"b",(function(){return h})),a.d(e,"w",(function(){return v})),a.d(e,"t",(function(){return k})),a.d(e,"z",(function(){return g})),a.d(e,"v",(function(){return b})),a.d(e,"p",(function(){return w})),a.d(e,"m",(function(){return _})),a.d(e,"o",(function(){return y})),a.d(e,"x",(function(){return j})),a.d(e,"A",(function(){return C})),a.d(e,"q",(function(){return T})),a.d(e,"s",(function(){return x})),a.d(e,"r",(function(){return O})),a.d(e,"d",(function(){return M})),a.d(e,"c",(function(){return S})),a.d(e,"l",(function(){return L})),a.d(e,"g",(function(){return D})),a.d(e,"e",(function(){return z})),a.d(e,"i",(function(){return P})),a.d(e,"f",(function(){return E})),a.d(e,"j",(function(){return N}));a("96cf"),a("ac6a");var s=a("1da1"),n=a("22b6"),i=a("a18c"),o=a("4360"),r=a("2f14");function c(t){return l.apply(this,arguments)}function l(){return l=Object(s["a"])(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",n["a"].post("project/login",e));case 1:case"end":return t.stop()}}),t)}))),l.apply(this,arguments)}function u(t){return n["a"].post("project/login/register",t)}function d(t){return n["a"].post("project/login/getCaptcha",{mobile:t})}function f(t){return n["a"].post("project/login/_getMailCaptcha",{email:t})}function m(t){return n["a"].post("project/login/_resetPasswordByMail",t)}function p(t){var e=t.code;return o["a"].dispatch("setCurrentOrganization",t),n["a"].post("project/index/changeCurrentOrganization",{organizationCode:e}).then((function(t){if(Object(r["a"])(t))return o["a"].dispatch("SET_MENU",t.data.menuList),o["a"].dispatch("SET_USER",t.data.member),o["a"].dispatch("windowLoading",!0),setTimeout((function(){var e=t.data.menuList;if(e){var a=i["a"].options.routes;e.forEach((function(t){a[0].children.push(Object(r["b"])(t)),t.children&&t.children.forEach((function(t){a[0].children.push(Object(r["b"])(t)),t.children&&t.children.forEach((function(t){a[0].children.push(Object(r["b"])(t))}))}))})),i["a"].addRoutes(a),o["a"].dispatch("windowLoading",!1)}}),500),Promise.resolve(t)}))}function h(t){return n["a"].post("project/account/_allList",t)}function v(t){return n["a"].post("project/account",t)}function k(t){return n["a"].post("project/account/forbid",{accountCode:t,status:0})}function g(t){return n["a"].post("project/account/resume",{accountCode:t,status:1})}function b(t){return n["a"].post("project/account/set_liaison_man",t)}function w(t){var e="project/account/add";return t.code&&(e="project/account/edit"),n["a"].post(e,t)}function _(t,e){return n["a"].post("project/account/auth",{id:t,auth:e})}function y(t){return n["a"].post("project/account/del",{accountCode:t})}function j(t){return n["a"].post("project/account/read",{code:t})}function C(t){return n["a"].post("project/account/_syncDetail",t)}function T(t){return n["a"].post("project/account/edit",t)}function x(t){return n["a"].post("project/index/editPersonal",t)}function O(t){return n["a"].post("project/index/editPassword",t)}function M(t){return n["a"].post("project/login/_bindMobile",t)}function S(t){return n["a"].post("project/login/_bindMail",t)}function L(t){return n["a"].post("project/login/_unbindDingtalk",t)}function D(t){return n["a"].post("project/login/_currentMember",t)}function z(t){return n["a"].post("project/login/_checkBindMail",t)}function P(t){return n["a"].post("project/account/_joinByInviteLink",{inviteCode:t})}function E(t){return n["a"].post("project/login/_checkLogin",t)}function N(t){return n["a"].post("project/login/_out",t)}},c3fe:function(t,e,a){"use strict";a("88ae")},c8f39:function(t,e,a){"use strict";a("4c84")},cbd1:function(t,e,a){},cd4b:function(t,e,a){"use strict";a.d(e,"a",(function(){return n})),a.d(e,"d",(function(){return i})),a.d(e,"e",(function(){return o})),a.d(e,"c",(function(){return r})),a.d(e,"b",(function(){return c})),a.d(e,"f",(function(){return l}));var s=a("22b6");function n(t){return s["a"].post("project/notify/_clearAll",t)}function i(t){return s["a"].post("project/notify",t)}function o(){return s["a"].post("project/notify/noReads")}function r(t){return s["a"].post("project/notify/delete",{id:t})}function c(t){return s["a"].post("project/notify/batchDel",{ids:t})}function l(t){return s["a"].post("project/notify/setReadied",{ids:t})}},d037:function(t,e,a){},d368:function(t,e,a){"use strict";a.d(e,"d",(function(){return i})),a.d(e,"a",(function(){return o})),a.d(e,"c",(function(){return r})),a.d(e,"b",(function(){return c}));var s=a("22b6"),n=a("4360");function i(t){return s["a"].post("project/organization",t)}function o(t){return s["a"].post("project/organization/_getOrgList",t).then((function(t){return t.data&&n["a"].dispatch("setOrganizationList",t.data),Promise.resolve(t)}))}function r(t){var e="project/organization/save";return t.organizationCode&&(e="project/organization/edit"),s["a"].post(e,t)}function c(t){return s["a"].post("project/organization/_quitOrganization",t)}},d3a1:function(t,e,a){"use strict";a("b54a"),a("7f7f");var s=function(){var t=this,e=t._self._c;return e("div",[e("a-modal",{staticClass:"invite-project-member",attrs:{width:500,title:t.actionInfo.modalTitle,footer:null},on:{cancel:t.cancel},model:{value:t.actionInfo.modalStatus,callback:function(e){t.$set(t.actionInfo,"modalStatus",e)},expression:"actionInfo.modalStatus"}},[e("div",{staticClass:"header"},[e("span",[t._v("账号邀请")]),e("a",{on:{click:t.createInviteLink}},[t._v("通过链接邀请")])]),e("div",{staticClass:"search-content m-b"},[e("a-input",{attrs:{placeholder:"输入昵称或邮箱查找"},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}},[e("a-icon",{attrs:{slot:"prefix",type:"search"},slot:"prefix"})],1)],1),e("vue-scroll",[e("div",{staticClass:"member-list"},[e("a-list",{staticClass:"project-list",attrs:{itemLayout:"horizontal",loading:t.searching,dataSource:t.list,locale:{emptyText:t.keyword&&t.keyword.length>1?"没有搜索到相关成员":""}},scopedSlots:t._u([{key:"renderItem",fn:function(a){return e("a-list-item",{},[e("span",{attrs:{slot:"actions"},slot:"actions"},[a.joined?[e("a-icon",{attrs:{type:"user"}}),e("span",[t._v(" 已加入")])]:e("a-button",{attrs:{size:"small",type:"dashed",icon:"user-add"},on:{click:function(e){return t.invite(a)}}},[t._v("邀请")])],2),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)])],1),e("a-modal",{staticClass:"invite-link",attrs:{width:600,title:t.linkInfo.modalTitle,footer:null},model:{value:t.linkInfo.modalStatus,callback:function(e){t.$set(t.linkInfo,"modalStatus",e)},expression:"linkInfo.modalStatus"}},[e("div",{staticClass:"header"},[e("p",[t._v("链接有效日期:"+t._s(t.linkInfo.overTime))]),e("a-input-search",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:t.linkInfo.link,expression:"linkInfo.link",arg:"copy"}],attrs:{size:"large",enterButton:"复制链接"},model:{value:t.linkInfo.link,callback:function(e){t.$set(t.linkInfo,"link",e)},expression:"linkInfo.link"}})],1)])],1)},n=[],i=(a("28a5"),a("386d"),a("c5f6"),a("2ef0")),o=a.n(i),r=a("c1df"),c=a.n(r),l=a("9f5d"),u=a("2f14"),d=a("82f8"),f={name:"inviteProjectMember",props:{value:{type:Boolean,default:function(){return!1}},projectCode:{type:[String,Number],default:function(){return""}}},data:function(){return{form:this.$form.createForm(this),actionInfo:{modalStatus:this.value,confirmLoading:!1,modalTitle:"邀请新成员"},linkInfo:{modalStatus:!1,confirmLoading:!1,modalTitle:"邀请成员",link:"",overTime:""},keyword:"",searching:!1,list:[]}},watch:{value:function(t){this.actionInfo.modalStatus=t},keyword:function(){this.search()}},created:function(){this.getMembers()},methods:{getMembers:function(){var t=this;Object(l["b"])({projectCode:t.projectCode}).then((function(e){t.list=e.data}))},invite:function(t){Object(l["c"])(t.memberCode,this.projectCode).then((function(e){var a=Object(u["a"])(e);a&&(t.joined=!0)}))},createInviteLink:function(){var t=this;this.linkInfo.link?this.linkInfo.modalStatus=!0:Object(d["b"])({inviteType:"project",sourceCode:this.projectCode}).then((function(e){var a=Object(u["a"])(e);a&&(t.linkInfo.modalStatus=!0,t.linkInfo.link=window.location.href.split("#")[0]+"#/invite_from_link/"+e.data.code,t.linkInfo.overTime=c()(e.data.code.over_time).format("YYYY年M月D日 HH:mm"))}))},search:o.a.debounce((function(){var t=this;if(this.keyword||(this.list=[]),this.keyword.length<=1)return this.getMembers(),!1;this.searching=!0,Object(l["f"])(this.keyword,this.projectCode).then((function(e){t.searching=!1,t.list=e.data}))}),500),cancel:function(){this.actionInfo.modalStatus=!1,this.$emit("input",this.actionInfo.modalStatus)}}},m=f,p=(a("2435"),a("2877")),h=Object(p["a"])(m,s,n,!1,null,null,null);e["a"]=h.exports},d8bc:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"a",(function(){return i}));var s=a("22b6");function n(t){return s["a"].post("project/task_member",t)}function i(t){return s["a"].post("project/task_member/inviteMemberBatch",t)}},e3cc:function(t,e,a){"use strict";a("7f7f");var s=function(){var t=this,e=t._self._c;return e("div",[e("a-tabs",{staticClass:"task-tag-index",attrs:{tabPosition:"left",defaultActiveKey:"1",animated:!1},model:{value:t.tabKey,callback:function(e){t.tabKey=e},expression:"tabKey"}},[t._l(t.taskTagList,(function(a){return e("a-tab-pane",{key:a.code},[e("div",{attrs:{slot:"tab"},slot:"tab"},[e("div",{staticClass:"tag-item"},[e("a-badge",{class:"badge-".concat(a.color),attrs:{status:"success"}}),t._v("\n "+t._s(a.name)+"\n ")],1)]),e("div",{staticClass:"config-content"},[e("vue-scroll",[e("div",{staticClass:"content-item"},[e("div",{staticClass:"infos"},[e("a-list",{attrs:{loading:{spinning:t.loading,delay:300}}},[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(),t._l(t.list,(function(a,s){return e("a-list-item",{key:s},[e("a-list-item-meta",[e("div",{staticClass:"task-list",class:{done:a.done},attrs:{slot:"title"},slot:"title"},[e("div",[e("router-link",{staticClass:"text-default task-content",attrs:{to:"/project/space/task/".concat(t.code,"/detail/").concat(a.code)}},[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 task-executor img-circle img-24 hinted m-r-sm",attrs:{src:a.executor.avatar,title:a.executor.name}})],2):e("a-avatar",{staticClass:"m-r-sm",attrs:{size:"small",icon:"user"}}),e("span",{staticClass:"task-name m-r"},[t._v(t._s(a.name))]),t._l(a.tags,(function(a){return e("span",{key:a.code,staticClass:"muted flex m-r tag-name"},[e("a-badge",{class:"badge-".concat(a.tag.color," m-r-xs"),attrs:{status:"success"}}),t._v("\n "+t._s(a.tag.name)+"\n ")],1)}))],2)],1),a.end_time?e("div",{staticClass:"label task-time",class:t.showTimeLabel(a.end_time)},[t._v("\n "+t._s(t.showTaskTime(a.begin_time,a.end_time))+"\n ")]):t._e()])])],1)}))],2)],1)])])],1)])})),t.loading||t.list.length?t._e():e("div",{staticClass:"m-t text-center"},[e("strong",[e("h2",[t._v("项目中还没有标签")])])])],2)],1)},n=[],i=a("2f14"),o=a("813b"),r=a("1b80"),c=a("81fe"),l=a("b199"),u=a("c1df"),d=a.n(u),f={name:"taskTag",props:{code:{type:[String],default:function(){return""}}},mixins:[r["a"]],data:function(){return{loading:!1,tabKey:"0",project:{},taskTagList:[],list:[],showLoadingMore:!1,loadingMore:!1}},watch:{code:function(){this.init()},tabKey:function(t){this.getTaskList()}},created:function(){this.init()},methods:{init:function(){var t=this;this.requestData.projectCode=this.code,t.getTaskTags()},getTaskTags:function(){var t=this;Object(o["c"])(t.requestData).then((function(e){t.taskTagList=e.data,e.data.length&&(t.tabKey=e.data[0].code)}))},getTaskList:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!this.tabKey)return!1;var e=this;e.loading=!0,t&&(this.list=[],this.pagination.page=1,this.pagination.pageSize=10,this.showLoadingMore=!1),Object(l["j"])({taskTagCode:this.tabKey}).then((function(t){e.list=e.list.concat(t.data.list),e.pagination.total=t.data.total,e.showLoadingMore=e.pagination.total>e.list.length,e.loading=!1,e.loadingMore=!1}))},onLoadMore:function(){this.loadingMore=!0,this.pagination.page++,this.getTaskList(!1)},showTaskTime:function(t,e){return Object(c["a"])(t,e)},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},deleteItem:function(t,e){var a=this;switch(this.tabKey){case"1":this.$confirm({title:"确定彻底删除任务?",content:"彻底删除任务后,该任务及其子任务将会被永久被删除。",okText:"彻底删除",okType:"danger",cancelText:"再想想",onOk:function(){return Object(o["a"])(t.code).then((function(s){Object(i["a"])(s)&&(a.list.splice(e,1),a.$emit("update",t))})),Promise.resolve()}});break;case"2":this.$confirm({title:"确认彻底删除该文件?",content:"彻底删除文件后,相关的关联资源将会失效。",okText:"彻底删除",okType:"danger",cancelText:"再想想",onOk:function(){return delFile(t.code).then((function(s){Object(i["a"])(s)&&(a.list.splice(e,1),a.$emit("update",t))})),Promise.resolve()}});break}}}},m=f,p=(a("aefa"),a("2877")),h=Object(p["a"])(m,s,n,!1,null,null,null);e["a"]=h.exports},e507:function(t,e,a){"use strict";a.d(e,"d",(function(){return n})),a.d(e,"g",(function(){return i})),a.d(e,"a",(function(){return o})),a.d(e,"h",(function(){return r})),a.d(e,"f",(function(){return c})),a.d(e,"e",(function(){return l})),a.d(e,"c",(function(){return u})),a.d(e,"b",(function(){return d}));var s=a("22b6");function n(t){return s["a"].post("project/task_stages",t)}function i(t){return s["a"].post("project/task_stages/taskTree",t)}function o(t){return s["a"].post("project/task_stages/_getAll",t)}function r(t){return s["a"].post("project/task_stages/tasks",t)}function c(t,e,a){return s["a"].post("project/task_stages/sort",{preCode:t,nextCode:e,projectCode:a})}function l(t){return s["a"].post("project/task_stages/save",t)}function u(t){return s["a"].post("project/task_stages/edit",t)}function d(t){return s["a"].post("project/task_stages/delete",{code:t})}},e8d3:function(t,e,a){"use strict";a("7f7f");var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"member-menu project-member-menu"},[e("a-spin",{attrs:{spinning:t.projectMemberLoading||t.taskMemberLoading}},[e("div",{staticClass:"search-content"},[e("a-input",{attrs:{size:"large",placeholder:"搜索"},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}},[e("a-icon",{attrs:{slot:"prefix",type:"search"},slot:"prefix"})],1)],1),e("div",{staticClass:"member-list"},[e("vue-scroll",[e("div",{directives:[{name:"show",rawName:"v-show",value:!t.keyword,expression:"!keyword"}],staticClass:"list-group"},[e("span",{staticClass:"title muted"},[t._v("参与者")]),e("a-list",{directives:[{name:"show",rawName:"v-show",value:t.taskMemberList.length,expression:"taskMemberList.length"}],staticClass:"list-content",attrs:{itemLayout:"horizontal",dataSource:t.taskMemberList},scopedSlots:t._u([{key:"renderItem",fn:function(a){return e("a-list-item",{staticClass:"member-list-item",class:{owner:a.is_owner},nativeOn:{click:function(e){return t.addToInvite(a.code,a.is_owner)}}},[e("span",{attrs:{slot:"actions"},slot:"actions"},[e("a-icon",{directives:[{name:"show",rawName:"v-show",value:t.showCheck(a.code),expression:"showCheck(item.code)"}],attrs:{type:"check"}})],1),e("a-list-item-meta",[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("div",{staticClass:"list-group"},[e("span",{staticClass:"title muted"},[t._v("其他成员")]),e("div",{staticClass:"member-list-item ant-list-item",on:{click:function(e){return t.addToInvite("all")}}},[e("div",{staticClass:"ant-list-item-meta"},[e("div",{staticClass:"ant-list-item-meta-avatar"},[e("a-avatar",{attrs:{icon:"user"}})],1),e("div",{staticClass:"ant-list-item-meta-content"},[e("h4",{staticClass:"ant-list-item-meta-title"},[e("span",[t._v("所有项目成员")])])])]),e("ul",{directives:[{name:"show",rawName:"v-show",value:t.showCheck("all"),expression:"showCheck('all')"}],staticClass:"ant-list-item-action"},[e("li",[e("span",[e("a-icon",{attrs:{type:"check"}})],1)])])]),e("a-list",{staticClass:"list-content",attrs:{itemLayout:"horizontal",dataSource:t.projectMemberList,locale:{emptyText:t.keyword&&t.keyword.length>1?"该成员不在项目成员列表中":""}},scopedSlots:t._u([{key:"renderItem",fn:function(a){return t.showMember(a)?e("a-list-item",{staticClass:"member-list-item",nativeOn:{click:function(e){return t.addToInvite(a.code,!1)}}},[e("span",{attrs:{slot:"actions"},slot:"actions"},[e("a-icon",{directives:[{name:"show",rawName:"v-show",value:t.showCheck(a.code),expression:"showCheck(item.code)"}],attrs:{type:"check"}})],1),e("a-list-item-meta",[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):t._e()}}],null,!0)})],1)])],1),e("div",{staticClass:"footer"},[e("a-button",{attrs:{type:"primary",size:"large",block:""},on:{click:t.inviteTaskMember}},[t._v("确定")])],1)])],1)},n=[],i=(a("20d6"),a("7514"),a("ac6a"),a("386d"),a("c5f6"),a("2ef0")),o=a.n(i),r=a("9f5d"),c=a("d8bc"),l={name:"projectMemberMenu",props:{projectCode:{type:[String,Number],default:function(){return""}},taskCode:{type:[String,Number],default:function(){return""}}},data:function(){return{keyword:"",searching:!1,taskMemberLoading:!0,projectMemberLoading:!0,showInviteMember:!1,taskMemberList:[],projectMemberList:[],listTemp:[],projectMemberListCopy:[],initAllMember:!1}},created:function(){this.init()},watch:{keyword:function(){this.search()}},methods:{init:function(){var t=this;this.projectMemberLoading=!0,this.taskMemberLoading=!0,this.projectCode&&Object(r["d"])({projectCode:this.projectCode,pageSize:300}).then((function(e){t.projectMemberList=e.data.list,t.projectMemberListCopy=e.data.list,t.projectMemberLoading=!1})),this.taskCode&&Object(c["b"])({taskCode:this.taskCode,pageSize:300}).then((function(e){t.taskMemberList=e.data.list,e.data.list.forEach((function(e){t.listTemp.push(e.code)})),t.taskMemberLoading=!1}))},showMember:function(t){var e=!0;return this.taskMemberList.forEach((function(a){t.code==a.code&&(e=!1)})),e},showCheck:function(t){if("all"==t&&!this.initAllMember)return!1;var e=this.listTemp.find((function(e){return e==t}));return!!e||void 0},addToInvite:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e)return!1;"all"==t&&(this.initAllMember=!0);var a=this.listTemp.findIndex((function(e){return e==t}));-1!==a?this.listTemp.splice(a,1):this.listTemp.push(t)},inviteTaskMember:function(){var t=this,e=[];this.taskMemberList.forEach((function(a){var s=t.listTemp.findIndex((function(t){return t==a.code}));-1===s&&e.push(a.code)})),this.listTemp.forEach((function(a){var s=t.taskMemberList.findIndex((function(t){return a==t.code}));-1===s&&e.push(a)})),e?Object(c["a"])({memberCodes:JSON.stringify(e),taskCode:this.taskCode}).then((function(){t.$emit("close")})):this.$emit("close")},search:o.a.debounce((function(){var t=this;if(this.keyword=this.keyword.trim(),this.keyword||(this.projectMemberList=JSON.parse(JSON.stringify(this.projectMemberListCopy))),this.keyword.length<=1)return!1;this.searching=!0,this.projectMemberList=this.projectMemberList.filter((function(e){return-1!=e.name.indexOf(t.keyword)}))}),500)}},u=l,d=a("2877"),f=Object(d["a"])(u,s,n,!1,null,null,null);e["a"]=f.exports},e9e0:function(t,e,a){},f66b:function(t,e,a){"use strict";a.d(e,"a",(function(){return n})),a.d(e,"b",(function(){return i}));var s=a("22b6");function n(t){return s["a"].post("project/project/positioning_list",{department_code:t})}function i(t){return s["a"].post("project/project/positioning_member",t)}},f66c:function(t,e,a){"use strict";a("7f7f");var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"member-menu"},[e("a-spin",{attrs:{spinning:t.listLoading||t.doListLoading}},[e("div",{staticClass:"search-content"},[e("a-input",{attrs:{size:"large",placeholder:"搜索"},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}},[e("a-icon",{attrs:{slot:"prefix",type:"search"},slot:"prefix"})],1)],1),e("div",{staticClass:"member-list"},[e("vue-scroll",[e("div",{directives:[{name:"show",rawName:"v-show",value:!t.keyword,expression:"!keyword"}],staticClass:"list-group"},[e("span",{staticClass:"title muted"},[t._v("执行者")]),t.doList.length||t.doListLoading?t._e():e("div",{staticClass:"member-list-item ant-list-item",on:{click:function(e){return t.assignTask(null)}}},[e("div",{staticClass:"ant-list-item-meta"},[e("div",{staticClass:"ant-list-item-meta-avatar"},[e("a-avatar",{attrs:{icon:"user"}})],1),e("div",{staticClass:"ant-list-item-meta-content"},[e("h4",{staticClass:"ant-list-item-meta-title"},[e("span",[t._v("未设置")])])])]),e("ul",{staticClass:"ant-list-item-action"},[e("li",[e("span",[e("a-icon",{attrs:{type:"check"}})],1)])])]),e("a-list",{directives:[{name:"show",rawName:"v-show",value:t.doList.length,expression:"doList.length"}],staticClass:"list-content",attrs:{itemLayout:"horizontal",dataSource:t.doList},scopedSlots:t._u([{key:"renderItem",fn:function(a){return e("a-list-item",{staticClass:"member-list-item"},[e("span",{attrs:{slot:"actions"},slot:"actions"},[e("a-icon",{directives:[{name:"show",rawName:"v-show",value:t.showCheck(a),expression:"showCheck(item)"}],attrs:{type:"check"}})],1),e("a-list-item-meta",[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("div",{staticClass:"list-group"},[e("span",{staticClass:"title muted"},[t._v("其他成员")]),t.doList.length?e("div",{staticClass:"member-list-item ant-list-item",on:{click:function(e){return t.assignTask(null)}}},[e("div",{staticClass:"ant-list-item-meta"},[e("div",{staticClass:"ant-list-item-meta-avatar"},[e("a-avatar",{attrs:{icon:"user"}})],1),e("div",{staticClass:"ant-list-item-meta-content"},[e("h4",{staticClass:"ant-list-item-meta-title"},[e("span",[t._v("待认领")])])])])]):t._e(),e("a-list",{staticClass:"list-content",attrs:{itemLayout:"horizontal",dataSource:t.list,locale:{emptyText:t.keyword&&t.keyword.length>1?"该成员不在任务成员列表中,你可以邀请他进来":""}},scopedSlots:t._u([{key:"renderItem",fn:function(a){return t.showMember(a)?e("a-list-item",{staticClass:"member-list-item",nativeOn:{click:function(e){return t.assignTask(a.code,a)}}},[e("a-list-item-meta",[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):t._e()}}],null,!0)})],1)])],1),e("div",{staticClass:"footer"},[e("a-button",{attrs:{type:"primary",size:"large",block:""},on:{click:t.inviteProjectMember}},[t._v("邀请新成员")])],1)])],1)},n=[],i=(a("ac6a"),a("386d"),a("c5f6"),a("2ef0")),o=a.n(i),r=a("9f5d"),c=a("d8bc"),l=a("b199"),u={name:"taskMemberMenu",props:{projectCode:{type:[String,Number],default:function(){return""}},taskCode:{type:[String,Number],default:function(){return""}},isCommit:{type:[Boolean],default:function(){return!0}}},data:function(){return{keyword:"",searching:!1,doListLoading:!1,listLoading:!1,showInviteMember:!1,doList:[],list:[],listTemp:[]}},created:function(){this.init()},watch:{keyword:function(){this.search()}},methods:{init:function(){var t=this;this.projectCode&&(this.listLoading=!0,Object(r["d"])({projectCode:this.projectCode,pageSize:300}).then((function(e){t.list=e.data.list,t.listTemp=e.data.list,t.listLoading=!1}))),this.taskCode&&(this.doListLoading=!0,Object(c["b"])({taskCode:this.taskCode,pageSize:300}).then((function(e){t.doList=e.data.list.filter((function(t){return t.is_executor})),t.doListLoading=!1})))},showMember:function(t){var e=!0;return this.doList.forEach((function(a){t.code==a.code&&(e=!1)})),e},showCheck:function(t){if(t.is_executor)return!0},assignTask:function(t){var e=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.isCommit?Object(l["b"])({taskCode:this.taskCode,executorCode:t}).then((function(){e.$emit("close",a)})):this.$emit("close",a)},inviteProjectMember:function(){this.$emit("inviteProjectMember")},search:o.a.debounce((function(){var t=this;if(this.keyword=this.keyword.trim(),this.keyword||(this.list=JSON.parse(JSON.stringify(this.listTemp))),this.keyword.length<=1)return!1;this.searching=!0,this.list=this.list.filter((function(e){return-1!=e.name.indexOf(t.keyword)}))}),500)}},d=u,f=a("2877"),m=Object(f["a"])(d,s,n,!1,null,null,null);e["a"]=m.exports},f8c7:function(t,e,a){"use strict";a("7f7f");var s=function(){var t=this,e=t._self._c;return t.currentProject?e("div",{attrs:{id:"project-select"}},[e("a-dropdown",{staticClass:"action-item",attrs:{trigger:["click"],placement:"bottomCenter"},model:{value:t.visibleMenu,callback:function(e){t.visibleMenu=e},expression:"visibleMenu"}},[e("a-tooltip",{attrs:{mouseEnterDelay:.3,title:t.currentProject.name}},[e("a",{staticClass:"project-select",staticStyle:{color:"#333"}},[e("span",[t._v(t._s(t.currentProject.name))]),e("span",{staticClass:"m-l-xs"},[e("a-icon",{attrs:{type:"down"}})],1)])]),e("div",{staticClass:"middle-menu member-menu project-select-menu",attrs:{slot:"overlay"},slot:"overlay"},[e("div",{staticClass:"search-content"},[e("a-input",{attrs:{size:"large",placeholder:"搜索"},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}},[e("a-icon",{attrs:{slot:"prefix",type:"search"},slot:"prefix"})],1)],1),e("div",{staticClass:"member-list"},[e("vue-scroll",[e("div",{staticClass:"list-group"},[e("a-list",{staticClass:"list-content",attrs:{itemLayout:"horizontal",dataSource:t.projectList,locale:{emptyText:t.keyword&&t.keyword.length>1?"没有找到该项目":""}},scopedSlots:t._u([{key:"renderItem",fn:function(a){return e("a-list-item",{staticClass:"member-list-item",nativeOn:{click:function(e){return t.changeProject(a.code)}}},[e("span",{attrs:{slot:"actions"},slot:"actions"},[e("a-icon",{directives:[{name:"show",rawName:"v-show",value:t.showCheck(a.code),expression:"showCheck(item.code)"}],attrs:{type:"check"}})],1),e("a-list-item-meta",[e("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(a.name))]),e("a-avatar",{attrs:{slot:"avatar",icon:"user",src:a.cover},slot:"avatar"})],1)],1)}}],null,!1,3141279394)})],1)])],1)])],1)],1):t._e()},n=[],i=(a("8e6e"),a("ac6a"),a("456d"),a("386d"),a("ade3")),o=a("2ef0"),r=a.n(o),c=a("2f62"),l=a("24d2"),u=a("1b80");function d(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 f(t){for(var e=1;e0&&void 0!==arguments[0])||arguments[0];this.loading=e,this.requestData.pageSize=50,this.requestData.archive=-1,Object(l["l"])(this.requestData).then((function(e){t.projectList=e.data.list,t.projectListCopy=e.data.list,t.projectTotal=e.data.total,t.loading=!1}))},changeProject:function(t){this.visibleMenu=!1,this.$router.push("/project/space/task/"+t)},showCheck:function(t){if(t==this.code)return!0},search:r.a.debounce((function(){var t=this;if(this.keyword=this.keyword.trim(),this.keyword||(this.projectList=JSON.parse(JSON.stringify(this.projectListCopy))),this.keyword.length<=1)return!1;this.projectList=this.projectList.filter((function(e){return-1!=e.name.indexOf(t.keyword)}))}),500),getPopup:function(){return document.getElementById("project-select")}}},p=m,h=(a("7606"),a("2877")),v=Object(h["a"])(p,s,n,!1,null,null,null);e["a"]=v.exports},f8d5b:function(t,e,a){"use strict";a("cbd1")},f93e:function(t,e,a){"use strict";a.d(e,"a",(function(){return s}));var s={PAGE_SIZE:20,PAGE_NUM:1,TASK_STATUS:[{id:0,name:"未开始",color:"rgba(0, 0, 0, 0.65)"},{id:1,name:"已完成",color:"#1890ff"},{id:2,name:"进行中",color:"#52c41a"},{id:3,name:"挂起",color:"#f5222d"},{id:4,name:"验收中",color:"#faad14"}]}},fe8e:function(t,e,a){},ff64:function(t,e,a){"use strict";a("2d94")}}); \ No newline at end of file diff --git a/js/app.b4b29fd9.js b/js/app.b4b29fd9.js deleted file mode 100644 index 9713ccf..0000000 --- a/js/app.b4b29fd9.js +++ /dev/null @@ -1 +0,0 @@ -(function(t){function e(e){for(var s,n,r=e[0],c=e[1],l=e[2],u=0,d=[];u"}},t._l(t.task.parentTasks,(function(a){return e("a-breadcrumb-item",{key:a.code},[e("a",{staticClass:"text-default",on:{click:function(e){return t.init(a.code)}}},[t._v(t._s(a.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",style:{"pointer-events":1==t.userInfo.authorize?"all":"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(a,s){return e("a-menu-item",{key:a.id},[e("div",{staticClass:"menu-item-content"},[e("span",{attrs:{color:"green"}},[t._v(t._s(a.name))]),e("a-icon",{directives:[{name:"show",rawName:"v-show",value:t.task.status==a.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(a){return e("div",{key:a.code,on:{click:function(e){return t.spliceCopied(t.index)}}},[e("a-avatar",{attrs:{src:a.avatar,icon:"user",size:"small"}}),e("a",{staticClass:"muted name"},[t._v(t._s(a.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(a,s){return e("div",{key:s,staticStyle:{"pointer-events":"none"}},[e("a-dropdown",{attrs:{trigger:["click"],placement:"bottomCenter"},model:{value:a.show,callback:function(e){t.$set(a,"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:a.avatar,icon:"user",size:"small"}}),e("a",{staticClass:"muted name"},[t._v(t._s(a.name))]),s!=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"},[a.show?e("task-member-menu",{attrs:{taskCode:t.code,projectCode:t.projectCodeCurrent,isCommit:!1},on:{inviteProjectMember:function(e){t.showInviteMember=!0,a.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(a,s){return e("a-list-item",{key:s},[e("a-list-item-meta",[e("a-avatar",{attrs:{slot:"avatar",size:"small",shape:"square",icon:"link",src:a.sourceDetail.file_url},slot:"avatar"}),e("div",{attrs:{slot:"title"},slot:"title"},[e("a",{staticClass:"muted",attrs:{target:"_blank",href:a.sourceDetail.file_url}},[t._v(t._s(a.title))])]),e("div",{attrs:{slot:"description"},slot:"description"})],1),e("a",{staticClass:"muted",attrs:{slot:"actions"},slot:"actions"},[e("span",[t._v(t._s(a.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:a.sourceDetail.file_url,expression:"item.sourceDetail.file_url"}],staticClass:"field-right-menu",attrs:{slot:"overlay"},on:{click:function(e){return t.doSource(e,a)}},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(a){return e("a-tooltip",{key:a.code,attrs:{mouseEnterDelay:.5}},[e("template",{slot:"title"},[e("span",[t._v(t._s(a.name)+" "),a.is_owner?e("span",[t._v(" · 创建者")]):t._e()])]),e("a-avatar",{staticClass:"member-item",attrs:{icon:"user",size:"small",src:a.avatar},on:{click:function(e){return t.routerLink("/members/profile/"+a.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(a){return e("div",{key:a.code,class:{"log-comment":a.is_comment,"list-item":!a.is_comment,"log-pass":"pass"==a.type,"log-reject":"reject"==a.type,"log-add":"add"==a.type}},[a.is_comment?t._e():[e("a-icon",{staticClass:"log-item",attrs:{type:a.icon}}),e("div",{staticClass:"log-item log-txt"},[e("div",[t._v(t._s(a.member.name)+" "),e("span",{domProps:{innerHTML:t._s(a.remark)}})]),a.content?e("div",{staticClass:"log-content img-preview-content",domProps:{innerHTML:t._s(a.content)}}):t._e()])],a.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:a.member.avatar}}),e("div",[t._v(t._s(a.member.name))]),"add"==a.type?e("div",{staticClass:"log-add-tips"},[t._v("提交")]):t._e(),"pass"==a.type?e("div",{staticClass:"log-pass-tips"},[t._v("通过")]):t._e(),"reject"==a.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(a.create_time))])]),e("span",{staticClass:"muted"},[t._v(t._s(t._f("formatLogTime")(a.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(a.content))}})])]):t._e(),a.is_comment?t._e():e("a-tooltip",{attrs:{mouseEnterDelay:.5}},[e("template",{slot:"title"},[e("span",[t._v(t._s(a.create_time))])]),e("span",[t._v(t._s(t._f("formatLogTime")(a.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(a){return e("div",{key:a.id,staticClass:"mentions-wrapper",on:{click:function(e){return t.selectMentionMember(a)}}},[e("a-avatar",{attrs:{src:a.avatar,icon:"user",size:28}}),e("span",{staticClass:"muted name m-l-xs"},[t._v(t._s(a.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=[],i=(a("8e6e"),a("456d"),a("a481"),a("4917"),a("ac6a"),a("7514"),a("6b54"),a("20d6"),a("ade3")),o=(a("c5f6"),a("2f62")),r=a("1157"),c=a.n(r),l=a("c1df"),u=a.n(l),d=a("f93e"),f=a("a897"),m=a("b199"),p=a("8870"),h=a("d8bc"),v=a("f66c"),k=a("4540"),g=a("e8d3"),b=a("d3a1"),w=a("68fe"),_=a("2f14"),y=a("97a8"),j=a("81fe"),C=a("261e"),T=a("7dc6");function x(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 O(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 a=this;console.log(t),console.log(t.fileList);var s=t.fileList,n=s.findIndex((function(t){return t.projectName==a.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(a){var s=a||window.event||e.callee.caller.arguments[0];13==s.keyCode&&s.ctrlKey&&t.createComment(1),("@"==s.key||"Digit2"==s.code&&"Process"==s.key&&s.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(j["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,a=this.departmentList.find((function(e){return e.code==t.key}));this.department=a,getliasonMan({searchType:4,type:1,departmentCode:a.code}).then((function(t){t.data.list[0]?e.liasionMan=t.data.list[0]:Object(y["b"])({title:"该部门没有联络员"},"notice","error",5)}))},changeRecipient:function(t){var e=this.task.copied_info.find((function(e){return e.code==t.code}));e?Object(y["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(O({f_key:(new Date).getTime(),show:!1},t))},changeExchangeShow:function(t){var e=this,a=this.task.exchange_info.findIndex((function(t){return 1==t.show}));if(-1!=a){this.task.exchange_info[a].show=!1;var s=JSON.parse(JSON.stringify(this.task.exchange_info));t?s[a]=O({f_key:(new Date).getTime(),show:!1},t):s.splice(a,1),this.$nextTick((function(){e.task.exchange_info=s}))}},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(m["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=u()(t.task.end_time)):(t.task.setEndTime=!1,t.task.end_time=u()(u()().format("YYYY-MM-DD")+" 18:00")),t.task.end_time_format=Object(j["b"])(t.task.end_time,!0),t.task.begin_time?(t.task.setBeginTime=!0,t.task.begin_time=u()(t.task.begin_time)):(t.task.setBeginTime=!1,t.task.begin_time=u()(u()().format("YYYY-MM-DD")+" 18:00")),t.task.begin_time_format=Object(j["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(a){console.error(a)}}))},getTaskLog:function(){var t=this;Object(m["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(m["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(m["a"])({taskCode:this.code}).then((function(e){t.workTimeList=e.data;var a=0;e.data&&(e.data.forEach((function(t){a+=Number(t.num)})),t.workTimeTotal=a)}))},getTaskMembers:function(){var t=this;this.clearMemberMenu(),Object(h["b"])({taskCode:this.code,pageSize:100}).then((function(e){t.taskMemberList=e.data.list,t.loading=!1}))},doTask:function(t){var e=this,a=this,s=t.key;switch(s){case"recycle":this.$confirm({title:"移到回收站",content:"您确定要把该任务移到回收站吗?",okText:"确定",okType:"danger",cancelText:"再想想",onOk:function(){return Object(m["q"])(a.code).then((function(t){var e=Object(_["a"])(t);if(!e)return!1;a.task.deleted=1,a.getTaskLog()})),Promise.resolve()}});break;case"star":return this.task.stared?this.task.stared=0:this.task.stared=1,Object(m["y"])(a.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(m["v"])(a.code,Number(!this.task.private)).then((function(t){var a=Object(_["a"])(t);if(!a)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 a=this,s=t.key;switch(s){case"unlink":this.$confirm({title:"取消关联",content:"您确定永久删除这个关联?",okText:"确定",okType:"danger",cancelText:"再想想",onOk:function(){return Object(p["a"])(e.code).then((function(t){var e=Object(_["a"])(t);if(!e)return!1;a.taskSources(),a.getTaskLog()})),Promise.resolve()}});break;case"copy":return Object(y["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 a=Object(_["a"])(e);if(!a)return!1;t.getTaskLog()})),t.task.deleted=0,Promise.resolve()}})},copyLink:function(){Object(y["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},taskDone:function(t,e,a){var s=this,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"self";e=e?1:0,Object(m["z"])(t,e).then((function(t){var i=Object(_["a"])(t);if(!i)return!1;s.getTaskLog(),"self"==n?s.task.done=e:s.childTaskList[a].done=e,s.getTask(),s.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 a="";t?(a=u()(this.task.begin_time).format("YYYY-MM-DD HH:mm"),this.task.begin_time_format=u()(this.task.begin_time).format("MM月DD日 HH:mm")):a="",this.editTask({begin_time:a})},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 a="";t?(a=u()(this.task.end_time).format("YYYY-MM-DD HH:mm"),this.task.end_time_format=u()(this.task.end_time).format("MM月DD日 HH:mm")):a="",this.editTask({end_time:a})},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(m["h"])(t).then((function(t){var a=Object(_["a"])(t);if(!a)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(a){}},doContent:function(){var t=this,e=this.$refs.vueWangeditor.getHtml(),a={taskCode:this.code,description:e};Object(m["h"])(a).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,a=this.comment.trim();if(!a)return!1;a+=" ";var s=/(@[^@]+) /g,n=a.match(s);n&&n.forEach((function(e){var a=e.substring(1,e.length-1);-1===t.mentionsList.findIndex((function(t){return t==a}))&&t.mentionsList.push(a)})),Object(m["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],a=c()(".description-txt");if(e||(t?(this.showMoreDesc=!0,a.css("max-height",(function(){return"100%"}))):(this.showMoreDesc=!1,a.css("max-height",(function(){return"300px"})))),e){var s=a.height();return s>=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(m["s"])(e).then((function(e){var a=Object(_["a"])(e);if(!a)return!1;t.childTaskName="",t.getChildTasks(),t.getTaskLog()}))},getChildTasks:function(){var t=this;Object(m["m"])({pcode:this.code,pageSize:100,deleted:0}).then((function(e){var a=[];e.data.list.forEach((function(t){t.visibleChildTaskMemberMenu=!1,a.push(t)})),t.childTaskList=a}))},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 a=this;Object(m["w"])({taskCode:this.task.code,tagCode:t.code}).then((function(){a.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:u()(t.begin_time),content:t.content})}))):(this.workTimeDo.form.resetFields(),this.workTimeDo.info=null)},deleteWorkTime:function(t,e){var a=this;this.$confirm({title:"删除工时记录",content:"确定要删除工时记录吗?",okText:"确定",okType:"danger",cancelText:"再想想",onOk:function(){return Object(m["g"])({code:t.code}).then((function(s){Object(_["a"])(s)&&(a.workTimeList.splice(e,1),a.workTimeTotal-=t.num)})),Promise.resolve()}})},workTimePlainHandleSubmit:function(){var t=this;this.plainWorkTime.form.validateFields((function(e,a){e||(t.editTask({work_time:a.work_time}),t.plainWorkTime.modalStatus=!1)}))},workTimeHandleSubmit:function(){var t=this;this.workTimeDo.form.validateFields((function(e,a){if(!e){t.workTimeDo.confirmLoading=!0;var s={beginTime:a.begin_time.format("YYYY-MM-DD HH:mm"),num:a.num,content:a.content,taskCode:t.code};t.workTimeDo.info?(s.code=t.workTimeDo.info.code,Object(m["i"])(s).then((function(e){t.workTimeDo.confirmLoading=!1,Object(_["a"])(e)&&(t.workTimeDo.modalStatus=!1,t.getTaskWorkTimeList())}))):Object(m["t"])(s).then((function(e){t.workTimeDo.confirmLoading=!1,Object(_["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(T["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,a=c()(window).height()-150,s=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),a+=85,s+=85,c()(".content-left").css("height",a+"px"),c()(".log-wrap").css("height",s+"px")):(e>t&&(e=t),c()(".task-detail").css("width",e),c()(".content-left").css("height",a+"px"),c()(".log-wrap").css("height",s+"px"))}}},P=z,E=(a("7060"),a("2877")),N=Object(E["a"])(P,s,n,!1,null,null,null);e["a"]=N.exports},"019e":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("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:"24vw","min-width":"300px"},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()]),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,n){return[!a.done&&a.canRead?e("div",{key:a.code,staticClass:"task task-card ui-sortable-handle",class:t.showTaskPri(a.pri),attrs:{index:n,id:a.code},on:{click:function(e){return e.stopPropagation(),t.taskDetail(a.code,s,a.project_code)}}},[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",staticStyle:{"font-size":"17px"}},[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-content-wrapper"},[e("div",{staticClass:"task-text",style:{overflowWrap:"anywhere"}},[t._v("\n "+t._s(t.domPaser(a.description))+"\n ")])]),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)]),e("div",{staticClass:"task-content-wrapper",staticStyle:{display:"flex","justify-content":"space-between"}},[e("div",{staticClass:"task-tips"},[t._v("\n 发布时间: "+t._s(a.create_time)+"\n ")]),a.timeout?e("div",{staticClass:"task-tips",staticStyle:{color:"red"}},[t._v("\n 已逾期: "+t._s(a.timeout)+"\n ")]):t._e()]),e("div",{staticClass:"task-content-wrapper",staticStyle:{display:"flex"}},[e("span",[t._v("处理部门: "+t._s(a.department_name))])]),e("div",{staticClass:"task-content-wrapper",staticStyle:{display:"flex","flex-wrap":"wrap"}},[e("span",{staticStyle:{"padding-right":"10px"}},[t._v("抄送:")]),t._l(a.copied_info,(function(a,s){return e("div",{key:s,staticStyle:{"margin-right":"10px"}},[e("img",{staticClass:"avatar img-circle img-24 hinted",staticStyle:{"margin-right":"5px"},attrs:{src:a.avatar,title:a.name}}),e("span",[t._v(t._s(a.name))])])}))],2),e("div",{staticClass:"task-content-wrapper",staticStyle:{display:"flex","flex-wrap":"wrap"}},[e("span",{staticStyle:{"padding-right":"10px"}},[t._v("工作流转: ")]),t._l(a.exchange_info,(function(a,s){return e("div",{key:s,staticStyle:{"margin-right":"10px"}},[e("img",{staticClass:"avatar img-circle img-24 hinted",staticStyle:{"margin-right":"5px"},attrs:{src:a.avatar,title:a.name}}),e("span",[t._v(t._s(a.name))]),e("span",{staticStyle:{"margin-left":"5px"}},[t._v(t._s(">>"))])])}))],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,n){return[e("div",{key:a.code,staticClass:"task task-card ui-sortable-handle",class:t.showTaskPri(a.pri),attrs:{index:n,id:a.code},on:{click:function(e){return e.stopPropagation(),t.taskDetail(a.code,s,a.project_code)}}},[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",staticStyle:{"font-size":"17px"}},[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-content-wrapper"},[e("div",{staticClass:"task-text",style:{overflowWrap:"anywhere"}},[t._v("\n "+t._s(t.domPaser(a.description))+"\n ")])]),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)]),e("div",{staticClass:"task-content-wrapper",staticStyle:{display:"flex","justify-content":"space-between"}},[e("div",{staticClass:"task-tips"},[t._v("\n 发布时间: "+t._s(a.create_time)+"\n ")]),a.timeout?e("div",{staticClass:"task-tips",staticStyle:{color:"red"}},[t._v("\n 已逾期: "+t._s(a.timeout)+"\n ")]):t._e()]),e("div",{staticClass:"task-content-wrapper",staticStyle:{display:"flex"}},[e("span",[t._v("处理部门: "+t._s(a.department_name))])]),e("div",{staticClass:"task-content-wrapper",staticStyle:{display:"flex"}},[e("span",[t._v("抄送: ")]),t._l(a.copied_info,(function(a,s){return e("div",{key:s,staticStyle:{"margin-right":"10px"}},[e("img",{staticClass:"avatar img-circle img-24 hinted",staticStyle:{"margin-right":"5px"},attrs:{src:a.avatar,title:a.name}}),e("span",[t._v(t._s(a.name))])])}))],2),e("div",{staticClass:"task-content-wrapper",staticStyle:{display:"flex"}},[e("span",[t._v("工作流转: ")]),t._l(a.exchange_info,(function(a,s){return e("div",{key:s,staticStyle:{"margin-right":"10px"}},[e("img",{staticClass:"avatar img-circle img-24 hinted",staticStyle:{"margin-right":"5px"},attrs:{src:a.avatar,title:a.name}}),e("span",[t._v(t._s(a.name))]),e("span",{staticStyle:{"margin-left":"5px"}},[t._v(t._s(">>"))])])}))],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)]}))],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()),t.pages[s]>=0?e("div",{staticStyle:{color:"#888","text-align":"center",cursor:"pointer"},on:{click:function(e){return t.loadMoreStage(a,s)}}},[t._v("查看更多")]):e("div",{staticStyle:{color:"#888","text-align":"center",cursor:"pointer"}},[t._v("没有更多了")])])],1)])],1)])})),e("div",{staticClass:"scrum-stage",staticStyle:{width:"24vw","min-width":"300px"}},[e("header",{directives:[{name:"show",rawName:"v-show",value:!0,expression:"true"}],staticClass:"scrum-stage-header ui-sortable-handle"},[e("div",{staticClass:"stage-name hinted"},[t._v("\n 消息\n ")])]),e("div",{staticClass:"scrum-stage-wrap ui-sortable",class:{"hidden-creator-bottom":!0}},[e("vue-scroll",{ref:"3-stage",attrs:{ops:t.scrollOps}},[e("section",{staticClass:"scrum-stage-content thin-scroll",attrs:{id:3,"task-type-index":3}},[e("a-spin",{attrs:{wrapperClassName:"tasks-loading",spinning:!1}},[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(t.noticeList,(function(a,s){return e("div",{key:s,staticClass:"task task-card ui-sortable-handle",staticStyle:{padding:"10px","flex-direction":"column"}},[e("div",{staticStyle:{display:"flex","justify-content":"space-between",width:"100%"}},[e("div",[t._v(t._s(a.title))]),e("div",[t._v(t._s(a.create_time))])]),e("div",{staticStyle:{color:"#fff","font-size":"13px","background-color":"#1890ff","border-radius":"5px",padding:"1px 3px"}},[t._v("任务: "+t._s(a.content))])])})),0),t.pages[3]>=0?e("div",{staticStyle:{color:"#888","text-align":"center",cursor:"pointer"},on:{click:t.getNotifyList}},[t._v("查看更多")]):e("div",{staticStyle:{color:"#888","text-align":"center",cursor:"pointer"}},[t._v("没有更多了")])])],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)},n=[],i=(a("8e6e"),a("456d"),a("2909")),o=(a("7514"),a("20d6"),a("28a5"),a("55dd"),a("ac6a"),a("ade3")),r=a("2f62"),c=a("2ef0"),l=a.n(c),u=a("c1df"),d=a.n(u),f=a("f93e"),m=a("b76a"),p=a.n(m),h=a("f8c7"),v=a("d3a1"),k=a("58bf"),g=a("51e2"),b=a("b83b"),w=a("e3cc"),_=a("1d80"),y=a("e507"),j=a("24d2"),C=a("9f5d"),T=a("b199"),x=a("2f14"),O=a("81fe"),M=a("4200"),S=a("97a8"),L=a("cd4b");function D(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 z(t){for(var e=1;e0&&void 0!==arguments[0])||arguments[0],a=this;Object(y["d"])({projectCode:this.code,pageSize:30}).then((function(s){var n=[];if(e?t.taskStages=n=s.data.list:s.data.list.forEach((function(t){t.tasksLoading=!1,n.push(t)})),n){a.taskSearchParams;n.forEach((function(t,s){t.page=1,a.getTasks(t,s,e)}))}}))},getTasks:function(t){var e=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,s=arguments.length>2?arguments[2]:void 0,n=this.taskSearchParams,i={};i={stageCode:"1",type:"all",page:this.pages[a]},i=Object.assign(i,n),0==a&&(i.type_name="进行中"),1==a&&(i.type_name="验收中"),2==a&&(i.type_name="已完成"),Object(y["h"])(i).then((function(n){var i=0;n.data.forEach((function(e){e.canRead||i++,t.doneTasks.push(e)})),t.canNotReadCount=i,t.tasksLoading=!1,t.tasks=n.data,n.data.length<10?e.pages[a]=-1:e.pages[a]++,s||e.$set(e.taskStages,a,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(S["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(T["s"])(a.task).then((function(s){a.createTaskLoading=!1;var n=Object(x["a"])(s);if(n){a.$message.destroy();var i=a.taskStages[t];i.tasks.push(s.data),a.taskStages[t].unDoneTasks.push(s.data),a.task={},e.taskDetail(s.data.code,t,task.project_code),console.log(z({},s.data))}})).catch((function(){a.createTaskLoading=!1}))},taskDone:function(t,e,a,s){var n=this,i=null,o=this.taskStages[e].unDoneTasks,r=this.taskStages[e].doneTasks;if(i=s?o[a]:r[a],i.hasUnDone)return!1;i.done=s,s?(o.splice(a,1),r.push(i),r=r.sort((function(t,e){return t.sort===e.sort?t.id_num-e.id_num:t.sort-e.sort}))):(r.splice(a,1),o.push(i),o=o.sort((function(t,e){return t.sort===e.sort?t.id_num-e.id_num:t.sort-e.sort}))),Object(T["z"])(t,s).then((function(t){var e=Object(x["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,a=this,s=t.key.split("_"),n=s[s.length-2],i=s[s.length-1],o=s[0];switch(o){case"editStage":this.stageModal.stageCode=n,this.stageModal.stageIndex=i,this.$nextTick((function(){e.stageModal.form.setFieldsValue({name:e.taskStages[i].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[i].tasks=[],a.$set(a.taskStages[i],"doneTasks",[]),Object(T["r"])({stageCode:n}).then((function(t){var e=Object(x["a"])(t);if(!e)return!1;a.$set(a.taskStages[i],"doneTasks",[]),a.$set(a.taskStages[i],"unDoneTasks",[])})),Promise.resolve()}});break;case"setEndTime":this.set_type_endTime_modal=!0;break;case"setExecutor":this.projectMemberModal.currentStageIndex=i,this.projectMemberModal.modalStatus=!0;break;case"delStage":if(this.taskStages[i].tasks.length>0)return this.$warning({title:"删除列表",content:"请先清空此列表上的任务,然后再删除这个列表",okText:"确定"}),!1;this.$confirm({title:"删除列表",content:"您确定要永远删除这个列表吗?",okText:"删除",okType:"danger",cancelText:"再想想",onOk:function(){return Object(y["b"])(n),a.taskStages.splice(i,1),Promise.resolve()}});break}},creteStage:function(){var t=this;if(!this.stageName)return this.$message.warning("请输入列表名称",2),!1;Object(y["e"])({name:this.stageName,projectCode:this.code}).then((function(e){var a=Object(x["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(y["c"])({name:e.name,stageCode:this.stageModal.stageCode}).then((function(a){var s=Object(x["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(T["c"])({taskCodes:JSON.stringify(s),executorCode:t.code}).then((function(t){if(e.projectMemberModal.modalStatus=!1,!Object(x["a"])(t))return!1;Object(y["h"])({stageCode:"1",type:"all"}).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(O["a"])(t,e)},taskDetail:function(t,e,a){window.open("/#/project/space/task/".concat(a,"/detail/").concat(t,"?from=").concat(e))},stageSort:function(t){var e=this.getPreAndNextCode(t);Object(y["f"])(e[0],e[1],this.code)},getPreAndNextCode:function(t){for(var e=t.clone.getAttribute("id"),a=[],s="",n=0,i=t.to.children.length;n0&&void 0!==arguments[0]?arguments[0]:"",e=new DOMParser,a=e.parseFromString(t,"text/html");return a.body.textContent},loadMoreStage:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.getTasks(t,e,!0)},getNotifyList:function(){var t=this;Object(L["d"])({page:this.pages[3],pageSize:25,type:"system"}).then((function(e){t.noticeList=[].concat(Object(i["a"])(t.noticeList),Object(i["a"])(e.data.list)),e.data.list.length<25?t.pages[3]=-1:t.pages[3]++}))}}},E=P,N=(a("59d2"),a("2877")),I=Object(N["a"])(E,s,n,!1,null,null,null);e["default"]=I.exports},"0239":function(t,e,a){},"0bc3":function(t,e,a){},"17bb":function(t,e,a){},"1b80":function(t,e,a){"use strict";e["a"]={data:function(){return{pagination:{page:1,pageSize:10,total:0,showTotal:function(t,e){return"共 ".concat(t," 条")}}}},computed:{requestData:function(){return{page:this.pagination.page,pageSize:this.pagination.pageSize}}},methods:{init:function(){},pageChange:function(t){this.pagination.page=t,this.requestData.page=t.current,this.init()}}}},"1d80":function(t,e,a){"use strict";a("7f7f");var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"task-search"},[e("a-spin",{attrs:{spinning:t.loading}},[e("div",{staticClass:"search-content"},[e("a-form",{staticClass:"m-t-md",attrs:{form:t.form},on:{submit:function(e){return e.preventDefault(),t.handleSubmit.apply(null,arguments)}}},[e("a-form-item",{attrs:{label:"工单名称",colon:!1,labelCol:{span:6},wrapperCol:{span:18}}},[e("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["title"],expression:"[\n 'title',\n ]"}],attrs:{placeholder:"搜索项目内任务"}})],1),e("a-form-item",{attrs:{label:"执行者",colon:!1,labelCol:{span:6},wrapperCol:{span:18}}},[e("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["executor"],expression:"[\n 'executor',\n ]"}],attrs:{mode:"multiple",showSearch:"",allowClear:"",placeholder:"请选择",optionFilterProp:"children"}},t._l(t.projectMemberList,(function(a){return e("a-select-option",{key:a.code},[e("div",{staticClass:"task-search-member-item"},[e("a-avatar",{staticClass:"m-r-sm",attrs:{size:24,icon:"user",src:a.avatar}}),e("div",[e("div",[t._v(t._s(a.name))]),e("div",{staticClass:"muted"},[t._v(t._s(a.email))])])],1)])})),1)],1),e("a-form-item",{attrs:{label:"创建者",colon:!1,labelCol:{span:6},wrapperCol:{span:18}}},[e("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["creator"],expression:"[\n 'creator',\n ]"}],attrs:{mode:"multiple",showSearch:"",allowClear:"",placeholder:"请选择",optionFilterProp:"children"}},t._l(t.projectMemberList,(function(a){return e("a-select-option",{key:a.code},[e("div",{staticClass:"task-search-member-item"},[e("a-avatar",{staticClass:"m-r-sm",attrs:{size:24,icon:"user",src:a.avatar}}),e("div",[e("div",[t._v(t._s(a.name))]),e("div",{staticClass:"muted"},[t._v(t._s(a.email))])])],1)])})),1)],1),e("a-form-item",{attrs:{label:"是否完成",colon:!1,labelCol:{span:6},wrapperCol:{span:18}}},[e("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["done",{initialValue:-1}],expression:"[\n 'done',\n {initialValue: -1}\n\n ]"}],attrs:{allowClear:"",placeholder:"请选择",optionFilterProp:"children"}},[e("a-select-option",{key:-1},[t._v("全部")]),e("a-select-option",{key:1},[t._v("是")]),e("a-select-option",{key:0},[t._v("否")])],1)],1),e("a-form-item",{attrs:{label:"优先级",colon:!1,labelCol:{span:6},wrapperCol:{span:18}}},[e("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["pri"],expression:"[\n 'pri',\n ]"}],attrs:{mode:"multiple",showSearch:"",allowClear:"",placeholder:"请选择",optionFilterProp:"children"}},[e("a-select-option",{key:0},[t._v("普通")]),e("a-select-option",{key:1},[t._v("紧急")]),e("a-select-option",{key:2},[t._v("非常紧急")])],1)],1),e("a-form-item",{attrs:{label:"执行状态",colon:!1,labelCol:{span:6},wrapperCol:{span:18}}},[e("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["status"],expression:"[\n 'status',\n ]"}],attrs:{mode:"multiple",showSearch:"",allowClear:"",placeholder:"请选择",optionFilterProp:"children"}},t._l(t.taskStatusList,(function(a,s){return e("a-select-option",{key:a.id},[t._v(t._s(a.name))])})),1)],1),e("a-form-item",{attrs:{label:"截止日期",colon:!1,labelCol:{span:6},wrapperCol:{span:18}}},[e("a-range-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["end_time"],expression:"[\n 'end_time',\n ]"}],staticStyle:{width:"100%"},attrs:{allowClear:"",format:"YYYY-MM-DD"}})],1),e("a-form-item",{attrs:{label:"创建日期",colon:!1,labelCol:{span:6},wrapperCol:{span:18}}},[e("a-range-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["create_time"],expression:"[\n 'create_time',\n ]"}],staticStyle:{width:"100%"},attrs:{allowClear:"",format:"YYYY-MM-DD"}})],1),e("a-form-item",{attrs:{label:"完成日期",colon:!1,labelCol:{span:6},wrapperCol:{span:18}}},[e("a-range-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["done_time"],expression:"[\n 'done_time',\n ]"}],staticStyle:{width:"100%"},attrs:{allowClear:"",format:"YYYY-MM-DD"}})],1),e("a-form-item",{attrs:{label:"开始日期",colon:!1,labelCol:{span:6},wrapperCol:{span:18}}},[e("a-range-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["begin_time"],expression:"[\n 'begin_time',\n ]"}],staticStyle:{width:"100%"},attrs:{allowClear:"",format:"YYYY-MM-DD"}})],1)],1),e("div",{staticClass:"footer m-t-md"},[e("a-button",{staticClass:"m-r",attrs:{type:"primary",size:"large"},on:{click:t.handleSubmit}},[t._v("搜索")]),e("a-button",{attrs:{size:"large"},on:{click:t.resetForm}},[t._v("重置")])],1)],1)])],1)},n=[],i=(a("c5f6"),a("2ef0"),a("c1df")),o=a.n(i),r=a("9f5d"),c=a("e507"),l=(a("97a8"),a("f93e")),u={name:"taskSearch",props:{projectCode:{type:[String,Number],default:function(){return""}}},data:function(){return{moment:o.a,form:this.$form.createForm(this),loading:!1,projectMemberList:[],taskStageList:[],taskStatusList:l["a"].TASK_STATUS}},watch:{projectCode:function(){this.init()}},created:function(){this.init()},methods:{init:function(){this.projectCode&&(this.resetForm(),this.loading=!0,this.getProjectMemberList(),this.getTaskStageList())},getProjectMemberList:function(){var t=this;Object(r["d"])({projectCode:this.projectCode,pageSize:300}).then((function(e){t.projectMemberList=e.data.list,t.loading=!1}))},getTaskStageList:function(){var t=this;Object(c["a"])({projectCode:this.projectCode}).then((function(e){t.taskStageList=e.data,t.loading=!1}))},resetForm:function(){this.form.resetFields()},handleSubmit:function(){var t=this;this.form.validateFields((function(e,a){if(!e){var s=t.form.getFieldsValue();s.executor=JSON.stringify(s.executor),s.creator=JSON.stringify(s.creator),s.joiner=JSON.stringify(s.joiner),s.status=JSON.stringify(s.status),console.log(s),s.end_time&&s.end_time.length?s.endTime=JSON.stringify([o()(s.end_time[0]).format("YYYY-MM-DD"),o()(s.end_time[1]).format("YYYY-MM-DD")]):s.endTime=void 0,s.begin_time&&s.begin_time.length?s.beginTime=JSON.stringify([o()(s.begin_time[0]).format("YYYY-MM-DD"),o()(s.begin_time[1]).format("YYYY-MM-DD")]):s.beginTime=void 0,s.create_time&&s.create_time.length?s.createTime=JSON.stringify([o()(s.create_time[0]).format("YYYY-MM-DD"),o()(s.create_time[1]).format("YYYY-MM-DD")]):s.createTime=void 0,s.done_time&&s.done_time.length?s.doneTime=JSON.stringify([o()(s.done_time[0]).format("YYYY-MM-DD"),o()(s.done_time[1]).format("YYYY-MM-DD")]):s.doneTime=void 0,console.log(s),t.$emit("search",s)}}))}}},d=u,f=(a("c8f39"),a("2877")),m=Object(f["a"])(d,s,n,!1,null,null,null);e["a"]=m.exports},"1e4b":function(t,e,a){"use strict";a.r(e);a("6b54");var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"index"},[e("a-spin",{attrs:{spinning:t.windowLoading}},[e("a-layout",{class:t.layoutClass,attrs:{id:"layout"}},[e("a-layout-header",{class:{collapsed:t.collapsed}},[e("div",{staticClass:"logo",on:{click:t.toHome}},[e("img",{staticClass:"logo-img",attrs:{src:a("bae8"),alt:""}}),t.system?e("span",{staticClass:"title"},[t._v("\n "+t._s(t.system.app_name)+"\n "),e("span",{staticClass:"version"},[t._v(t._s(t.system.app_version))])]):t._e()]),e("a-menu",{style:{lineHeight:"63px",paddingLeft:"15px"},attrs:{mode:"horizontal"},on:{click:t.menuModelClick,openChange:t.onModelOpenChange},model:{value:t.selectedModelKeys,callback:function(e){t.selectedModelKeys=e},expression:"selectedModelKeys"}},t._l(t.menu,(function(a,s){return e("a-menu-item",{key:a.id.toString(),attrs:{disabled:!a.status}},[a.icon?e("a-icon",{attrs:{type:a.icon}}):t._e(),e("span",[t._v(t._s(a.title))])],1)})),1),e("div",{staticClass:"right-menu"},[t.organizationList.length>1?e("div",{staticClass:"action action-organization"},[e("header-select")],1):t._e(),e("div",{staticClass:"action"},[e("header-notice")],1),e("div",{staticClass:"action action-avatar"},[e("header-avatar")],1)])],1),e("a-layout",{staticStyle:{"padding-top":"65px"}},[e("a-sider",{attrs:{mode:"inline",breakpoint:"md",collapsible:""},model:{value:t.collapsed,callback:function(e){t.collapsed=e},expression:"collapsed"}},t._l(t.menus,(function(a){return e("a-menu",{key:a.id.toString(),attrs:{theme:t.theme,openKeys:t.openKeys,mode:"inline"},on:{click:function(e){return t.menuClick(e,a)},openChange:t.onOpenChange},model:{value:t.selectedKeys,callback:function(e){t.selectedKeys=e},expression:"selectedKeys"}},[a.children||a.is_inner||"#"==a.node?t._e():e("a-menu-item",{key:a.id,attrs:{disabled:!a.status}},[e("a-icon",{attrs:{type:a.icon}}),e("span",[t._v(t._s(a.title))])],1),a.children&&!a.is_inner?e("a-sub-menu",{key:a.id.toString()},[e("span",{attrs:{slot:"title"},slot:"title"},[e("a-icon",{attrs:{type:a.icon}}),e("span",[t._v(t._s(a.title))])],1),t._l(a.children,(function(a,s){return a.is_inner?t._e():e("a-menu-item",{key:a.id.toString(),attrs:{disabled:!a.status}},[t._v("\n "+t._s(a.title)+"\n ")])}))],2):t._e()],1)})),1),e("a-layout",{staticClass:"main-content",style:t.collapsed?{paddingLeft:"80px"}:{paddingLeft:"256px"}},[e("a-layout-content",[e("transition",{attrs:{name:"router-fade",mode:"out-in"}},[e("a-spin",{attrs:{spinning:t.pageLoading}},[e("router-view")],1)],1)],1)],1)],1)],1),t.config.WS_URI?e("Socket",{ref:"socket"}):t._e()],1),e("v-uploader")],1)},n=[],i=(a("8e6e"),a("456d"),a("7514"),a("6762"),a("2fdb"),a("ac6a"),a("7f7f"),a("ade3")),o=a("2f62"),r=a("98c5"),c=function(){var t=this,e=t._self._c;return e("a-popover",{attrs:{overlayClassName:"header-notice",trigger:"click",placement:"bottomRight"},model:{value:t.showNotice,callback:function(e){t.showNotice=e},expression:"showNotice"}},[e("template",{slot:"content"},[e("a-spin",{attrs:{spinning:t.loading}},[e("a-tabs",{staticClass:"header-notice-content",attrs:{tabBarGutter:25}},[e("a-tab-pane",{key:"1"},[e("span",{attrs:{slot:"tab"},slot:"tab"},[t._v("消息"),t.total&&t.totalSum["message"]?e("span",[t._v("("+t._s(t.totalSum["message"])+")")]):t._e()]),t.total&&t.totalSum["message"]?[e("a-list",[t._l(t.list["message"],(function(a){return[e("a-list-item",{key:a.id,on:{click:function(e){return t.messageAction(a)}}},[e("a-list-item-meta",{attrs:{description:a.create_time}},[e("span",{attrs:{slot:"title"},slot:"title"},[e("p",[t._v(t._s(a.title))]),e("p",{staticClass:"ant-list-item-meta-description",domProps:{innerHTML:t._s(a.content)}})]),e("a-avatar",{attrs:{slot:"avatar",src:a.avatar},slot:"avatar"})],1)],1)]}))],2),e("div",{staticClass:"footer-action"},[e("a",{staticClass:"item muted",on:{click:function(e){return t.setRead("message")}}},[t._v("清空消息")]),e("a",{staticClass:"item muted",on:{click:function(e){return t.showMore("1")}}},[t._v("查看更多")])])]:[e("div",{staticClass:"notFound"},[e("img",{attrs:{src:a("7e25"),alt:"not found"}}),e("div",[t._v("你已读完所有消息")])])]],2),e("a-tab-pane",{key:"2"},[e("span",{attrs:{slot:"tab"},slot:"tab"},[t._v("通知"),t.total&&t.totalSum["notice"]?e("span",[t._v("("+t._s(t.totalSum["notice"])+")")]):t._e()]),t.total&&t.totalSum["notice"]?[e("a-list",[t._l(t.list["notice"],(function(a){return[e("a-list-item",{key:a.id},[e("a-list-item-meta",{attrs:{description:a.create_time}},[e("span",{attrs:{slot:"title"},slot:"title"},[e("p",{domProps:{innerHTML:t._s(a.title)}}),e("p",{staticClass:"ant-list-item-meta-description",domProps:{innerHTML:t._s(a.content)}})]),e("a-avatar",{staticStyle:{"background-color":"white"},attrs:{slot:"avatar",src:"https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png"},slot:"avatar"})],1)],1)]}))],2),e("div",{staticClass:"footer-action"},[e("a",{staticClass:"item muted",on:{click:function(e){return t.setRead("notice")}}},[t._v("清空通知")]),e("a",{staticClass:"item muted",on:{click:function(){t.$router.push("/notify/notice")}}},[t._v("查看更多")])])]:[e("div",{staticClass:"notFound"},[e("img",{attrs:{src:a("5744"),alt:"not found"}}),e("div",[t._v("你已查看所有通知")])])]],2)],1)],1)],1),e("span",[e("a-badge",{attrs:{count:t.total}},[e("a-icon",{staticClass:"action-item",attrs:{type:"bell"}})],1)],1)],2)},l=[],u=a("c1df"),d=a.n(u),f=a("cd4b"),m=a("97a8"),p=function(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s={body:e,icon:a.icon||"http://static.vilson.xyz/preview.jpg",showTime:a.showTime||15e3,onclick:a.onclick,onshow:a.onshow,onerror:a.onerror,onclose:a.onclose},n=window.Notification||window.mozNotification||window.webkitNotification;if(console.log(n.permission),n&&"granted"===n.permission){var i=new n(t,s);i.onclick=function(){"function"===typeof s.onclick&&s.onclick(i)},i.onerror=function(){"function"===typeof s.onerror&&s.onerror(i)},i.onshow=function(){"function"===typeof s.onshow&&s.onshow(i),setTimeout((function(){i.close()}),s.showTime)},i.onclose=function(){"function"===typeof s.onclose&&s.onclose(i)}}else{if(!n||"denied"===n.permission)return!1;n.requestPermission((function(e){if(n.permission!==e&&(n.permission=e),"granted"!==e)return!1;var a=new n(t,s);a.onclick=function(){"function"===typeof s.onclick&&s.onclick(a)},a.onerror=function(){"function"===typeof s.onerror&&s.onerror(a)},a.onshow=function(){"function"===typeof s.onshow&&s.onshow(a),setTimeout((function(){a.close()}),s.showTime)},a.onclose=function(){"function"===typeof s.onclose&&s.onclose(a)}}))}},h=a("b199");a("81fe");function v(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 k(t){for(var e=1;ethis.progressTotal&&(t=this.progressTotal),"正在上传 ".concat(t,"/").concat(this.progressTotal)}}),watch:{code:function(){this.init()}},created:function(){this.init()},mounted:function(){var t=this;this.$nextTick((function(){window.uploader=t.$refs.uploader.uploader,t.$store.dispatch("setUploader",window.uploader),console.log(window.uploader)}))},methods:{init:function(){},closeUploader:function(){this.showUploader=!1,this.uploader.cancel()},fileAdded:function(t,e,a){var s=!1,n="",i=1024*this.singleMaxSize*1024;e.forEach((function(t,e){if(t.size>i)return s=!0,n=t.file.name,!1})),t.ignored=s,s&&this.$info({title:"文件超过最大限制",content:"上传文件「".concat(n,"」过大,请选择").concat(this.singleMaxSize,"MB以内的文件")})},filesSubmitted:function(t){this.showUploader=!0,this.showFiles=!0,this.progressTotal+=t.length,console.log("file submitted",t)},fileProgress:function(t,e,a){this.showUploader=!0,this.showFiles=!0,console.log("file progress",arguments)},fileSuccess:function(t,e,a,s){var n=JSON.parse(a);if(!Object(E["a"])(n))return Object(m["b"])({title:n.msg},"notice","error"),!1;t.projectName=n.data.projectName,t.fileUrl=n.data.url,t.code=n.data.code||"",console.log("file success",t),this.completeTotal++},fileError:function(t,e,a,s){this.completeTotal--;var n=JSON.parse(a);e.cancel(),t.projectName=n.data.projectName,console.log("file error",t),Object(m["b"])({title:n.msg},"notice","error")},fileComplete:function(t){console.log("file complete",t)},complete:function(){var t=this;console.log("complete",arguments),this.progressTotal=this.completeTotal=0,Object(m["b"])({title:"关联文件成功"},"notice","success"),setTimeout((function(){t.showFiles=!1}),3e3)},cancelUpload:function(t){console.log(t),this.progressTotal--,this.completeTotal--,t.file.cancel()},filterList:function(t){return t},testSomeThing:function(){console.log(this.uploader.fileList),this.uploader.fileList[0].resume()}}},q=V,J=(a("c3fe"),Object(w["a"])(q,A,Y,!1,null,null,null)),G=J.exports,X=function(){var t=this,e=t._self._c;return e("div")},Z=[],Q=a("a026"),tt=a("22b6");function et(t,e){return tt["a"].post("index/index/bindClientId",{client_id:t,uid:e})}var at=a("a078"),st={data:function(){return{websocket:null}},methods:{threadPoxi:function(){var t={uid:this.$store.state.userInfo.id};if(this.websocket.readyState===this.websocket.OPEN)this.websocketSend(t);else if(this.websocket.readyState===this.websocket.CONNECTING){var e=this;setTimeout((function(){e.websocketSend(t)}),300)}else{this.initWebSocket();var a=this;setTimeout((function(){a.websocketSend(t)}),500)}},initWebSocket:function(){var t=at["a"].WS_URI;this.websocket=new WebSocket(t),this.websocket.onmessage=this.websocketOnMessage,this.websocket.onclose=this.websocketClose,Q["default"].prototype.$websocket=this.websocket},websocketOnMessage:function(t){var e=JSON.parse(t.data);if("ping"!=e.action&&(console.log(e),this.$store.commit("catchSocketAction",e)),"connect"===e.action&&e.data.client_id&&!this.$store.state.boundClient){Object(H["c"])("client_id",e.data.client_id);var a=Object(H["a"])("userInfo",!0),s=a?a.code:"";s&&(et(e.data.client_id,s),this.$store.dispatch("setBoundClient",!0))}},websocketSend:function(t){console.log("发送消息:"),console.log(t),this.websocket.send(t)},websocketClose:function(t){console.log("connection closed ("+t.code+")")}},created:function(){this.initWebSocket()}},nt=st,it=Object(w["a"])(nt,X,Z,!1,null,null,null),ot=it.exports,rt=a("d368");function ct(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 lt(t){for(var e=1;e1&&void 0!==arguments[1]&&arguments[1],a=t.code,n=t.msg;return 200===a||(e&&Object(s["b"])(n),!1)},o=function(t){var e=t.url;t.params&&(e+="/"+t.params);var s=t.url;return t.file_path&&(s=t.file_path),{name:t.id,path:e,component:function(t){return Promise.all([a.e("user"),a.e("chunk-d24496b2"),a.e("chunk-2b587d1f"),a.e("chunk-391e3787"),a.e("chunk-389601d6")]).then(function(){var e=[a("4b3b")("./"+s)];t.apply(null,e)}.bind(this)).catch(a.oe)},meta:{model:t.pid,info:t}}},r=function(t,e){var a=new FileReader;a.addEventListener("load",(function(){return e(a.result)})),a.readAsDataURL(t)},c=function(t){return"https://work.lihaink.cn/"+t},l=function(t){return"https://work.lihaink.cn/"+t},u=function(t){var e="";return e+l(t)};function d(){var t=new Date,e=t.getHours();return e<9?"早上好":e<=11?"上午好":e<=13?"中午好":e<20?"下午好":"晚上好"}function f(){var t=Object(n["a"])("tokenList",!0);if(t){var e=t.accessToken,a=t.tokenType;return{Authorization:"".concat(a," ").concat(e)}}return{}}var m=function(t,e){e=e||document,t=t||"*";var a=[];if(document.getElementsByClassName)return document.getElementsByClassName(t);for(var s=document.getElementsByTagName(e),n=new RegExp("(^|\\s)"+t+"(\\s|$)"),i=0;i0&&t.constructor===Function)while(this.i1&&void 0!==arguments[1]?arguments[1]:"collect";return s["a"].post("project/project_collect/collect",{type:e,projectCode:t})}},4360:function(t,e,a){"use strict";var s=a("a026"),n=a("2f62"),i=a("68fe"),o=Object(i["a"])("userInfo",!0),r=Object(i["a"])("theme"),c={theme:r||"dark",logged:!!o,userInfo:o,organizationList:Object(i["a"])("organizationList",!0)||[],currentOrganization:Object(i["a"])("currentOrganization",!0),system:Object(i["a"])("system",!0),windowLoading:!1,pageLoading:!1,socketAction:"",boundClient:!1},l={SET_LOGGED:function(t,e){e.tokenList;var a=e.userInfo;t.logged=!0,t.userInfo=a},SET_USER:function(t,e){t.userInfo=e},SET_LOGOUT:function(t){t.logged=!1,t.userInfo=null},setTheme:function(t,e){t.theme=e},pageLoading:function(t,e){t.pageLoading=e},windowLoading:function(t,e){t.windowLoading=e},setSystem:function(t,e){t.system=e},setOrganizationList:function(t,e){t.organizationList=e},setCurrentOrganization:function(t,e){t.currentOrganization=e},catchSocketAction:function(t,e){t.socketAction=e},setBoundClient:function(t,e){t.boundClient=e}},u=a("c24f"),d={SET_LOGGED:function(t,e){var a=t.commit;return Object(i["c"])("tokenList",e.tokenList),Object(i["c"])("userInfo",e.userInfo),a("SET_LOGGED",e)},SET_USER:function(t,e){var a=t.commit;Object(i["c"])("userInfo",e),a("SET_USER",e)},SET_LOGOUT:function(t){var e=t.commit;Object(i["b"])("tokenList"),Object(i["b"])("userInfo"),e("SET_LOGOUT")},getUser:function(t){var e=t.commit;Object(u["g"])().then((function(t){t.data?(Object(i["c"])("userInfo",t.data),e("SET_USER",t.data)):(Object(i["b"])("tokenList"),Object(i["b"])("userInfo"),e("SET_LOGOUT"))}))},checkLogin:function(t){var e=t.commit;Object(u["f"])().then((function(t){if(t.data){var a={userInfo:t.data.member,tokenList:t.data.tokenList};Object(i["c"])("tokenList",a.tokenList),Object(i["c"])("userInfo",a.userInfo),e("SET_LOGGED",a)}else Object(i["b"])("tokenList"),Object(i["b"])("userInfo"),e("SET_LOGOUT")}))},setTheme:function(t,e){var a=t.commit;Object(i["c"])("theme",e),a("setTheme",e)},pageLoading:function(t,e){var a=t.commit;a("pageLoading",e)},windowLoading:function(t,e){var a=t.commit;a("windowLoading",e)},setOrganizationList:function(t,e){var a=t.commit;return Object(i["c"])("organizationList",e),a("setOrganizationList",e)},setCurrentOrganization:function(t,e){var a=t.commit;return Object(i["c"])("currentOrganization",e),a("setCurrentOrganization",e)},setSystem:function(t,e){var a=t.commit;Object(i["c"])("system",e),a("setSystem",e)},setBoundClient:function(t,e){var a=t.commit;a("setBoundClient",e)}},f={state:{viewRefresh:!1,uploader:null,tempData:Object(i["a"])("tempData",!0)},mutations:{setUploader:function(t,e){t.uploader=e},setTempData:function(t,e){t.tempData=e},viewRefresh:function(t){t.viewRefresh=!t.viewRefresh}},actions:{setUploader:function(t,e){var a=t.commit;a("setUploader",e)},setTempData:function(t,e){var a=t.commit;Object(i["c"])("tempData",e),a("setTempData",e)},viewRefresh:function(t){var e=t.commit;e("viewRefresh")}}},m=f,p=a("1f27"),h={state:{menu:Object(i["a"])("menu",!0),breadCrumbInfo:[]},mutations:{SET_MENU:function(t,e){t.menu=e},setBreadCrumbInfo:function(t,e){t.breadCrumbInfo=e}},actions:{GET_MENU:function(t,e){var a=t.commit;return Object(p["e"])().then((function(t){1!=e&&(t.data=t.data.filter((function(t){return 120==t.id||121==t.id}))),Object(i["c"])("menu",t.data),a("SET_MENU",t.data)}))},SET_MENU:function(t,e){var a=t.commit;Object(i["c"])("menu",e),a("SET_MENU",e)},setBreadCrumbInfo:function(t,e){var a=t.commit;a("setBreadCrumbInfo",e)}}},v=h;s["default"].use(n["a"]);var k=new n["a"].Store({modules:{common:m,menu:v},state:c,mutations:l,actions:d});e["a"]=k},4540:function(t,e,a){"use strict";a("7f7f");var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"member-menu",class:{creating:t.creating,editing:t.editing}},[e("a-spin",{attrs:{spinning:t.listLoading}},[e("div",{staticClass:"search-content"},[e("a-input",{attrs:{size:"large",placeholder:t.creating||t.editing?"标签名称":"搜索标签"},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}},[t.creating||t.editing?e("a-icon",{attrs:{slot:"prefix",type:"tag"},slot:"prefix"}):e("a-icon",{attrs:{slot:"prefix",type:"search"},slot:"prefix"})],1)],1),e("div",{staticClass:"member-list tag-list"},[t.creating||t.editing?t._e():[e("vue-scroll",[e("div",{staticClass:"list-group"},[e("a-list",{directives:[{name:"show",rawName:"v-show",value:t.list.length,expression:"list.length"}],staticClass:"list-content",attrs:{itemLayout:"horizontal",dataSource:t.list},scopedSlots:t._u([{key:"renderItem",fn:function(a,s){return e("a-list-item",{staticClass:"member-list-item",nativeOn:{click:function(e){return t.setTag(a)}}},[e("span",{attrs:{slot:"actions"},slot:"actions"},[e("a",{staticClass:"tag-edit muted"},[e("a-icon",{attrs:{type:"edit"},on:{click:function(e){return e.stopPropagation(),t.editTag(a,s)}}})],1),e("a-icon",{directives:[{name:"show",rawName:"v-show",value:t.showCheck(a),expression:"showCheck(item)"}],staticClass:"m-l-sm",attrs:{type:"check"}})],1),e("a-list-item-meta",[e("span",{staticClass:"tag-title",attrs:{slot:"title"},slot:"title"},[e("a-badge",{class:"badge-".concat(a.color),attrs:{status:"success"}}),t._v(" "+t._s(a.name))],1)])],1)}}],null,!1,1469851617)})],1)])],t.creating||t.editing?[e("div",{staticClass:"tag-badge"},t._l(t.badgeList,(function(a){return e("span",{key:a,staticClass:"badge-item",on:{click:function(e){t.currentBadge=a}}},[e("a-badge",{class:"badge-".concat(a),attrs:{status:"success"}}),e("a-icon",{directives:[{name:"show",rawName:"v-show",value:t.currentBadge==a,expression:"currentBadge == badge"}],attrs:{type:"check"}})],1)})),0)]:t._e()],2),e("div",{staticClass:"footer"},[t.creating?[e("a-button",{attrs:{type:"default",size:"large"},on:{click:function(e){t.creating=!1,t.keyword=""}}},[t._v("取消")]),e("a-button",{attrs:{type:"primary",disabled:!t.keyword,size:"large"},on:{click:t.createTag}},[t._v("创建")])]:t.editing?[e("a-popconfirm",{attrs:{overlayStyle:{zIndex:"1080"},title:"确认删除标签?",okText:"确定",cancelText:"取消"},on:{confirm:t.deleteTag}},[e("a-button",{attrs:{type:"danger",size:"large"}},[t._v("删除")])],1),e("a-button",{attrs:{type:"primary",disabled:!t.keyword,size:"large"},on:{click:t.saveTag}},[t._v("完成")])]:[e("a-button",{attrs:{type:"primary",size:"large",block:""},on:{click:function(e){t.creating=!0,t.activeCreating=!0}}},[t._v("新建标签\n ")])]],2)])],1)},n=[],i=(a("20d6"),a("386d"),a("c5f6"),a("2ef0"),a("813b")),o=a("b199"),r=a("2f14"),c={name:"taskTagMenu",props:{projectCode:{type:[String,Number],default:function(){return""}},taskCode:{type:[String,Number],default:function(){return""}},isCommit:{type:[Boolean],default:function(){return!0}}},data:function(){return{keyword:"",editing:!1,creating:!1,activeCreating:!1,searching:!1,listLoading:!1,showInviteMember:!1,tags:[],list:[],listTemp:[],badgeList:["blue","red","orange","green","brown","purple"],currentBadge:"blue",currentTag:{tag:null,index:-1}}},created:function(){this.init()},watch:{keyword:function(){this.search()}},methods:{init:function(){var t=this;this.projectCode&&(this.listLoading=!0,Object(i["c"])({projectCode:this.projectCode}).then((function(e){t.list=e.data,t.listTemp=e.data,t.listLoading=!1}))),this.taskCode&&Object(o["B"])({taskCode:this.taskCode}).then((function(e){t.tags=e.data}))},showCheck:function(t){var e=this.tags.findIndex((function(e){return e.tag_code==t.code}));if(-1!==e)return!0},checkTaskChange:function(t){var e=this.tags.findIndex((function(e){return e.tag_code==t.code}));-1!==e?this.tags.splice(e,1):this.tags.push({tag_code:t.code})},editTag:function(t,e){this.editing=!0,this.keyword=t.name,this.currentBadge=t.color,this.currentTag.tag=t,this.currentTag.index=e},saveTag:function(){var t=this;Object(i["b"])({name:this.keyword,color:this.currentBadge,tagCode:this.currentTag.tag.code}).then((function(e){if(!Object(r["a"])(e))return!1;t.currentTag.tag.name=t.listTemp[t.currentTag.index].name=t.keyword,t.currentTag.tag.color=t.listTemp[t.currentTag.index].color=t.currentBadge,t.$emit("update",t.currentTag.tag),t.clearCreating()}))},deleteTag:function(){var t=this;Object(i["a"])(this.currentTag.tag.code).then((function(e){if(!Object(r["a"])(e))return!1;t.listTemp.splice(t.currentTag.index,1),t.$emit("delete",t.currentTag.tag),t.clearCreating()}))},setTag:function(t){var e=this;this.checkTaskChange(t),this.isCommit?Object(o["w"])({taskCode:this.taskCode,tagCode:t.code}).then((function(){e.$emit("change",t)})):this.$emit("change",t)},createTag:function(){var t=this;Object(i["d"])({projectCode:this.projectCode,name:this.keyword,color:this.currentBadge}).then((function(e){if(!Object(r["a"])(e))return!1;var a=e.data;t.listTemp.push(a),t.list.push(a),t.checkTaskChange(a),Object(o["w"])({taskCode:t.taskCode,tagCode:a.code}).then((function(){t.$emit("change",a),t.clearCreating()}))}))},clearCreating:function(){this.editing=!1,this.creating=!1,this.activeCreating=!1,this.keyword=""},search:function(){var t=this;this.keyword=this.keyword.trim(),this.keyword||(this.list=JSON.parse(JSON.stringify(this.listTemp)),this.activeCreating||(this.creating=!1)),this.searching=!0,this.list=this.list.filter((function(e){return-1!=e.name.indexOf(t.keyword)})),this.list.length||this.editing||(this.creating=!0)}}},l=c,u=(a("b7ed"),a("2877")),d=Object(u["a"])(l,s,n,!1,null,null,null);e["a"]=d.exports},4678:function(t,e,a){var s={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-ps":"4c98","./ar-ps.js":"4c98","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn-bd":"9686","./bn-bd.js":"9686","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-in":"ec2e","./en-in.js":"ec2e","./en-nz":"6f50","./en-nz.js":"6f50","./en-sg":"b7e9","./en-sg.js":"b7e9","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-mx":"b5b7","./es-mx.js":"b5b7","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fil":"d69a","./fil.js":"d69a","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-deva":"aaf2","./gom-deva.js":"aaf2","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku-kmr":"7558","./ku-kmr.js":"7558","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./oc-lnc":"167b","./oc-lnc.js":"167b","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tk":"5aff","./tk.js":"5aff","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-mo":"3a6c","./zh-mo.js":"3a6c","./zh-tw":"90ea","./zh-tw.js":"90ea"};function n(t){var e=i(t);return a(e)}function i(t){if(!a.o(s,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return s[t]}n.keys=function(){return Object.keys(s)},n.resolve=i,t.exports=n,n.id="4678"},"476a":function(t,e){(function(t){var e='',a=function(){var t=document.getElementsByTagName("script");return t[t.length-1]}(),s=a.getAttribute("data-injectcss"),n=function(e){if(document.addEventListener)if(~["complete","loaded","interactive"].indexOf(document.readyState))setTimeout(e,0);else{var a=function t(){document.removeEventListener("DOMContentLoaded",t,!1),e()};document.addEventListener("DOMContentLoaded",a,!1)}else document.attachEvent&&s(t,e);function s(t,e){var a=t.document,s=!1,n=function(){s||(s=!0,e())},i=function t(){try{a.documentElement.doScroll("left")}catch(e){return void setTimeout(t,50)}n()};i(),a.onreadystatechange=function(){"complete"==a.readyState&&(a.onreadystatechange=null,n())}}},i=function(t,e){e.parentNode.insertBefore(t,e)},o=function(t,e){e.firstChild?i(t,e.firstChild):e.appendChild(t)};function r(){var t,a;t=document.createElement("div"),t.innerHTML=e,e=null,a=t.getElementsByTagName("svg")[0],a&&(a.setAttribute("aria-hidden","true"),a.style.position="absolute",a.style.width=0,a.style.height=0,a.style.overflow="hidden",o(a,document.body))}if(s&&!t.__iconfont__svg__cssinject__){t.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(c){console&&console.log(c)}}n(r)})(window)},"4c84":function(t,e,a){},"51e2":function(t,e,a){"use strict";a("7f7f");var s=function(){var t=this,e=t._self._c;return e("a-tabs",{attrs:{tabPosition:"left",defaultActiveKey:"1",animated:!1},model:{value:t.tabKey,callback:function(e){t.tabKey=e},expression:"tabKey"}},[e("a-tab-pane",{key:"1"},[e("span",{attrs:{slot:"tab"},slot:"tab"},[e("a-icon",{attrs:{type:"check-square"}}),t._v("\n 任务\n ")],1)]),e("a-tab-pane",{key:"2"},[e("span",{attrs:{slot:"tab"},slot:"tab"},[e("a-icon",{attrs:{type:"link"}}),t._v("\n 文件\n ")],1)]),e("div",{staticClass:"config-content"},[e("vue-scroll",[e("div",{staticClass:"content-item"},[e("div",{staticClass:"infos"},[e("a-list",[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(),t._l(t.list,(function(a,s){return e("a-list-item",{key:s},[e("a-list-item-meta",[e("div",{attrs:{slot:"title"},slot:"title"},[e("router-link",{directives:[{name:"show",rawName:"v-show",value:"1"==t.tabKey,expression:"tabKey == '1'"}],staticClass:"text-default",attrs:{to:"/project/space/task/".concat(t.code,"/detail/").concat(a.code)}},[t._v("\n "+t._s(a.name)+"\n ")]),e("a",{directives:[{name:"show",rawName:"v-show",value:"2"==t.tabKey,expression:"tabKey == '2'"}],staticClass:"text-default",attrs:{target:"_blank",href:a.file_url}},[t._v("\n "+t._s(a.fullName)+"\n ")])],1),e("div",{attrs:{slot:"description"},slot:"description"},[t._v("\n "+t._s(t.showTaskTime(a.deleted_time))+"\n ")])]),e("a",{staticClass:"muted",attrs:{slot:"actions"},on:{click:function(e){return t.recoveryTask(a,s)}},slot:"actions"},[e("a-tooltip",{attrs:{title:"恢复内容"}},[e("a-icon",{attrs:{type:"undo"}})],1)],1),e("a",{staticClass:"muted",attrs:{slot:"actions"},on:{click:function(e){return t.deleteItem(a,s)}},slot:"actions"},[e("a-tooltip",{attrs:{title:"彻底删除"}},[e("a-icon",{attrs:{type:"delete"}})],1)],1)],1)}))],2)],1)])])],1)],1)},n=[],i=a("2f14"),o=a("b199"),r=a("3f5e"),c=a("1b80"),l=a("81fe"),u={name:"recycleBin",props:{code:{type:[String],default:function(){return""}}},mixins:[c["a"]],data:function(){return{loading:!1,tabKey:"1",project:{},list:[],showLoadingMore:!1,loadingMore:!1}},watch:{code:function(){this.init()},tabKey:function(t){this.init()}},created:function(){this.init()},methods:{init:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=this;switch(t&&(this.list=[],this.pagination.page=1,this.pagination.pageSize=10,this.showLoadingMore=!1),this.requestData.deleted=1,this.requestData.projectCode=this.code,e.loading=!0,this.tabKey){case"1":e.getTasks();break;case"2":e.getFiles();break}},getTasks:function(){var t=this;Object(o["m"])(t.requestData).then((function(e){t.list=t.list.concat(e.data.list),t.pagination.total=e.data.total,t.showLoadingMore=t.pagination.total>t.list.length,t.loading=!1,t.loadingMore=!1}))},getFiles:function(){var t=this;Object(r["c"])(t.requestData).then((function(e){t.list=t.list.concat(e.data.list),t.pagination.total=e.data.total,t.showLoadingMore=t.pagination.total>t.list.length,t.loading=!1,t.loadingMore=!1}))},onLoadMore:function(){this.loadingMore=!0,this.pagination.page++,this.init(!1)},showTaskTime:function(t){return Object(l["b"])(t)},recoveryTask:function(t,e){var a=this;switch(this.tabKey){case"1":this.$confirm({title:"确定恢复内容?",content:"恢复后可在任务列表中查看",okText:"恢复内容",okType:"primary",cancelText:"再想想",onOk:function(){return Object(o["p"])(t.code).then((function(s){Object(i["a"])(s)&&(a.list.splice(e,1),a.$emit("update",t))})),Promise.resolve()}});break;case"2":this.$confirm({title:"确定恢复文件?",content:"恢复后可在我的文件中查看",okText:"恢复文件",okType:"primary",cancelText:"再想想",onOk:function(){return Object(r["d"])(t.code).then((function(s){Object(i["a"])(s)&&(a.list.splice(e,1),a.$emit("update",t))})),Promise.resolve()}});break}},deleteItem:function(t,e){var a=this;switch(this.tabKey){case"1":this.$confirm({title:"确定彻底删除任务?",content:"彻底删除任务后,该任务及其子任务将会被永久被删除。",okText:"彻底删除",okType:"danger",cancelText:"再想想",onOk:function(){return Object(o["f"])(t.code).then((function(s){Object(i["a"])(s)&&(a.list.splice(e,1),a.$emit("update",t))})),Promise.resolve()}});break;case"2":this.$confirm({title:"确认彻底删除该文件?",content:"彻底删除文件后,相关的关联资源将会失效。",okText:"彻底删除",okType:"danger",cancelText:"再想想",onOk:function(){return Object(r["a"])(t.code).then((function(s){Object(i["a"])(s)&&(a.list.splice(e,1),a.$emit("update",t))})),Promise.resolve()}});break}}}},d=u,f=(a("87a4"),a("2877")),m=Object(f["a"])(d,s,n,!1,null,null,null);e["a"]=m.exports},"56d7":function(t,e,a){"use strict";a.r(e);a("ac6a"),a("cadf"),a("551c"),a("f751"),a("097d");var s=a("a026"),n=a("8c4f"),i=a("f23d"),o=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{height:"100%"},attrs:{id:"app"}},[e("a-config-provider",{attrs:{getPopupContainer:t.getPopupContainer,locale:t.zh_CN}},[e("transition",{attrs:{name:"router-fades",mode:"out-in"}},[e("router-view")],1)],1)],1)},r=[],c=a("677e"),l=a.n(c),u=(a("5c3a"),{name:"app",data:function(){return{zh_CN:l.a}},watch:{},methods:{getPopupContainer:function(t,e){return e?e.getDialogWrap():document.body}}}),d=u,f=a("2877"),m=Object(f["a"])(d,o,r,!1,null,null,null),p=m.exports,h=a("4360"),v=a("a18c"),k=(a("202f"),a("77a0")),g=a.n(k),b=(a("aaf0"),a("40f5"),a("476a"),function(){var t=this,e=t._self._c;return e("div",[t.showHeader?e("div",{staticClass:"page-header"},[t.breadCrumbInfo.length>0&&t.breadCrumb?e("div",{staticClass:"breadcrumb"},[e("a-breadcrumb",[e("a-breadcrumb-item",[e("router-link",{attrs:{to:"/home"}},[t._v("首页")])],1),e("a-breadcrumb-item",[t._v(t._s(t.breadCrumbInfo[2].title))]),e("a-breadcrumb-item",[t._v(t._s(t.breadCrumbInfo[1].title))]),e("a-breadcrumb-item",[t._v(t._s(t.breadCrumbInfo[0].title))])],1)],1):t._e(),e("div",{staticClass:"detail"},[e("div",{staticClass:"main"},[e("div",{staticClass:"row"},[""!=t.pageTitle.trim()&&t.showTitle?e("h1",{staticClass:"title"},[t._v(t._s(t.pageTitle))]):t.showTitle?e("h1",{staticClass:"title"},[t._v(t._s(t.defaultPageTitle))]):t._e(),e("div",{staticClass:"action"},[t._t("action")],2)]),e("div",{staticClass:"row"},[this.$slots.content?e("div",{staticClass:"content"},[t._t("content")],2):t._e(),this.$slots.extra?e("div",{staticClass:"extra"},[t._t("extra")],2):t._e()])])])]):e("div",{staticClass:"page-header page-header-none"}),e("div",{staticClass:"page-header page-header-none"}),e("div",{staticClass:"wrapper-main"},[e("div",{staticClass:"wrapper-content",class:{hidden:t.pageLoading}},[e("div",{staticClass:"layout-content"},[this.$slots.contentTitle||this.$slots.contentAction?e("div",{staticClass:"content-title"},[t._t("contentTitle"),e("div",{staticClass:"content-action"},[t._t("contentAction")],2)],2):t._e(),t._t("default")],2)])])])}),w=[],_=(a("8e6e"),a("456d"),a("ade3")),y=a("53ca"),j=a("2f62"),C=a("68fe"),T=a("2f14"),x=a("1157"),O=a.n(x),M=a("2fc4");function S(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 L(t){for(var e=1;e1)for(var e=0;e1&&void 0!==arguments[1]&&arguments[1];e?this.$router.replace(t):this.$router.push(t)},toHome:function(){var t=Object(C["a"])("currentOrganization",!0),e=A["a"].HOME_PAGE;console.log(A["a"].HOME_PAGE),t&&(e=e+"/"+t.code),this.$router.push(e)}}};a("20d6"),a("6b54");s["default"].filter("NumberFormat",(function(t){if(!t)return"0";var e=t.toString().replace(/(\d)(?=(?:\d{3})+$)/g,"$1,");return e})),s["default"].filter("showPreviewUrl",(function(t){var e=t.file_url,a="https://view.officeapps.live.com/op/view.aspx?src=",s=["doc","docx","docm","dotm","dotx","xlsx","xlsb","xls","xlsm","pptx","ppsx","ppt","pps","pptm","potm","ppam","potx","ppsm"],n=t.extension,i=s.findIndex((function(t){return t==n}));return-1!==i&&(e=a+e),e}));var H=a("af88"),B=a("ef55"),K=a.n(B);W.a.locale("zh-cn"),s["default"].use(n["a"]),s["default"].use(h["a"]),s["default"].directive("disable-click",{inserted:function(t,e){e.value=!!e.value,console.log("binding",e),e.value&&(t.addEventListener("click",(function(t){e.value&&(t.preventDefault(),t.stopPropagation())})),t.querySelectorAll("*").forEach((function(t){t.addEventListener("click",(function(t){t.preventDefault(),t.stopPropagation()}))})))},update:function(t,e){e.value=!!e.value,console.log("binding",e),e.value&&(t.addEventListener("click",(function(t){e.value&&(t.preventDefault(),t.stopPropagation())})),t.querySelectorAll("*").forEach((function(t){t.addEventListener("click",(function(t){t.preventDefault(),t.stopPropagation()}))})))}}),window._AMapSecurityConfig={securityJsCode:"e8b6cb44e8e431d68052c8e10db99264"},s["default"].config.productionTip=!1,s["default"].use(i["a"]),s["default"].component("WrapperContent",N),s["default"].use(H["a"]),s["default"].use(K.a),s["default"].prototype.$message=I["a"],s["default"].prototype.$notification=R["a"],s["default"].prototype.$notice=$["b"],s["default"].prototype.$destroyNotice=$["a"],s["default"].use(g.a),s["default"].prototype.$vuescrollConfig={vuescroll:{mode:"native"},scrollPanel:{scrollingX:!0},bar:{delayTime:500,onlyShowBarOnScroll:!1,background:"#cecece",keepShow:!1}},s["default"].mixin(Y),new s["default"]({el:"#app",store:h["a"],router:v["a"],template:"",components:{App:p}})},5744:function(t,e,a){t.exports=a.p+"img/bell.2dec628d.svg"},"58bf":function(t,e,a){"use strict";a("7f7f");var s=function(){var t=this,e=t._self._c;return e("a-tabs",{attrs:{tabPosition:"left",defaultActiveKey:"1",animated:!1},model:{value:t.tabKey,callback:function(e){t.tabKey=e},expression:"tabKey"}},[e("a-tab-pane",{key:"1"},[e("span",{attrs:{slot:"tab"},slot:"tab"},[e("a-icon",{attrs:{type:"heat-map"}}),t._v("\n 概览\n ")],1),e("div",{staticClass:"config-content"},[e("div",{staticClass:"content-item"},[e("div",{staticClass:"infos"},[e("p",{staticClass:"item-title"},[t._v("项目封面")]),e("div",{staticClass:"cover-item"},[t.project.cover?[e("img",{staticClass:"avatar",attrs:{src:t.project.cover}})]:t._e(),e("span",{directives:[{name:"show",rawName:"v-show",value:!t.project.cover,expression:"!project.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:{size:"large"}},[t._v("上传新封面")]),e("p",{staticClass:"upload-tips muted"},[t._v("最佳图片比例为300*150")])],1)],2)])]),e("div",{staticClass:"content-item"},[e("div",{staticClass:"infos"},[e("p",{staticClass:"item-title"},[t._v("项目名称")]),e("a-input",{attrs:{size:"large"},model:{value:t.project.name,callback:function(e){t.$set(t.project,"name",e)},expression:"project.name"}})],1),e("div",{staticClass:"infos"},[e("p",{staticClass:"item-title"},[t._v("项目进度 (%)")]),e("a-input-number",{attrs:{size:"large",min:0,max:100},model:{value:t.project.schedule,callback:function(e){t.$set(t.project,"schedule",e)},expression:"project.schedule"}})],1)]),e("div",{staticClass:"content-item"},[e("div",{staticClass:"infos"},[e("p",{staticClass:"item-title"},[t._v("项目简介")]),e("a-input",{attrs:{type:"textarea",rows:3,size:"large",placeholder:"介绍一下这个项目"},model:{value:t.project.description,callback:function(e){t.$set(t.project,"description",e)},expression:"project.description"}})],1)]),e("div",{staticClass:"content-item"},[e("div",{staticClass:"infos"},[e("p",{staticClass:"item-title"},[t._v("项目公开性")]),e("a-select",{attrs:{size:"large"},model:{value:t.project.private,callback:function(e){t.$set(t.project,"private",e)},expression:"project.private"}},[e("a-select-option",{key:0},[t._v("\n 公开项目(所有人都可通过链接访问,仅项目成员可编辑)\n ")]),e("a-select-option",{key:1},[t._v("\n 私有项目(仅项目成员可查看和编辑)\n ")])],1)],1)]),e("div",{staticClass:"content-item"},[e("div",{staticClass:"infos"},[e("p",{staticClass:"item-title"},[t._v("项目拥有者")]),e("div",{staticClass:"m-t"},[e("a-avatar",{attrs:{src:t.project.owner_avatar}}),e("span",{staticClass:"m-l"},[t._v(t._s(t.project.owner_name))])],1)])]),e("a-divider"),e("div",{staticClass:"content-item"},[e("div",{staticClass:"infos"},[e("a-button",{staticClass:"middle-btn pull-right",attrs:{type:"primary",size:"large"},on:{click:t.saveProject}},[t._v("\n 保存\n ")])],1)])],1)]),e("a-tab-pane",{key:"2",attrs:{forceRender:""}},[e("span",{attrs:{slot:"tab"},slot:"tab"},[e("a-icon",{attrs:{type:"eye"}}),t._v("\n 项目偏好\n ")],1),e("div",{staticClass:"config-content task-config"},[e("div",{staticClass:"content-item"},[e("div",{staticClass:"infos"},[e("p",{staticClass:"item-title"},[t._v("看板风格")]),e("div",{staticClass:"item-tips muted"},[t._v("切换任务看板的主题风格,内置两种风格。")]),e("a-radio-group",{on:{change:t.saveProject},model:{value:t.project.task_board_theme,callback:function(e){t.$set(t.project,"task_board_theme",e)},expression:"project.task_board_theme"}},[e("a-radio",{staticStyle:{display:"block",height:"30px","line-height":"30px"},attrs:{value:"default"}},[t._v("默认")]),e("a-radio",{staticStyle:{display:"block",height:"30px","line-height":"30px"},attrs:{value:"simple"}},[t._v("简约")])],1)],1)]),e("div",{staticClass:"content-item"},[e("div",{staticClass:"infos"},[e("p",{staticClass:"item-title"},[t._v("自动更新项目进度")]),e("div",{staticClass:"item-tips muted"},[t._v("根据当前任务的完成情况自动计算项目进度。")])]),e("a-switch",{on:{change:t.saveProject},model:{value:t.project.auto_update_schedule,callback:function(e){t.$set(t.project,"auto_update_schedule",e)},expression:"project.auto_update_schedule"}})],1)])]),e("a-tab-pane",{key:"3"},[e("span",{attrs:{slot:"tab"},slot:"tab"},[e("a-icon",{attrs:{type:"check-square"}}),t._v("\n 任务设置\n ")],1),e("div",{staticClass:"config-content task-config"},[e("div",{staticClass:"content-item"},[e("div",{staticClass:"infos"},[e("p",{staticClass:"item-title"},[t._v("项目ID")]),e("div",{staticClass:"item-tips muted"},[t._v("设置项目编号,编号将作为 ID 前缀,用以区别项目。支持 2-6 位字母。")]),e("a-input",{staticClass:"prefix-input",attrs:{size:"large",placeholder:"如 Pear Project 可以设置为 EP",disabled:!t.project.open_prefix},model:{value:t.project.prefix,callback:function(e){t.$set(t.project,"prefix",e)},expression:"project.prefix"}}),e("a-button",{staticClass:"middle-btn",attrs:{size:"large",type:"primary",disabled:!t.project.open_prefix},on:{click:t.saveProject}},[t._v("保存\n ")])],1),e("a-switch",{on:{change:t.saveProject},model:{value:t.project.open_prefix,callback:function(e){t.$set(t.project,"open_prefix",e)},expression:"project.open_prefix"}})],1),e("div",{staticClass:"content-item"},[e("div",{staticClass:"infos"},[e("p",{staticClass:"item-title"},[t._v("任务开始时间")]),e("div",{staticClass:"item-tips muted"},[t._v("为任务设置开始时间,更科学地规划工作。")])]),e("a-switch",{on:{change:t.saveProject},model:{value:t.project.open_begin_time,callback:function(e){t.$set(t.project,"open_begin_time",e)},expression:"project.open_begin_time"}})],1),e("div",{staticClass:"content-item"},[e("div",{staticClass:"infos"},[e("p",{staticClass:"item-title"},[t._v("新任务默认开启隐私模式")]),e("div",{staticClass:"item-tips muted"},[t._v("对本项目内的新任务默认开启隐私模式,创建成功后仅参与者可见")])]),e("a-switch",{on:{change:t.saveProject},model:{value:t.project.open_task_private,callback:function(e){t.$set(t.project,"open_task_private",e)},expression:"project.open_task_private"}})],1)])]),e("a-tab-pane",{key:"4",attrs:{forceRender:""}},[e("span",{attrs:{slot:"tab"},slot:"tab"},[e("a-icon",{attrs:{type:"deployment-unit"}}),t._v("\n 任务流转\n ")],1),e("div",{staticClass:"config-content"},[e("div",{staticClass:"content-item task-workflow"},[e("div",{staticClass:"infos",staticStyle:{"padding-right":"0"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:!t.doTaskWorkflowView,expression:"!doTaskWorkflowView"}]},[e("p",[e("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:function(e){return t.doTaskWorkflow(null)}}},[t._v("创建规则")])],1),e("a-list",{staticClass:"task-workflow-list",attrs:{itemLayout:"horizontal",dataSource:t.taskWorkflowList},scopedSlots:t._u([{key:"renderItem",fn:function(a){return e("a-list-item",{},[e("span",{attrs:{slot:"actions"},slot:"actions"},[e("a-tooltip",{attrs:{placement:"top",title:"编辑"}},[e("a",{staticClass:"muted m-r-sm",on:{click:function(e){return t.doTaskWorkflow(a)}}},[e("a-icon",{attrs:{type:"edit"}})],1)]),e("a-tooltip",{attrs:{placement:"top",title:"删除"}},[e("a",{staticClass:"muted",on:{click:function(e){return t.delTaskWorkflow(a.code)}}},[e("a-icon",{attrs:{type:"delete"}})],1)])],1),e("a-list-item-meta",[e("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(a.name))])])],1)}}])})],1),e("div",{directives:[{name:"show",rawName:"v-show",value:t.doTaskWorkflowView,expression:"doTaskWorkflowView"}]},[e("div",{staticClass:"header"},[e("p",[e("a-button",{staticClass:"middle-btn m-r-sm",attrs:{size:"large"},on:{click:function(e){return t.saveTaskWorkflow(!1)}}},[t._v("\n 取消\n ")]),e("a-button",{staticClass:"middle-btn",attrs:{size:"large",type:"primary",disabled:!t.canSaveTaskWorkflow},on:{click:function(e){return t.saveTaskWorkflow(!0)}}},[t._v("保存\n ")])],1)]),e("div",{staticClass:"workflow-content"},[t.loadingWorkflowRule?t._e():[e("div",{staticClass:"workflow-rule-item"},[e("p",[t._v("\n 规则名称\n ")]),e("a-input",{attrs:{size:"large"},model:{value:t.currentTaskWorkflowRule.taskWorkflowName,callback:function(e){t.$set(t.currentTaskWorkflowRule,"taskWorkflowName",e)},expression:"currentTaskWorkflowRule.taskWorkflowName"}})],1),e("div",{staticClass:"workflow-rule-item"},[e("p",[t._v("选择任务列表")]),e("a-select",{attrs:{size:"large"},on:{change:function(e){return t.workflowRuleChange(e,"firstObj")}},model:{value:t.currentTaskWorkflowRule.firstObj,callback:function(e){t.$set(t.currentTaskWorkflowRule,"firstObj",e)},expression:"currentTaskWorkflowRule.firstObj"}},t._l(t.taskStages,(function(a,s){return e("a-select-option",{key:a.code,attrs:{value:a.code}},[t._v("\n "+t._s(a.name)+"\n ")])})),1)],1),t.currentTaskWorkflowRule.firstObj?[e("div",{staticClass:"workflow-rule-item"},[e("p",[t._v("选择条件")]),e("a-select",{attrs:{size:"large"},on:{change:function(e){return t.workflowRuleChange(e,"firstAction.action")}},model:{value:t.currentTaskWorkflowRule.firstAction.action,callback:function(e){t.$set(t.currentTaskWorkflowRule.firstAction,"action",e)},expression:"currentTaskWorkflowRule.firstAction.action"}},t._l(t.taskWorkflowRuleActions,(function(a,s){return e("a-select-option",{key:a.id,attrs:{value:a.id}},[t._v(t._s(a.name)+"\n ")])})),1)],1),-1!=t.currentTaskWorkflowRule.firstAction.action?[3==t.currentTaskWorkflowRule.firstAction.action?[e("div",{staticClass:"workflow-rule-item"},[e("p",[t._v("选择执行者")]),e("a-select",{attrs:{size:"large"},on:{change:function(e){return t.workflowRuleChange(e,"firstAction.value")}},model:{value:t.currentTaskWorkflowRule.firstAction.value,callback:function(e){t.$set(t.currentTaskWorkflowRule.firstAction,"value",e)},expression:"currentTaskWorkflowRule.firstAction.value"}},t._l(t.projectMembers,(function(a,s){return e("a-select-option",{key:a.code,attrs:{value:a.code}},[t._v("\n "+t._s(a.name)+"\n ")])})),1)],1)]:t._e(),e("div",{staticClass:"workflow-rule-item"},[e("p",[t._v("选择结果")]),e("a-select",{attrs:{size:"large"},on:{change:function(e){return t.workflowRuleChange(e,"firstResult.action")}},model:{value:t.currentTaskWorkflowRule.firstResult.action,callback:function(e){t.$set(t.currentTaskWorkflowRule.firstResult,"action",e)},expression:"currentTaskWorkflowRule.firstResult.action"}},t._l(t.taskWorkflowRuleTypes,(function(a,s){return e("a-select-option",{key:a.id,attrs:{value:a.id}},[t._v(t._s(a.name)+"\n ")])})),1)],1),0===t.currentTaskWorkflowRule.firstResult.action?[e("div",{staticClass:"workflow-rule-item"},[e("p",[t._v("流转任务列表")]),e("a-select",{attrs:{size:"large"},on:{change:function(e){return t.workflowRuleChange(e,"firstResult.value")}},model:{value:t.currentTaskWorkflowRule.firstResult.value,callback:function(e){t.$set(t.currentTaskWorkflowRule.firstResult,"value",e)},expression:"currentTaskWorkflowRule.firstResult.value"}},t._l(t.taskStages,(function(a,s){return e("a-select-option",{key:a.code,attrs:{value:a.code}},[t._v("\n "+t._s(a.name)+"\n ")])})),1)],1),t.currentTaskWorkflowRule.firstResult.value?[e("div",{staticClass:"workflow-rule-item"},[e("p",[t._v("选择执行者")]),e("a-select",{attrs:{size:"large"},on:{change:function(e){return t.workflowRuleChange(e,"lastResult.value")}},model:{value:t.currentTaskWorkflowRule.lastResult.value,callback:function(e){t.$set(t.currentTaskWorkflowRule.lastResult,"value",e)},expression:"currentTaskWorkflowRule.lastResult.value"}},t._l(t.projectMembers,(function(a,s){return e("a-select-option",{key:a.code,attrs:{value:a.code}},[t._v("\n "+t._s(a.name)+"\n ")])})),1)],1)]:t._e(),[e("div",{staticClass:"workflow-rule-item"},[e("p",[t._v("修改任务状态")]),e("a-select",{attrs:{size:"large"},on:{change:function(e){return t.workflowRuleChange(e,"state.value")}},model:{value:t.currentTaskWorkflowRule.state.value,callback:function(e){t.$set(t.currentTaskWorkflowRule.state,"value",e)},expression:"currentTaskWorkflowRule.state.value"}},t._l(t.taskStates,(function(a,s){return e("a-select-option",{key:a.id,attrs:{value:a.id}},[t._v("\n "+t._s(a.name)+"\n ")])})),1)],1)]]:t._e(),3===t.currentTaskWorkflowRule.firstResult.action?[e("div",{staticClass:"workflow-rule-item"},[e("p",[t._v("选择执行者")]),e("a-select",{attrs:{size:"large"},on:{change:function(e){return t.workflowRuleChange(e,"firstAction.action")}},model:{value:t.currentTaskWorkflowRule.firstResult.value,callback:function(e){t.$set(t.currentTaskWorkflowRule.firstResult,"value",e)},expression:"currentTaskWorkflowRule.firstResult.value"}},t._l(t.projectMembers,(function(a,s){return e("a-select-option",{key:a.code,attrs:{value:a.code}},[t._v("\n "+t._s(a.name)+"\n ")])})),1)],1),t.currentTaskWorkflowRule.firstResult.value?[e("div",{staticClass:"workflow-rule-item"},[e("p",[t._v("流转任务列表")]),e("a-select",{attrs:{size:"large"},on:{change:function(e){return t.workflowRuleChange(e,"lastResult.value")}},model:{value:t.currentTaskWorkflowRule.lastResult.value,callback:function(e){t.$set(t.currentTaskWorkflowRule.lastResult,"value",e)},expression:"currentTaskWorkflowRule.lastResult.value"}},t._l(t.taskStages,(function(a,s){return e("a-select-option",{key:a.code,attrs:{value:a.code}},[t._v("\n "+t._s(a.name)+"\n ")])})),1)],1)]:t._e(),[e("div",{staticClass:"workflow-rule-item"},[e("p",[t._v("修改任务状态")]),e("a-select",{attrs:{size:"large"},on:{change:function(e){return t.workflowRuleChange(e,"state.value")}},model:{value:t.currentTaskWorkflowRule.state.value,callback:function(e){t.$set(t.currentTaskWorkflowRule.state,"value",e)},expression:"currentTaskWorkflowRule.state.value"}},t._l(t.taskStates,(function(a,s){return e("a-select-option",{key:a.id,attrs:{value:a.id}},[t._v("\n "+t._s(a.name)+"\n ")])})),1)],1)]]:t._e()]:t._e()]:t._e()],e("div",{staticClass:"text-center"},[e("a-spin",{attrs:{spinning:t.loadingWorkflowRule}})],1)],2)])])])])]),e("a-tab-pane",{key:"5"},[e("span",{attrs:{slot:"tab"},slot:"tab"},[e("a-icon",{attrs:{type:"ellipsis"}}),t._v("\n 更多\n ")],1),e("div",{staticClass:"config-content more-config"},[e("div",{staticClass:"content-item"},[e("div",{staticClass:"infos"},[e("p",{staticClass:"item-title"},[t._v("项目操作")]),e("div",{staticClass:"item-tips muted"},[t._v("您可以执行以下操作")]),e("a-button",{staticClass:"middle-btn",attrs:{size:"large"},on:{click:t.archiveProject}},[t.project.archive?e("span",[t._v("取消归档")]):t._e(),t.project.archive?t._e():e("span",[t._v("归档项目")])]),e("a-button",{staticClass:"middle-btn",attrs:{size:"large"},on:{click:t.quitProject}},[t._v("退出")]),e("a-button",{staticClass:"middle-btn",attrs:{size:"large",type:"danger"},on:{click:t.delProject}},[t.project.deleted?e("span",[t._v("恢复项目")]):t._e(),t.project.deleted?t._e():e("span",[t._v("移至回收站")])])],1)])])])],1)},n=[],i=(a("ac6a"),a("a481"),a("c5f6"),a("24d2")),o=a("22b6");function r(t){return o["a"].post("project/task_workflow",t)}function c(t){return o["a"].post("project/task_workflow/_getTaskWorkflowRules",t)}function l(t){return o["a"].post("project/task_workflow/save",t)}function u(t){return o["a"].post("project/task_workflow/edit",t)}function d(t){return o["a"].post("project/task_workflow/delete",t)}var f=a("e507"),m=a("9f5d"),p=a("97a8"),h=a("2f14"),v={name:"projectConfig",props:{code:{type:[String],default:function(){return""}}},data:function(){return{loading:!1,tabKey:"1",project:{},taskWorkflowList:[],doTaskWorkflowView:!1,loadingWorkflowRule:!1,taskWorkflow:null,taskWorkflowRuleList:[],currentTaskWorkflowRule:{taskWorkflowName:"",firstObj:"",firstAction:{action:-1,value:""},firstResult:{action:-1,value:""},lastResult:{action:-1,value:""},state:{action:-1,value:-1}},taskWorkflowRuleActions:[{id:-1,name:"请选择"},{id:0,name:"增加任务、被移动"},{id:1,name:"被完成"},{id:2,name:"被重做"},{id:3,name:"设置执行人"}],taskWorkflowRuleTypes:[{id:-1,name:"请选择"},{id:0,name:"自动流转到"},{id:3,name:"默认指派给"}],taskStates:[{id:-1,name:"不做修改"},{id:1,name:"已完成"},{id:2,name:"未完成"}],projectMembers:[],taskStages:[],uploadLoading:!1,uploadAction:Object(h["c"])("project/project/uploadCover")}},computed:{headers:function(){return Object(h["d"])()},canSaveTaskWorkflow:function(){return this.currentTaskWorkflowRule.taskWorkflowName.trim()&&this.currentTaskWorkflowRule.firstObj&&-1!=this.currentTaskWorkflowRule.firstAction.action&&-1!=this.currentTaskWorkflowRule.firstResult.action&&this.currentTaskWorkflowRule.firstResult.value}},watch:{code:function(){this.getProject()}},created:function(){this.getProject(),this.getTaskWorkflowList()},methods:{getProject:function(){var t=this;this.loading=!0,Object(i["h"])(this.code).then((function(e){t.loading=!1,t.project=e.data,t.project.open_prefix=!!e.data.open_prefix,t.project.open_begin_time=!!e.data.open_begin_time,t.project.open_task_private=!!e.data.open_task_private,t.project.auto_update_schedule=!!e.data.auto_update_schedule}))},getTaskWorkflowList:function(){var t=this;r({projectCode:this.code}).then((function(e){t.taskWorkflowList=e.data}))},saveProject:function(){var t=this,e=this.project;Object(i["e"])({projectCode:e.code,name:e.name,description:e.description,cover:e.cover,private:e.private,prefix:e.prefix,task_board_theme:e.task_board_theme,open_prefix:Number(e.open_prefix),open_begin_time:Number(e.open_begin_time),open_task_private:Number(e.open_task_private),schedule:Number(e.schedule),auto_update_schedule:Number(e.auto_update_schedule)}).then((function(e){Object(h["a"])(e)&&(t.$emit("update",t.project),Object(p["b"])({title:"保存成功"},"notice","success"))}))},archiveProject:function(){var t=this;t.project.archive?this.$confirm({title:"取消归档项目?",content:"取消归档「".concat(this.project.name,"」后就可以正常使用了"),okText:"取消归档",okType:"primary",cancelText:"再想想",onOk:function(){return Object(i["j"])(t.code).then((function(e){Object(h["a"])(e)&&t.$emit("complete")})),Promise.resolve()}}):this.$confirm({title:"归档项目",content:"一旦将项目「".concat(this.project.name,"」归档,本项目和所含信息将会被移到「归档项目」内,其中的内容依然会被统计和搜索收录,归档项目可以随时恢复并继续使用。"),okText:"归档",okType:"danger",cancelText:"再想想",onOk:function(){return Object(i["d"])(t.code).then((function(e){Object(h["a"])(e)&&t.$emit("complete")})),Promise.resolve()}})},delProject:function(){var t=this;t.project.deleted?this.$confirm({title:"确定恢复项目?",content:"恢复「".concat(this.project.name,"」后就可以正常使用了"),okText:"恢复项目",okType:"primary",cancelText:"再想想",onOk:function(){return Object(i["i"])(t.code).then((function(e){Object(h["a"])(e)&&t.$emit("complete")})),Promise.resolve()}}):this.$confirm({title:"确定放入回收站?",content:"一旦将项目「".concat(this.project.name,"」放入回收站,所有与项目有关的信息将会被放入回收站"),okText:"放入回收站",okType:"danger",cancelText:"再想想",onOk:function(){return Object(i["k"])(t.code).then((function(e){Object(h["a"])(e)&&t.$emit("complete")})),Promise.resolve()}})},quitProject:function(){var t=this;this.$confirm({title:"退出项目",content:"一旦你退出了该项目,你将不能查看任何关于该项目的信息。退出项目后,如果想重新加入,请联系项目管理员。",okText:"确定退出",okType:"primary",cancelText:"再想想",onOk:function(){return Object(i["g"])(t.code).then((function(e){Object(h["a"])(e)&&(t.$emit("complete"),t.$router.replace("/project/list/my"))})),Promise.resolve()}})},doTaskWorkflow:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.getTaskStages(),this.getProjectMembers(),this.taskWorkflow=t,t?(this.loadingWorkflowRule=!0,this.currentTaskWorkflowRule.taskWorkflowName=t.name,this.getTaskWorkflowRules(t.code)):this.currentTaskWorkflowRule={taskWorkflowName:"",firstObj:"",firstAction:{action:-1,value:""},firstResult:{action:-1,value:""},lastResult:{action:-1,value:""},state:{action:-1,value:-1},taskStates:[{id:-1,name:"不做修改"},{id:1,name:"已完成"},{id:2,name:"未完成"}]},this.doTaskWorkflowView=!0},saveTaskWorkflow:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.currentTaskWorkflowRule.firstResult.action?this.currentTaskWorkflowRule.lastResult.action=0:this.currentTaskWorkflowRule.lastResult.action=3;var a={taskWorkflowName:this.currentTaskWorkflowRule.taskWorkflowName,taskWorkflowRules:JSON.stringify(this.currentTaskWorkflowRule)};e&&(this.taskWorkflow?(a.taskWorkflowCode=this.taskWorkflow.code,u(a).then((function(e){t.getTaskWorkflowList()}))):(a.projectCode=this.code,l(a).then((function(e){t.getTaskWorkflowList()})))),this.doTaskWorkflowView=!1},getTaskStages:function(){var t=this;Object(f["a"])({projectCode:this.code}).then((function(e){var a=[{code:"",name:"不选择"}];e.data.forEach((function(t){a.push(t)})),t.taskStages=a}))},getTaskWorkflowRules:function(t){var e=this;c({taskWorkflowCode:t}).then((function(t){e.loadingWorkflowRule=!1;var a=t.data;e.taskWorkflowRuleList=a,a&&(e.currentTaskWorkflowRule.firstObj=a[0].object_code,e.currentTaskWorkflowRule.firstAction.action=a[1].action,e.currentTaskWorkflowRule.firstAction.value=a[1].object_code,e.currentTaskWorkflowRule.firstResult.action=a[2].action,e.currentTaskWorkflowRule.firstResult.value=a[2].object_code,a.length>=4&&(a[3].object_code?(e.currentTaskWorkflowRule.lastResult.action=a[3].action,e.currentTaskWorkflowRule.lastResult.value=a[3].object_code):(e.currentTaskWorkflowRule.state.action=a[3].action,e.currentTaskWorkflowRule.state.value=a[3].action),a.length>=5&&(a[4].object_code?(e.currentTaskWorkflowRule.lastResult.action=a[4].action,e.currentTaskWorkflowRule.lastResult.value=a[4].object_code):(e.currentTaskWorkflowRule.state.action=a[4].action,e.currentTaskWorkflowRule.state.value=a[4].action))))}))},delTaskWorkflow:function(t){var e=this;this.$confirm({title:"删除规则?",content:"您确定要删除该规则吗?",okText:"删除",okType:"danger",cancelText:"再想想",onOk:function(){return d({taskWorkflowCode:t}).then((function(t){Object(h["a"])(t)&&e.getTaskWorkflowList()})),Promise.resolve()}})},getProjectMembers:function(){var t=this;Object(m["d"])({projectCode:this.code,pageSize:100}).then((function(e){var a=[{code:"",name:"不选择"}];e.data.list.forEach((function(t){a.push(t)})),t.projectMembers=a}))},workflowRuleChange:function(t,e){console.log(t),console.log(e),"firstAction.action"==e&&(this.currentTaskWorkflowRule.firstAction.value=""),"firstResult.value"==e&&(this.currentTaskWorkflowRule.lastResult.value=""),"firstResult.action"==e&&(this.currentTaskWorkflowRule.firstResult.value="",this.currentTaskWorkflowRule.lastResult.value="")},handleChange:function(t){var e=this;"uploading"!==t.file.status?"done"===t.file.status&&Object(h["e"])(t.file.originFileObj,(function(){e.project.cover=t.file.response.data.url,e.uploadLoading=!1,Object(p["b"])({title:"封面上传成功"},"notice","success")})):this.uploadLoading=!0},beforeUpload:function(t){var e=t.size/1024/1024<2;return e||this.$message.error("图片不能超过2MB!"),e}}},k=v,g=(a("ff64"),a("2877")),b=Object(g["a"])(k,s,n,!1,null,null,null);e["a"]=b.exports},"59d2":function(t,e,a){"use strict";a("0bc3")},"5aae":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:"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(a,s){return e("a-menu-item",{key:s},[e("div",{staticClass:"menu-item-d"},[e("a-avatar",{attrs:{src:a.avatar,icon:"user",size:"small"}}),e("a",{staticClass:"muted name"},[t._v(t._s(a.name))]),a.is_owner?e("span",{staticClass:"line_on"},[t._v("• 在线")]):e("span",{staticClass:"line_off"},[t._v("• 离线")])],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=[],i=(a("28a5"),a("ac6a"),a("6b54"),a("f576"),a("2ef0"),a("862d")),o=a.n(i),r=a("f66b"),c=a("c24f"),l=a("97a8"),u={name:"dataV",data:function(){return{map:null,Amap:null,visibleTaskCopied:!1,now_date:"",now_user:{member_code:"",avatar:"",name:"全部"},member_list:[],markers:[],polyline:null,timerM:null,timerP:null}},created:function(){this.now_date="",this.getMembers()},mounted:function(){this.initMap()},destroyed:function(){clearInterval(this.timerM),clearInterval(this.timerP)},methods:{getMembers:function(){var t=this;Object(c["w"])().then((function(e){t.member_list=e.data.list}))},formatDate:function(t){var e=t.getFullYear(),a=(t.getMonth()+1).toString().padStart(2,"0"),s=t.getDate().toString().padStart(2,"0");return"".concat(e,"-").concat(a,"-").concat(s)},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(),t.timerM=setInterval((function(){t.initMaker()}),1e4)})).catch((function(t){console.log(t)}))},handleMenuClick:function(t){this.now_user=this.member_list[t.key],this.now_user.member_code&&this.now_date&&(clearInterval(this.timerM),clearInterval(this.timerP),this.initList(),this.timerP=setInterval(this.initList,1e4))},changeTime:function(t){this.now_user.member_code&&this.now_date&&(clearInterval(this.timerM),clearInterval(this.timerP),this.initList(),this.timerP=setInterval(this.initList,1e4))},initMaker:function(){var t=this;this.polyline&&this.polyline.setMap(null),Object(r["a"])().then((function(e){t.markers&&t.map.remove(t.markers),e.data.forEach((function(e){if(e.positioning){var a=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.stop_time,"
\n
\n
\n "),offset:new AMap.Pixel(-20,-20)});t.markers.push(a)}}))}))},initList:function(){var t=this;this.markers&&this.map.remove(this.markers),Object(r["b"])({code:this.now_user.member_code,date:this.formatDate(new Date(this.now_date||Date.now()))}).then((function(e){var a=e.data.map((function(t){return t.split(",")}))||[];if(t.polyline&&t.polyline.setMap(null),0==a.length)return Object(l["b"])({title:"该成员当日无轨迹信息"},"error",3e3);t.polyline=new AMap.Polyline({path:a,strokeColor:"#52c41a",strokeWeight:5,strokeOpacity:1,strokeStyle:"solid",zIndex:50}),t.polyline.setMap(t.map)})).catch((function(t){return console.log(t),Object(l["b"])({title:"该成员当日无轨迹信息"},"error",3e3)}))}}},d=u,f=(a("28d2"),a("2877")),m=Object(f["a"])(d,s,n,!1,null,null,null);e["default"]=m.exports},"68fe":function(t,e,a){"use strict";a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){return i})),a.d(e,"b",(function(){return o}));a("28a5");var s="ep_",n=function(t,e){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(!t)return!1;if(t=s+t,"string"!==typeof e&&(e=JSON.stringify(e)),a){var i=new Date;e+=n>0?"&"+(i.getTime()+3600*n*1e3):"&0",e+="&"+i.getTime()}window.localStorage.setItem(t,e)},i=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!!t&&(t=s+t,e&&"string"==typeof window.localStorage.getItem(t)&&"undefined"!=window.localStorage.getItem(t)?JSON.parse(window.localStorage.getItem(t)):window.localStorage.getItem(t))},o=function(t){if(!t)return!1;t=s+t,window.localStorage.removeItem(t)}},7060:function(t,e,a){"use strict";a("17bb")},7606:function(t,e,a){"use strict";a("fe8e")},7978:function(t,e,a){"use strict";a("33c9")},"7dc6":function(t,e,a){"use strict";a.d(e,"d",(function(){return n})),a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return r}));var s=a("22b6");a("2f14");function n(t,e){return s["a"].post("project/department_member/searchInviteMember",{keyword:t,departmentCode:e})}function i(t,e){return s["a"].post("project/department_member/inviteMember",{accountCode:t,departmentCode:e})}function o(t,e){return s["a"].post("project/department_member/removeMember",{accountCode:t,departmentCode:e})}function r(t){return s["a"].post("project/department_member/detail",t)}},"7e25":function(t,e,a){t.exports=a.p+"img/laba.e793fb2e.svg"},"813b":function(t,e,a){"use strict";a.d(e,"c",(function(){return n})),a.d(e,"d",(function(){return i})),a.d(e,"b",(function(){return o})),a.d(e,"a",(function(){return r}));var s=a("22b6");function n(t){return s["a"].post("project/task_tag",t)}function i(t){return s["a"].post("project/task_tag/save",t)}function o(t){return s["a"].post("project/task_tag/edit",t)}function r(t){return s["a"].post("project/task_tag/delete",{tagCode:t})}},"81fe":function(t,e,a){"use strict";a.d(e,"c",(function(){return i})),a.d(e,"b",(function(){return o})),a.d(e,"a",(function(){return r})),a.d(e,"d",(function(){return c}));a("3b2b"),a("a481");var s=a("c1df"),n=a.n(s),i=function(t,e){e||(e=n()());var a=n()(e).diff(n()(t),"hours");if(a<=1)return n()(t).fromNow();n()(e).get("date"),n()(t).get("date");var s=n()(t).format("H:mm"),i=n()(t).format("YYYY-MM-DD"),o=n()().weekday(0).format("YYYY-MM-DD"),r=n()().weekday(6).format("YYYY-MM-DD"),c="";return c=ir?"[下周]dd "+s:"[周]dd "+s,n()(t).calendar(null,{sameDay:"[今天 ]"+n()(t).format("H:mm"),nextDay:"[明天 ]"+s,nextWeek:c,lastDay:"[昨天 ]"+s,lastWeek:c,sameElse:"M月D日 H:mm"})},o=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=n()(t).format("H:mm");e||(a="");var s=n()(t).format("YYYY-MM-DD"),i=n()().weekday(0).format("YYYY-MM-DD"),o=n()().weekday(6).format("YYYY-MM-DD"),r="";return r=so?"[下周]dd "+a:"[周]dd "+a,n()(t).calendar(null,{sameDay:"[今天 ]"+n()(t).format("H:mm"),nextDay:"[明天 ]"+a,nextWeek:r,lastDay:"[昨天 ]"+a,lastWeek:r,sameElse:"M月D日 H:mm"})},r=function(t,e){return!e&&t?o(t)+" 开始":t?o(t)+" - "+o(e):o(e)+" 截止"},c=function(t){var e="";void 0==t&&(t=new Date);var a=t.getHours();return a>=0&&a<=4&&(e="深夜了,注意身体,"),a>=4&&a<7&&(e="清晨好, "),a>=7&&a<12&&(e="早安,"),a>=12&&a<=13&&(e="午饭时间到了,"),a>=13&&a<=17&&(e="下午好,"),a>=17&&a<=18&&(e="进入傍晚了,"),a>=18&&a<=20&&(e="吃过晚饭了吗,"),a>=20&&a<=24&&(e="在加班吗?辛苦了,"),e}},"82f8":function(t,e,a){"use strict";a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){return i})),a.d(e,"d",(function(){return o})),a.d(e,"b",(function(){return r})),a.d(e,"e",(function(){return c}));var s=a("22b6");function n(t){return s["a"].post("index/index/install",t)}function i(){return s["a"].post("index/index/checkInstall")}function o(t){return s["a"].post("project/invite_link/_read",{inviteCode:t})}function r(t){return s["a"].post("project/invite_link/save",t)}function c(t){return s["a"].post("index/index/refreshAccessToken",{refreshToken:t})}},"87a4":function(t,e,a){"use strict";a("ab60")},8870:function(t,e,a){"use strict";a.d(e,"a",(function(){return n}));var s=a("22b6");function n(t){return s["a"].post("project/source_link/delete",{sourceCode:t})}},"88ae":function(t,e,a){},"97a8":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"a",(function(){return o}));var s=a("f64c"),n=a("56cd"),i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"message",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"warning",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:3,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"bottomLeft";o();var c={};if(c.duration=i,"message"===e)switch(a){case"info":return s["a"].info(t,i);case"success":return s["a"].success(t,i);case"error":return s["a"].error(t,i);case"loading":return s["a"].loading(t,i);default:return s["a"].warning(t,i)}else switch(c.message=t.title,c.description=t.msg||"",c.placement=r,a){case"open":return n["a"].open(c);case"info":return n["a"].info(c);case"success":return n["a"].success(c);case"error":return n["a"].error(c);default:return n["a"].warning(c)}},o=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";t?"message"===t?s["a"].destroy():n["a"].destroy():(s["a"].destroy(),n["a"].destroy())}},"9f5d":function(t,e,a){"use strict";a.d(e,"f",(function(){return n})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){return o})),a.d(e,"e",(function(){return r})),a.d(e,"d",(function(){return c})),a.d(e,"b",(function(){return l}));var s=a("22b6");function n(t,e){return s["a"].post("project/project_member/searchInviteMember",{keyword:t,projectCode:e})}function i(t,e){return s["a"].post("project/project_member/inviteMember",{memberCode:t,projectCode:e})}function o(t){return s["a"].post("project/project_member/_joinByInviteLink",{inviteCode:t})}function r(t,e){return s["a"].post("project/project_member/removeMember",{memberCode:t,projectCode:e})}function c(t){return s["a"].post("project/project_member/index",t)}function l(t){return s["a"].post("project/project_member/_listForInvite",t)}},a078:function(t,e,a){"use strict";e["a"]={crossDomain:"false",PROD_URL:"https://work.lihaink.cn",WS_URI:"wss://work.lihaink.cn",HOME_PAGE:"/home"}},a18c:function(t,e,a){"use strict";a("6762"),a("2fdb"),a("7f7f"),a("ac6a");var s=a("53ca"),n=a("a026"),i=a("4360"),o=a("8c4f"),r=a("1e4b"),c=[{name:"task",path:"/project/space/task/:code",component:function(t){return a.e("chunk-d24496b2").then(function(){var e=[a("d96ec")];t.apply(null,e)}.bind(this)).catch(a.oe)},meta:{model:122,info:{show_slider:!1,is_inner:!0}},children:[{name:"taskdetail",path:"detail/:taskCode",component:function(t){return a.e("chunk-f86ac4cc").then(function(){var e=[a("d0e1")];t.apply(null,e)}.bind(this)).catch(a.oe)},meta:{model:"Project",info:{show_slider:!1}}},{name:"taskadd",path:"add/:taskCode",component:function(t){return a.e("chunk-391e3787").then(function(){var e=[a("f561")];t.apply(null,e)}.bind(this)).catch(a.oe)},meta:{model:"Project",info:{show_slider:!1}}}]},{name:"copy",path:"/project/space/copy/:code",component:function(t){return a.e("chunk-2b587d1f").then(function(){var e=[a("9bef")];t.apply(null,e)}.bind(this)).catch(a.oe)},meta:{model:122,info:{show_slider:!1,is_inner:!0}},children:[{name:"taskdetailcopy",path:"detail/:taskCode",component:function(t){return a.e("chunk-f86ac4cc").then(function(){var e=[a("d0e1")];t.apply(null,e)}.bind(this)).catch(a.oe)},meta:{model:"Project",info:{show_slider:!1}}}]},{name:"inviteFromLink",path:"/invite_from_link/:code",component:function(t){return a.e("chunk-47a9ae4d").then(function(){var e=[a("6e0f")];t.apply(null,e)}.bind(this)).catch(a.oe)},meta:{model:"Common",info:{show_slider:!1}}},{name:"calendar",path:"/calendar",component:function(t){return a.e("chunk-5dd25288").then(function(){var e=[a("37a7")];t.apply(null,e)}.bind(this)).catch(a.oe)},meta:{model:"Common",info:{show_slider:!1}}}],l=a("68fe"),u=a("2f14"),d=a("a078"),f=a("82f8"),m=a("5aae"),p=a("019e"),h=a("baf2"),v=d["a"].HOME_PAGE,k=Object(l["a"])("currentOrganization",!0);k&&(v=v+"/"+k.code),n["default"].use(o["a"]);var g=[].concat(c);function b(t,e){if(t===e)return!0;if("object"===Object(s["a"])(t))for(var a in t)if(b(t[a],e))return!0;return!1}var w=Object(l["a"])("menu",!0);w&&w.forEach((function(t){b(t,"datasv")||b(t,"copysv")||(g.push(Object(u["b"])(t)),t.children&&t.children.forEach((function(t){g.push(Object(u["b"])(t)),t.children&&t.children.forEach((function(t){g.push(Object(u["b"])(t))}))})))}));var _=new o["a"]({routes:[{path:"/",name:"index",component:r["default"],children:g},{name:"datasv",path:"/datasv",component:m["default"]},{name:"copysv",path:"/copysv",component:p["default"],children:[{name:"copytaskdetail",path:"/detail/:taskCode",component:h["default"],meta:{model:122,info:{show_slider:!1,is_inner:!0}}}]},{name:"member",path:"/member",component:function(t){return a.e("chunk-e3d6f510").then(function(){var e=[a("27f0")];t.apply(null,e)}.bind(this)).catch(a.oe)},meta:{model:"Login"},children:[{path:"login",name:"login",component:function(){return a.e("user").then(a.bind(null,"067f"))},meta:{model:"Login"}},{path:"register",name:"register",component:function(){return a.e("user").then(a.bind(null,"5287"))},meta:{model:"Login"}},{path:"forgot",name:"forgot",component:function(){return a.e("user").then(a.bind(null,"1c8d"))},meta:{model:"Login"}}]},{name:"install",path:"/install",component:function(t){return a.e("chunk-4794d8ce").then(function(){var e=[a("fef1")];t.apply(null,e)}.bind(this)).catch(a.oe)},meta:{model:"error"}},{name:"resetEmail",path:"/reset/email",component:function(t){return a.e("chunk-0c259edb").then(function(){var e=[a("c0d8")];t.apply(null,e)}.bind(this)).catch(a.oe)},meta:{model:"error"}},{name:"404",path:"/404",component:function(t){return a.e("chunk-ddf84650").then(function(){var e=[a("2754")];t.apply(null,e)}.bind(this)).catch(a.oe)},meta:{model:"error"}},{name:"403",path:"/403",component:function(t){return a.e("chunk-6560417d").then(function(){var e=[a("7fa2")];t.apply(null,e)}.bind(this)).catch(a.oe)},meta:{model:"error"}},{name:"500",path:"/500",component:function(t){return a.e("chunk-06548746").then(function(){var e=[a("b3ff")];t.apply(null,e)}.bind(this)).catch(a.oe)},meta:{model:"error"}}]});_.beforeEach((function(t,e,a){var s=Object(l["a"])("tokenList",!0);if(s){var n=s.refreshToken,o=s.accessTokenExp;o&&Object(u["i"])(o)&&Object(f["e"])(n).then((function(t){s.accessToken=t.data.accessToken,s.accessTokenExp=t.data.accessTokenExp,Object(l["c"])("tokenList",s)})).catch((function(){return i["a"].state.logged=!1,i["a"].state.userInfo=null,!1}))}return"datasv"===t.name||"/datasv"===t.path||"copysv"===t.name||t.path.includes("/copysv")?(a(),!1):"index"===t.name||"/index"===t.path||"/"===t.path?(a({path:v}),!1):t.name||"Login"===e.meta.model||t.path===v?"Login"===t.meta.model&&i["a"].state.logged?(a({path:v}),!1):i["a"].state.logged||"Login"===t.meta.model||"error"===t.meta.model?void a():(a({name:"login",query:{redirect:t.fullPath}}),!1):(a({path:"/404"}),!1)})),_.afterEach((function(t){}));e["a"]=_},a897:function(t,e,a){"use strict";var s=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{"word-break":"break-all"},style:t.styleObject},[e("div",{ref:"editor",style:t.styleObject,attrs:{id:t.id}})])},n=[],i=(a("28a5"),a("a481"),a("ac6a"),a("1a0b")),o=a.n(i),r=a("2ef0"),c=a.n(r),l={name:"editor",props:["id","value","width","height","uploadImgServer","disabled","menus","mapKey","menuFixed","pasteFilter","codeDefaultLang","hideLinkImg","uploadImgParams","uploadImgHeaders","isRealtime","disabledMenus","uploadFileName","uploadImgShowBase64"],data:function(){return{styleObject:{width:"auto",height:"auto"},editor:null}},methods:{initSize:function(){this.width&&(this.styleObject.width=this.width+"px"),this.height&&(this.styleObject.height=this.height+"px")},createEditor:function(){this.editor=new o.a(document.getElementById(this.id)),this.initConfig(),this.editor.create()},initConfig:function(){this.editor.customConfig.uploadFileName=this.uploadFileName?this.uploadFileName:"image[]",this.editor.customConfig.uploadImgServer=this.uploadImgServer,this.editor.customConfig.uploadImgShowBase64=!!this.uploadImgShowBase64&&this.uploadImgShowBase64,this.editor.customConfig.uploadImgFileName="file",this.editor.customConfig.pasteFilter=!1,void 0!=this.mapKey&&(this.editor.customConfig.mapAk=this.mapKey),void 0!=this.menus&&this.menus instanceof Array&&this.menus.length?this.editor.customConfig.menus=this.filterMenu(this.menus):this.disabledMenus&&(this.editor.customConfig.menus=this.filterDisabledMenu(this.editor.customConfig.menus,this.disabledMenus)),void 0!=this.menuFixed&&(this.editor.customConfig.menuFixed=this.menuFixed),void 0!=this.pasteFilter&&(this.editor.customConfig.pasteFilter=this.pasteFilter),void 0!=this.codeDefaultLang&&(this.editor.customConfig.codeDefaultLang=this.codeDefaultLang),void 0!=this.hideLinkImg&&(this.editor.customConfig.hideLinkImg=this.hideLinkImg),void 0!=this.uploadImgParams&&this.uploadImgParams instanceof Object&&(this.editor.customConfig.uploadImgParams=this.uploadImgParams),void 0!=this.uploadImgHeaders&&this.uploadImgHeaders instanceof Object&&(this.editor.customConfig.uploadImgHeaders=this.uploadImgHeaders),this.value&&this.setHtml(this.value),this.disabled&&this.disable(),this.listenChange()},filterMenu:function(t){return c.a.map(t,(function(t,e){return"source"===t?null:t}))},filterDisabledMenu:function(t,e){var a=t.join(",");return c()(e).forEach((function(t){a=a.replace(t,"").replace(",,",",")})),a.length&&","==a[0]&&a.substr(1,a.length),a.split(",")},insertImg:function(t){this.editor.command(null,"insertHtml","')},getHtml:function(){return this.editor.txt.html()},getText:function(){return this.editor.txt.text()},setHtml:function(t){this.editor.txt.html(t)},appendHtml:function(t){this.editor.txt.append(t)},clear:function(){this.editor.clear()},enable:function(){this.editor.enable()},disable:function(){this.editor.disable()},destroy:function(){this.editor.destroy()},undestroy:function(){this.editor.undestroy()},listenChange:function(){var t=this;this.editor.onchange=function(){t.$emit("change");var e="";t.getText()||(e=t.getHtml()),!1!==t.isRealtime&&t.$emit("input",e)}}},mounted:function(){var t=this;this.initSize(),setTimeout((function(){t.createEditor()}),100)}},u=l,d=a("2877"),f=Object(d["a"])(u,s,n,!1,null,null,null);e["a"]=f.exports},ab60:function(t,e,a){},aefa:function(t,e,a){"use strict";a("0239")},b199:function(t,e,a){"use strict";a.d(e,"m",(function(){return n})),a.d(e,"j",(function(){return i})),a.d(e,"u",(function(){return o})),a.d(e,"A",(function(){return r})),a.d(e,"x",(function(){return c})),a.d(e,"s",(function(){return l})),a.d(e,"h",(function(){return u})),a.d(e,"B",(function(){return d})),a.d(e,"w",(function(){return f})),a.d(e,"l",(function(){return m})),a.d(e,"y",(function(){return p})),a.d(e,"d",(function(){return h})),a.d(e,"b",(function(){return v})),a.d(e,"c",(function(){return k})),a.d(e,"o",(function(){return g})),a.d(e,"z",(function(){return b})),a.d(e,"v",(function(){return w})),a.d(e,"q",(function(){return _})),a.d(e,"r",(function(){return y})),a.d(e,"p",(function(){return j})),a.d(e,"f",(function(){return C})),a.d(e,"e",(function(){return T})),a.d(e,"n",(function(){return x})),a.d(e,"k",(function(){return O})),a.d(e,"a",(function(){return M})),a.d(e,"t",(function(){return S})),a.d(e,"i",(function(){return L})),a.d(e,"g",(function(){return D}));var s=a("22b6");function n(t){return s["a"].post("project/task",t)}function i(t){return s["a"].post("project/task/getListByTaskTag",t)}function o(t){return s["a"].post("project/task/selfList",t)}function r(t){return s["a"].post("project/task/taskSources",t)}function c(t){return s["a"].post("project/task/sort",t)}function l(t){return s["a"].post("project/task/save",t)}function u(t){return s["a"].post("project/task/edit",t)}function d(t){return s["a"].post("project/task/taskToTags",t)}function f(t){return s["a"].post("project/task/setTag",t)}function m(t,e){return s["a"].post("project/task/like",{like:e,taskCode:t})}function p(t,e){return s["a"].post("project/task/star",{star:e,taskCode:t})}function h(t,e,a){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return s["a"].post("project/task/createComment",{taskCode:t,comment:e,mentions:a,type:n})}function v(t){return s["a"].post("project/task/assignTask",t)}function k(t){return s["a"].post("project/task/batchAssignTask",t)}function g(t){return s["a"].post("project/task/read",{taskCode:t})}function b(t,e){return s["a"].post("project/task/taskDone",{taskCode:t,done:e})}function w(t,e){return s["a"].post("project/task/setPrivate",{taskCode:t,private:e})}function _(t){return s["a"].post("project/task/recycle",{taskCode:t})}function y(t){return s["a"].post("project/task/recycleBatch",t)}function j(t){return s["a"].post("project/task/recovery",{taskCode:t})}function C(t){return s["a"].post("project/task/delete",{taskCode:t})}function T(t){return s["a"].post("project/task/dateTotalForProject",t)}function x(t){return s["a"].post("project/task/taskLog",t)}function O(t){return s["a"].post("project/project/getLogBySelfProject",t)}function M(t){return s["a"].post("project/task/_taskWorkTimeList",t)}function S(t){return s["a"].post("project/task/saveTaskWorkTime",t)}function L(t){return s["a"].post("project/task/editTaskWorkTime",t)}function D(t){return s["a"].post("project/task/delTaskWorkTime",t)}},b3fd:function(t,e,a){},b7ed:function(t,e,a){"use strict";a("3d4a")},b83b:function(t,e,a){"use strict";a("7f7f");var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"task-table",attrs:{id:"task-table"}},[e("a-spin",{staticClass:"task-table-spin",attrs:{spinning:t.loading}},[e("div",[t.ready?e("a-table",{attrs:{columns:t.columns,"data-source":t.taskTableData,childrenColumnName:"tasks",rowKey:"code",customRow:t.rowClick,defaultExpandAllRows:!0,pagination:!1},scopedSlots:t._u([{key:"name",fn:function(a,s,n){return["task"==s.type?e("router-link",{attrs:{target:"_blank",to:"/project/space/task/".concat(s.project_code,"/detail/").concat(s.code)}},[s.done?[e("s",{staticClass:"muted"},[t._v(t._s(s.name))])]:[t._v("\n "+t._s(s.name)+"\n ")]],2):e("span",[t._v(t._s(s.name))])]}},{key:"sumKeyResult",fn:function(e,a,s){return["task"==a.type?[t._v("\n "+t._s(a.sumKeyResult)+"\n ")]:t._e()]}},{key:"source",fn:function(e,a,s){return["task"==a.type?[t._v("\n "+t._s(a.hasSource)+"个文件\n ")]:t._e()]}},{key:"beginTime",fn:function(a,s,n){return["task"==s.type?[e("a-dropdown",{attrs:{trigger:["click"],disabled:!!s.deleted},model:{value:s.showBeginTime,callback:function(e){t.$set(s,"showBeginTime",e)},expression:"task.showBeginTime"}},[s.deleted?e("div",{staticClass:"field-flex"},[e("a",{staticClass:"muted name",staticStyle:{margin:"0"}},[s.setBeginTime?[t._v(t._s(s.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"}},[s.setBeginTime?[t._v(t._s(s.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:s.showBeginTime},on:{ok:function(e){return t.doBeginTime(s,!0)}},model:{value:s.begin_time,callback:function(e){t.$set(s,"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(s,!1)}}},[t._v("清除")])])],2)],1)],1)]:t._e()]}},{key:"endTime",fn:function(a,s,n){return["task"==s.type?[e("a-dropdown",{attrs:{trigger:["click"],disabled:!!s.deleted},model:{value:s.showEndTime,callback:function(e){t.$set(s,"showEndTime",e)},expression:"task.showEndTime"}},[s.deleted?e("div",{staticClass:"field-flex"},[e("a",{staticClass:"muted name",staticStyle:{margin:"0"}},[s.setEndTime?[t._v(t._s(s.end_time_format))]:[t._v("设置截止时间")]],2)]):e("a-tooltip",{attrs:{mouseEnterDelay:.5,placement:"topLeft"}},[e("template",{slot:"title"},[e("span",[t._v("点击设置截止时间")])]),e("div",{staticClass:"field-flex"},[e("a",{staticClass:"muted name",staticStyle:{margin:"0"}},[s.setEndTime?[t._v(t._s(s.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:s.showEndTime},on:{ok:function(e){return t.doEndTime(s,!0)}},model:{value:s.end_time,callback:function(e){t.$set(s,"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(s,!1)}}},[t._v("清除")])])],2)],1)],1)]:t._e()]}},{key:"executor",fn:function(a,s,n){return["task"==s.type?[e("a-dropdown",{attrs:{trigger:["click"],disabled:!!s.deleted,placement:"bottomCenter"},model:{value:s.visibleTaskMemberMenu,callback:function(e){t.$set(s,"visibleTaskMemberMenu",e)},expression:"task.visibleTaskMemberMenu"}},[s.deleted?e("div",{staticClass:"field-flex"},[s.executor?[e("a-avatar",{attrs:{src:s.executor.avatar,icon:"user",size:"small"}}),e("a",{staticClass:"muted name"},[t._v(t._s(s.executor.name))])]:t._e(),s.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,placement:"topLeft"}},[e("template",{slot:"title"},[e("span",[t._v("点击设置执行者")])]),e("div",{staticClass:"field-flex"},[s.executor?[e("a-avatar",{attrs:{src:s.executor.avatar,icon:"user",size:"small"}}),e("a",{staticClass:"muted name"},[t._v(t._s(s.executor.name))])]:t._e(),s.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"},[s.visibleTaskMemberMenu?e("task-member-menu",{attrs:{projectCode:t.code,taskCode:s.code},on:{close:function(e){return t.init(!1)},inviteProjectMember:function(e){t.showInviteMember=!0,s.visibleTaskMemberMenu=!1}}}):t._e()],1)],1)]:t._e()]}}],null,!1,3060610604)}):t._e()],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=[],i=(a("ac6a"),a("c5f6"),a("c1df")),o=a.n(i),r=a("f66c"),c=a("4540"),l=a("e8d3"),u=a("d3a1"),d=a("81fe"),f=a("261e"),m=a("e507"),p=a("b199"),h=a("2f14"),v={name:"task-table",components:{ATextarea:f["a"],taskMemberMenu:r["a"],taskTagMenu:c["a"],projectMemberMenu:l["a"],inviteProjectMember:u["a"]},props:{projectCode:{type:[String],default:function(){return""}},width:{type:[String,Number],default:function(){return"1200"}}},data:function(){return{moment:o.a,ready:!1,loading:!1,code:this.projectCode,projectCodeCurrent:"",taskTableData:[],columns:[{title:"标题",dataIndex:"name",key:"name",scopedSlots:{customRender:"name"}},{title:"开始时间",dataIndex:"begin_time",key:"begin_time",scopedSlots:{customRender:"beginTime"}},{title:"截止时间",dataIndex:"end_time",key:"end_time",scopedSlots:{customRender:"endTime"}},{title:"执行人",dataIndex:"executor",key:"executor",scopedSlots:{customRender:"executor"}}],showInviteMember:!1}},created:function(){this.init()},mounted:function(){},filters:{formatLogTime:function(t){return Object(d["c"])(t)}},methods:{init:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];t&&(this.loading=!0),this.getTaskTree()},getTaskTree:function(){var t=this,e=this;Object(m["g"])({projectCode:this.code}).then((function(a){var s=a.data;s.forEach((function(t){t=e.formatTask(t),t.tasks&&t.tasks.length&&t.tasks.forEach((function(t){t=e.formatTask(t),t.tasks&&t.tasks.length&&t.tasks.forEach((function(t){t=e.formatTask(t),t.tasks&&t.tasks.length&&t.tasks.forEach((function(t){t=e.formatTask(t)}))}))}))})),t.taskTableData=t.formatTask(a.data),t.loading=!1,t.ready||(t.ready=!0)}))},formatTask:function(t){return"task"==t.type&&(t.visibleTaskMemberMenu=!1,t.showEndTime=!1,t.showBeginTime=!1,t.showRealTime=!1,t.tasks.length||delete t.tasks,t.end_time?(t.setEndTime=!0,t.end_time=o()(t.end_time)):(t.setEndTime=!1,t.end_time=o()(o()().format("YYYY-MM-DD")+" 18:00")),t.end_time_format=Object(d["b"])(t.end_time,!0),t.begin_time?(t.setBeginTime=!0,t.begin_time=o()(t.begin_time)):(t.setBeginTime=!1,t.begin_time=o()(o()().format("YYYY-MM-DD")+" 18:00")),t.begin_time_format=Object(d["b"])(t.begin_time,!0)),t},editTask:function(t,e){var a=this;e.taskCode=t.code,Object(p["h"])(e).then((function(t){var e=Object(h["a"])(t);if(!e)return!1;a.getTaskTree()}))},doEndTime:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.setEndTime=e,t.showEndTime=a;var s="";e?(s=o()(t.end_time).format("YYYY-MM-DD HH:mm"),t.end_time_format=o()(t.end_time).format("MM月DD日 HH:mm")):s="",this.editTask(t,{end_time:s})},doBeginTime:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.setBeginTime=e,t.showBeginTime=a;var s="";e?(s=o()(t.begin_time).format("YYYY-MM-DD HH:mm"),t.begin_time_format=o()(t.begin_time).format("MM月DD日 HH:mm")):s="",this.editTask(t,{begin_time:s})},rowClick:function(t,e){return{on:{click:function(a){if(console.log(t,e),"task"==t.type)t.id}}}}}},k=v,g=(a("f8d5b"),a("2877")),b=Object(g["a"])(k,s,n,!1,null,null,null);e["a"]=b.exports},bae8:function(t,e,a){t.exports=a.p+"img/logo.b83ac094.png"},baf2:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t._self._c;return e("a-modal",{staticClass:"task-detail-modal",attrs:{width:"min-content",closable:!1,visible:"",title:"",footer:null},on:{cancel:t.detailClose}},[e("task-detail",{attrs:{taskCode:t.code},on:{close:t.detailClose}}),e("div",[t._v("sss")])],1)},n=[],i=a("009f"),o={name:"task-detail-modal",components:{taskDetail:i["a"]},data:function(){return{loading:!1,code:this.$route.params.taskCode,projectCode:this.$route.params.code}},created:function(){console.log("加载"),this.init()},methods:{init:function(){this.loading=!0},detailClose:function(){var t=this.$route.query.from;t&&"?from=".concat(t),this.$router.push("/copysv")}}},r=o,c=(a("c224"),a("2877")),l=Object(c["a"])(r,s,n,!1,null,null,null);e["default"]=l.exports},c224:function(t,e,a){"use strict";a("36f9")},c24f:function(t,e,a){"use strict";a.d(e,"a",(function(){return c})),a.d(e,"y",(function(){return u})),a.d(e,"u",(function(){return d})),a.d(e,"h",(function(){return f})),a.d(e,"k",(function(){return m})),a.d(e,"n",(function(){return p})),a.d(e,"b",(function(){return h})),a.d(e,"w",(function(){return v})),a.d(e,"t",(function(){return k})),a.d(e,"z",(function(){return g})),a.d(e,"v",(function(){return b})),a.d(e,"p",(function(){return w})),a.d(e,"m",(function(){return _})),a.d(e,"o",(function(){return y})),a.d(e,"x",(function(){return j})),a.d(e,"A",(function(){return C})),a.d(e,"q",(function(){return T})),a.d(e,"s",(function(){return x})),a.d(e,"r",(function(){return O})),a.d(e,"d",(function(){return M})),a.d(e,"c",(function(){return S})),a.d(e,"l",(function(){return L})),a.d(e,"g",(function(){return D})),a.d(e,"e",(function(){return z})),a.d(e,"i",(function(){return P})),a.d(e,"f",(function(){return E})),a.d(e,"j",(function(){return N}));a("96cf"),a("ac6a");var s=a("1da1"),n=a("22b6"),i=a("a18c"),o=a("4360"),r=a("2f14");function c(t){return l.apply(this,arguments)}function l(){return l=Object(s["a"])(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",n["a"].post("project/login",e));case 1:case"end":return t.stop()}}),t)}))),l.apply(this,arguments)}function u(t){return n["a"].post("project/login/register",t)}function d(t){return n["a"].post("project/login/getCaptcha",{mobile:t})}function f(t){return n["a"].post("project/login/_getMailCaptcha",{email:t})}function m(t){return n["a"].post("project/login/_resetPasswordByMail",t)}function p(t){var e=t.code;return o["a"].dispatch("setCurrentOrganization",t),n["a"].post("project/index/changeCurrentOrganization",{organizationCode:e}).then((function(t){if(Object(r["a"])(t))return o["a"].dispatch("SET_MENU",t.data.menuList),o["a"].dispatch("SET_USER",t.data.member),o["a"].dispatch("windowLoading",!0),setTimeout((function(){var e=t.data.menuList;if(e){var a=i["a"].options.routes;e.forEach((function(t){a[0].children.push(Object(r["b"])(t)),t.children&&t.children.forEach((function(t){a[0].children.push(Object(r["b"])(t)),t.children&&t.children.forEach((function(t){a[0].children.push(Object(r["b"])(t))}))}))})),i["a"].addRoutes(a),o["a"].dispatch("windowLoading",!1)}}),500),Promise.resolve(t)}))}function h(t){return n["a"].post("project/account/_allList",t)}function v(t){return n["a"].post("project/account",t)}function k(t){return n["a"].post("project/account/forbid",{accountCode:t,status:0})}function g(t){return n["a"].post("project/account/resume",{accountCode:t,status:1})}function b(t){return n["a"].post("project/account/set_liaison_man",t)}function w(t){var e="project/account/add";return t.code&&(e="project/account/edit"),n["a"].post(e,t)}function _(t,e){return n["a"].post("project/account/auth",{id:t,auth:e})}function y(t){return n["a"].post("project/account/del",{accountCode:t})}function j(t){return n["a"].post("project/account/read",{code:t})}function C(t){return n["a"].post("project/account/_syncDetail",t)}function T(t){return n["a"].post("project/account/edit",t)}function x(t){return n["a"].post("project/index/editPersonal",t)}function O(t){return n["a"].post("project/index/editPassword",t)}function M(t){return n["a"].post("project/login/_bindMobile",t)}function S(t){return n["a"].post("project/login/_bindMail",t)}function L(t){return n["a"].post("project/login/_unbindDingtalk",t)}function D(t){return n["a"].post("project/login/_currentMember",t)}function z(t){return n["a"].post("project/login/_checkBindMail",t)}function P(t){return n["a"].post("project/account/_joinByInviteLink",{inviteCode:t})}function E(t){return n["a"].post("project/login/_checkLogin",t)}function N(t){return n["a"].post("project/login/_out",t)}},c3fe:function(t,e,a){"use strict";a("88ae")},c8f39:function(t,e,a){"use strict";a("4c84")},cbd1:function(t,e,a){},cd4b:function(t,e,a){"use strict";a.d(e,"a",(function(){return n})),a.d(e,"d",(function(){return i})),a.d(e,"e",(function(){return o})),a.d(e,"c",(function(){return r})),a.d(e,"b",(function(){return c})),a.d(e,"f",(function(){return l}));var s=a("22b6");function n(t){return s["a"].post("project/notify/_clearAll",t)}function i(t){return s["a"].post("project/notify",t)}function o(){return s["a"].post("project/notify/noReads")}function r(t){return s["a"].post("project/notify/delete",{id:t})}function c(t){return s["a"].post("project/notify/batchDel",{ids:t})}function l(t){return s["a"].post("project/notify/setReadied",{ids:t})}},d037:function(t,e,a){},d368:function(t,e,a){"use strict";a.d(e,"d",(function(){return i})),a.d(e,"a",(function(){return o})),a.d(e,"c",(function(){return r})),a.d(e,"b",(function(){return c}));var s=a("22b6"),n=a("4360");function i(t){return s["a"].post("project/organization",t)}function o(t){return s["a"].post("project/organization/_getOrgList",t).then((function(t){return t.data&&n["a"].dispatch("setOrganizationList",t.data),Promise.resolve(t)}))}function r(t){var e="project/organization/save";return t.organizationCode&&(e="project/organization/edit"),s["a"].post(e,t)}function c(t){return s["a"].post("project/organization/_quitOrganization",t)}},d3a1:function(t,e,a){"use strict";a("b54a"),a("7f7f");var s=function(){var t=this,e=t._self._c;return e("div",[e("a-modal",{staticClass:"invite-project-member",attrs:{width:500,title:t.actionInfo.modalTitle,footer:null},on:{cancel:t.cancel},model:{value:t.actionInfo.modalStatus,callback:function(e){t.$set(t.actionInfo,"modalStatus",e)},expression:"actionInfo.modalStatus"}},[e("div",{staticClass:"header"},[e("span",[t._v("账号邀请")]),e("a",{on:{click:t.createInviteLink}},[t._v("通过链接邀请")])]),e("div",{staticClass:"search-content m-b"},[e("a-input",{attrs:{placeholder:"输入昵称或邮箱查找"},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}},[e("a-icon",{attrs:{slot:"prefix",type:"search"},slot:"prefix"})],1)],1),e("vue-scroll",[e("div",{staticClass:"member-list"},[e("a-list",{staticClass:"project-list",attrs:{itemLayout:"horizontal",loading:t.searching,dataSource:t.list,locale:{emptyText:t.keyword&&t.keyword.length>1?"没有搜索到相关成员":""}},scopedSlots:t._u([{key:"renderItem",fn:function(a){return e("a-list-item",{},[e("span",{attrs:{slot:"actions"},slot:"actions"},[a.joined?[e("a-icon",{attrs:{type:"user"}}),e("span",[t._v(" 已加入")])]:e("a-button",{attrs:{size:"small",type:"dashed",icon:"user-add"},on:{click:function(e){return t.invite(a)}}},[t._v("邀请")])],2),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)])],1),e("a-modal",{staticClass:"invite-link",attrs:{width:600,title:t.linkInfo.modalTitle,footer:null},model:{value:t.linkInfo.modalStatus,callback:function(e){t.$set(t.linkInfo,"modalStatus",e)},expression:"linkInfo.modalStatus"}},[e("div",{staticClass:"header"},[e("p",[t._v("链接有效日期:"+t._s(t.linkInfo.overTime))]),e("a-input-search",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:t.linkInfo.link,expression:"linkInfo.link",arg:"copy"}],attrs:{size:"large",enterButton:"复制链接"},model:{value:t.linkInfo.link,callback:function(e){t.$set(t.linkInfo,"link",e)},expression:"linkInfo.link"}})],1)])],1)},n=[],i=(a("28a5"),a("386d"),a("c5f6"),a("2ef0")),o=a.n(i),r=a("c1df"),c=a.n(r),l=a("9f5d"),u=a("2f14"),d=a("82f8"),f={name:"inviteProjectMember",props:{value:{type:Boolean,default:function(){return!1}},projectCode:{type:[String,Number],default:function(){return""}}},data:function(){return{form:this.$form.createForm(this),actionInfo:{modalStatus:this.value,confirmLoading:!1,modalTitle:"邀请新成员"},linkInfo:{modalStatus:!1,confirmLoading:!1,modalTitle:"邀请成员",link:"",overTime:""},keyword:"",searching:!1,list:[]}},watch:{value:function(t){this.actionInfo.modalStatus=t},keyword:function(){this.search()}},created:function(){this.getMembers()},methods:{getMembers:function(){var t=this;Object(l["b"])({projectCode:t.projectCode}).then((function(e){t.list=e.data}))},invite:function(t){Object(l["c"])(t.memberCode,this.projectCode).then((function(e){var a=Object(u["a"])(e);a&&(t.joined=!0)}))},createInviteLink:function(){var t=this;this.linkInfo.link?this.linkInfo.modalStatus=!0:Object(d["b"])({inviteType:"project",sourceCode:this.projectCode}).then((function(e){var a=Object(u["a"])(e);a&&(t.linkInfo.modalStatus=!0,t.linkInfo.link=window.location.href.split("#")[0]+"#/invite_from_link/"+e.data.code,t.linkInfo.overTime=c()(e.data.code.over_time).format("YYYY年M月D日 HH:mm"))}))},search:o.a.debounce((function(){var t=this;if(this.keyword||(this.list=[]),this.keyword.length<=1)return this.getMembers(),!1;this.searching=!0,Object(l["f"])(this.keyword,this.projectCode).then((function(e){t.searching=!1,t.list=e.data}))}),500),cancel:function(){this.actionInfo.modalStatus=!1,this.$emit("input",this.actionInfo.modalStatus)}}},m=f,p=(a("2435"),a("2877")),h=Object(p["a"])(m,s,n,!1,null,null,null);e["a"]=h.exports},d8bc:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"a",(function(){return i}));var s=a("22b6");function n(t){return s["a"].post("project/task_member",t)}function i(t){return s["a"].post("project/task_member/inviteMemberBatch",t)}},e3cc:function(t,e,a){"use strict";a("7f7f");var s=function(){var t=this,e=t._self._c;return e("div",[e("a-tabs",{staticClass:"task-tag-index",attrs:{tabPosition:"left",defaultActiveKey:"1",animated:!1},model:{value:t.tabKey,callback:function(e){t.tabKey=e},expression:"tabKey"}},[t._l(t.taskTagList,(function(a){return e("a-tab-pane",{key:a.code},[e("div",{attrs:{slot:"tab"},slot:"tab"},[e("div",{staticClass:"tag-item"},[e("a-badge",{class:"badge-".concat(a.color),attrs:{status:"success"}}),t._v("\n "+t._s(a.name)+"\n ")],1)]),e("div",{staticClass:"config-content"},[e("vue-scroll",[e("div",{staticClass:"content-item"},[e("div",{staticClass:"infos"},[e("a-list",{attrs:{loading:{spinning:t.loading,delay:300}}},[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(),t._l(t.list,(function(a,s){return e("a-list-item",{key:s},[e("a-list-item-meta",[e("div",{staticClass:"task-list",class:{done:a.done},attrs:{slot:"title"},slot:"title"},[e("div",[e("router-link",{staticClass:"text-default task-content",attrs:{to:"/project/space/task/".concat(t.code,"/detail/").concat(a.code)}},[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 task-executor img-circle img-24 hinted m-r-sm",attrs:{src:a.executor.avatar,title:a.executor.name}})],2):e("a-avatar",{staticClass:"m-r-sm",attrs:{size:"small",icon:"user"}}),e("span",{staticClass:"task-name m-r"},[t._v(t._s(a.name))]),t._l(a.tags,(function(a){return e("span",{key:a.code,staticClass:"muted flex m-r tag-name"},[e("a-badge",{class:"badge-".concat(a.tag.color," m-r-xs"),attrs:{status:"success"}}),t._v("\n "+t._s(a.tag.name)+"\n ")],1)}))],2)],1),a.end_time?e("div",{staticClass:"label task-time",class:t.showTimeLabel(a.end_time)},[t._v("\n "+t._s(t.showTaskTime(a.begin_time,a.end_time))+"\n ")]):t._e()])])],1)}))],2)],1)])])],1)])})),t.loading||t.list.length?t._e():e("div",{staticClass:"m-t text-center"},[e("strong",[e("h2",[t._v("项目中还没有标签")])])])],2)],1)},n=[],i=a("2f14"),o=a("813b"),r=a("1b80"),c=a("81fe"),l=a("b199"),u=a("c1df"),d=a.n(u),f={name:"taskTag",props:{code:{type:[String],default:function(){return""}}},mixins:[r["a"]],data:function(){return{loading:!1,tabKey:"0",project:{},taskTagList:[],list:[],showLoadingMore:!1,loadingMore:!1}},watch:{code:function(){this.init()},tabKey:function(t){this.getTaskList()}},created:function(){this.init()},methods:{init:function(){var t=this;this.requestData.projectCode=this.code,t.getTaskTags()},getTaskTags:function(){var t=this;Object(o["c"])(t.requestData).then((function(e){t.taskTagList=e.data,e.data.length&&(t.tabKey=e.data[0].code)}))},getTaskList:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!this.tabKey)return!1;var e=this;e.loading=!0,t&&(this.list=[],this.pagination.page=1,this.pagination.pageSize=10,this.showLoadingMore=!1),Object(l["j"])({taskTagCode:this.tabKey}).then((function(t){e.list=e.list.concat(t.data.list),e.pagination.total=t.data.total,e.showLoadingMore=e.pagination.total>e.list.length,e.loading=!1,e.loadingMore=!1}))},onLoadMore:function(){this.loadingMore=!0,this.pagination.page++,this.getTaskList(!1)},showTaskTime:function(t,e){return Object(c["a"])(t,e)},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},deleteItem:function(t,e){var a=this;switch(this.tabKey){case"1":this.$confirm({title:"确定彻底删除任务?",content:"彻底删除任务后,该任务及其子任务将会被永久被删除。",okText:"彻底删除",okType:"danger",cancelText:"再想想",onOk:function(){return Object(o["a"])(t.code).then((function(s){Object(i["a"])(s)&&(a.list.splice(e,1),a.$emit("update",t))})),Promise.resolve()}});break;case"2":this.$confirm({title:"确认彻底删除该文件?",content:"彻底删除文件后,相关的关联资源将会失效。",okText:"彻底删除",okType:"danger",cancelText:"再想想",onOk:function(){return delFile(t.code).then((function(s){Object(i["a"])(s)&&(a.list.splice(e,1),a.$emit("update",t))})),Promise.resolve()}});break}}}},m=f,p=(a("aefa"),a("2877")),h=Object(p["a"])(m,s,n,!1,null,null,null);e["a"]=h.exports},e507:function(t,e,a){"use strict";a.d(e,"d",(function(){return n})),a.d(e,"g",(function(){return i})),a.d(e,"a",(function(){return o})),a.d(e,"h",(function(){return r})),a.d(e,"f",(function(){return c})),a.d(e,"e",(function(){return l})),a.d(e,"c",(function(){return u})),a.d(e,"b",(function(){return d}));var s=a("22b6");function n(t){return s["a"].post("project/task_stages",t)}function i(t){return s["a"].post("project/task_stages/taskTree",t)}function o(t){return s["a"].post("project/task_stages/_getAll",t)}function r(t){return s["a"].post("project/task_stages/tasks",t)}function c(t,e,a){return s["a"].post("project/task_stages/sort",{preCode:t,nextCode:e,projectCode:a})}function l(t){return s["a"].post("project/task_stages/save",t)}function u(t){return s["a"].post("project/task_stages/edit",t)}function d(t){return s["a"].post("project/task_stages/delete",{code:t})}},e8d3:function(t,e,a){"use strict";a("7f7f");var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"member-menu project-member-menu"},[e("a-spin",{attrs:{spinning:t.projectMemberLoading||t.taskMemberLoading}},[e("div",{staticClass:"search-content"},[e("a-input",{attrs:{size:"large",placeholder:"搜索"},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}},[e("a-icon",{attrs:{slot:"prefix",type:"search"},slot:"prefix"})],1)],1),e("div",{staticClass:"member-list"},[e("vue-scroll",[e("div",{directives:[{name:"show",rawName:"v-show",value:!t.keyword,expression:"!keyword"}],staticClass:"list-group"},[e("span",{staticClass:"title muted"},[t._v("参与者")]),e("a-list",{directives:[{name:"show",rawName:"v-show",value:t.taskMemberList.length,expression:"taskMemberList.length"}],staticClass:"list-content",attrs:{itemLayout:"horizontal",dataSource:t.taskMemberList},scopedSlots:t._u([{key:"renderItem",fn:function(a){return e("a-list-item",{staticClass:"member-list-item",class:{owner:a.is_owner},nativeOn:{click:function(e){return t.addToInvite(a.code,a.is_owner)}}},[e("span",{attrs:{slot:"actions"},slot:"actions"},[e("a-icon",{directives:[{name:"show",rawName:"v-show",value:t.showCheck(a.code),expression:"showCheck(item.code)"}],attrs:{type:"check"}})],1),e("a-list-item-meta",[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("div",{staticClass:"list-group"},[e("span",{staticClass:"title muted"},[t._v("其他成员")]),e("div",{staticClass:"member-list-item ant-list-item",on:{click:function(e){return t.addToInvite("all")}}},[e("div",{staticClass:"ant-list-item-meta"},[e("div",{staticClass:"ant-list-item-meta-avatar"},[e("a-avatar",{attrs:{icon:"user"}})],1),e("div",{staticClass:"ant-list-item-meta-content"},[e("h4",{staticClass:"ant-list-item-meta-title"},[e("span",[t._v("所有项目成员")])])])]),e("ul",{directives:[{name:"show",rawName:"v-show",value:t.showCheck("all"),expression:"showCheck('all')"}],staticClass:"ant-list-item-action"},[e("li",[e("span",[e("a-icon",{attrs:{type:"check"}})],1)])])]),e("a-list",{staticClass:"list-content",attrs:{itemLayout:"horizontal",dataSource:t.projectMemberList,locale:{emptyText:t.keyword&&t.keyword.length>1?"该成员不在项目成员列表中":""}},scopedSlots:t._u([{key:"renderItem",fn:function(a){return t.showMember(a)?e("a-list-item",{staticClass:"member-list-item",nativeOn:{click:function(e){return t.addToInvite(a.code,!1)}}},[e("span",{attrs:{slot:"actions"},slot:"actions"},[e("a-icon",{directives:[{name:"show",rawName:"v-show",value:t.showCheck(a.code),expression:"showCheck(item.code)"}],attrs:{type:"check"}})],1),e("a-list-item-meta",[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):t._e()}}],null,!0)})],1)])],1),e("div",{staticClass:"footer"},[e("a-button",{attrs:{type:"primary",size:"large",block:""},on:{click:t.inviteTaskMember}},[t._v("确定")])],1)])],1)},n=[],i=(a("20d6"),a("7514"),a("ac6a"),a("386d"),a("c5f6"),a("2ef0")),o=a.n(i),r=a("9f5d"),c=a("d8bc"),l={name:"projectMemberMenu",props:{projectCode:{type:[String,Number],default:function(){return""}},taskCode:{type:[String,Number],default:function(){return""}}},data:function(){return{keyword:"",searching:!1,taskMemberLoading:!0,projectMemberLoading:!0,showInviteMember:!1,taskMemberList:[],projectMemberList:[],listTemp:[],projectMemberListCopy:[],initAllMember:!1}},created:function(){this.init()},watch:{keyword:function(){this.search()}},methods:{init:function(){var t=this;this.projectMemberLoading=!0,this.taskMemberLoading=!0,this.projectCode&&Object(r["d"])({projectCode:this.projectCode,pageSize:300}).then((function(e){t.projectMemberList=e.data.list,t.projectMemberListCopy=e.data.list,t.projectMemberLoading=!1})),this.taskCode&&Object(c["b"])({taskCode:this.taskCode,pageSize:300}).then((function(e){t.taskMemberList=e.data.list,e.data.list.forEach((function(e){t.listTemp.push(e.code)})),t.taskMemberLoading=!1}))},showMember:function(t){var e=!0;return this.taskMemberList.forEach((function(a){t.code==a.code&&(e=!1)})),e},showCheck:function(t){if("all"==t&&!this.initAllMember)return!1;var e=this.listTemp.find((function(e){return e==t}));return!!e||void 0},addToInvite:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e)return!1;"all"==t&&(this.initAllMember=!0);var a=this.listTemp.findIndex((function(e){return e==t}));-1!==a?this.listTemp.splice(a,1):this.listTemp.push(t)},inviteTaskMember:function(){var t=this,e=[];this.taskMemberList.forEach((function(a){var s=t.listTemp.findIndex((function(t){return t==a.code}));-1===s&&e.push(a.code)})),this.listTemp.forEach((function(a){var s=t.taskMemberList.findIndex((function(t){return a==t.code}));-1===s&&e.push(a)})),e?Object(c["a"])({memberCodes:JSON.stringify(e),taskCode:this.taskCode}).then((function(){t.$emit("close")})):this.$emit("close")},search:o.a.debounce((function(){var t=this;if(this.keyword=this.keyword.trim(),this.keyword||(this.projectMemberList=JSON.parse(JSON.stringify(this.projectMemberListCopy))),this.keyword.length<=1)return!1;this.searching=!0,this.projectMemberList=this.projectMemberList.filter((function(e){return-1!=e.name.indexOf(t.keyword)}))}),500)}},u=l,d=a("2877"),f=Object(d["a"])(u,s,n,!1,null,null,null);e["a"]=f.exports},e9e0:function(t,e,a){},f66b:function(t,e,a){"use strict";a.d(e,"a",(function(){return n})),a.d(e,"b",(function(){return i}));var s=a("22b6");function n(t){return s["a"].post("project/project/positioning_list",{department_code:t})}function i(t){return s["a"].post("project/project/positioning_member",t)}},f66c:function(t,e,a){"use strict";a("7f7f");var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"member-menu"},[e("a-spin",{attrs:{spinning:t.listLoading||t.doListLoading}},[e("div",{staticClass:"search-content"},[e("a-input",{attrs:{size:"large",placeholder:"搜索"},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}},[e("a-icon",{attrs:{slot:"prefix",type:"search"},slot:"prefix"})],1)],1),e("div",{staticClass:"member-list"},[e("vue-scroll",[e("div",{directives:[{name:"show",rawName:"v-show",value:!t.keyword,expression:"!keyword"}],staticClass:"list-group"},[e("span",{staticClass:"title muted"},[t._v("执行者")]),t.doList.length||t.doListLoading?t._e():e("div",{staticClass:"member-list-item ant-list-item",on:{click:function(e){return t.assignTask(null)}}},[e("div",{staticClass:"ant-list-item-meta"},[e("div",{staticClass:"ant-list-item-meta-avatar"},[e("a-avatar",{attrs:{icon:"user"}})],1),e("div",{staticClass:"ant-list-item-meta-content"},[e("h4",{staticClass:"ant-list-item-meta-title"},[e("span",[t._v("未设置")])])])]),e("ul",{staticClass:"ant-list-item-action"},[e("li",[e("span",[e("a-icon",{attrs:{type:"check"}})],1)])])]),e("a-list",{directives:[{name:"show",rawName:"v-show",value:t.doList.length,expression:"doList.length"}],staticClass:"list-content",attrs:{itemLayout:"horizontal",dataSource:t.doList},scopedSlots:t._u([{key:"renderItem",fn:function(a){return e("a-list-item",{staticClass:"member-list-item"},[e("span",{attrs:{slot:"actions"},slot:"actions"},[e("a-icon",{directives:[{name:"show",rawName:"v-show",value:t.showCheck(a),expression:"showCheck(item)"}],attrs:{type:"check"}})],1),e("a-list-item-meta",[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("div",{staticClass:"list-group"},[e("span",{staticClass:"title muted"},[t._v("其他成员")]),t.doList.length?e("div",{staticClass:"member-list-item ant-list-item",on:{click:function(e){return t.assignTask(null)}}},[e("div",{staticClass:"ant-list-item-meta"},[e("div",{staticClass:"ant-list-item-meta-avatar"},[e("a-avatar",{attrs:{icon:"user"}})],1),e("div",{staticClass:"ant-list-item-meta-content"},[e("h4",{staticClass:"ant-list-item-meta-title"},[e("span",[t._v("待认领")])])])])]):t._e(),e("a-list",{staticClass:"list-content",attrs:{itemLayout:"horizontal",dataSource:t.list,locale:{emptyText:t.keyword&&t.keyword.length>1?"该成员不在任务成员列表中,你可以邀请他进来":""}},scopedSlots:t._u([{key:"renderItem",fn:function(a){return t.showMember(a)?e("a-list-item",{staticClass:"member-list-item",nativeOn:{click:function(e){return t.assignTask(a.code,a)}}},[e("a-list-item-meta",[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):t._e()}}],null,!0)})],1)])],1),e("div",{staticClass:"footer"},[e("a-button",{attrs:{type:"primary",size:"large",block:""},on:{click:t.inviteProjectMember}},[t._v("邀请新成员")])],1)])],1)},n=[],i=(a("ac6a"),a("386d"),a("c5f6"),a("2ef0")),o=a.n(i),r=a("9f5d"),c=a("d8bc"),l=a("b199"),u={name:"taskMemberMenu",props:{projectCode:{type:[String,Number],default:function(){return""}},taskCode:{type:[String,Number],default:function(){return""}},isCommit:{type:[Boolean],default:function(){return!0}}},data:function(){return{keyword:"",searching:!1,doListLoading:!1,listLoading:!1,showInviteMember:!1,doList:[],list:[],listTemp:[]}},created:function(){this.init()},watch:{keyword:function(){this.search()}},methods:{init:function(){var t=this;this.projectCode&&(this.listLoading=!0,Object(r["d"])({projectCode:this.projectCode,pageSize:300}).then((function(e){t.list=e.data.list,t.listTemp=e.data.list,t.listLoading=!1}))),this.taskCode&&(this.doListLoading=!0,Object(c["b"])({taskCode:this.taskCode,pageSize:300}).then((function(e){t.doList=e.data.list.filter((function(t){return t.is_executor})),t.doListLoading=!1})))},showMember:function(t){var e=!0;return this.doList.forEach((function(a){t.code==a.code&&(e=!1)})),e},showCheck:function(t){if(t.is_executor)return!0},assignTask:function(t){var e=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.isCommit?Object(l["b"])({taskCode:this.taskCode,executorCode:t}).then((function(){e.$emit("close",a)})):this.$emit("close",a)},inviteProjectMember:function(){this.$emit("inviteProjectMember")},search:o.a.debounce((function(){var t=this;if(this.keyword=this.keyword.trim(),this.keyword||(this.list=JSON.parse(JSON.stringify(this.listTemp))),this.keyword.length<=1)return!1;this.searching=!0,this.list=this.list.filter((function(e){return-1!=e.name.indexOf(t.keyword)}))}),500)}},d=u,f=a("2877"),m=Object(f["a"])(d,s,n,!1,null,null,null);e["a"]=m.exports},f8c7:function(t,e,a){"use strict";a("7f7f");var s=function(){var t=this,e=t._self._c;return t.currentProject?e("div",{attrs:{id:"project-select"}},[e("a-dropdown",{staticClass:"action-item",attrs:{trigger:["click"],placement:"bottomCenter"},model:{value:t.visibleMenu,callback:function(e){t.visibleMenu=e},expression:"visibleMenu"}},[e("a-tooltip",{attrs:{mouseEnterDelay:.3,title:t.currentProject.name}},[e("a",{staticClass:"project-select",staticStyle:{color:"#333"}},[e("span",[t._v(t._s(t.currentProject.name))]),e("span",{staticClass:"m-l-xs"},[e("a-icon",{attrs:{type:"down"}})],1)])]),e("div",{staticClass:"middle-menu member-menu project-select-menu",attrs:{slot:"overlay"},slot:"overlay"},[e("div",{staticClass:"search-content"},[e("a-input",{attrs:{size:"large",placeholder:"搜索"},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}},[e("a-icon",{attrs:{slot:"prefix",type:"search"},slot:"prefix"})],1)],1),e("div",{staticClass:"member-list"},[e("vue-scroll",[e("div",{staticClass:"list-group"},[e("a-list",{staticClass:"list-content",attrs:{itemLayout:"horizontal",dataSource:t.projectList,locale:{emptyText:t.keyword&&t.keyword.length>1?"没有找到该项目":""}},scopedSlots:t._u([{key:"renderItem",fn:function(a){return e("a-list-item",{staticClass:"member-list-item",nativeOn:{click:function(e){return t.changeProject(a.code)}}},[e("span",{attrs:{slot:"actions"},slot:"actions"},[e("a-icon",{directives:[{name:"show",rawName:"v-show",value:t.showCheck(a.code),expression:"showCheck(item.code)"}],attrs:{type:"check"}})],1),e("a-list-item-meta",[e("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(a.name))]),e("a-avatar",{attrs:{slot:"avatar",icon:"user",src:a.cover},slot:"avatar"})],1)],1)}}],null,!1,3141279394)})],1)])],1)])],1)],1):t._e()},n=[],i=(a("8e6e"),a("ac6a"),a("456d"),a("386d"),a("ade3")),o=a("2ef0"),r=a.n(o),c=a("2f62"),l=a("24d2"),u=a("1b80");function d(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 f(t){for(var e=1;e0&&void 0!==arguments[0])||arguments[0];this.loading=e,this.requestData.pageSize=50,this.requestData.archive=-1,Object(l["l"])(this.requestData).then((function(e){t.projectList=e.data.list,t.projectListCopy=e.data.list,t.projectTotal=e.data.total,t.loading=!1}))},changeProject:function(t){this.visibleMenu=!1,this.$router.push("/project/space/task/"+t)},showCheck:function(t){if(t==this.code)return!0},search:r.a.debounce((function(){var t=this;if(this.keyword=this.keyword.trim(),this.keyword||(this.projectList=JSON.parse(JSON.stringify(this.projectListCopy))),this.keyword.length<=1)return!1;this.projectList=this.projectList.filter((function(e){return-1!=e.name.indexOf(t.keyword)}))}),500),getPopup:function(){return document.getElementById("project-select")}}},p=m,h=(a("7606"),a("2877")),v=Object(h["a"])(p,s,n,!1,null,null,null);e["a"]=v.exports},f8d5b:function(t,e,a){"use strict";a("cbd1")},f93e:function(t,e,a){"use strict";a.d(e,"a",(function(){return s}));var s={PAGE_SIZE:20,PAGE_NUM:1,TASK_STATUS:[{id:0,name:"未开始",color:"rgba(0, 0, 0, 0.65)"},{id:1,name:"已完成",color:"#1890ff"},{id:2,name:"进行中",color:"#52c41a"},{id:3,name:"挂起",color:"#f5222d"},{id:4,name:"验收中",color:"#faad14"}]}},fe8e:function(t,e,a){},ff64:function(t,e,a){"use strict";a("2d94")}}); \ No newline at end of file