(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2580],{64317:function(Ve,ve,a){"use strict";var $=a(28991),Q=a(81253),ne=a(85893),xe=a(22270),T=a(67294),c=a(66758),V=a(31649),Fe=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],ue=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],Te=T.forwardRef(function(o,fe){var p=o.fieldProps,l=o.children,u=o.params,le=o.proFieldProps,oe=o.mode,re=o.valueEnum,q=o.request,U=o.showSearch,w=o.options,se=(0,Q.Z)(o,Fe),_=(0,T.useContext)(c.Z);return(0,ne.jsx)(V.Z,(0,$.Z)((0,$.Z)({valueEnum:(0,xe.h)(re),request:q,params:u,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,$.Z)({options:w,mode:oe,showSearch:U,getPopupContainer:_.getPopupContainer},p),ref:fe,proFieldProps:le},se),{},{children:l}))}),Se=T.forwardRef(function(o,fe){var p=o.fieldProps,l=o.children,u=o.params,le=o.proFieldProps,oe=o.mode,re=o.valueEnum,q=o.request,U=o.options,w=(0,Q.Z)(o,ue),se=(0,$.Z)({options:U,mode:oe||"multiple",labelInValue:!0,showSearch:!0,showArrow:!1,autoClearSearchValue:!0,optionLabelProp:"label"},p),_=(0,T.useContext)(c.Z);return(0,ne.jsx)(V.Z,(0,$.Z)((0,$.Z)({valueEnum:(0,xe.h)(re),request:q,params:u,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,$.Z)({getPopupContainer:_.getPopupContainer},se),ref:fe,proFieldProps:le},w),{},{children:l}))}),Ee=Te,X=Se,he=Ee;he.SearchSelect=X,he.displayName="ProFormComponent",ve.Z=he},19488:function(Ve,ve,a){"use strict";a.r(ve),a.d(ve,{default:function(){return Ue}});var $=a(71194),Q=a(50146),ne=a(11849),xe=a(43358),T=a(34041),c=a(39428),V=a(3182),Fe=a(57663),ue=a(71577),Te=a(62350),Se=a(24565),Ee=a(43185),X=a(93349),he=a(34792),o=a(48086),fe=a(9715),p=a(55843),l=a(2824),u=a(67294),le=a(28790),oe=a(85224),re=a(49101),q=a(16894),U=a(48971),w=a(96690);function se(x){return _.apply(this,arguments)}function _(){return _=(0,V.Z)((0,c.Z)().mark(function x(t){return(0,c.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,U.WY)((0,w.w)()+"/api/technology/page",{method:"POST",data:t}));case 1:case"end":return r.stop()}},x)})),_.apply(this,arguments)}function be(){return ye.apply(this,arguments)}function ye(){return ye=(0,V.Z)((0,c.Z)().mark(function x(){return(0,c.Z)().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",(0,U.WY)((0,w.w)()+"/api/product/list",{method:"Get"}));case 1:case"end":return h.stop()}},x)})),ye.apply(this,arguments)}function Ae(x){return ge.apply(this,arguments)}function ge(){return ge=(0,V.Z)((0,c.Z)().mark(function x(t){return(0,c.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,U.WY)((0,w.w)()+"/api/devicevesion/getdevicevesion?productId="+t,{method:"Get"}));case 1:case"end":return r.stop()}},x)})),ge.apply(this,arguments)}function Re(x){return Ce.apply(this,arguments)}function Ce(){return Ce=(0,V.Z)((0,c.Z)().mark(function x(t){return(0,c.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,U.WY)((0,w.w)()+"/api/technology/delete?id="+t,{method:"Get"}));case 1:case"end":return r.stop()}},x)})),Ce.apply(this,arguments)}var qe=a(47673),me=a(4107),Be=a(64317),Me=a(76615),e=a(85893),we=function(t){var h=p.Z.useForm(),r=(0,l.Z)(h,1),te=r[0],f=u.useRef(null),ee=(0,u.useState)("text"),E=(0,l.Z)(ee,2),I=E[0],b=E[1],O=(0,u.useState)("Form"),A=(0,l.Z)(O,2),L=A[0],y=A[1],K=(0,u.useState)([]),R=(0,l.Z)(K,2),Y=R[0],J=R[1],G=(0,u.useState)(!1),B=(0,l.Z)(G,2),g=B[0],P=B[1],ae=(0,u.useState)(!1),N=(0,l.Z)(ae,2),j=N[0],M=N[1];(0,u.useEffect)(function(){var s;if((s=f.current)===null||s===void 0||s.setFieldsValue(t.values),t.createModalVisible)if(t.values.actionType==null){var v;(v=f.current)===null||v===void 0||v.setFieldsValue({actionType:"text"}),t.values.actionType="text",b("text"),y("Form"),J([])}else{var F;if((F=f.current)===null||F===void 0||F.setFieldsValue({actionType:t.values.actionType}),b(t.values.actionType),t.values.actionType=="select"){y("ModalForm");var W=[];if(t.values.technologyType==0)for(var k=JSON.parse(t.values.actionValue),D=0;D0&&(0,e.jsx)(oe.Z,{extra:(0,e.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,e.jsx)("a",{style:{fontWeight:600},children:g.length})," ","\u9879 \xA0\xA0"]}),children:(0,e.jsx)(ue.Z,{onClick:(0,V.Z)((0,c.Z)().mark(function i(){var n,d;return(0,c.Z)().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return S.next=2,handleRemove(g);case 2:P([]),(n=f.current)===null||n===void 0||(d=n.reloadAndRest)===null||d===void 0||d.call(n);case 4:case"end":return S.stop()}},i)})),children:"\u5220\u9664"})}),(0,e.jsxs)(Q.Z,{title:"\u4E0A\u4F20\u5DE5\u827A\u6A21\u7248",open:j,footer:null,maskClosable:!1,destroyOnClose:!0,onCancel:function(){y(),Ze(""),H(""),M(!1)},children:[(0,e.jsxs)("div",{style:{marginBottom:10},children:[(0,e.jsx)("span",{style:{marginRight:10},children:"\u9009\u62E9\u4EA7\u54C1"}),(0,e.jsx)(T.Z,{style:{width:"60%"},onChange:He,children:I==null?void 0:I.map(function(i,n){return(0,e.jsx)(T.Z.Option,{index:n,value:i.id,children:i.label},i.id)})})]}),(0,e.jsxs)("div",{style:{marginBottom:10},children:[(0,e.jsx)("span",{style:{marginRight:10},children:"\u9009\u62E9\u7248\u672C"}),(0,e.jsx)(T.Z,{style:{width:"60%"},onChange:Qe,children:L==null?void 0:L.map(function(i,n){return(0,e.jsx)(T.Z.Option,{index:n,value:i.id,children:i.label},i.id)})})]}),(0,e.jsx)(X.Z,(0,ne.Z)((0,ne.Z)({},ze),{},{maxCount:1,children:(0,e.jsx)(ue.Z,{style:{marginLeft:"55%"},children:"\u5BFC\u5165\u5DE5\u827A\u6A21\u7248"})}))]}),(0,e.jsx)(We,{createModalVisible:r,dataSource:Y,onCancel:Xe})]})},Ue=$e}}]);