1 line
24 KiB
JavaScript
1 line
24 KiB
JavaScript
(this.webpackJsonp=this.webpackJsonp||[]).push([[102],{"6JOy":function(e,t,a){},D5tj:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=l(a("mr32"));t.TagInfo=function(e,t){var a="#e74c3c";a="高"===e?"#e67e22":"正常"===e?"#28be6c":"低"===e?"#1abc9c":"#e74c3c";return n.default.createElement(s.default,{color:a,className:t,style:{height:"25px",lineHeight:"23px"}},e)},a("0lcf");var n=l(a("q1tI"));function l(e){return e&&e.__esModule?e:{default:e}}},GqXi:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=d(a("NJEC")),n=function(){function e(e,t){for(var a=0;a<t.length;a++){var s=t[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}return function(t,a,s){return a&&e(t.prototype,a),s&&e(t,s),t}}();a("k994");var l=a("q1tI"),i=d(l),r=a("eO8H"),u=a("D5tj");function d(e){return e&&e.__esModule?e:{default:e}}var o=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.set_issue_tags=function(e){return e&&e.length>0?e.map((function(e,t){return i.default.createElement("span",{className:"mr10",key:t},e.name)})):"--"},a.deletedetail=function(e){a.props.deletedetail(e)},a.onMouseMove=function(e){a.setState({isdisplay:!0,orderid:e})},a.onMouseOut=function(){a.setState({isdisplay:!1})},a.state={isdisplay:!1,orderid:""},a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"render",value:function(){var e=this,t=this.props,a=t.item,n=t.checkbox,l=t.mile,d=t.user_admin_or_member,o=this.props.match.params,c=o.projectsId,p=o.owner,_=this.state,m=_.orderid,f=_.isdisplay,h=this.props.current_user;return a&&i.default.createElement("div",{className:"issueItem"},h&&h.login&&n,i.default.createElement("div",{className:"flex-1"},i.default.createElement("p",{className:"mb10 df",style:{alignItems:"center"}},i.default.createElement(r.Link,{to:"/"+p+"/"+c+"/issues/"+a.id,title:a.name,className:"hide-1 font-16 color-grey-3 lineh-30 mr10",style:{maxWidth:"370px"}},a.name),(0,u.TagInfo)(a.priority,"mr10")),i.default.createElement("p",{className:"color-grey-6 font-12"},i.default.createElement("span",null,a.format_time),i.default.createElement("span",{className:"ml5"},"发布"),a.updated_at===a.format_time?"":i.default.createElement("span",{className:"ml20"},i.default.createElement("span",null,a.updated_at),i.default.createElement("span",{className:"ml5"},"更新")))),i.default.createElement("ul",{className:"topWrapper_select no-cursor",onMouseMove:function(){return e.onMouseMove(a.id)},onMouseOut:function(){return e.onMouseOut()}},i.default.createElement("li",null,this.set_issue_tags(a.issue_tags)),i.default.createElement("li",null,a.author_name?i.default.createElement(r.Link,{to:"/"+a.author_login,className:"show-user-link"},a.author_name):"--"),i.default.createElement("li",null,a.assign_user_name?i.default.createElement(r.Link,{to:"/"+a.assign_user_login,className:"show-user-link"},a.assign_user_name):"--"),i.default.createElement("li",null,a.tracker||"--"),l?"":i.default.createElement("li",null,a.version||"--"),i.default.createElement("li",null,a.issue_status||"--"),i.default.createElement("li",{style:{color:"100%"===a.done_ratio?"#28BD6C":"#F73030"}},a.done_ratio||"--"),i.default.createElement("li",null,i.default.createElement("div",{className:"milepostleft"},i.default.createElement(r.Link,{to:"/"+p+"/"+c+"/issues/"+a.id},i.default.createElement("i",{className:"iconfont icon-pinglun1 mr3 font-16"}),a.journals_count),d?i.default.createElement("div",{style:{display:m===a.id&&f?"flex":"none"}},i.default.createElement("div",{className:"mr8 ml8 color-grey-9"},i.default.createElement(r.Link,{to:"/"+p+"/"+c+"/issues/"+a.id+"/edit",className:"color-grey-9"},i.default.createElement("i",{className:"iconfont icon-bianji3 font-14 mr5"}))),i.default.createElement("div",{className:"color-grey-9"},i.default.createElement(s.default,{placement:"bottom",overlayClassName:m===a.id&&f?"overlayBox":"overlayBox hideOverlay",title:"您确定要删除当前疑修吗?",okText:"是",cancelText:"否",onConfirm:function(){return e.deletedetail(a.id)}},i.default.createElement("i",{className:"iconfont icon-yiguanbi1 font-14"})))):""))))}}]),t}(l.Component);t.default=o},Phz4:function(e,t,a){},WT1Z:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=y(a("W9HT")),n=y(a("NUBc")),l=y(a("jsC+")),i=y(a("CtXQ")),r=y(a("kaz8")),u=y(a("+eQT")),d=y(a("BvKs")),o=y(a("5rEg")),c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},p=function(){function e(e,t){for(var a=0;a<t.length;a++){var s=t[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}return function(t,a,s){return a&&e(t.prototype,a),s&&e(t,s),t}}();a("04bd"),a("YQTV"),a("aIZi"),a("2oDE"),a("MKzF"),a("U8R4"),a("2WkQ"),a("1vPl");var _=a("q1tI"),m=y(_);a("6JOy"),a("Phz4");var f=y(a("wd/R")),h=y(a("2CTR")),g=y(a("GqXi")),v=y(a("Po8q")),E=y(a("vDqi"));function y(e){return e&&e.__esModule?e:{default:e}}function b(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var k=o.default.Search,N=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.componentDidMount=function(){var e=v.default.load("states"),t="undefined"===e?void 0:e;t?a.setState(c({},t),(function(){a.getSelectList(),a.getIssueList(t.status_type)})):(a.getSelectList(),a.getIssueList("1"))},a.getSelectList=function(){a.setState({isSpin:!0});var e=a.props.match.params,t=e.projectsId,s="/"+e.owner+"/"+t+"/issues/index_chosen.json";E.default.get(s).then((function(e){e&&a.setState({issue_chosen:e.data.issue_chosen,isSpin:!1})})).catch((function(e){console.log(e)}))},a.getIssueList=function(e,t,s){a.setState({isSpin:!0});var n=a.state.select_params,l=a.props.match.params,i=l.projectsId,r="/"+l.owner+"/"+i+"/issues.json";E.default.get(r,{params:c({},n,{start_date:t,due_date:s,status_type:e})}).then((function(t){if(t){var s=t.data.issues;a.saveCookies(e),a.setState({data:t.data,issues:s,search_count:t.data.search_count,isSpin:!1,allValue:s&&s.length>0&&s.map((function(e){return e.id})),status_type:e})}})).catch((function(e){console.log(e)}))},a.saveCookies=function(e){var t=a.props.match.params,s=(t.projectsId,t.owner,a.state),n=s.select_params,l=s.issue_tag_ids,i=s.tracker_ids,r=s.author_ids,u={select_params:n,assigned_to_ids:s.assigned_to_ids,status_type:e,issue_tag_ids:l,tracker_ids:i,author_id:s.author_id,assigned_to_id:s.assigned_to_id,author_ids:r,fixed_version_ids:s.fixed_version_ids,status_ids:s.status_ids,done_ratios:s.done_ratios,paix:s.paix,update_author_ids:s.update_author_ids,update_fixed_version_idsx:s.update_fixed_version_idsx,update_status_ids:s.update_status_ids,begin:s.begin,end:s.end,search:s.search},d=new Date((new Date).getTime()+864e5);v.default.save("states",c({},u),{expires:d,path:"/"})},a.getMenu=function(e,t,s){a.setState({isSpin:!0});var n=e.key.split("-");"created_on"===n[0]?"desc"===e.item.props.value?a.setState({paix:"最新创建"}):a.setState({paix:"最早创建"}):"updated_on"===n[0]&&("desc"===e.item.props.value?a.setState({paix:"最新更新"}):a.setState({paix:"最早更新"}));var l=a.state.select_params;a.setState({select_params:c({},l,{order_name:n[0],order_type:e.item.props.value,page:1})},(function(){var e=a.state.status_type;a.getIssueList(e)}))},a.getOption=function(e,t,s,n){var l,i=a.props.current_user,r="all"===e.key?void 0:e.key,u=a.state.author_id,d=a.state.assigned_to_id,o=a.state.select_params;o[""+t]=r,o.page=1,i&&(u=o.author_id&&o.author_id===i.user_id?i.user_id:void 0,d=o.assigned_to_id&&o.assigned_to_id===i.user_id?i.user_id:void 0),a.setState((b(l={},t+"s",s),b(l,"select_params",o),b(l,"author_id",u),b(l,"assigned_to_id",d),l),(function(){if(!n){var e=a.state.status_type;a.getIssueList(e)}}))},a.renderMenu=function(e,t,s,n){return m.default.createElement(d.default,{className:"orderCondition"},m.default.createElement(d.default.Item,{key:"all",onClick:function(e){return a.getOption(e,s,t,n)}},t),e&&e.length>0&&e.map((function(e,t){return m.default.createElement(d.default.Item,{key:e.id,onClick:function(t){return a.getOption(t,s,e.name,n)},style:{textAlign:e.color?"left":"center",padding:"6px 15px"}},e.color&&m.default.createElement("span",{className:"tagColor",style:{backgroundColor:""+e.color}}),e.name)})))},a.ChangePage=function(e){window.scrollTo(0,0);var t=a.state.status_type;a.setState({isSpin:!0,checkedValue:[],all:!1},(function(){a.state.select_params.page=e,a.getIssueList(t)}))},a.searchFunc=function(e){a.setState({search:e,isSpin:!0,checkedValue:[],all:void 0});var t=a.state,s=t.status_type,n=t.select_params;a.setState({select_params:c({},n,{search:e,page:1})},(function(){a.getIssueList(s)}))},a.openorder=function(e){var t={author_id:void 0,assigned_to_id:void 0,page:1,limit:15};a.setState({status_type:e,select_params:t,author_id:void 0,assigned_to_id:void 0,issue_tag_ids:"标记",tracker_ids:"类型",author_ids:"发布人",assigned_to_ids:"负责人",status_ids:"状态",done_ratios:"完成度",fixed_version_ids:"里程碑",checkedValue:[],all:void 0,paix:"排序"},(function(){a.getIssueList(e)}))},a.ChangeAssign=function(e){var t=a.props.current_user;if(a.setState({isSpin:!0}),e){if(!t)return void a.setState({isSpin:!1});1===e?(a.setState({assigned_to_ids:t.username,assigned_to_id:t.user_id,author_id:void 0,author_ids:"发布人"}),a.state.select_params.author_id=void 0,a.state.select_params.assigned_to_id=t.user_id):(a.setState({author_ids:t.username,author_id:t.user_id,assigned_to_id:void 0,assigned_to_ids:"负责人"}),a.state.select_params.assigned_to_id=void 0,a.state.select_params.author_id=t.user_id)}else a.setState({author_ids:"发布人",author_id:void 0,assigned_to_ids:"负责人",assigned_to_id:void 0}),a.state.select_params.assigned_to_id=void 0,a.state.select_params.author_id=void 0;var s=a.state.status_type;a.state.select_params.page=1,a.getIssueList(s)},a.deletedetail=function(e){var t=a.props.match.params,s=t.projectsId,n="/"+t.owner+"/"+s+"/issues/"+e+".json";E.default.delete(n,{data:{project_id:s,id:e}}).then((function(e){if(e){var t=a.state.status_type;a.getIssueList(t);var s=a.props.getDetail;s&&s()}})).catch((function(e){console.log(e)}))},a.createIssue=function(){var e=a.state.data,t=a.props.match.params,s=t.projectsId,n=t.owner;e&&e.user_admin_or_member?a.props.history.push("/"+n+"/"+s+"/issues/new","_blank"):a.props.showLoginDialog("/"+n+"/"+s+"/issues/new")},a.renderNew=function(){return m.default.createElement("a",{className:"topWrapper_btn ml10",onClick:a.createIssue},"+ 创建疑修")},a.changeBeginTime=function(e,t){var s=a.state.status_type;a.setState({begin:t}),a.getIssueList(s,t,a.state.end)},a.changeEndTime=function(e,t){var s=a.state.status_type;a.setState({end:t}),a.getIssueList(s,a.state.begin,t)},a.checkIssues=function(e){a.setState({checkedValue:e});var t=a.state.allValue;a.setState({all:t&&e&&e.length===t.length}),0===e.length&&a.setState({update_author_ids:"更换负责人",update_fixed_version_ids:"更换里程碑",update_status_ids:"修改状态",select_params:{update_author_id:void 0,update_fixed_version_id:void 0,update_status_id:void 0}})},a.changeAll=function(e){if(e.target.checked){var t=a.state.allValue;a.setState({checkedValue:t})}else a.setState({checkedValue:[]});a.setState({all:e.target.checked})},a.updateIssues=function(){var e=a.state,t=e.checkedValue,s=e.select_params,n=a.props.match.params,l=n.projectsId,i=n.owner;if(s.update_author_id||s.update_fixed_version_id||s.update_status_id){a.setState({isSpin:!0});var r="/"+i+"/"+l+"/issues/series_update.json";E.default.post(r,{ids:t,assigned_to_id:s.update_author_id,fixed_version_id:s.update_fixed_version_id,status_id:s.update_status_id}).then((function(e){if(e){var t=a.props.getDetail;s&&s.update_status_id&&t&&t(),a.props.showNotification("修改成功!"),a.successFunc()}})).catch((function(e){console.log(e)}))}else a.resetSelectParams()},a.successFunc=function(){a.resetSelectParams();var e=a.state.status_type;a.getIssueList(e)},a.resetSelectParams=function(){var e=a.state.select_params;e.update_author_id=void 0,e.update_fixed_version_id=void 0,e.update_status_id=void 0,a.setState({all:!1,checkedValue:[],update_author_ids:"更换负责人",update_fixed_version_ids:"更换里程碑",update_status_ids:"修改状态",select_params:e})},a.deleteIssues=function(){a.props.confirm({content:"是否确认删除所有选中的任务?",onOk:function(){a.setState({isSpin:!0});var e=a.state.checkedValue,t=a.props.match.params,s=t.projectsId,n="/"+t.owner+"/"+s+"/issues/clean.json";E.default.post(n,{ids:e}).then((function(e){if(e){var t=a.props.getDetail;t&&t(),a.props.showNotification("删除成功!"),a.successFunc()}})).catch((function(e){console.log(e)}))}})},a.clearSelectParams=function(){a.setState({status_type:"1",issue_tag_ids:"标记",tracker_ids:"类型",author_ids:"发布人",assigned_to_ids:"负责人",fixed_version_ids:"里程碑",status_ids:"状态",done_ratios:"完成度",paix:"排序",update_author_ids:"更换负责人",update_fixed_version_ids:"更换里程碑",update_status_ids:"修改状态",begin:"",end:"",checkedValue:[],allValue:[],all:!1,search:void 0,select_params:{assigned_to_id:void 0,author_id:void 0,issue_tag_id:void 0,tracker_id:void 0,done_ratio:void 0,status_id:void 0,fixed_version_id:void 0,order_name:void 0,order_type:void 0,search:void 0,update_author_id:void 0,update_fixed_version_id:void 0,update_status_id:void 0,page:1,limit:15}},(function(){a.getIssueList("1")}))},a.menu=function(){return m.default.createElement(d.default,{onClick:function(e){return a.getMenu(e)}},m.default.createElement(d.default.Item,{key:"created_on-desc",value:"desc"},"最新创建"),m.default.createElement(d.default.Item,{key:"created_on-asc",value:"asc"},"最早创建"),m.default.createElement(d.default.Item,{key:"updated_on-desc",value:"desc"},"最新更新"),m.default.createElement(d.default.Item,{key:"updated_on-asc",value:"asc"},"最早更新"))},a.state={issue_chosen:void 0,data:void 0,issues:void 0,isSpin:!1,search:void 0,author_id:void 0,assigned_to_id:void 0,search_count:void 0,issue_type:void 0,status_type:"1",issue_tag_ids:"标记",tracker_ids:"类型",author_ids:"发布人",assigned_to_ids:"负责人",fixed_version_ids:"里程碑",status_ids:"状态",done_ratios:"完成度",paix:"排序",update_author_ids:"更换负责人",update_fixed_version_ids:"更换里程碑",update_status_ids:"修改状态",begin:"",end:"",checkedValue:[],allValue:[],all:!1,select_params:{assigned_to_id:void 0,author_id:void 0,issue_tag_id:void 0,tracker_id:void 0,done_ratio:void 0,status_id:void 0,fixed_version_id:void 0,order_name:void 0,order_type:void 0,search:void 0,update_author_id:void 0,update_fixed_version_id:void 0,update_status_id:void 0,page:1,limit:15}},a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),p(t,[{key:"render",value:function(){var e=this,t=this.props.current_user,a=this.state,d=a.issue_chosen,o=a.issues,p=a.search_count,_=a.data,v=a.author_id,E=a.assigned_to_id,y=a.isSpin,b=a.status_type,N=a.select_params,S=a.begin,x=a.end,w=a.checkedValue,C=a.all,I=a.search;return m.default.createElement("div",{className:"main",style:{padding:"0px"}},m.default.createElement("div",{style:{padding:"10px 20px 0px 20px"}},m.default.createElement("div",{className:"topWrapper",style:{paddingTop:"10px"}},m.default.createElement("ul",{className:"topWrapper_type"},m.default.createElement("li",null,m.default.createElement("label",null,"所有:"),m.default.createElement("span",{className:b?"":"active",onClick:function(){return e.openorder()}},_&&_.all_count)),m.default.createElement("li",null,m.default.createElement("label",null,"开启中:"),m.default.createElement("span",{className:"1"===b?"active":"",onClick:function(){return e.openorder("1")}},_&&_.open_count)),m.default.createElement("li",null,m.default.createElement("label",null,"已关闭:"),m.default.createElement("span",{className:"2"===b?"active":"",onClick:function(){return e.openorder("2")}},_&&_.close_count))),this.renderNew()),m.default.createElement("div",{className:"topWrapper",style:{borderBottom:"none"}},m.default.createElement("div",{className:"target-detail-search"},m.default.createElement(k,{placeholder:"输入关键字搜索疑修",enterButton:!0,onSearch:this.searchFunc,style:{width:300},value:I,allowClear:!0,onChange:function(t){e.setState({search:t.target.value})}})),m.default.createElement("div",null,m.default.createElement("a",{className:"mr20 color-grey-6",onClick:this.clearSelectParams},m.default.createElement("i",{className:"iconfont icon-shanchu6 mr3 font-14"}),"清除筛选条件"),m.default.createElement(u.default,{value:S?(0,f.default)(S,"YYYY-MM-DD"):"",style:{marginRight:"20px"},placeholder:"请选择开始时间",onChange:this.changeBeginTime}),m.default.createElement(u.default,{value:x?(0,f.default)(x,"YYYY-MM-DD"):"",placeholder:"请选择结束时间",onChange:this.changeEndTime})))),m.default.createElement(s.default,{spinning:y},m.default.createElement("div",{className:"f-wrap-between screenWrap"},m.default.createElement("div",{className:"df"},t&&t.login&&_&&_.user_operate_issue?m.default.createElement(r.default,{value:"0",style:{lineHeight:"50px",marginRight:"15px"},checked:C,onChange:this.changeAll}):"",w&&w.length>0?m.default.createElement("span",{style:{lineHeight:"50px"}},"选中",w.length,"个issue"):m.default.createElement("ul",{className:"searchBanner"},m.default.createElement("li",{className:v||E?"":"active",onClick:function(){return e.ChangeAssign()}},m.default.createElement("label",null,"搜索结果"),m.default.createElement("span",null,_&&_.search_count)),m.default.createElement("li",{style:{display:t&&""===t.login?"none":"flex"},className:E?"active":"",onClick:function(){return e.ChangeAssign(1)}},m.default.createElement("label",null,"指派给我"),m.default.createElement("span",null,_&&_.assign_me_count)),m.default.createElement("li",{style:{display:t&&""===t.login?"none":"flex"},className:v?"active":"",onClick:function(){return e.ChangeAssign(2)}},m.default.createElement("label",null,"我的发布"),m.default.createElement("span",null,_&&_.my_published_count)))),w&&w.length>0?m.default.createElement("ul",{className:"topWrapper_select wrapperStyle"},m.default.createElement("li",{className:"mr20"},m.default.createElement(l.default,{className:"topWrapperSelect",overlay:this.renderMenu(d&&d.assign_user,"更换负责人","update_author_id",!0),trigger:["click"],placement:"bottomCenter"},m.default.createElement("span",null,this.state.update_author_ids,m.default.createElement(i.default,{type:"caret-down",className:"ml5"})))),m.default.createElement("li",{className:"mr20"},m.default.createElement(l.default,{className:"topWrapperSelect wrapperStyle",overlay:this.renderMenu(d&&d.issue_version,"更换里程碑","update_fixed_version_id",!0),trigger:["click"],placement:"bottomCenter"},m.default.createElement("span",null,this.state.update_fixed_version_ids,m.default.createElement(i.default,{type:"caret-down",className:"ml5"})))),m.default.createElement("li",{className:"mr20"},m.default.createElement(l.default,{className:"topWrapperSelect wrapperStyle",overlay:this.renderMenu(d&&d.issue_status,"修改状态","update_status_id",!0),trigger:["click"],placement:"bottomCenter"},m.default.createElement("span",null,this.state.update_status_ids,m.default.createElement(i.default,{type:"caret-down",className:"ml5"})))),m.default.createElement("a",{onClick:this.updateIssues,className:"updateBtn blue mr20"},"确定"),m.default.createElement("a",{onClick:this.deleteIssues,className:"updateBtn red mr20"},"删除")):m.default.createElement("ul",{className:"topWrapper_select"},m.default.createElement("li",null,m.default.createElement(l.default,{className:"topWrapperSelect",overlay:this.renderMenu(d&&d.issue_tag,"标记","issue_tag_id"),trigger:["click"],placement:"bottomCenter"},m.default.createElement("span",null,this.state.issue_tag_ids,m.default.createElement(i.default,{type:"caret-down",className:"ml5"})))),m.default.createElement("li",null,m.default.createElement(l.default,{className:"topWrapperSelect",overlay:this.renderMenu(d&&d.assign_user,"发布人","author_id"),trigger:["click"],placement:"bottomCenter"},m.default.createElement("span",null,this.state.author_ids,m.default.createElement(i.default,{type:"caret-down",className:"ml5"})))),m.default.createElement("li",null,m.default.createElement(l.default,{className:"topWrapperSelect",overlay:this.renderMenu(d&&d.assign_user,"负责人","assigned_to_id"),trigger:["click"],placement:"bottomCenter"},m.default.createElement("span",null,this.state.assigned_to_ids,m.default.createElement(i.default,{type:"caret-down",className:"ml5"})))),m.default.createElement("li",null,m.default.createElement(l.default,{className:"topWrapperSelect",overlay:this.renderMenu(d&&d.tracker,"类型","tracker_id"),trigger:["click"],placement:"bottomCenter"},m.default.createElement("span",null,this.state.tracker_ids,m.default.createElement(i.default,{type:"caret-down",className:"ml5"})))),m.default.createElement("li",null,m.default.createElement(l.default,{className:"topWrapperSelect",overlay:this.renderMenu(d&&d.issue_version,"里程碑","fixed_version_id"),trigger:["click"],placement:"bottomCenter"},m.default.createElement("span",null,this.state.fixed_version_ids,m.default.createElement(i.default,{type:"caret-down",className:"ml5"})))),m.default.createElement("li",null,m.default.createElement(l.default,{className:"topWrapperSelect",overlay:this.renderMenu(d&&d.issue_status,"状态","status_id"),trigger:["click"],placement:"bottomCenter"},m.default.createElement("span",null,this.state.status_ids,m.default.createElement(i.default,{type:"caret-down",className:"ml5"})))),m.default.createElement("li",null,m.default.createElement(l.default,{className:"topWrapperSelect",overlay:this.renderMenu(d&&d.done_ratio,"完成度","done_ratio"),trigger:["click"],placement:"bottomCenter"},m.default.createElement("span",null,this.state.done_ratios,m.default.createElement(i.default,{type:"caret-down",className:"ml5"})))),m.default.createElement("li",null,m.default.createElement(l.default,{className:"topWrapperSelect",overlay:this.menu(),trigger:["click"],placement:"bottomCenter"},m.default.createElement("span",null,this.state.paix,m.default.createElement(i.default,{type:"caret-down",className:"ml5"})))))),0===p?m.default.createElement(h.default,{_html:"暂时还没有相关数据!"}):m.default.createElement("div",{style:{minHeight:"500px"}},m.default.createElement(r.default.Group,{name:"issues",onChange:this.checkIssues,value:w,style:{width:"100%"}},o&&o.length>0&&o.map((function(a,s){return m.default.createElement(g.default,c({key:s,item:a,checkbox:t&&_&&_.user_operate_issue?m.default.createElement(r.default,{value:a.id,key:a.id,style:{margin:"4px 15px 0px 0px"}}):"",search_count:p,page:N.page,limit:N.limit},e.props,e.state,{deletedetail:e.deletedetail,user_admin_or_member:_&&_.user_operate_issue}))})))),p>N.limit?m.default.createElement("div",{className:"pt30 mb30 edu-txt-center",style:{borderTop:"1px solid #eee"}},m.default.createElement(n.default,{simple:!0,current:N.page,total:p,pageSize:N.limit,onChange:this.ChangePage})):""))}}]),t}(_.Component);t.default=N}}]); |