(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8865],{64317:function($a,Re,o){"use strict";var oe=o(28991),Le=o(81253),Xe=o(85893),Ce=o(22270),Fe=o(67294),K=o(66758),r=o(31649),b=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],za=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],Se=Fe.forwardRef(function(c,Me){var ge=c.fieldProps,fe=c.children,je=c.params,s=c.proFieldProps,Te=c.mode,se=c.valueEnum,We=c.request,de=c.showSearch,Ke=c.options,we=(0,Le.Z)(c,b),Ne=(0,Fe.useContext)(K.Z);return(0,Xe.jsx)(r.Z,(0,oe.Z)((0,oe.Z)({valueEnum:(0,Ce.h)(se),request:We,params:je,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,oe.Z)({options:Ke,mode:Te,showSearch:de,getPopupContainer:Ne.getPopupContainer},ge),ref:Me,proFieldProps:s},we),{},{children:fe}))}),h=Fe.forwardRef(function(c,Me){var ge=c.fieldProps,fe=c.children,je=c.params,s=c.proFieldProps,Te=c.mode,se=c.valueEnum,We=c.request,de=c.options,Ke=(0,Le.Z)(c,za),we=(0,oe.Z)({options:de,mode:Te||"multiple",labelInValue:!0,showSearch:!0,showArrow:!1,autoClearSearchValue:!0,optionLabelProp:"label"},ge),Ne=(0,Fe.useContext)(K.Z);return(0,Xe.jsx)(r.Z,(0,oe.Z)((0,oe.Z)({valueEnum:(0,Ce.h)(se),request:We,params:je,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,oe.Z)({getPopupContainer:Ne.getPopupContainer},we),ref:Me,proFieldProps:s},Ke),{},{children:fe}))}),Ja=Se,$e=h,Oe=Ja;Oe.SearchSelect=$e,Oe.displayName="ProFormComponent",Re.Z=Oe},97958:function($a,Re,o){"use strict";o.r(Re),o.d(Re,{default:function(){return Tt}});var oe=o(18106),Le=o(95562),Xe=o(58024),Ce=o(91894),Fe=o(57663),K=o(71577),r=o(39428),b=o(3182),za=o(62350),Se=o(24565),h=o(2824),Ja=o(43185),$e=o(93009),Oe=o(34792),c=o(48086),Me=o(402),ge=o(56256),fe=o(49101),je=o(6700),s=o(67294),Te=o(28790),se=o(16894),We=o(71194),de=o(50146),Ke=o(22385),we=o(45777),Ne=o(77883),_e=o(85986),wt=o(49111),_a=o(19650),Et=o(88983),$=o(47933),Bt=o(47673),k=o(4107),It=o(9715),m=o(55843),Vt=o(43358),_=o(34041),et=o(54549),at=o(1870),tt=[{value:"L/min",label:"\u5347/\u6BCF\u5206\u949F"},{value:"mg/kg",label:"\u6BEB\u514B/\u6BCF\u5343\u514B"},{value:"NTU",label:"\u6D4A\u5EA6"},{value:"pH",label:"PH\u503C"},{value:"dS/m",label:"\u571F\u58E4EC\u503C"},{value:"W/\u33A1",label:"\u592A\u9633\u603B\u8F90\u5C04"},{value:"mm/hour",label:"\u964D\u96E8\u91CF"},{value:"var",label:"\u4E4F"},{value:"cP",label:"\u5398\u6CCA"},{value:"aw",label:"\u9971\u548C\u5EA6"},{value:"pcs",label:"\u4E2A"},{value:"cst",label:"\u5398\u65AF"},{value:"bar",label:"\u5DF4"},{value:"ppt",label:"\u7EB3\u514B/\u6BCF\u5347"},{value:"ppb",label:"\u5FAE\u514B/\u6BCF\u5347"},{value:"uS/cm",label:"\u5FAE\u897F/\u6BCF\u5398\u7C73"},{value:"N/C",label:"\u725B\u987F/\u6BCF\u5E93\u4ED1"},{value:"V/m",label:"\u4F0F\u7279/\u6BCF\u7C73"},{value:"ml/min",label:"\u6EF4\u901F"},{value:"mmHg",label:"\u6BEB\u7C73\u6C5E\u67F1"},{value:"mmol/L",label:"\u8840\u7CD6"},{value:"mm/s",label:"\u6BEB\u7C73/\u6BCF\u79D2"},{value:"turn/m",label:"\u8F6C\u6BCF/\u5206\u949F"},{value:"count",label:"\u6B21"},{value:"gear",label:"\u6863"},{value:"stepCount",label:"\u6B65"},{value:"Nm3/h",label:"\u6807\u51C6\u7ACB\u65B9\u7C73/\u6BCF\u5C0F\u65F6"},{value:"kV",label:"\u5343\u4F0F"},{value:"kVA",label:"\u5343\u4F0F\u5B89"},{value:"kVar",label:"\u5343\u4E4F"},{value:"uw/cm2",label:"\u5FAE\u74E6/\u6BCF\u5E73\u65B9\u5398\u7C73"},{value:"\u53EA",label:"\u53EA"},{value:"%RH",label:"\u76F8\u5BF9\u6E7F\u5EA6"},{value:"m\xB3/s",label:"\u7ACB\u65B9\u7C73\u6BCF\u79D2"},{value:"kg/s",label:"\u516C\u65A4/\u6BCF\u79D2"},{value:"r/min",label:"\u8F6C/\u6BCF\u5206\u949F"},{value:"t/h",label:"\u5428/\u6BCF\u5C0F\u65F6"},{value:"KCL/h",label:"\u5343\u5361/\u6BCF\u5C0F\u65F6"},{value:"L/s",label:"\u5347\u6BCF\u79D2"},{value:"Mpa",label:"\u5146\u5E15"},{value:"m\xB3/h",label:"\u7ACB\u65B9\u7C73/\u6BCF\u5C0F\u65F6"},{value:"kvarh",label:"\u5343\u4E4F\u65F6"},{value:"\u03BCg/L",label:"\u5FAE\u514B/\u6BCF\u5347"},{value:"kcal",label:"\u5343\u5361\u8DEF\u91CC"},{value:"GB",label:"\u5409\u5B57\u8282"},{value:"MB",label:"\u5146\u5B57\u8282"},{value:"KB",label:"\u5343\u5B57\u8282"},{value:"B",label:"\u5B57\u8282"},{value:"\u03BCg/(d\u33A1\xB7d)",label:"\u5FAE\u514B/\u6BCF\u5E73\u65B9\u5206\u7C73/\u6BCF\u5929"},{value:"",label:"\u65E0"},{value:"ppm",label:"\u767E\u4E07\u5206\u7387"},{value:"pixel",label:"\u50CF\u7D20"},{value:"Lux",label:"\u7167\u5EA6"},{value:"grav",label:"\u91CD\u529B\u52A0\u901F\u5EA6"},{value:"dB",label:"\u5206\u8D1D"},{value:"%",label:"\u767E\u5206\u6BD4"},{value:"lm",label:"\u6D41\u660E"},{value:"bit",label:"\u6BD4\u7279"},{value:"g/mL",label:"\u514B/\u6BCF\u6BEB\u5347"},{value:"g/L",label:"\u514B/\u6BCF\u5347"},{value:"mg/L",label:"\u6BEB\u514B/\u6BCF\u5347"},{value:"\u03BCg/m\xB3",label:"\u5FAE\u514B/\u6BCF\u7ACB\u65B9\u7C73"},{value:"mg/m\xB3",label:"\u6BEB\u514B/\u6BCF\u7ACB\u65B9\u7C73"},{value:"g/m\xB3",label:"\u514B/\u6BCF\u7ACB\u65B9\u7C73"},{value:"kg/m\xB3",label:"\u5343\u514B/\u6BCF\u7ACB\u65B9\u7C73"},{value:"nF",label:"\u7EB3\u6CD5"},{value:"pF",label:"\u76AE\u6CD5"},{value:"\u03BCF",label:"\u5FAE\u6CD5"},{value:"F",label:"\u6CD5\u62C9"},{value:"\u03A9",label:"\u6B27\u59C6"},{value:"\u03BCA",label:"\u5FAE\u5B89"},{value:"mA",label:"\u6BEB\u5B89"},{value:"kA",label:"\u5343\u5B89"},{value:"A",label:"\u5B89\u57F9"},{value:"mV",label:"\u6BEB\u4F0F"},{value:"V",label:"\u4F0F\u7279"},{value:"ms",label:"\u6BEB\u79D2"},{value:"s",label:"\u79D2"},{value:"min",label:"\u5206\u949F"},{value:"h",label:"\u5C0F\u65F6"},{value:"day",label:"\u65E5"},{value:"week",label:"\u5468"},{value:"month",label:"\u6708"},{value:"year",label:"\u5E74"},{value:"kn",label:"\u8282"},{value:"km/h",label:"\u5343\u7C73/\u6BCF\u5C0F\u65F6"},{value:"m/s",label:"\u7C73/\u6BCF\u79D2"},{value:"\u2033",label:"\u79D2"},{value:"\u2032",label:"\u5206"},{value:"\xB0",label:"\u5EA6"},{value:"rad",label:"\u5F27\u5EA6"},{value:"Hz",label:"\u8D6B\u5179"},{value:"\u03BCW",label:"\u5FAE\u74E6"},{value:"mW",label:"\u6BEB\u74E6"},{value:"kW",label:"\u5343\u74E6\u7279"},{value:"W",label:"\u74E6\u7279"},{value:"cal",label:"\u5361\u8DEF\u91CC"},{value:"kW\xB7h",label:"\u5343\u74E6\u65F6"},{value:"Wh",label:"\u74E6\u65F6"},{value:"eV",label:"\u7535\u5B50\u4F0F"},{value:"kJ",label:"\u5343\u7126"},{value:"J",label:"\u7126\u8033"},{value:"\u2109",label:"\u534E\u6C0F\u5EA6"},{value:"K",label:"\u5F00\u5C14\u6587"},{value:"t",label:"\u5428"},{value:"\xB0C",label:"\u6444\u6C0F\u5EA6"},{value:"mPa",label:"\u6BEB\u5E15"},{value:"hPa",label:"\u767E\u5E15"},{value:"kPa",label:"\u5343\u5E15"},{value:"Pa",label:"\u5E15\u65AF\u5361"},{value:"mg",label:"\u6BEB\u514B"},{value:"g",label:"\u514B"},{value:"kg",label:"\u5343\u514B"},{value:"N",label:"\u725B"},{value:"mL",label:"\u6BEB\u5347"},{value:"L",label:"\u5347"},{value:"mm\xB3",label:"\u7ACB\u65B9\u6BEB\u7C73"},{value:"cm\xB3",label:"\u7ACB\u65B9\u5398\u7C73"},{value:"km\xB3",label:"\u7ACB\u65B9\u5343\u7C73"},{value:"m\xB3",label:"\u7ACB\u65B9\u7C73"},{value:"h\u33A1",label:"\u516C\u9877"},{value:"c\u33A1",label:"\u5E73\u65B9\u5398\u7C73"},{value:"m\u33A1",label:"\u5E73\u65B9\u6BEB\u7C73"},{value:"k\u33A1",label:"\u5E73\u65B9\u5343\u7C73"},{value:"\u33A1",label:"\u5E73\u65B9\u7C73"},{value:"nm",label:"\u7EB3\u7C73"},{value:"\u03BCm",label:"\u5FAE\u7C73"},{value:"mm",label:"\u6BEB\u7C73"},{value:"cm",label:"\u5398\u7C73"},{value:"dm",label:"\u5206\u7C73"},{value:"km",label:"\u5343\u7C73"},{value:"m",label:"\u7C73"}],a=o(85893),lt=function(e){var Z,n=_.Z.Option,pe=_.Z.OptGroup,V=(0,s.useState)("block"),ee=(0,h.Z)(V,2),S=ee[0],A=ee[1],J=(0,s.useState)(0),L=(0,h.Z)(J,2),N=L[0],Y=L[1],z=(0,s.useState)(!1),q=(0,h.Z)(z,2),H=q[0],le=q[1],Q=(0,s.useState)("block"),O=(0,h.Z)(Q,2),w=O[0],j=O[1],M=(0,s.useState)("none"),X=(0,h.Z)(M,2),ne=X[0],E=X[1],U=(0,s.useState)("none"),ce=(0,h.Z)(U,2),T=ce[0],g=ce[1],C=(0,s.useState)("none"),F=(0,h.Z)(C,2),p=F[0],y=F[1],ue=(0,s.useState)("none"),P=(0,h.Z)(ue,2),B=P[0],I=P[1],ve=(0,s.useState)("false"),re=(0,h.Z)(ve,2),he=re[0],ae=re[1],ya=(0,s.useState)("none"),te=(0,h.Z)(ya,2),me=te[0],Ze=te[1],ba=(0,s.useState)(0),Ee=(0,h.Z)(ba,2),Be=Ee[0],ye=Ee[1],ie=(0,s.useState)(1),Ge=(0,h.Z)(ie,2),ga=Ge[0],be=Ge[1],Ya=(0,s.useState)(0),ze=(0,h.Z)(Ya,2),pa=ze[0],Je=ze[1],qa=m.Z.useForm(),Za=(0,h.Z)(qa,1),W=Za[0],Ue=(0,s.useState)(""),xe=(0,h.Z)(Ue,2),Ie=xe[0],Ve=xe[1],xa=(0,s.useState)(""),Ye=(0,h.Z)(xa,2),Pe=Ye[0],De=Ye[1],qe=k.Z.TextArea,Ca=[{value:"digit",label:"int32(\u6574\u578B)"},{value:"text",label:"text(\u5B57\u7B26\u4E32)"},{value:"textareaary",label:"textarea(\u5B57\u7B26\u4E32\u6570\u7EC4)"},{value:"select",label:"enum(\u679A\u4E3E)"},{value:"textarea",label:"text(\u6587\u672C\u57DF)"},{value:"switch",label:"bool(\u5E03\u5C14\u578B)"}];(0,s.useEffect)(function(){var i;if(e!=null&&(i=e.values)!==null&&i!==void 0&&i.id){var l,t,d,u,f,x,D,wa,Ea,Ba,Ia,Va,Pa,Da,Aa,ka,Ra,La,Oa,Ma,Wa,Ka;console.log(JSON.parse(e==null||(l=e.values)===null||l===void 0?void 0:l.enumValue)),le(!0),Y(e==null||(t=e.values)===null||t===void 0?void 0:t.type),(e==null||(d=e.values)===null||d===void 0?void 0:d.type)==1?(A("none"),j("none"),I("none")):(e==null||(u=e.values)===null||u===void 0?void 0:u.type)==0&&A("block"),ke(e==null||(f=e.values)===null||f===void 0?void 0:f.dataType);var Ha=[];if(Ha=JSON.parse(e==null||(x=e.values)===null||x===void 0?void 0:x.enumValue),W.setFieldsValue({id:e==null||(D=e.values)===null||D===void 0?void 0:D.id,type:e==null||(wa=e.values)===null||wa===void 0?void 0:wa.type,name:e==null||(Ea=e.values)===null||Ea===void 0?void 0:Ea.name,dataType:e==null||(Ba=e.values)===null||Ba===void 0?void 0:Ba.dataType,dataRange:e==null||(Ia=e.values)===null||Ia===void 0?void 0:Ia.dataRange,stepSize:e==null||(Va=e.values)===null||Va===void 0?void 0:Va.stepSize,unit:e==null||(Pa=e.values)===null||Pa===void 0?void 0:Pa.unit,foreignKeyRe:e==null||(Da=e.values)===null||Da===void 0?void 0:Da.foreignKeyRe,enumvaluelist:Ha,description:e==null||(Aa=e.values)===null||Aa===void 0?void 0:Aa.description,readWrite:e==null||(ka=e.values)===null||ka===void 0?void 0:ka.readWrite,dataLength:e==null||(Ra=e.values)===null||Ra===void 0?void 0:Ra.dataLength,boolLabel:e==null||(La=e.values)===null||La===void 0?void 0:La.boolLabel,dataJson:e==null||(Oa=e.values)===null||Oa===void 0?void 0:Oa.dataJson}),e!=null&&(Ma=e.values)!==null&&Ma!==void 0&&Ma.boolLabel){var Na,Qa=e==null||(Na=e.values)===null||Na===void 0?void 0:Na.boolLabel.split(":");Ve(Qa[0]),De(Qa[1])}else Ve(""),De("");if(e!=null&&(Wa=e.values)!==null&&Wa!==void 0&&Wa.dataRange){var Ga,Xa=e==null||(Ga=e.values)===null||Ga===void 0?void 0:Ga.dataRange.split("-");ye(Xa[0]),be(Xa[1])}else ye(0),be(1);e!=null&&(Ka=e.values)!==null&&Ka!==void 0&&Ka.isDefault?ae(!0):ae(!1)}else ae(!1),console.log("xinjian"),le(!1),A("block"),ye(0),be(1),W.resetFields(),Y(0),ke("digit"),W.setFieldsValue({type:0,dataType:"digit"})},[e==null?void 0:e.values]);var Fa=function(l){Y(l.target.value),W.setFieldsValue({type:l.target.value}),l.target.value==1?(A("none"),y("none"),g("none"),E("none"),j("none"),Ze("none")):l.target.value==0?(A("block"),Ze("none"),W.setFieldsValue({dataType:"digit"}),j("block")):l.target.value==2&&(Ze("block"),A("none"),j("none"),y("none"),g("none"),W.setFieldsValue({eventType:0}))},Ae=function(l){ye(l)},He=function(l){Be>l?c.default.error("\u6700\u5927\u503C\u4E0D\u80FD\u5C0F\u4E8E\u6700\u5C0F\u503C"):(be(l),W.setFieldsValue({dataRange:Be+"-"+l}))},ke=function(l){console.log(l),l=="digit"?(j("block"),E("none"),g("none"),y("none")):l=="select"?(E("block"),j("none"),g("none"),y("none"),I("none")):l=="switch"?(g("block"),E("none"),j("none"),y("none"),I("none")):l=="text"?(g("none"),E("none"),j("none"),y("block"),I("none")):l=="textareaary"?(g("none"),E("none"),j("none"),y("none"),I("block")):(y("none"),g("none"),E("none"),j("none"),I("none"))},Sa=function(l){Je(l.target.value)},Qe=function(l){Ve(l.target.value)},ja=function(l){De(l.target.value)},Ta=function(l){W.setFieldsValue({eventType:l.target.value})};return(0,a.jsx)(de.Z,{title:e!=null&&(Z=e.values)!==null&&Z!==void 0&&Z.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:e==null?void 0:e.createModalVisible,bodyStyle:{padding:"32px 40px 8px"},footer:null,onCancel:function(){e==null||e.onCancel()},destroyOnClose:!0,maskClosable:!1,children:(0,a.jsxs)(m.Z,{layout:"vertical",preserve:!1,form:W,onFinish:function(){Ie.length>0&&Pe.length>0&&W.setFieldsValue({boolLabel:Ie+":"+Pe}),console.log("form.getFieldsValue()",W.getFieldsValue()),e==null||e.onFinish(W.getFieldsValue())},children:[(0,a.jsx)(m.Z.Item,{name:"id",hidden:!0,children:(0,a.jsx)(k.Z,{})}),(0,a.jsx)(m.Z.Item,{name:"type",label:"\u529F\u80FD\u7C7B\u578B",children:(0,a.jsxs)($.ZP.Group,{name:"type",defaultValue:0,value:N,onChange:Fa,disabled:H,children:[(0,a.jsx)($.ZP.Button,{value:0,children:"\u5C5E\u6027"}),(0,a.jsx)($.ZP.Button,{value:1,children:"\u670D\u52A1"}),(0,a.jsx)($.ZP.Button,{value:2,children:"\u4E8B\u4EF6"})]})}),(0,a.jsx)(m.Z.Item,{name:"name",label:"\u529F\u80FD\u540D\u79F0",rules:[{required:!0,max:64,whitespace:!0}],children:(0,a.jsx)(k.Z,{placeholder:"\u8BF7\u8F93\u5165\u529F\u80FD\u540D\u79F0",disabled:he})}),(0,a.jsx)(m.Z.Item,{style:{display:S},label:"\u6570\u636E\u7C7B\u578B",name:"dataType",rules:[{required:!1}],children:(0,a.jsx)(_.Z,{onChange:ke,defaultValue:"digit",children:Ca.map(function(i,l){return(0,a.jsx)(_.Z.Option,{index:l,value:i.value,children:i.label},i.value)})})}),(0,a.jsx)(m.Z.Item,{style:{display:ne},label:"\u679A\u4E3E\u9879",name:"enumValue",rules:[{required:!1}],children:(0,a.jsx)(m.Z.List,{name:"enumvaluelist",children:function(l,t){return(0,a.jsxs)("div",{style:{display:"flex",flexDirection:"column",rowGap:16},children:[l.map(function(d){return(0,a.jsxs)(_a.Z,{children:[(0,a.jsx)(m.Z.Item,{name:[d.name,"enumvalue"],children:(0,a.jsx)(k.Z,{placeholder:"\u53C2\u6570\u503C"})}),(0,a.jsx)(m.Z.Item,{name:[d.name,"enumlabel"],children:(0,a.jsx)(k.Z,{placeholder:"\u53C2\u6570\u63CF\u8FF0"})}),(0,a.jsx)(et.Z,{onClick:function(){t.remove(d.name)}})]},d.key)}),(0,a.jsx)(K.Z,{type:"dashed",onClick:function(){console.log(JSON.stringify(W.getFieldsValue(),null,2)),console.log(l),console.log(t),t.add()},block:!0,children:"+ \u6DFB\u52A0\u679A\u4E3E"})]})}})}),(0,a.jsxs)(m.Z.Item,{style:{display:w},label:"\u53D6\u503C\u8303\u56F4",name:"dataRange",rules:[{required:!1}],children:[(0,a.jsx)(_e.Z,{placeholder:"\u6700\u5C0F\u503C",style:{width:"49%"},value:Be,onChange:Ae}),"~",(0,a.jsx)(_e.Z,{value:ga,placeholder:"\u6700\u5927\u503C",onChange:He,style:{width:"49%"}})]}),(0,a.jsx)(m.Z.Item,{style:{display:w},label:"\u6B65\u957F",name:"stepSize",rules:[{required:!1}],children:(0,a.jsx)(_e.Z,{placeholder:"\u8BF7\u8F93\u5165\u6B65\u957F",style:{width:"100%"}})}),(0,a.jsx)(m.Z.Item,{style:{display:w},label:"\u5355\u4F4D",name:"unit",rules:[{required:!1}],children:(0,a.jsx)(_.Z,{allowClear:!0,showSearch:!0,optionFilterProp:"Name",filterOption:function(l,t){var d;return((d=t==null?void 0:t.label)!==null&&d!==void 0?d:"").includes(l)},filterSort:function(l,t){var d,u;return((d=l==null?void 0:l.label)!==null&&d!==void 0?d:"").localeCompare((u=t==null?void 0:t.label)!==null&&u!==void 0?u:"")},options:tt})}),(0,a.jsxs)(m.Z.Item,{style:{display:T},name:"boolLabel",label:"\u5E03\u5C14\u503C",rules:[{required:!1}],children:["0 -",(0,a.jsx)(k.Z,{placeholder:"\u5982\uFF1A\u5173",defaultValue:Ie,onChange:Qe,style:{width:"46%"}}),"1 -",(0,a.jsx)(k.Z,{placeholder:"\u5982\uFF1A\u5F00",defaultValue:Pe,onChange:ja,style:{width:"46%"}})]}),(0,a.jsx)(m.Z.Item,{style:{display:p},name:"dataLength",label:"\u6570\u636E\u957F\u5EA6",rules:[{required:!1}],children:(0,a.jsx)(k.Z,{placeholder:"10240",defaultValue:"10240",addonAfter:"\u5B57\u8282"})}),(0,a.jsx)(m.Z.Item,{style:{display:me},name:"eventType",label:(0,a.jsxs)("span",{children:["\u4E8B\u4EF6\u7C7B\u578B",(0,a.jsx)(we.Z,{placement:"top",title:"\u201C\u4FE1\u606F\u201D\u662F\u8BBE\u5907\u4E0A\u62A5\u7684\u4E00\u822C\u6027\u901A\u77E5\uFF0C\u5982\u5B8C\u6210\u67D0\u9879\u4EFB\u52A1\u7B49\u3002\u201C\u544A\u8B66\u201D\u548C\u201C\u6545\u969C\u201D\u662F\u8BBE\u5907\u8FD0\u884C\u8FC7\u7A0B\u4E2D\u4E3B\u52A8\u4E0A\u62A5\u7684\u7A81\u53D1\u6216\u5F02\u5E38\u60C5\u51B5\uFF0C\u4F18\u5148\u7EA7\u9AD8\u3002\u4E0D\u540C\u7684\u4E8B\u4EF6\u7C7B\u578B\u5C06\u7528\u4E8E\u7EDF\u8BA1\u5206\u6790\u3002",children:(0,a.jsx)(at.Z,{})})]}),rules:[{required:!1}],children:(0,a.jsxs)($.ZP.Group,{defaultValue:0,onChange:Ta,value:0,children:[(0,a.jsx)($.ZP,{value:0,children:"\u4FE1\u606F"}),(0,a.jsx)($.ZP,{value:1,children:"\u544A\u8B66"}),(0,a.jsx)($.ZP,{value:2,children:"\u6545\u969C"})]})}),(0,a.jsx)(m.Z.Item,{style:{display:B},name:"dataJson",label:"\u6570\u7EC4\u5B57\u7B26\u4E32",rules:[{required:!1}],children:(0,a.jsx)(qe,{placeholder:"\u6570\u636E\u683C\u5F0F\uFF1A[data1:{value1:'1'},{value2:'2'},data2:{value1:'1'},{value2:'2'}]",autoSize:{minRows:10,maxRows:100}})}),(0,a.jsx)(m.Z.Item,{style:{display:S},name:"readWrite",label:"\u8BFB\u5199\u7C7B\u578B",rules:[{required:!1}],children:(0,a.jsx)($.ZP.Group,{onChange:Sa,name:"radiogroup",defaultValue:0,value:pa,children:(0,a.jsx)($.ZP,{value:0,children:"\u8BFB\u5199"})})}),(0,a.jsx)(m.Z.Item,{name:"description",label:"\u63CF\u8FF0",rules:[{required:!1}],children:(0,a.jsx)(qe,{showCount:!0,maxLength:100,style:{height:120,resize:"none"},placeholder:"\u8BF7\u8F93\u5165\u63CF\u8FF0"})}),(0,a.jsxs)(m.Z.Item,{children:[(0,a.jsx)(K.Z,{htmlType:"button",style:{float:"right",left:10},onClick:e.onCancel,children:"\u53D6\u6D88"}),(0,a.jsx)(K.Z,{type:"primary",htmlType:"submit",style:{float:"right"},children:"\u4FDD\u5B58"})]})]})})},nt=lt,ut=o(64317),rt=o(76615),it=function(e){var Z=m.Z.useForm(),n=(0,h.Z)(Z,1),pe=n[0],V=s.useRef(null),ee=(0,s.useState)("text"),S=(0,h.Z)(ee,2),A=S[0],J=S[1],L=(0,s.useState)("Form"),N=(0,h.Z)(L,2),Y=N[0],z=N[1],q=(0,s.useState)([]),H=(0,h.Z)(q,2),le=H[0],Q=H[1],O=(0,s.useState)(""),w=(0,h.Z)(O,2),j=w[0],M=w[1],X=(0,s.useState)(!1),ne=(0,h.Z)(X,2),E=ne[0],U=ne[1],ce=(0,s.useState)(!1),T=(0,h.Z)(ce,2),g=T[0],C=T[1],F=k.Z.TextArea;(0,s.useEffect)(function(){var P;if((P=V.current)===null||P===void 0||P.setFieldsValue(e.values),e.createModalVisible)if(e.values.actionType==null){var B;(B=V.current)===null||B===void 0||B.setFieldsValue({actionType:"text"}),e.values.actionType="text",J("text"),z("Form"),Q([])}else{var I;if((I=V.current)===null||I===void 0||I.setFieldsValue({actionType:e.values.actionType}),J(e.values.actionType),e.values.actionType=="select"){z("ModalForm");for(var ve=[],re=JSON.parse(e.values.actionValue),he=0;he