work/static/dist/js/chunk-4e78cf04.ce3ae15e.js
2022-08-14 10:22:21 +08:00

1 line
21 KiB
PHP

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4e78cf04"],{"0d4e":function(t,e,i){},"1ee8":function(t,e,i){},"386b":function(t,e,i){var a=i("5ca1"),s=i("79e5"),n=i("be13"),r=/"/g,o=function(t,e,i,a){var s=String(n(t)),o="<"+e;return""!==i&&(o+=" "+i+'="'+String(a).replace(r,"&quot;")+'"'),o+">"+s+"</"+e+">"};t.exports=function(t,e){var i={};i[t]=e(o),a(a.P+a.F*s((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})),"String",i)}},"3ed7":function(t,e,i){"use strict";i("0d4e")},4540:function(t,e,i){"use strict";var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"member-menu",class:{creating:t.creating,editing:t.editing}},[i("a-spin",{attrs:{spinning:t.listLoading}},[i("div",{staticClass:"search-content"},[i("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?i("a-icon",{attrs:{slot:"prefix",type:"tag"},slot:"prefix"}):i("a-icon",{attrs:{slot:"prefix",type:"search"},slot:"prefix"})],1)],1),i("div",{staticClass:"member-list tag-list"},[t.creating||t.editing?t._e():[i("vue-scroll",[i("div",{staticClass:"list-group"},[i("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(e,a){return i("a-list-item",{staticClass:"member-list-item",nativeOn:{click:function(i){return t.setTag(e)}}},[i("span",{attrs:{slot:"actions"},slot:"actions"},[i("a",{staticClass:"tag-edit muted"},[i("a-icon",{attrs:{type:"edit"},on:{click:function(i){return i.stopPropagation(),t.editTag(e,a)}}})],1),i("a-icon",{directives:[{name:"show",rawName:"v-show",value:t.showCheck(e),expression:"showCheck(item)"}],staticClass:"m-l-sm",attrs:{type:"check"}})],1),i("a-list-item-meta",[i("span",{staticClass:"tag-title",attrs:{slot:"title"},slot:"title"},[i("a-badge",{class:"badge-"+e.color,attrs:{status:"success"}}),t._v(" "+t._s(e.name))],1)])],1)}}],null,!1,1469851617)})],1)])],t.creating||t.editing?[i("div",{staticClass:"tag-badge"},t._l(t.badgeList,(function(e){return i("span",{key:e,staticClass:"badge-item",on:{click:function(i){t.currentBadge=e}}},[i("a-badge",{class:"badge-"+e,attrs:{status:"success"}}),i("a-icon",{directives:[{name:"show",rawName:"v-show",value:t.currentBadge==e,expression:"currentBadge == badge"}],attrs:{type:"check"}})],1)})),0)]:t._e()],2),i("div",{staticClass:"footer"},[t.creating?[i("a-button",{attrs:{type:"default",size:"large"},on:{click:function(e){t.creating=!1,t.keyword=""}}},[t._v("取消")]),i("a-button",{attrs:{type:"primary",disabled:!t.keyword,size:"large"},on:{click:t.createTag}},[t._v("创建")])]:t.editing?[i("a-popconfirm",{attrs:{overlayStyle:{zIndex:"1080"},title:"确认删除标签?",okText:"确定",cancelText:"取消"},on:{confirm:t.deleteTag}},[i("a-button",{attrs:{type:"danger",size:"large"}},[t._v("删除")])],1),i("a-button",{attrs:{type:"primary",disabled:!t.keyword,size:"large"},on:{click:t.saveTag}},[t._v("完成")])]:[i("a-button",{attrs:{type:"primary",size:"large",block:""},on:{click:function(e){t.creating=!0,t.activeCreating=!0}}},[t._v("新建标签\n ")])]],2)])],1)},s=[],n=(i("7f7f"),i("20d6"),i("386d"),i("c5f6"),i("2ef0"),i("813b")),r=i("b199"),o=i("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(n["c"])({projectCode:this.projectCode}).then((function(e){t.list=e.data,t.listTemp=e.data,t.listLoading=!1}))),this.taskCode&&Object(r["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(n["b"])({name:this.keyword,color:this.currentBadge,tagCode:this.currentTag.tag.code}).then((function(e){if(!Object(o["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(n["a"])(this.currentTag.tag.code).then((function(e){if(!Object(o["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(r["w"])({taskCode:this.taskCode,tagCode:t.code}).then((function(){e.$emit("change",t)})):this.$emit("change",t)},createTag:function(){var t=this;Object(n["d"])({projectCode:this.projectCode,name:this.keyword,color:this.currentBadge}).then((function(e){if(!Object(o["a"])(e))return!1;var i=e.data;t.listTemp.push(i),t.list.push(i),t.checkTaskChange(i),Object(r["w"])({taskCode:t.taskCode,tagCode:i.code}).then((function(){t.$emit("change",i),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,d=(i("ae2c"),i("2877")),u=Object(d["a"])(l,a,s,!1,null,null,null);e["a"]=u.exports},"813b":function(t,e,i){"use strict";i.d(e,"c",(function(){return s})),i.d(e,"d",(function(){return n})),i.d(e,"b",(function(){return r})),i.d(e,"a",(function(){return o}));var a=i("22b6");function s(t){return a["a"].post("project/task_tag",t)}function n(t){return a["a"].post("project/task_tag/save",t)}function r(t){return a["a"].post("project/task_tag/edit",t)}function o(t){return a["a"].post("project/task_tag/delete",{tagCode:t})}},ae2c:function(t,e,i){"use strict";i("1ee8")},b54a:function(t,e,i){"use strict";i("386b")("link",(function(t){return function(e){return t(this,"a","href",e)}}))},d3a1:function(t,e,i){"use strict";var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("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"}},[i("div",{staticClass:"header"},[i("span",[t._v("账号邀请")]),i("a",{on:{click:t.createInviteLink}},[t._v("通过链接邀请")])]),i("div",{staticClass:"search-content m-b"},[i("a-input",{attrs:{placeholder:"输入昵称或邮箱查找"},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}},[i("a-icon",{attrs:{slot:"prefix",type:"search"},slot:"prefix"})],1)],1),i("vue-scroll",[i("div",{staticClass:"member-list"},[i("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(e){return i("a-list-item",{},[i("span",{attrs:{slot:"actions"},slot:"actions"},[e.joined?[i("a-icon",{attrs:{type:"user"}}),i("span",[t._v(" 已加入")])]:i("a-button",{attrs:{size:"small",type:"dashed",icon:"user-add"},on:{click:function(i){return t.invite(e)}}},[t._v("邀请")])],2),i("a-list-item-meta",{attrs:{description:e.email}},[i("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(e.name))]),i("a-avatar",{attrs:{slot:"avatar",icon:"user",src:e.avatar},slot:"avatar"})],1)],1)}}])})],1)])],1),i("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"}},[i("div",{staticClass:"header"},[i("p",[t._v("链接有效日期:"+t._s(t.linkInfo.overTime))]),i("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)},s=[],n=(i("28a5"),i("b54a"),i("386d"),i("c5f6"),i("2ef0")),r=i.n(n),o=i("c1df"),c=i.n(o),l=i("9f5d"),d=i("2f14"),u=i("82f8"),m={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 i=Object(d["a"])(e);i&&(t.joined=!0)}))},createInviteLink:function(){var t=this;this.linkInfo.link?this.linkInfo.modalStatus=!0:Object(u["b"])({inviteType:"project",sourceCode:this.projectCode}).then((function(e){var i=Object(d["a"])(e);i&&(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:r.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)}}},h=m,f=(i("3ed7"),i("2877")),p=Object(f["a"])(h,a,s,!1,null,null,null);e["a"]=p.exports},d8bc:function(t,e,i){"use strict";i.d(e,"b",(function(){return s})),i.d(e,"a",(function(){return n}));var a=i("22b6");function s(t){return a["a"].post("project/task_member",t)}function n(t){return a["a"].post("project/task_member/inviteMemberBatch",t)}},e8d3:function(t,e,i){"use strict";var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"member-menu project-member-menu"},[i("a-spin",{attrs:{spinning:t.projectMemberLoading||t.taskMemberLoading}},[i("div",{staticClass:"search-content"},[i("a-input",{attrs:{size:"large",placeholder:"搜索"},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}},[i("a-icon",{attrs:{slot:"prefix",type:"search"},slot:"prefix"})],1)],1),i("div",{staticClass:"member-list"},[i("vue-scroll",[i("div",{directives:[{name:"show",rawName:"v-show",value:!t.keyword,expression:"!keyword"}],staticClass:"list-group"},[i("span",{staticClass:"title muted"},[t._v("参与者")]),i("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(e){return i("a-list-item",{staticClass:"member-list-item",class:{owner:e.is_owner},nativeOn:{click:function(i){return t.addToInvite(e.code,e.is_owner)}}},[i("span",{attrs:{slot:"actions"},slot:"actions"},[i("a-icon",{directives:[{name:"show",rawName:"v-show",value:t.showCheck(e.code),expression:"showCheck(item.code)"}],attrs:{type:"check"}})],1),i("a-list-item-meta",[i("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(e.name))]),i("a-avatar",{attrs:{slot:"avatar",icon:"user",src:e.avatar},slot:"avatar"})],1)],1)}}])})],1),i("div",{staticClass:"list-group"},[i("span",{staticClass:"title muted"},[t._v("其他成员")]),i("div",{staticClass:"member-list-item ant-list-item",on:{click:function(e){return t.addToInvite("all")}}},[i("div",{staticClass:"ant-list-item-meta"},[i("div",{staticClass:"ant-list-item-meta-avatar"},[i("a-avatar",{attrs:{icon:"user"}})],1),i("div",{staticClass:"ant-list-item-meta-content"},[i("h4",{staticClass:"ant-list-item-meta-title"},[i("span",[t._v("所有项目成员")])])])]),i("ul",{directives:[{name:"show",rawName:"v-show",value:t.showCheck("all"),expression:"showCheck('all')"}],staticClass:"ant-list-item-action"},[i("li",[i("span",[i("a-icon",{attrs:{type:"check"}})],1)])])]),i("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(e){return t.showMember(e)?i("a-list-item",{staticClass:"member-list-item",nativeOn:{click:function(i){return t.addToInvite(e.code,!1)}}},[i("span",{attrs:{slot:"actions"},slot:"actions"},[i("a-icon",{directives:[{name:"show",rawName:"v-show",value:t.showCheck(e.code),expression:"showCheck(item.code)"}],attrs:{type:"check"}})],1),i("a-list-item-meta",[i("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(e.name))]),i("a-avatar",{attrs:{slot:"avatar",icon:"user",src:e.avatar},slot:"avatar"})],1)],1):t._e()}}],null,!0)})],1)])],1),i("div",{staticClass:"footer"},[i("a-button",{attrs:{type:"primary",size:"large",block:""},on:{click:t.inviteTaskMember}},[t._v("确定")])],1)])],1)},s=[],n=(i("7f7f"),i("20d6"),i("7514"),i("ac6a"),i("386d"),i("c5f6"),i("2ef0")),r=i.n(n),o=i("9f5d"),c=i("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(o["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(i){t.code==i.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 i=this.listTemp.findIndex((function(e){return e==t}));-1!==i?this.listTemp.splice(i,1):this.listTemp.push(t)},inviteTaskMember:function(){var t=this,e=[];this.taskMemberList.forEach((function(i){var a=t.listTemp.findIndex((function(t){return t==i.code}));-1===a&&e.push(i.code)})),this.listTemp.forEach((function(i){var a=t.taskMemberList.findIndex((function(t){return i==t.code}));-1===a&&e.push(i)})),e?Object(c["a"])({memberCodes:JSON.stringify(e),taskCode:this.taskCode}).then((function(){t.$emit("close")})):this.$emit("close")},search:r.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)}},d=l,u=i("2877"),m=Object(u["a"])(d,a,s,!1,null,null,null);e["a"]=m.exports},f66c:function(t,e,i){"use strict";var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"member-menu"},[i("a-spin",{attrs:{spinning:t.listLoading||t.doListLoading}},[i("div",{staticClass:"search-content"},[i("a-input",{attrs:{size:"large",placeholder:"搜索"},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}},[i("a-icon",{attrs:{slot:"prefix",type:"search"},slot:"prefix"})],1)],1),i("div",{staticClass:"member-list"},[i("vue-scroll",[i("div",{directives:[{name:"show",rawName:"v-show",value:!t.keyword,expression:"!keyword"}],staticClass:"list-group"},[i("span",{staticClass:"title muted"},[t._v("执行者")]),t.doList.length||t.doListLoading?t._e():i("div",{staticClass:"member-list-item ant-list-item",on:{click:function(e){return t.assignTask(null)}}},[i("div",{staticClass:"ant-list-item-meta"},[i("div",{staticClass:"ant-list-item-meta-avatar"},[i("a-avatar",{attrs:{icon:"user"}})],1),i("div",{staticClass:"ant-list-item-meta-content"},[i("h4",{staticClass:"ant-list-item-meta-title"},[i("span",[t._v("待认领")])])])]),i("ul",{staticClass:"ant-list-item-action"},[i("li",[i("span",[i("a-icon",{attrs:{type:"check"}})],1)])])]),i("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(e){return i("a-list-item",{staticClass:"member-list-item"},[i("span",{attrs:{slot:"actions"},slot:"actions"},[i("a-icon",{directives:[{name:"show",rawName:"v-show",value:t.showCheck(e),expression:"showCheck(item)"}],attrs:{type:"check"}})],1),i("a-list-item-meta",[i("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(e.name))]),i("a-avatar",{attrs:{slot:"avatar",icon:"user",src:e.avatar},slot:"avatar"})],1)],1)}}])})],1),i("div",{staticClass:"list-group"},[i("span",{staticClass:"title muted"},[t._v("其他成员")]),t.doList.length?i("div",{staticClass:"member-list-item ant-list-item",on:{click:function(e){return t.assignTask(null)}}},[i("div",{staticClass:"ant-list-item-meta"},[i("div",{staticClass:"ant-list-item-meta-avatar"},[i("a-avatar",{attrs:{icon:"user"}})],1),i("div",{staticClass:"ant-list-item-meta-content"},[i("h4",{staticClass:"ant-list-item-meta-title"},[i("span",[t._v("待认领")])])])])]):t._e(),i("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(e){return t.showMember(e)?i("a-list-item",{staticClass:"member-list-item",nativeOn:{click:function(i){return t.assignTask(e.code,e)}}},[i("a-list-item-meta",[i("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(e.name))]),i("a-avatar",{attrs:{slot:"avatar",icon:"user",src:e.avatar},slot:"avatar"})],1)],1):t._e()}}],null,!0)})],1)])],1),i("div",{staticClass:"footer"},[i("a-button",{attrs:{type:"primary",size:"large",block:""},on:{click:t.inviteProjectMember}},[t._v("邀请新成员")])],1)])],1)},s=[],n=(i("7f7f"),i("ac6a"),i("386d"),i("c5f6"),i("2ef0")),r=i.n(n),o=i("9f5d"),c=i("d8bc"),l=i("b199"),d={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(o["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(i){t.code==i.code&&(e=!1)})),e},showCheck:function(t){if(t.is_executor)return!0},assignTask:function(t){var e=this,i=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",i)})):this.$emit("close",i)},inviteProjectMember:function(){this.$emit("inviteProjectMember")},search:r.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)}},u=d,m=i("2877"),h=Object(m["a"])(u,a,s,!1,null,null,null);e["a"]=h.exports},f93e:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var a={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"}]}}}]);