Files
shz-admin/shihezi/2878.e457a29b.async.js
wzm 3a17dc786b
Some checks failed
Node CI / build (14.x, macOS-latest) (push) Has been cancelled
Node CI / build (14.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (14.x, windows-latest) (push) Has been cancelled
Node CI / build (16.x, macOS-latest) (push) Has been cancelled
Node CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (16.x, windows-latest) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
coverage CI / build (push) Has been cancelled
Node pnpm CI / build (16.x, macOS-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, windows-latest) (push) Has been cancelled
增加转发对象配置,工作人员管理页面
2025-11-20 16:30:13 +08:00

2 lines
7.6 KiB
JavaScript

"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2878,7476,3703],{37476:function(te,$,e){e.d($,{Y:function(){return X}});var P=e(55850),A=e(15861),h=e(1413),j=e(97685),G=e(91),Z=e(73177),k=e(21532),R=e(17788),W=e(21770),H=e(8880),Y=e(80334),i=e(67294),L=e(73935),N=e(78733),l=e(85893),ee=["children","trigger","onVisibleChange","onOpenChange","modalProps","onFinish","submitTimeout","title","width","visible","open"];function X(d){var _,f,J=d.children,c=d.trigger,x=d.onVisibleChange,F=d.onOpenChange,n=d.modalProps,p=d.onFinish,D=d.submitTimeout,V=d.title,g=d.width,T=d.visible,U=d.open,s=(0,G.Z)(d,ee);(0,Y.ET)(!s.footer||!(n!=null&&n.footer),"ModalForm \u662F\u4E00\u4E2A ProForm \u7684\u7279\u6B8A\u5E03\u5C40\uFF0C\u5982\u679C\u60F3\u81EA\u5B9A\u4E49\u6309\u94AE\uFF0C\u8BF7\u4F7F\u7528 submit.render \u81EA\u5B9A\u4E49\u3002");var b=(0,i.useContext)(k.ZP.ConfigContext),Q=(0,i.useState)([]),M=(0,j.Z)(Q,2),C=M[1],I=(0,i.useState)(!1),B=(0,j.Z)(I,2),E=B[0],K=B[1],le=(0,W.Z)(!!T,{value:U||T,onChange:F||x}),ne=(0,j.Z)(le,2),w=ne[0],O=ne[1],z=(0,i.useRef)(null),re=(0,i.useCallback)(function(o){z.current===null&&o&&C([]),z.current=o},[]),y=(0,i.useRef)(),oe=(0,i.useCallback)(function(){var o,t,r,a=(o=(t=s.form)!==null&&t!==void 0?t:(r=s.formRef)===null||r===void 0?void 0:r.current)!==null&&o!==void 0?o:y.current;a&&n!==null&&n!==void 0&&n.destroyOnClose&&a.resetFields()},[n==null?void 0:n.destroyOnClose,s.form,s.formRef]);(0,i.useImperativeHandle)(s.formRef,function(){return y.current},[y.current]),(0,i.useEffect)(function(){(U||T)&&(F==null||F(!0),x==null||x(!0))},[T,U]);var ue=(0,i.useMemo)(function(){return c?i.cloneElement(c,(0,h.Z)((0,h.Z)({key:"trigger"},c.props),{},{onClick:function(){var o=(0,A.Z)((0,P.Z)().mark(function r(a){var m,u;return(0,P.Z)().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:O(!w),(m=c.props)===null||m===void 0||(u=m.onClick)===null||u===void 0||u.call(m,a);case 2:case"end":return v.stop()}},r)}));function t(r){return o.apply(this,arguments)}return t}()})):null},[O,c,w]),ae=(0,i.useMemo)(function(){var o,t,r,a,m,u,S;return s.submitter===!1?!1:(0,H.T)({searchConfig:{submitText:(o=(t=n==null?void 0:n.okText)!==null&&t!==void 0?t:(r=b.locale)===null||r===void 0||(r=r.Modal)===null||r===void 0?void 0:r.okText)!==null&&o!==void 0?o:"\u786E\u8BA4",resetText:(a=(m=n==null?void 0:n.cancelText)!==null&&m!==void 0?m:(u=b.locale)===null||u===void 0||(u=u.Modal)===null||u===void 0?void 0:u.cancelText)!==null&&a!==void 0?a:"\u53D6\u6D88"},resetButtonProps:{preventDefault:!0,disabled:D?E:void 0,onClick:function(de){var q;O(!1),n==null||(q=n.onCancel)===null||q===void 0||q.call(n,de)}}},(S=s.submitter)!==null&&S!==void 0?S:{})},[(_=b.locale)===null||_===void 0||(_=_.Modal)===null||_===void 0?void 0:_.cancelText,(f=b.locale)===null||f===void 0||(f=f.Modal)===null||f===void 0?void 0:f.okText,n,s.submitter,O,E,D]),se=(0,i.useCallback)(function(o,t){return(0,l.jsxs)(l.Fragment,{children:[o,z.current&&t?(0,l.jsx)(i.Fragment,{children:(0,L.createPortal)(t,z.current)},"submitter"):t]})},[]),ie=(0,i.useCallback)(function(){var o=(0,A.Z)((0,P.Z)().mark(function t(r){var a,m,u;return(0,P.Z)().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return a=p==null?void 0:p(r),D&&a instanceof Promise&&(K(!0),m=setTimeout(function(){return K(!1)},D),a.finally(function(){clearTimeout(m),K(!1)})),v.next=4,a;case 4:return u=v.sent,u&&O(!1),v.abrupt("return",u);case 7:case"end":return v.stop()}},t)}));return function(t){return o.apply(this,arguments)}}(),[p,O,D]),_e=(0,Z.X)(w);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(R.Z,(0,h.Z)((0,h.Z)((0,h.Z)({title:V,width:g||800},n),_e),{},{onCancel:function(t){var r;D&&E||(O(!1),n==null||(r=n.onCancel)===null||r===void 0||r.call(n,t))},afterClose:function(){var t;oe(),w&&O(!1),n==null||(t=n.afterClose)===null||t===void 0||t.call(n)},footer:s.submitter!==!1?(0,l.jsx)("div",{ref:re,style:{display:"flex",justifyContent:"flex-end"}}):null,children:(0,l.jsx)(N.I,(0,h.Z)((0,h.Z)({formComponentType:"ModalForm",layout:"vertical"},s),{},{onInit:function(t,r){var a;s.formRef&&(s.formRef.current=r),s==null||(a=s.onInit)===null||a===void 0||a.call(s,t,r),y.current=r},formRef:y,submitter:ae,onFinish:function(){var o=(0,A.Z)((0,P.Z)().mark(function t(r){var a;return(0,P.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,ie(r);case 2:return a=u.sent,u.abrupt("return",a);case 4:case"end":return u.stop()}},t)}));return function(t){return o.apply(this,arguments)}}(),contentRender:se,children:J}))})),ue]})}},83104:function(te,$,e){e.r($);var P=e(15009),A=e.n(P),h=e(99289),j=e.n(h),G=e(5574),Z=e.n(G),k=e(37476),R=e(31199),W=e(97269),H=e(5966),Y=e(77569),i=e(83622),L=e(67294),N=e(16854),l=e(85893),ee=function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:100;return new Promise(function(f){setTimeout(function(){f(!0)},_)})},X=function(_){var f=Y.Z.useForm(),J=Z()(f,1),c=J[0],x=(0,L.useState)(!1),F=Z()(x,2),n=F[0],p=F[1],D=(0,L.useState)({}),V=Z()(D,2),g=V[0],T=V[1];(0,L.useEffect)(function(){c.resetFields(),_.values&&(c.setFieldsValue(_.values),T(_.values))},[c,_]);var U=function(){_.onCancel(),c.resetFields()},s=function(){var M=j()(A()().mark(function C(I){return A()().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:_.onSubmit(I);case 1:case"end":return E.stop()}},C)}));return function(I){return M.apply(this,arguments)}}(),b=function(C){if(C.location){var I=C.location,B=I.lat,E=I.lng;c.setFieldValue("latitude",B),c.setFieldValue("longitude",E),c.setFieldValue("address",C.address);var K={latitude:B,longitude:E,address:C.address};T(K),p(!1)}},Q=function(){p(!1)};return(0,l.jsxs)(k.Y,{title:"".concat(_.values?"\u7F16\u8F91":"\u65B0\u589E","\u7AD9\u70B9"),form:c,autoFocusFirstInput:!0,open:_.open,modalProps:{destroyOnClose:!0,onCancel:function(){return U()}},initialValues:{sort:0},submitTimeout:2e3,onFinish:s,children:[(0,l.jsx)(R.Z,{name:"stationId",label:"\u5B57\u5178\u4E3B\u952E",placeholder:"\u8BF7\u8F93\u5165\u5B57\u5178\u4E3B\u952E",disabled:!0,hidden:!0}),(0,l.jsxs)(W.A.Group,{children:[(0,l.jsx)(H.Z,{width:"md",name:"stationName",label:"\u7AD9\u70B9\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0\uFF01"}]}),(0,l.jsx)(R.Z,{width:"md",label:"\u6392\u5E8F",name:"stationOrder",placeholder:"\u8BF7\u8F93\u5165\u6392\u5E8F",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6392\u5E8F\uFF01"}]})]}),(0,l.jsx)(W.A.Group,{children:(0,l.jsxs)("div",{children:[(0,l.jsx)(i.ZP,{onClick:function(){return p(!0)},children:"\u9009\u62E9\u4F4D\u7F6E\u4FE1\u606F"}),(0,l.jsxs)("div",{style:{margin:"10px 0 0 0"},children:[g.address?(0,l.jsxs)("span",{style:{padding:"0 0 0 16px"},children:["\u5730\u5740\uFF1A",g.address]}):null,g.latitude?(0,l.jsxs)("span",{style:{padding:"0 0 0 16px"},children:["\u7ECF\u7EAC\u5EA6\uFF1A",g.latitude,",",g.longitude]}):(0,l.jsx)("span",{style:{padding:"0 0 0 16px",color:"red"},children:"\u8BF7\u9009\u62E9\u4F4D\u7F6E!"})]})]})}),(0,l.jsxs)(W.A.Group,{children:[(0,l.jsx)(H.Z,{width:"md",name:"address",label:"\u5730\u7406\u4F4D\u7F6E",hidden:!0,placeholder:"\u8BF7\u8F93\u5165\u5730\u7406\u4F4D\u7F6E"}),(0,l.jsx)(R.Z,{label:"\u7EAC\u5EA6",placeholder:"\u8BF7\u8F93\u5165\u7EAC\u5EA6",name:"latitude",width:"md",hidden:!0,min:-90,max:90,fieldProps:{controls:!1},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7EAC\u5EA6\uFF01"}]}),(0,l.jsx)(R.Z,{label:"\u7ECF\u5EA6",placeholder:"\u8BF7\u8F93\u5165\u7ECF\u5EA6",name:"longitude",width:"md",min:-180,hidden:!0,max:180,fieldProps:{controls:!1},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7ECF\u5EA6\uFF01"}]})]}),(0,l.jsx)(N.Z,{open:n,onSelect:b,onCancel:Q})]})};$.default=X}}]);