(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[48954],{66717:function(X){X.exports={root:"root___2GQGR",colorWeak:"colorWeak___2rEQZ","ant-layout":"ant-layout___7Urmk",globalSpin:"globalSpin___8Btav","ant-table":"ant-table___3eTCa","ant-table-thead":"ant-table-thead___2begL","ant-table-tbody":"ant-table-tbody___3TUF7",formBox:"formBox___trJQD",menu:"menu___CxHsC"}},44943:function(){},48954:function(X,N,a){"use strict";a.r(N),a.d(N,{default:function(){return r}});var F=a(71194),P=a(50146),H=a(57663),D=a(71577),Y=a(34792),q=a(48086),c=a(88983),A=a(47933),S=a(67294),ee=a(28216),G=a(66717),J=a.n(G),I=a(41273),w=a(7861),g=a(85893),C,m,r=(C=(0,ee.$j)(p=>{var o=p.globaldesign,n=p.commondesign,v=p.page;return{globaldesign:o,commondesign:n,page:v}}),C(m=class extends S.PureComponent{constructor(){super(...arguments);this.state={visible:!1,width:880,selectValue:"",loadingOk:!1},this.show=o=>{var n=o.attr("data-formid")||"",v=this.props.dispatch;v({type:"globaldesign/changeState",payload:{formId:""}}),n&&this.setState({selectValue:parseInt(n)})},this.renderHtml=o=>{var n=JSON.parse(o),v=n.title,u=v===void 0?{}:v,_=n.desc,d=n.body,x=n.itemList,K=u.headHeight,L=u.headImg,y=u.value,b='
`).concat(y,`
`).concat(_.value,`
`),e="";x.map(l=>{var t=l.type,s=l.formType,h=l.title,f=l.description,O=l.placeholder,R=l.optionList,k=R===void 0?[]:R,T=l.thumb,M=l.filePath,U="";switch(k.map(j=>{var Q=j.content,z=j.imagePath;s=="checkbox"?U+='
  • '.concat(Q,"
  • "):U+='
  • '.concat(Q,'

  • ')}),t){case"02":e+=`
    `.concat(h,`
    `).concat(f,`
    `);break;case"06":e+=`
    `.concat(h,`
    `).concat(f,`
    `);break;case"03":e+=`
    `.concat(h,`
    `).concat(f,`
    `).concat(U,`
    `);break;case"04":e+=`
    `.concat(h,`
    `).concat(f,`
    `).concat(U,`
    `);break;case"05":e+=`
    `.concat(h,`
    `).concat(f,`

    `).concat(O,`

  • \u9009\u98791
  • \u9009\u98792
  • \u9009\u98793
  • `);break;case"61":e+=`
    `.concat(h,`
    `).concat(f,`

    \u70B9\u51FB\u9009\u62E9\u56FE\u7247
    (\u9700\u5C0F\u4E8E10M\uFF09

    `);break;case"62":e+=`
    `.concat(h,`
    `).concat(f,`
    +\u4E0A\u4F20(\u9700\u5C0F\u4E8E20M\uFF09
    `);break;case"08":e+=`
    `.concat(h,`
    `).concat(f,`
  • `);break;case"12":e+=`
    `.concat(h,`
    `).concat(f,`
    `);break;case"34":e+=`
    `.concat(h,`
    `).concat(f,`
    `);break;case"35":e+=`
    `.concat(h,`
    `).concat(f,`
    `);break;case"81":e+=`
    `.concat(f,`
    `);break;case"84":e+=`
    `);break;case"85":e+=`
    `.concat(T?''):'
    ',`
    `);break;case"86":e+=`
    `.concat(M?''):'
    ',`
    `);break;case"83":e+=`
    `.concat(h,`
    `).concat(f,`
    \u8BF7\u6DFB\u52A0\u9644\u4EF6
    `);break}});var i=`
    `.concat(b,`
    `).concat(e,`
    \u63D0\u4EA4
    `);return i},this.updataDomCallBack=(o,n)=>{var v=this,u=v.state.selectValue,_=this.props,d=_.commondesign,x=_.globaldesign,K=_.dispatch,L=x.isMobile,y=d.PageForm,b=y.element,e=y.callback,i=y.callClose;b.attr("data-formid",u),b.removeClass("onModule"),v.getFindForm(u,(l,t)=>{l?b.html('
    '+v.renderHtml(t)+"
    "):b.html('
    '+t+"
    "),b.css({left:0,height:$("#formHeightBox").height()}),n&&n(),setTimeout(()=>{(0,w.U7)(v)},500)})},this.cancelEvent=()=>{var o=this,n=this.props.dispatch;n({type:"commondesign/setState",payload:{PageForm:{visible:!1,callback:()=>{},callClose:()=>{}}}})},this.getFindForm=(o,n)=>{var v=this,u=this.props.dispatch,_=d=>{var x=d.itemJsonSavePath,K=d.referenceSavePath,L=x?1:0;$.ajax({type:"get",url:x||K,dataType:"html",success:function(b){b&&n&&n(L,b)}})};u({type:"page/getFindForm",payload:{formId:o},callback:d=>{var x=d.data.formInfo;_(x)}})},this.getFormPage=()=>{var o=this,n=this.props,v=n.dispatch,u=n.page,_=n.typeId,d=u.formList;d.length<1&&v({type:"page/findFormPageList",payload:{status:"1",currentPage:1,pageSize:1e3}})}}componentDidMount(){var o=this.props,n=o.visible,v=o.element,u=o.callback,_=o.callClose,d=o.commondesign;this.setState({visible:n,callback:u}),this.getFormPage(),this.show(v)}renderContent(){var o=this,n=this.props.page,v=n.formList,u=this.state.selectValue,_=d=>{o.setState({selectValue:d.target.value})};return(0,g.jsx)("div",{children:(0,g.jsx)("div",{className:"main",children:(0,g.jsx)(A.ZP.Group,{onChange:_,value:u,children:v.map(d=>(0,g.jsx)("div",{className:"pageList",id:d.formId,children:(0,g.jsx)(A.ZP,{value:d.formId,children:d.title})},d.formId))})})})}render(){var o=this,n=this.state,v=n.width,u=n.selectValue,_=n.loadingOk,d=this.props,x=d.commondesign,K=d.element,L=d.dispatch,y=d.visible,b=d.globaldesign,e=x.PageForm.callback,i=()=>{if(!u){q.ZP.warning("\u8BF7\u9009\u62E9\u8868\u5355");return}o.setState({loadingOk:!0});var t={};o.updataDomCallBack(t,()=>{e&&e(t),o.cancelEvent()})},l=()=>{o.cancelEvent(),o.setState({loadingOk:!1})};return(0,g.jsxs)(P.Z,{title:"\u8868\u5355",visible:y,onOk:i,width:v,onCancel:l,maskClosable:!1,className:J().menu,footer:null,children:[o.renderContent(),(0,g.jsxs)("div",{className:"footer",children:[(0,g.jsx)(D.Z,{onClick:i,type:"primary",children:"\u786E\u5B9A"}),(0,g.jsx)(D.Z,{onClick:l,children:"\u53D6\u6D88"})]})]})}})||m)},47933:function(X,N,a){"use strict";a.d(N,{ZP:function(){return b}});var F=a(22122),P=a(96156),H=a(28481),D=a(94184),Y=a.n(D),q=a(21770),c=a(67294),A=a(53124),S=a(97647),ee=a(5467),G=c.createContext(null),J=G.Provider,I=G,w=c.createContext(null),g=w.Provider,C=a(50132),m=a(42550),r=a(98866),p=a(65223),o=function(e,i){var l={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&i.indexOf(t)<0&&(l[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,t=Object.getOwnPropertySymbols(e);s0&&(re=z.map(function(E){return typeof E=="string"||typeof E=="number"?c.createElement(u,{key:E.toString(),prefixCls:V,disabled:te,value:E,checked:k===E},E):c.createElement(u,{key:"radio-group-value-options-".concat(E.value),prefixCls:V,disabled:E.disabled||te,value:E.value,checked:k===E.value,style:E.style},E.label)}));var ve=ne||f,pe=Y()(W,"".concat(W,"-").concat(oe),(l={},(0,P.Z)(l,"".concat(W,"-").concat(ve),ve),(0,P.Z)(l,"".concat(W,"-rtl"),h==="rtl"),l),Q);return c.createElement("div",(0,F.Z)({},(0,ee.Z)(e),{className:pe,style:Z,onMouseEnter:ie,onMouseLeave:de,onFocus:ce,onBlur:se,id:B,ref:i}),c.createElement(J,{value:{onChange:M,value:k,disabled:e.disabled,name:e.name,optionType:e.optionType}},re))}),d=c.memo(_),x=function(e,i){var l={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&i.indexOf(t)<0&&(l[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,t=Object.getOwnPropertySymbols(e);s