(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8865],{64317:function(Xa,Oe,o){"use strict";var oe=o(28991),Me=o(81253),_e=o(85893),Se=o(22270),je=o(67294),K=o(66758),r=o(31649),g=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],za=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],Te=je.forwardRef(function(c,Ke){var Ze=c.fieldProps,fe=c.children,we=c.params,s=c.proFieldProps,Ee=c.mode,se=c.valueEnum,Ne=c.request,de=c.showSearch,Ge=c.options,Be=(0,Me.Z)(c,g),ze=(0,je.useContext)(K.Z);return(0,_e.jsx)(r.Z,(0,oe.Z)((0,oe.Z)({valueEnum:(0,Se.h)(se),request:Ne,params:we,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,oe.Z)({options:Ge,mode:Ee,showSearch:de,getPopupContainer:ze.getPopupContainer},Ze),ref:Ke,proFieldProps:s},Be),{},{children:fe}))}),h=je.forwardRef(function(c,Ke){var Ze=c.fieldProps,fe=c.children,we=c.params,s=c.proFieldProps,Ee=c.mode,se=c.valueEnum,Ne=c.request,de=c.options,Ge=(0,Me.Z)(c,za),Be=(0,oe.Z)({options:de,mode:Ee||"multiple",labelInValue:!0,showSearch:!0,showArrow:!1,autoClearSearchValue:!0,optionLabelProp:"label"},Ze),ze=(0,je.useContext)(K.Z);return(0,_e.jsx)(r.Z,(0,oe.Z)((0,oe.Z)({valueEnum:(0,Se.h)(se),request:Ne,params:we,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,oe.Z)({getPopupContainer:ze.getPopupContainer},Be),ref:Ke,proFieldProps:s},Ge),{},{children:fe}))}),Ja=Te,ea=h,We=Ja;We.SearchSelect=ea,We.displayName="ProFormComponent",Oe.Z=We},97958:function(Xa,Oe,o){"use strict";o.r(Oe),o.d(Oe,{default:function(){return Tt}});var oe=o(18106),Me=o(25499),_e=o(58024),Se=o(91894),je=o(57663),K=o(71577),r=o(39428),g=o(3182),za=o(62350),Te=o(24565),h=o(2824),Ja=o(43185),ea=o(93349),We=o(34792),c=o(48086),Ke=o(402),Ze=o(56256),fe=o(49101),we=o(6700),s=o(67294),Ee=o(28790),se=o(16894),Ne=o(71194),de=o(50146),Ge=o(22385),Be=o(94199),ze=o(77883),aa=o(21888),wt=o(49111),_a=o(19650),Et=o(88983),X=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 x,n=_.Z.Option,xe=_.Z.OptGroup,P=(0,s.useState)("block"),ee=(0,h.Z)(P,2),j=ee[0],D=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],$=(0,s.useState)("block"),O=(0,h.Z)($,2),B=O[0],T=O[1],M=(0,s.useState)("none"),Q=(0,h.Z)(M,2),ne=Q[0],w=Q[1],U=(0,s.useState)("none"),ce=(0,h.Z)(U,2),E=ce[0],p=ce[1],C=(0,s.useState)("none"),F=(0,h.Z)(C,2),Z=F[0],y=F[1],ue=(0,s.useState)("none"),A=(0,h.Z)(ue,2),I=A[0],V=A[1],ve=(0,s.useState)("false"),re=(0,h.Z)(ve,2),he=re[0],ae=re[1],ga=(0,s.useState)("none"),te=(0,h.Z)(ga,2),me=te[0],Ce=te[1],pa=(0,s.useState)(0),Ie=(0,h.Z)(pa,2),Ve=Ie[0],ye=Ie[1],ie=(0,s.useState)(1),Je=(0,h.Z)(ie,2),Za=Je[0],be=Je[1],Ya=(0,s.useState)(0),Ue=(0,h.Z)(Ya,2),xa=Ue[0],Ye=Ue[1],qa=m.Z.useForm(),Ca=(0,h.Z)(qa,1),W=Ca[0],qe=(0,s.useState)(""),Fe=(0,h.Z)(qe,2),Pe=Fe[0],Ae=Fe[1],Fa=(0,s.useState)(""),He=(0,h.Z)(Fa,2),De=He[0],ke=He[1],$e=k.Z.TextArea,Sa=[{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,b,S,ge,pe,Ba,Ia,Va,Pa,Aa,Da,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?(D("none"),T("none"),V("none")):(e==null||(u=e.values)===null||u===void 0?void 0:u.type)==0&&D("block"),Le(e==null||(f=e.values)===null||f===void 0?void 0:f.dataType);var Ha=[];if(Ha=JSON.parse(e==null||(b=e.values)===null||b===void 0?void 0:b.enumValue),W.setFieldsValue({id:e==null||(S=e.values)===null||S===void 0?void 0:S.id,type:e==null||(ge=e.values)===null||ge===void 0?void 0:ge.type,name:e==null||(pe=e.values)===null||pe===void 0?void 0:pe.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||(Aa=e.values)===null||Aa===void 0?void 0:Aa.foreignKeyRe,enumvaluelist:Ha,description:e==null||(Da=e.values)===null||Da===void 0?void 0:Da.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,$a=e==null||(Na=e.values)===null||Na===void 0?void 0:Na.boolLabel.split(":");Ae($a[0]),ke($a[1])}else Ae(""),ke("");if(e!=null&&(Wa=e.values)!==null&&Wa!==void 0&&Wa.dataRange){var Ga,Qa=e==null||(Ga=e.values)===null||Ga===void 0?void 0:Ga.dataRange.split("-");ye(Qa[0]),be(Qa[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),D("block"),ye(0),be(1),W.resetFields(),Y(0),Le("digit"),W.setFieldsValue({type:0,dataType:"digit"})},[e==null?void 0:e.values]);var ja=function(l){Y(l.target.value),W.setFieldsValue({type:l.target.value}),l.target.value==1?(D("none"),y("none"),p("none"),w("none"),T("none"),Ce("none")):l.target.value==0?(D("block"),Ce("none"),W.setFieldsValue({dataType:"digit"}),T("block")):l.target.value==2&&(Ce("block"),D("none"),T("none"),y("none"),p("none"),W.setFieldsValue({eventType:0}))},Re=function(l){ye(l)},Qe=function(l){Ve>l?c.default.error("\u6700\u5927\u503C\u4E0D\u80FD\u5C0F\u4E8E\u6700\u5C0F\u503C"):(be(l),W.setFieldsValue({dataRange:Ve+"-"+l}))},Le=function(l){console.log(l),l=="digit"?(T("block"),w("none"),p("none"),y("none")):l=="select"?(w("block"),T("none"),p("none"),y("none"),V("none")):l=="switch"?(p("block"),w("none"),T("none"),y("none"),V("none")):l=="text"?(p("none"),w("none"),T("none"),y("block"),V("none")):l=="textareaary"?(p("none"),w("none"),T("none"),y("none"),V("block")):(y("none"),p("none"),w("none"),T("none"),V("none"))},Ta=function(l){Ye(l.target.value)},Xe=function(l){Ae(l.target.value)},wa=function(l){ke(l.target.value)},Ea=function(l){W.setFieldsValue({eventType:l.target.value})};return(0,a.jsx)(de.Z,{title:e!=null&&(x=e.values)!==null&&x!==void 0&&x.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(){Pe.length>0&&De.length>0&&W.setFieldsValue({boolLabel:Pe+":"+De}),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)(X.ZP.Group,{name:"type",defaultValue:0,value:N,onChange:ja,disabled:H,children:[(0,a.jsx)(X.ZP.Button,{value:0,children:"\u5C5E\u6027"}),(0,a.jsx)(X.ZP.Button,{value:1,children:"\u670D\u52A1"}),(0,a.jsx)(X.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:j},label:"\u6570\u636E\u7C7B\u578B",name:"dataType",rules:[{required:!1}],children:(0,a.jsx)(_.Z,{onChange:Le,defaultValue:"digit",children:Sa.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:B},label:"\u53D6\u503C\u8303\u56F4",name:"dataRange",rules:[{required:!1}],children:[(0,a.jsx)(aa.Z,{placeholder:"\u6700\u5C0F\u503C",style:{width:"49%"},value:Ve,onChange:Re}),"~",(0,a.jsx)(aa.Z,{value:Za,placeholder:"\u6700\u5927\u503C",onChange:Qe,style:{width:"49%"}})]}),(0,a.jsx)(m.Z.Item,{style:{display:B},label:"\u6B65\u957F",name:"stepSize",rules:[{required:!1}],children:(0,a.jsx)(aa.Z,{placeholder:"\u8BF7\u8F93\u5165\u6B65\u957F",style:{width:"100%"}})}),(0,a.jsx)(m.Z.Item,{style:{display:B},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:E},name:"boolLabel",label:"\u5E03\u5C14\u503C",rules:[{required:!1}],children:["0 -",(0,a.jsx)(k.Z,{placeholder:"\u5982\uFF1A\u5173",defaultValue:Pe,onChange:Xe,style:{width:"46%"}}),"1 -",(0,a.jsx)(k.Z,{placeholder:"\u5982\uFF1A\u5F00",defaultValue:De,onChange:wa,style:{width:"46%"}})]}),(0,a.jsx)(m.Z.Item,{style:{display:Z},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)(Be.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)(X.ZP.Group,{defaultValue:0,onChange:Ea,value:0,children:[(0,a.jsx)(X.ZP,{value:0,children:"\u4FE1\u606F"}),(0,a.jsx)(X.ZP,{value:1,children:"\u544A\u8B66"}),(0,a.jsx)(X.ZP,{value:2,children:"\u6545\u969C"})]})}),(0,a.jsx)(m.Z.Item,{style:{display:I},name:"dataJson",label:"\u6570\u7EC4\u5B57\u7B26\u4E32",rules:[{required:!1}],children:(0,a.jsx)($e,{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:j},name:"readWrite",label:"\u8BFB\u5199\u7C7B\u578B",rules:[{required:!1}],children:(0,a.jsx)(X.ZP.Group,{onChange:Ta,name:"radiogroup",defaultValue:0,value:xa,children:(0,a.jsx)(X.ZP,{value:0,children:"\u8BFB\u5199"})})}),(0,a.jsx)(m.Z.Item,{name:"description",label:"\u63CF\u8FF0",rules:[{required:!1}],children:(0,a.jsx)($e,{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 x=m.Z.useForm(),n=(0,h.Z)(x,1),xe=n[0],P=s.useRef(null),ee=(0,s.useState)("text"),j=(0,h.Z)(ee,2),D=j[0],J=j[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],$=H[1],O=(0,s.useState)(""),B=(0,h.Z)(O,2),T=B[0],M=B[1],Q=(0,s.useState)(!1),ne=(0,h.Z)(Q,2),w=ne[0],U=ne[1],ce=(0,s.useState)(!1),E=(0,h.Z)(ce,2),p=E[0],C=E[1],F=k.Z.TextArea;(0,s.useEffect)(function(){var A;if((A=P.current)===null||A===void 0||A.setFieldsValue(e.values),e.createModalVisible)if(e.values.actionType==null){var I;(I=P.current)===null||I===void 0||I.setFieldsValue({actionType:"text"}),e.values.actionType="text",J("text"),z("Form"),$([])}else{var V;if((V=P.current)===null||V===void 0||V.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