forgeplus/public/react/build/static/js/122.cf4115ae.chunk.js

1 line
3.3 KiB
JavaScript

(this.webpackJsonp=this.webpackJsonp||[]).push([[122],{CyMe:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var a=[],n=!0,r=!1,l=void 0;try{for(var u,c=e[Symbol.iterator]();!(n=(u=c.next()).done)&&(a.push(u.value),!t||a.length!==t);n=!0);}catch(e){r=!0,l=e}finally{try{!n&&c.return&&c.return()}finally{if(r)throw l}}return a}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},l=a("q1tI"),u=d(l),c=a("eO8H"),i=d(a("CnBM")),s=d(a("HUFq"));a("VUSe");var o=d(a("vDqi")),m=d(a("eGzb"));function d(e){return e&&e.__esModule?e:{default:e}}var f=(0,i.default)({loader:function(){return Promise.all([a.e(2),a.e(101)]).then(a.t.bind(null,"8Or8",7))},loading:s.default});t.default=function(e){var t=e.match.params.OIdentifier,a=e.match.params.groupId,i=e.location.pathname,s=(0,l.useState)(void 0),d=r(s,2),p=d[0],v=d[1],E=(0,l.useState)(!1),g=r(E,2),b=g[0],h=g[1];return(0,l.useEffect)((function(){i&&(i.indexOf("/"+t+"/teams/"+a+"/setting")>-1?h(!1):h(!0))}),[i]),(0,l.useEffect)((function(){var e;t&&a&&(e="/organizations/"+t+"/teams/"+a+".json",o.default.get(e).then((function(e){e&&e.data&&v(e.data)})).catch((function(e){})))}),[t,a]),u.default.createElement("div",{className:"teamDetail",style:{paddingTop:"0px"}},u.default.createElement("div",null,u.default.createElement("i",{className:"iconfont icon-zuobiao mr5"}),u.default.createElement(c.Link,{to:"/"+t},p&&p.organization&&p.organization.nickname),u.default.createElement("i",{className:"iconfont icon-youjiantou ml3 mr3 font-12 color-grey-9"}),u.default.createElement("span",{className:"color-grey-9"},p?p.nickname:"新建团队")),p&&u.default.createElement(m.default,{src:"/"+t+"/teams/"+a,title:p.nickname||p.name,rightBtn:b&&u.default.createElement("span",{className:"subNavs"},u.default.createElement(c.Link,{to:"/"+t+"/members",className:i==="/"+t+"/members"?"active":""},u.default.createElement("span",null,"组织成员"),p.num_users&&u.default.createElement("lable",null,p.num_users)),u.default.createElement(c.Link,{to:"/"+t+"/teams",className:i==="/"+t+"/teams"?"active":""},u.default.createElement("span",null,"组织团队"),p.num_teams&&u.default.createElement("lable",null,p.num_teams))),desc:!b&&p.description}),u.default.createElement(c.Switch,e,u.default.createElement(c.Route,{path:"/:OIdentifier/teams/:groupId/setting",render:function(t){return u.default.createElement(f,n({},e,t))}})))}},eGzb:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,r=a("q1tI"),l=(n=r)&&n.__esModule?n:{default:n},u=a("sYIF"),c=a("eO8H");a("KkuB"),t.default=function(e){var t=e.img,a=e.title,n=e.desc,r=e.rightBtn,i=e.src,s=e.bottomInfos;return l.default.createElement("div",{className:"cards"},t&&l.default.createElement("div",{className:"img"},l.default.createElement("img",{src:(0,u.getImageUrl)("/"+t),alt:""})),l.default.createElement("div",{className:"content"},l.default.createElement("p",{className:"titles"},l.default.createElement(c.Link,{to:i},a),r),l.default.createElement("div",{className:"desc"},n),s))}}}]);