2 lines
10 KiB
JavaScript
2 lines
10 KiB
JavaScript
(self.webpackChunk=self.webpackChunk||[]).push([[9815],{72226:function(R,C,e){"use strict";var r=e(88351),c=e(87841),d=e(93236),_=e(8263),g=e(62086),v=["fieldProps","min","proFieldProps","max"],D=function(E,p){var A=E.fieldProps,i=E.min,j=E.proFieldProps,I=E.max,S=(0,c.Z)(E,v);return(0,g.jsx)(_.Z,(0,r.Z)({valueType:"digit",fieldProps:(0,r.Z)({min:i,max:I},A),ref:p,filedConfig:{defaultProps:{width:"100%"}},proFieldProps:j},S))},h=d.forwardRef(D);C.Z=h},52586:function(R,C,e){"use strict";var r=e(88351),c=e(87841),d=e(93236),_=e(8263),g=e(62086),v=["fieldProps","proFieldProps"],D=function(O,E){var p=O.fieldProps,A=O.proFieldProps,i=(0,c.Z)(O,v);return(0,g.jsx)(_.Z,(0,r.Z)({ref:E,valueType:"textarea",fieldProps:p,proFieldProps:A},i))};C.Z=d.forwardRef(D)},61786:function(R,C,e){"use strict";var r=e(88351),c=e(87841),d=e(93236),_=e(8263),g=e(62086),v=["fieldProps","proFieldProps"],D=["fieldProps","proFieldProps"],h="text",O=function(i){var j=i.fieldProps,I=i.proFieldProps,S=(0,c.Z)(i,v);return(0,g.jsx)(_.Z,(0,r.Z)({valueType:h,fieldProps:j,filedConfig:{valueType:h},proFieldProps:I},S))},E=function(i){var j=i.fieldProps,I=i.proFieldProps,S=(0,c.Z)(i,D);return(0,g.jsx)(_.Z,(0,r.Z)({valueType:"password",fieldProps:j,proFieldProps:I,filedConfig:{valueType:h}},S))},p=O;p.Password=E,p.displayName="ProFormComponent",C.Z=p},40882:function(R,C,e){"use strict";e.d(C,{A:function(){return L}});var r=e(88351),c=e(84974),d=e(93236),_=e(96630),g=e(5424),v=e(40749),D=e(67654),h=e(67817),O=e(71639),E=e(80128),p=e(50126),A=e(61385),i=e(84875),j=e.n(i),I=e(75986),S=e(16216),y=e(21983),H=function(o){var u;return(0,v.Z)({},o.componentCls,{"&-title":{marginBlockEnd:o.marginXL,fontWeight:"bold"},"&-container":(0,v.Z)({flexWrap:"wrap",maxWidth:"100%"},"> div".concat(o.antCls,"-space-item"),{maxWidth:"100%"}),"&-twoLine":(u={display:"block",width:"100%"},(0,v.Z)(u,"".concat(o.componentCls,"-title"),{width:"100%",margin:"8px 0"}),(0,v.Z)(u,"".concat(o.componentCls,"-container"),{paddingInlineStart:16}),(0,v.Z)(u,"".concat(o.antCls,"-space-item,").concat(o.antCls,"-form-item"),{width:"100%"}),(0,v.Z)(u,"".concat(o.antCls,"-form-item"),{"&-control":{display:"flex",alignItems:"center",justifyContent:"flex-end","&-input":{alignItems:"center",justifyContent:"flex-end","&-content":{flex:"none"}}}}),u)})};function T(s){return(0,y.Xj)("ProFormGroup",function(o){var u=(0,r.Z)((0,r.Z)({},o),{},{componentCls:".".concat(s)});return[H(u)]})}var t=e(62086),f=d.forwardRef(function(s,o){var u=d.useContext(I.Z),N=u.groupProps,a=(0,r.Z)((0,r.Z)({},N),s),W=a.children,z=a.collapsible,b=a.defaultCollapsed,K=a.style,ue=a.labelLayout,re=a.title,V=re===void 0?s.label:re,ae=a.tooltip,le=a.align,ie=le===void 0?"start":le,Y=a.direction,P=a.size,k=P===void 0?32:P,ce=a.titleStyle,q=a.titleRender,B=a.spaceProps,w=a.extra,ee=a.autoFocus,se=(0,O.Z)(function(){return b||!1},{value:s.collapsed,onChange:s.onCollapse}),te=(0,D.Z)(se,2),ne=te[0],_e=te[1],ve=(0,d.useContext)(p.ZP.ConfigContext),de=ve.getPrefixCls,x=(0,S.zx)(s),m=x.ColWrapper,n=x.RowWrapper,l=de("pro-form-group"),F=T(l),M=F.wrapSSR,U=F.hashId,Z=z&&(0,t.jsx)(h.Z,{style:{marginInlineEnd:8},rotate:ne?void 0:90}),X=(0,t.jsx)(E.G,{label:Z?(0,t.jsxs)("div",{children:[Z,V]}):V,tooltip:ae}),me=(0,d.useCallback)(function(Q){var oe=Q.children;return(0,t.jsx)(A.Z,(0,r.Z)((0,r.Z)({},B),{},{className:j()("".concat(l,"-container ").concat(U),B==null?void 0:B.className),size:k,align:ie,direction:Y,style:(0,r.Z)({rowGap:0},B==null?void 0:B.style),children:oe}))},[ie,l,Y,U,k,B]),fe=q?q(X,s):X,he=(0,d.useMemo)(function(){var Q=[],oe=d.Children.toArray(W).map(function($,Ce){var pe;return d.isValidElement($)&&$!==null&&$!==void 0&&(pe=$.props)!==null&&pe!==void 0&&pe.hidden?(Q.push($),null):Ce===0&&d.isValidElement($)&&ee?d.cloneElement($,(0,r.Z)((0,r.Z)({},$.props),{},{autoFocus:ee})):$});return[(0,t.jsx)(n,{Wrapper:me,children:oe},"children"),Q.length>0?(0,t.jsx)("div",{style:{display:"none"},children:Q}):null]},[W,n,me,ee]),Pe=(0,D.Z)(he,2),Ee=Pe[0],xe=Pe[1];return M((0,t.jsx)(m,{children:(0,t.jsxs)("div",{className:j()(l,U,(0,v.Z)({},"".concat(l,"-twoLine"),ue==="twoLine")),style:K,ref:o,children:[xe,(V||ae||w)&&(0,t.jsx)("div",{className:"".concat(l,"-title ").concat(U).trim(),style:ce,onClick:function(){_e(!ne)},children:w?(0,t.jsxs)("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"},children:[fe,(0,t.jsx)("span",{onClick:function(oe){return oe.stopPropagation()},children:w})]}):fe}),(0,t.jsx)("div",{style:{display:z&&ne?"none":void 0},children:Ee})]})}))});f.displayName="ProForm-Group";var J=f,G=e(9664);function L(s){return(0,t.jsx)(_.I,(0,r.Z)({layout:"vertical",submitter:{render:function(u,N){return N.reverse()}},contentRender:function(u,N){return(0,t.jsxs)(t.Fragment,{children:[u,N]})}},s))}L.Group=J,L.useForm=c.Z.useForm,L.Item=G.Z,L.useWatch=c.Z.useWatch,L.ErrorList=c.Z.ErrorList,L.Provider=c.Z.Provider,L.useFormInstance=c.Z.useFormInstance,L.EditOrReadOnlyContext=g.A},80128:function(R,C,e){"use strict";e.d(C,{G:function(){return H}});var r=e(88351),c=e(40749),d=e(52319),_=e(93236),g={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},v=g,D=e(85651),h=function(t,f){return _.createElement(D.Z,(0,d.Z)({},t,{ref:f,icon:v}))},O=_.forwardRef(h),E=e(50126),p=e(87087),A=e(84875),i=e.n(A),j=e(21983),I=function(t){return(0,c.Z)({},t.componentCls,{display:"inline-flex",alignItems:"center",maxWidth:"100%","&-icon":{display:"block",marginInlineStart:"4px",cursor:"pointer","&:hover":{color:t.colorPrimary}},"&-title":{display:"inline-flex",flex:"1"},"&-subtitle ":{marginInlineStart:8,color:t.colorTextSecondary,fontWeight:"normal",fontSize:t.fontSize,whiteSpace:"nowrap"},"&-title-ellipsis":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"keep-all"}})};function S(T){return(0,j.Xj)("LabelIconTip",function(t){var f=(0,r.Z)((0,r.Z)({},t),{},{componentCls:".".concat(T)});return[I(f)]})}var y=e(62086),H=_.memo(function(T){var t=T.label,f=T.tooltip,J=T.ellipsis,G=T.subTitle,L=(0,_.useContext)(E.ZP.ConfigContext),s=L.getPrefixCls,o=s("pro-core-label-tip"),u=S(o),N=u.wrapSSR,a=u.hashId;if(!f&&!G)return(0,y.jsx)(y.Fragment,{children:t});var W=typeof f=="string"||_.isValidElement(f)?{title:f}:f,z=(W==null?void 0:W.icon)||(0,y.jsx)(O,{});return N((0,y.jsxs)("div",{className:i()(o,a),onMouseDown:function(K){return K.stopPropagation()},onMouseLeave:function(K){return K.stopPropagation()},onMouseMove:function(K){return K.stopPropagation()},children:[(0,y.jsx)("div",{className:i()("".concat(o,"-title"),a,(0,c.Z)({},"".concat(o,"-title-ellipsis"),J)),children:t}),G&&(0,y.jsx)("div",{className:"".concat(o,"-subtitle ").concat(a).trim(),children:G}),f&&(0,y.jsx)(p.Z,(0,r.Z)((0,r.Z)({},W),{},{children:(0,y.jsx)("span",{className:"".concat(o,"-icon ").concat(a).trim(),children:z})}))]}))})},48182:function(R,C,e){"use strict";var r=e(57213),c=e.n(r),d=e(25359),_=e.n(d),g=e(49811),v=e.n(g),D=e(54306),h=e.n(D),O=e(65854),E=e.n(O),p=e(93236),A=e(23674),i=e(61385),j=e(35422),I=e(14649),S=e(92750),y=e(11776),H=e(61786),T=e(90627),t=e(62086),f=T.Z.WemapController,J=f.wemapSuggestion,G=f.wemapGeocoder,L,s,o=null,u=function(a){var W,z,b=Object.assign({},(E()(a),a)),K=b.onChange,ue=b.value,re=(0,p.useState)([]),V=h()(re,2),ae=V[0],le=V[1],ie=(0,p.useState)(ue),Y=h()(ie,2),P=Y[0],k=Y[1],ce=(0,p.useState)(!1),q=h()(ce,2),B=q[0],w=q[1],ee=(0,p.useState)(!1),se=h()(ee,2),te=se[0],ne=se[1],_e=function(m){K(m)};(0,p.useEffect)(function(){if(te&&!s){var x;s=new TMap.Map("container",{center:new TMap.LatLng(34.789049,113.684792)}),o=new TMap.MultiMarker({map:s,geometries:[{id:"this",position:new TMap.LatLng(34.789049,113.684792)}]}),(x=s)===null||x===void 0||x.on("click",function(m){var n=m.latLng.getLat().toFixed(6),l=m.latLng.getLng().toFixed(6);o.remove("this"),o.add({id:"this",position:new TMap.LatLng(n,l)}),de("".concat(n,",").concat(l))}),G({location:"34.789049,113.684792"}).then(function(m){var n=m.data;k(n)})}},[te]);var ve=function(m){J({keyword:m}).then(function(n){var l=n.data,F=[];l==null||l.map(function(M){M.fullname="".concat(M.title," ").concat(M.address),F.push(M)}),le(F)})},de=function(){var x=v()(_()().mark(function m(n){var l,F,M;return _()().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return Z.next=2,G({location:n});case 2:l=Z.sent,F=l.success,M=l.data,k(M);case 6:case"end":return Z.stop()}},m)}));return function(n){return x.apply(this,arguments)}}();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(H.Z,c()({hidden:!0},b.fieldProps)),(0,t.jsxs)(i.Z.Compact,{style:{width:"100%"},children:[(0,t.jsx)(j.Z,{disabled:!0,style:{width:"100%"},hidden:!1,value:P==null?void 0:P.name,placeholder:b.placeholder}),(0,t.jsx)(I.ZP,{onClick:function(){ne(!0),w(!0)},children:"\u5730\u56FE\u9009\u70B9"})]}),(0,t.jsx)(S.Z,{width:"800px",title:"\u5730\u56FE\u9009\u70B9",open:B,onOk:function(){_e(P),w(!1)},onCancel:function(){w(!1)},children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"text-red-500",style:{position:"absolute",backgroundColor:"#ffffff",color:"#222222",top:"100px",left:"30px",zIndex:"10000",padding:"10px"},children:[(0,t.jsxs)("div",{children:["\u5750\u6807\uFF1A","".concat(P==null||(W=P.value)===null||W===void 0?void 0:W.lat,",").concat(P==null||(z=P.value)===null||z===void 0?void 0:z.lng)]}),(0,t.jsxs)("div",{children:["\u5730\u5740\uFF1A","".concat(P==null?void 0:P.name)]})]}),(0,t.jsx)("div",{children:(0,t.jsx)(i.Z.Compact,{style:{width:"100%"},children:(0,t.jsx)(y.Z,{placeholder:"\u8BF7\u8F93\u5165\u5730\u70B9",showSearch:!0,style:{width:"100%"},filterOption:!1,onSearch:function(m){m&&ve(m)},fieldNames:{label:"fullname",value:"id"},options:ae,onSelect:function(m,n){var l,F,M,U,Z,X;s.setCenter(new TMap.LatLng(n==null||(l=n.location)===null||l===void 0?void 0:l.lat,n==null||(F=n.location)===null||F===void 0?void 0:F.lng)),o.remove("this"),o.add({id:"this",position:new TMap.LatLng(n==null||(M=n.location)===null||M===void 0?void 0:M.lat,n==null||(U=n.location)===null||U===void 0?void 0:U.lng)}),de("".concat(n==null||(Z=n.location)===null||Z===void 0?void 0:Z.lat,",").concat(n==null||(X=n.location)===null||X===void 0?void 0:X.lng))}})})}),(0,t.jsx)("div",{id:"container"})]})})]})};C.Z=u},65854:function(R){function C(e){if(e==null)throw new TypeError("Cannot destructure "+e)}R.exports=C,R.exports.__esModule=!0,R.exports.default=R.exports}}]);
|