filesbox/web/dist/85433.62148b1b.async.js

2 lines
9.7 KiB
JavaScript
Raw Normal View History

2024-07-26 06:10:54 +00:00
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[85433],{16695:function(){},85433:function(Ie,U,n){"use strict";n.r(U),n.d(U,{default:function(){return Ee}});var W=n(20228),O=n(11382),q=n(13254),p=n(14277),S=n(11849),o=n(32157),ee=n(82363),pe=n(67294),z=n(28216),te=n(66615),ye=n.n(te),K=n(85893),w,V,k=ee.Z.TreeNode,ne=ee.Z.DirectoryTree,he=I=>I&&I.length>0?"\uFF08".concat(I.length,"\uFF09"):"",Ee=(w=(0,z.$j)(I=>{var i=I.page,l=I.commondesign,_=I.loading;return{page:i,commondesign:l,loading:_.effects["page/listAllSetting"]}}),w(V=class extends pe.Component{constructor(){super(...arguments);this.state={infoSelect:[],informationClassify:[],infoExpandedKeys:[]},this.getListHomepageInfo=(i,l)=>{var _=this,C=this.props,M=C.page,G=C.dispatch,h=this.state.informationClassify;if(!i.ajaxData){var v=i.typeName;i.typeName=v+" ( \u52A0\u8F7D\u4E2D )",this.setState({informationClassify:[...h]}),i.ajaxData=!0,G({type:"page/listHomepageInfo",payload:{InfoTypeId:i.infoTypeID,currentPage:1,pageSize:200},callback:E=>{if(E.success){var Z=Array.isArray(E.data.list)?E.data.list:[];i.typeName=v,i.children||(i.children=[]),i.children=[...i.children,...Z],this.setState({informationClassify:[...M.informationClassify]},()=>{l&&l()})}}})}},this.show=()=>{var i=this,l=this.props,_=l.commondesign,C=l.page,M=_.Href.dataHref,G=this.state.informationClassify,h="";if(M){var v=JSON.parse(M);switch(v.hrefType){case"infoClassify":h=v.data.infoTypeID+"",i.setState({infoValue:v.data.infoValue||"1",infoSelect:[h],infoExpandedKeys:v.data.infoExpandedKeys});break;case"information":h=v.data.infoID+"",i.setState({infoSelect:[h],infoExpandedKeys:v.data.infoExpandedKeys},()=>{var E=v.data.infoTypeID,Z=$=>{$.forEach(R=>{parseInt(R.infoTypeID)==parseInt(E)?i.getListHomepageInfo(R):R.children&&Z(R.children)})};Z(C.informationClassify)});break}}}}componentDidMount(){var i=this,l=this.props,_=l.dispatch,C=l.page,M=l.typeId;_({type:"page/listAllSetting",payload:{showCount:1},callback:()=>{this.getListHomepageInfo({},()=>{i.show()})}})}render(){var i=this,l=this.props,_=l.value,C=l.onChange,M=C===void 0?()=>{}:C,G=l.page,h=l.infoValue,v=l.loading,E=this.state,Z=E.infoExpandedKeys,$=E.informationClassify,R=E.infoSelect,ae=x=>x.map(c=>c.children?(0,K.jsx)(k,{title:c.typeName+he(c.children),item:{data:c,hrefType:"infoClassify"},children:ae(c.children)},c.infoTypeID+""):c.infoID?(0,K.jsx)(k,{title:c.title,item:{data:c,hrefType:"information"},isLeaf:!0},c.infoID+""):(0,K.jsx)(k,{title:c.typeName,item:{data:c,hrefType:"infoClassify"}},c.infoTypeID+"")),re=(x,c)=>{var g=c.node.props.item;this.setState({infoSelect:c.selected?x:[]}),g.hrefType=="infoClassify"&&i.getListHomepageInfo(g.data),g.data=(0,S.Z)((0,S.Z)({},g.data),{},{keys:x,infoExpandedKeys:Z}),g.hrefType=="infoClassify"&&(g.data.infoValue=h),M({valueItem:c.selected?g:"",value:x})},m=x=>{this.setState({infoExpandedKeys:x})};return(0,K.jsx)("div",{className:ye().shop,children:(0,K.jsx)(O.Z,{spinning:v,children:(0,K.jsxs)("div",{className:"conBox",children:[(0,K.jsx)(ne,{expandedKeys:Z,selectedKeys:R,onSelect:re,onExpand:m,children:ae($)}),$.length<1?(0,K.jsx)(p.Z,{image:p.Z.PRESENTED_IMAGE_SIMPLE,style:{marginTop:180,opacity:v?0:1}}):""]})})})}})||V)},82363:function(Ie,U,n){"use strict";n.d(U,{Z:function(){return Ae}});var W=n(93549),O=n(96156),q=n(90484),p=n(22122),S=n(28991),o=n(67294),ee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},pe=ee,z=n(27029),te=function(r,a){return o.createElement(z.Z,(0,S.Z)((0,S.Z)({},r),{},{ref:a,icon:pe}))};te.displayName="HolderOutlined";var ye=o.forwardRef(te),K=n(94184),w=n.n(K),V=n(53124),k=n(33603),ne=4;function he(e){var r,a=e.dropPosition,s=e.dropLevelOffset,d=e.prefixCls,f=e.indent,t=e.direction,D=t===void 0?"ltr":t,u=