1 line
20 KiB
JavaScript
1 line
20 KiB
JavaScript
|
(this.webpackJsonp=this.webpackJsonp||[]).push([[74],{"7jn6":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=l(n("q1tI")),r=l(n("La79")),i=l(n("8mQL"));function l(e){return e&&e.__esModule?e:{default:e}}var u={init:"icon-initialize",build:"icon-structure",deploy:"icon-arrange",customize:"icon-newStage",confirm:"icon-sure"};t.default=function(e){var t=e.step,n=e.changeStep,l=e.menuList,o=e.renameFunc,c=e.checkDatas,f=e.addFunc;function s(e,t){f&&f(e,t)}return a.default.createElement("ul",{className:"menus"},l&&l.length>0&&l.map((function(e,f){return a.default.createElement(a.default.Fragment,{key:e.id},a.default.createElement("li",{onClick:function(){return function(e,t,a,r){n(e,t,a,r)}(e.show_index,e.stage_type,e.id,e.stage_name)},className:e.show_index===t?"active":""},a.default.createElement("i",{className:"iconfont "+u[""+e.stage_type]}),a.default.createElement(r.default,{renameFunc:o,id:e.id,name:e.stage_name,edit:"init"!==e.stage_type&&"confirm"!==e.stage_type})),f!==l.length-1&&l.length<7?a.default.createElement(i.default,{checkDatas:c,k:f+2,getName:s}):"")})))}},"8mQL":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=u(n("5rEg")),r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var l,u=e[Symbol.iterator]();!(a=(l=u.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{!a&&u.return&&u.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};n("1vPl");var i=n("q1tI"),l=u(i);function u(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.getName,n=e.checkDatas,u=e.k,o=(0,i.useState)(!1),c=r(o,2),f=c[0],s=c[1],d=(0,i.useState)(void 0),m=r(d,2),p=m[0],v=m[1],h=(0,i.useState)(void 0),y=r(h,2),g=y[0],E=y[1],_=(0,i.useState)(void 0),b=r(_,2),S=b[0],w=b[1],N=(0,i.useState)(!1),x=r(N,2),j=x[0],k=x[1];return(0,i.useEffect)((function(){j&&S&&S.focus()})),(0,i.useEffect)((function(){u&&E(u)}),[u]),l.default.createElement("li",{className:"menuAdd"},!f&&l.default.createElement("i",{className:"iconfont icon-tianjia",onClick:function(){var e=n();(e||""===e)&&(s(!0),k(!0))}}),l.default.createElement(a.default,{ref:function(e){return w(e)},size:"small",maxLength:8,style:{width:"75px",display:f?"block":"none"},placeholder:"新阶段名称",value:p,onChange:function(e){return v(e.target.value)},onBlur:function(){p&&t(p,g),v(void 0),s(!1),k(!1)}}))}},CbYd:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var l,u=e[Symbol.iterator]();!(a=(l=u.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{!a&&u.return&&u.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=n("q1tI"),l=(a=i)&&a.__esModule?a:{default:a};t.default=function(e){var t=e.chooseFunc,n=e.temp,a=e.templateId,u=e.category,o=(0,i.useState)(void 0),c=r(o,2),f=c[0],s=c[1],d=(0,i.useState)(void 0),m=r(d,2),p=m[0],v=m[1],h=(0,i.useState)(void 0),y=r(h,2),g=y[0],E=y[1],_=(0,i.useState)(void 0),b=r(_,2),S=b[0],w=b[1];return(0,i.useEffect)((function(){a&&s(a)}),[a]),(0,i.useEffect)((function(){u&&v(u)}),[u]),(0,i.useEffect)((function(){if(n&&n.length>0)if("初始化"!==n[0].category?w(n):w(void 0),u&&"初始化"!==n[0].category&&"初始化"!==u){var e=n.filter((function(e){return e.category===u})),t=e&&e.length>0&&e[0].templates;E(t),v(u)}else E(n[0].templates),v(n[0].category);else E(void 0),v(void 0),w(void 0)}),[n,u]),l.default.createElement(l.default.Fragment,null,S&&S.length>0&&l.default.createElement("div",{className:"choosenList"},l.default.createElement("span",null,"模板类别:"),l.default.createElement("ul",null,S.map((function(e,n){return l.default.createElement("li",{className:p===e.category?"active":"",onClick:function(){return fu
|