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("
|