1 line
60 KiB
JavaScript
1 line
60 KiB
JavaScript
|
(this.webpackJsonp=this.webpackJsonp||[]).push([[48],{"/oTB":function(e,t,a){},"3Diz":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(a("jsC+")),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 o,u=e[Symbol.iterator]();!(n=(o=u.next()).done)&&(a.push(o.value),!t||a.length!==t);n=!0);}catch(e){r=!0,l=e}finally{try{!n&&u.return&&u.return()}finally{if(r)throw l}}return a}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};a("aIZi");var l=a("q1tI"),o=s(l);a("MN5C");var u=s(a("cJAJ")),i=a("i8i4"),c=a("sYIF");function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.projectsId,a=e.branch,s=e.owner,f=e.changeBranch,d=e.branchList,m=e.tagflag,p=void 0===m||m,h=(0,l.useState)(a),v=r(h,2),g=v[0],E=v[1],y=(0,l.useState)(!1),b=r(y,2),w=b[0],_=b[1],N=(0,l.useRef)(null),x=(0,l.useRef)(null);(0,l.useEffect)((function(){document.addEventListener("click",j,!1)}),[]);var j=function(e){var t=e.target,a=(0,i.findDOMNode)(N.current),n=(0,i.findDOMNode)(x.current);if(a&&n){var r=a.contains(t),l=n.contains(t);r||l||_(!1)}};(0,l.useEffect)((function(){E(a)}),[a]);var k=o.default.createElement("div",{ref:N},o.default.createElement(u.default,{visible:w,changeBranch:function(e){_(!1);var t=(0,c.turnbar)(e);f(t)},tagflag:p,projectsId:t,owner:s,branchList:d}));return o.default.createElement(n.default,{placement:"bottomLeft",visible:w,overlay:k,overlayClassName:"branch-tagBox-list",trigger:["click"]},o.default.createElement("div",{className:"branch-tagBox",ref:x,onClick:function(){return _(!w)}},o.default.createElement("span",{className:"color-grey-9 mr3 ml8"},o.default.createElement("i",{className:"iconfont icon-fenzhi2 font-18"})),o.default.createElement("span",{className:"ant-dropdown-link task-hide",style:{fontWeight:"500",minWidth:"45px",maxWidth:"270px"}},g),o.default.createElement("i",{className:"showtag iconfont icon-sanjiaoxing-down font-15 color-grey-9 mr5 ml5 mt1"})))}},"760K":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},o=a("sYIF");t.default=function(e){var t=e.treeValuePath,a=e.returnUlr,n=e.returnMain,r=e.getPathUrl,u=e.identifier;return l.default.createElement("li",{className:"listtablepath"},l.default.createElement("p",null,l.default.createElement("a",{onClick:n,className:"color-blue"},u),t.map((function(e,n){return l.default.createElement(l.default.Fragment,null,n===t.length-1?l.default.createElement("span",{className:"color-grey-6 subFileName",key:n},(0,o.returnbar)(e)):l.default.createElement("a",{onClick:function(){return a(""+r(t,n+1))},className:"color-blue subFileName"},(0,o.returnbar)(e)))}))))}},BtkW:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=v(a("W9HT")),r=v(a("2/Rp")),l=v(a("CtXQ")),o=v(a("9yH6")),u=v(a("Vl3Y")),i=v(a("5rEg")),c=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}();a("04bd"),a("L/Qf"),a("2oDE"),a("K4yd"),a("tULf"),a("1vPl");var s=a("q1tI"),f=v(s),d=a("sYIF"),m=a("eO8H");a("XmZk");var p=a("J66h"),h=v(a("vDqi"));function v(e){return e&&e.__esModule?e:{default:e}}var g=i.default.TextArea,E=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=a.props.descName;e&&a.props.form.setFieldsValue({desc:e})},a.componentDidUpdate=function(e){var t=a.props.descName;e&&t&&e.descName!==t&&a.props.form.setFieldsValue({desc:t})},a.changeSubmittype=function(e){a.setState({submitType:e.target.value
|